Subcategories

  • General discussion for getting started and support

    723 Topics
    3k Posts
    robert-hhR
    @theshade Pycom INC is closed. And whoever purchased the assets did not buy the debts or responsibilities. Personally I'm upset that not even the technical documentation of their boards was published as a small feedback for the community.
  • For all topics related to the WiPy

    566 Topics
    3k Posts
    S
    @robert-hh okay, makes sense regarding the documentation. thanks for the information
  • For all topics related to the LoPy

    2k Topics
    9k Posts
    S
    I am facing a challenge when attempting to decompress data compressed using the miniz library on the ESP32 platform. My objective is to compress data using miniz library in flasher_stub compoment of esp-idf and then decompress the data on the cloud side using some python script that can be compatible with miniz decompression style like zlib. As per the documentation and information available, the miniz library is described as a "lossless, high-performance data compression library" that implements the zlib (RFC 1950) and Deflate (RFC 1951) compressed data format specification standards. However, I am encountering difficulties when attempting to decompress the compressed data using Python. Specifically, when using the Python zlib module, which should be compatible with the zlib and Deflate formats, I am receiving an "unknown compression method" error. I have verified that the file and data are correct, and they were compressed using the miniz library on the ESP32. Despite this, I am unable to successfully decompress the data. I would greatly appreciate any help or any insights that you can provide regarding how to properly decompress data that has been compressed with the miniz library using Python.
  • For all topics related to the SiPy

    163 Topics
    783 Posts
    M
    @matt3526 DID anyone figure this out?
  • For all topics related to the GPy

    411 Topics
    2k Posts
    D
    Hi, Just for reference, our GPy replacement Walter is going live on Crowd Supply very soon. We already tested with some beta testers and you can read the review in this topic: https://forum.pycom.io/topic/7748/the-future-of-pycom/32 For everybody interested, this is the Crowd Supply link: https://www.crowdsupply.com/dptechnics/walter
  • For all topics related to the FiPy

    531 Topics
    3k Posts
    robert-hhR
    @Julia-Steiwer As you should have noticed, Pycom Inc ceased it's operation, and there is no service any more for Pycom products, be it hardware or software like Pymakr. The latter should still work with the older VSCode versions. So if you want to use PyMakr, you have to stick with an working combo of an older VSCode version and PyMakr.
  • For all topics related to the Pymakr

    129 Topics
    599 Posts
    robert-hhR
    @Kalle-Misto Pymakr is not supported any more. It might help to fall back to a previous version of Vscode and keep it.
  • For all topics related to the Pymate

    10 Topics
    50 Posts
    T
    Hi, I think I'm doing everything correctly and following Roberto's tutorial to a T. I am getting errors when I try both reading and writing virtual pins. I am using a wipy 2.0 running firmware 1.18.2.r4 Here Is my process: set up pymate safe boot device, download files. edit pymate_basic.py in lib with code under "# Initialize Virtual Pins and Terminal Pins Here" restart, add widgets to app, and it always returns errors. Here are two examples of errors: a) When I try Roberto's first example of writing, I add the following code under "# Initialize Virtual Pins and Terminal Pins Here" to pymate_basic.py: # Initialize Virtual Pins and Terminal Pins Here import pycom def set_led_color(params): val = int(params[0]) if (val < 256): val = val & 0xFF elif (val > 255 and val < 512): val = (val << 8) & 0xFF00 elif (val > 511): val = (val << 16) & 0xFF0000 pycom.rgbled(val) pymate_library.add_virtual_pin(1,None, set_led_color) After uploading, and setting up a widget type slider with pin V1, and range 0-750, I slide the slider and get one of the following errors: "Error calling provided virtual method" 2)"Traceback (most recent call last): File "boot.py", line 39, in <module> File "/flash/lib/pymate_basic.py", line 25, in <module> File "/flash/lib/pymate_library.py", line 414, in run File "/flash/lib/simple.py", line 202, in wait_msg File "/flash/lib/pymate_library.py", line 352, in _recv_msg_callback File "/flash/lib/pymate_library.py", line 278, in _handle_hardware_msg KeyError: 32" 3)Warning: Virtual write to unregistered pin 1 b) When I try Roberto's second example of reading, I add the following code under "# Initialize Virtual Pins and Terminal Pins Here" from uos import urandom def read_random(): val = int(urandom(1)[0]) return val pymate_library.add_virtual_pin(1,read_random, None) After setting up the widget type to Display, pin V1, pin Mode INPUT, refresh Rate 500ms, I hit play, and I get the following error: Traceback (most recent call last): File "boot.py", line 39, in <module> File "/flash/lib/pymate_basic.py", line 19, in <module> File "/flash/lib/pymate_library.py", line 414, in run File "/flash/lib/simple.py", line 202, in wait_msg File "/flash/lib/pymate_library.py", line 352, in _recv_msg_callback File "/flash/lib/pymate_library.py", line 278, in _handle_hardware_msg KeyError: 32 Please help. There is very little documentation to go off of, and I can't find anything wrong with what I'm doing. Thanks
  • For all topics related to the Expansion Board

    298 Topics
    1k Posts
    D
    @Mr-Admin said in syntax question: mqtt_publish(client, "home-assistant/altitude", str(alt.altitude).encode('utf-8')) thank you, this looks like what I need
  • For all topics related to MicroPython

    417 Topics
    2k Posts
    K
    @robert-hh maybe wrong forum. I couldn't figure out the Github system and found this forum instead. Thanks for the tip on the USB cable. Hope it's that simple. .
  • How do I initial another TX/RX port on Gpy board mounted on Pytrack2.0

    12
    2
    0 Votes
    12 Posts
    305 Views
    S
    @Gijs I encountered some strange behaviour on my FiPy+PyTrack2 combination when adding another I2C bus in the system. Noted that P-numbers refer here is what we use in micropython (eg. 'P12') FiPy could not get the slave address if the bus 1 assigned as P10(SDA), P11(SCL) FiPy able to return the correct slave address if bus 1 assigned either with combo 1. P9(SDA), P10(SCL) or combo 2. P9(SDA), P11(SCL) My code example, [image: 1605074720615-screen-shot-2020-11-11-at-2.04.48-pm-resized.png] This is rather odd to me, as the additional I2C only work with P9+P10, or P9+P11 combination. Is anybody encounter the similar behaviour before? Appreciate for your time and reply. thanks, elaine
  • Fipy LTE Won't Attach

    lte telia fipy
    2
    0 Votes
    2 Posts
    129 Views
    S
    Updates I guess my sims aren't activated for LTE-M (they should be) but only NB-IoT. I upgraded my modem to NB1-41019 and it works now :)
  • Pin Interrupt not working as expected

    3
    0 Votes
    3 Posts
    105 Views
    J
    @jcaron, I'm such a fool. I had a feeling it had to be something stupid simple. Thank you!
  • I2C on Pytrack2 pyport

    6
    0 Votes
    6 Posts
    103 Views
    L
    @jcaron thank you for your replay. my question is: have you ever tried to access a sensor connected to pyport on pytrack2 and you success on this? My fear is that thare is some issue on this port.
  • input from REPL console to FiPy

    2
    0 Votes
    2 Posts
    64 Views
    G
    Hi, Thanks for noticing! I can indeed reproduce the issue and will add it to the bug log Best, Gijs
  • FiPy without pymakr

    2
    0 Votes
    2 Posts
    46 Views
    G
    Hi, The python code should work the same with or without Pymakr. Are you clicking the 'play' button or the 'upload' button in Pymakr when running the program? (The first will only send the lines, while the latter will save it to a file on the device, allowing it to run after reset) Let me know!
  • Pygate incompatible with FiPy?

    pygate gpy fipy
    6
    0 Votes
    6 Posts
    472 Views
    F
    @jetatomic I see this is an old post but wanted to response. That is correct. The Gateway is LoRa enabled and backhaul (when using GPy) allows for cellular use or Wi-Fi. Using the POE adapter will give you Ethernet backhaul in addition. Thanks
  • How I got reliable TTN connectivity in Australia

    3
    1 Votes
    3 Posts
    280 Views
    K
    I can't get a join.accept from an AS923 gateway in Australia either. My join requests appear on the TTN console but the join.accept never arrives. I'm wondering if the lopy4 (release='1.18.2.r1) receive frequencies are wrong for AS923 too? Anybody successfully connected a lopy4 to an AS923 gateway?
  • Tiny LoRa ~900MHz copper coil antenna

    8
    0 Votes
    8 Posts
    115 Views
    meshnerdM
    @robert-hh Thank you. This has been enlightening. I ended up just getting another antenna but thanks for your explanations.
  • Store PyGate Messages

    16
    0 Votes
    16 Posts
    172 Views
    D
    @rcolistete Ah, I understand. Thank you for the clarification. I was not informed of the nanogateway (1 channel) configuration for LoPy4, a quick google got me up to speed. Thanks.
  • Pygate RX Sensitivity

    pygate sensitivity documentation
    4
    0 Votes
    4 Posts
    121 Views
    robert-hhR
    @Gijs said in Pygate RX Sensitivity: Adding the SNR_min and Ptx, gives an even higher link budget IMHO this has not anything to do with the actual physics. It's just calculated numbers.
  • How many LoPy devices can connect to a single Pygate?

    5
    0 Votes
    5 Posts
    118 Views
    T
    @Gijs It was responding to the original posters question.
  • Library Import Help

    library import
    4
    1
    0 Votes
    4 Posts
    78 Views
    G
    All the modules are already available in the Pycom firmware on the device, which is why they are underlined as errors in the editor. Currently, we have no intellisense on Pycom libraries. In the REPL, you can use tab to autocomplete the line Gijs
  • Pygate debug messages over WLAN AP

    pygate repl debug ap mode lopy4
    5
    0 Votes
    5 Posts
    129 Views
    D
    @Gijs Yes! Tested rc11 yesterday and it worked just fine. Thx!
  • Interpreting debug output from Pygate

    8
    0 Votes
    8 Posts
    239 Views
    D
    @Gijs Yes, the downlink messages are received by the nodes regardless of the time of transmission. I suppose it's normal to have that warning pop up, because in my case the downlinks are initiated by the user (me) at an arbitrary time, so it would be a big coincidence for that to match with the standard RX window of a class A device.
  • Setting PyGate Downlink TX power to default

    pygate txpower chirpstack downlink laird
    3
    0 Votes
    3 Posts
    134 Views
    D
    Another solution to this which seems a lot cleaner IMO is to change the antenna gain in the config.json file such that when the system substracts the commanded TX power (coming from the server) with the antenna gain, it finds a valid RF power in the lookup table. So in my case, if I set the antenna gain to 8 dBi, then the server would go and find the parameters corresponding to 20 dBm (which is tx_lut_11): "tx_lut_11": { "pa_gain": 3, "mix_gain": 9, "rf_power": 20, "dig_gain": 0 } This was suggested to me by Tony over on the Chirpstack forum: https://forum.chirpstack.io/t/configure-gw-tx-power-on-a-per-gw-basis/8997/9?u=danalvarez Thanks Tony!
  • Pygate PoE adapter HIGH temperatures

    pygate pyethernet poe temperature
    3
    1
    2 Votes
    3 Posts
    116 Views
    D
    @Gijs thank you very much for your response.
  • What does the future connectivity of IoT | Asset tracking look like?

    2
    0 Votes
    2 Posts
    44 Views
    G
    Nobody knows the future exactly ;) I would recommend using either LoRa, SigFox or LTE-M networks. Where LTE-M has more reliability, allows higher datarates and has better coverage, but coming at an expense of needing a simcard and LTE-M contract. Depending on your application, LoRa and SigFox can also offer a fine solution for your needs. Where SigFox also has better coverage, but also coming at a premium. You can do more research into the tradeoffs of each network, but I cannot tell you which one to choose.
  • Need Help-Reliable connection to TTN.

    9
    1
    0 Votes
    9 Posts
    214 Views
    S
    @Gijs Hip Hip Hurray. I have a much reliable connection now with almost no packet loss. I had used that same file to get the gateway configuration but I am not sure where the error was. I just looked into the gateway config file which I had uploaded in the first post and I realized that the gateway was still looking at the eu router rather than the as one. The rest of the settings were mapped correctly. Thanks.
  • LTE-M Attach/Connect Best Practices?

    4
    0 Votes
    4 Posts
    172 Views
    R
    @dgerman Thanks for sharing your code. My device will be attached to a vehicle and therefore power consumption is of little concern. It will be powered on for potentially many hours at a time and will be in continual communications with other devices over a CAN bus. Only when certain events occur on the CAN bus do I need to send data to the cloud. As I said before I have found that holding the LTE connection open for too long (a couple of mins) results in no data throughput even though lte.isconnected() remains True. Disconnecting after every data send appears to be working but seems network unfriendly. I admit, due to the lack of documentation from Pycom, I have no idea what lte.connect() and isconnected() actually does. I have downloaded the pycom source code and begun sifting through it to try to find out. I plan to experiment with the PSM features in the hope that notifying the network that there may be no radio contact for a period of time might speed up the re-attach/re-connect cycle. I am un-easy using the "Suck And See" method for development however, as this has the very real potential of back firing 12 months down the track when a provider tweaks their network and you have 1000 customers on the phone complaining their devices no longer function.

Pycom on Twitter