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. .
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • urequests and r.close()

    Moved urequests r.close
    1
    0 Votes
    1 Posts
    229 Views
    No one has replied
  • Pymesh - Border router stops receiving messages.

    18
    0 Votes
    18 Posts
    1k Views
    catalinC
    Hello everyone, A few updates: Border Router bug was fixed (🤦‍♂️ unfortunately packets were not de-allocated at the BR level), a release will be provided shortly as I said before, due to licensing issues, we will release a dedicated Pymesh version of binary firmware release (just latest development+pymesh module), we're targeting next week. I am currently testing some micropython scripts which are sending data from Pymesh to the Pybytes, so data from whole Mesh is visible in Pybytes only if at least one node has Wifi connectivity to Internet; now, I am updating the internal Pymesh to the latest openthread, there are some protocol optimisations, which I hope will make Pymesh more robust
  • IoT: How to send data to Cayenne with Fipy (node) and Lopy4 (gateway)

    1
    6
    0 Votes
    1 Posts
    206 Views
    No one has replied
  • Prevent anyone can download my code over serial

    code protection
    13
    2 Votes
    13 Posts
    1k Views
    S
    @dserrano I am also interested in this howto ;-)
  • OSError

    3
    0 Votes
    3 Posts
    237 Views
    K
    You have to turn off the default heatbeat before you can use the RGB led pycom.heartbeat(False)
  • Low level access to SX1276

    1
    0 Votes
    1 Posts
    182 Views
    No one has replied
  • OSError: -1

    umqtt oserror -1 connection prob
    2
    0 Votes
    2 Posts
    275 Views
    T
    @brossingo I have encountered this. (mainly when using incorrect firmware). You should also include the stacktrace, so we can see where in umqtt it is occuring. T
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    6 Views
    No one has replied
  • Any MicroPython fans?

    micropython
    4
    0 Votes
    4 Posts
    628 Views
    S
    It isn't really portable between devices yet It isn't pythonic enough yet Might as well use C However I think it is going to be great when it is more mature 9apps app cartoon hd
  • Sending file to FTP Server lasts so long...

    16
    0 Votes
    16 Posts
    727 Views
    robert-hhR
    @dabal221 You have to tick the square box left to Ogranicz too
  • Firmware Update on Pysense 1.0 w Fedora

    2
    0 Votes
    2 Posts
    209 Views
    E
    I ended up just skipping the firmware update because it seemed to be both old and designed for the Expansion Board 2.0 (which IMO is a bad name for a board because I would consider the Pysense, Pyscan, Pytrack, and Pygate to all be "expansion boards" for the devices like the GPy but anyway). I skipped these sections and moved on to trying to get Atom installed and plugged the device in. Nothing bad happened but now im stuck at getting the port open / the device connected with the Atom.
  • Feeding external power to a pysense board

    power supply pysense vin power charging
    11
    1 Votes
    11 Posts
    1k Views
    John BairdJ
    @SiMoS-IoT Thanks. Given the state of Pycom documentation and the large quantities we are going to need we have decided to build our own solution, so the power feed issue will go away. I really like the approach to power Pycom have, but the fact we can't get any documentation on how it functions, other than a few system calls, means we can't take it into production. I'll probably still keep using it, but only for interests sake.
  • http post requests

    post urequests codesample
    16
    1 Votes
    16 Posts
    1k Views
    J
    @oglucio it would be difficult to get the same error if you applied the fix given in that post. Can you post the error and the corresponding line of your code?
  • No DFU capable USB device available.

    6
    0 Votes
    6 Posts
    1k Views
    J
    @SiMoS-IoT Haven't done it in a while, but timing is tricky. You need to press and hold the button while you connect the USB (much easier to connect the USB on the computer side than on the device side), release the button (don't remember if timing on that is sensitive or not), wait a second or two, and start the DFU utility (you should have the command line ready and just have to press enter). If you do it too early the device will not have been recognised by the OS yet. If you do it too late it will have exited DFU mode.
  • Pycom devices communication

    2
    0 Votes
    2 Posts
    235 Views
    J
    @Israel It will not be the Pyscan boards communicating, obviously, it will be the modules mounted on them. There have been lots of discussions about having two devices communicating with each other over a variety of media (LoRa, Wi-Fi, BLE, Mesh...). Your first decision will be to pick the technology you want to use, which depends on your requirements in terms of distance between the devices, existing infrastructure, amount of data, frequency of the transmissions, power consumption requirements, etc. You'll have to be more specific about all your requirements (or the chosen technology, if you have already done that), and from there you should find relevant discussions (and in many cases even examples in the documentation).
  • WDT and deepsleep

    wdt deepsle reset
    5
    2 Votes
    5 Posts
    2k Views
    K
    @alexpul correct
  • save pyscan data in external file

    1
    0 Votes
    1 Posts
    162 Views
    No one has replied
  • Reset pyscan + gpy

    4
    0 Votes
    4 Posts
    479 Views
    C
    because we will place the device out of reach. If this means, that your source shall not be readable by others: search in the forum how to encrypt the file system. Its more reliable than detecting intrusion and hopeing that there is left enough time time and power
  • UART P0 and P1

    2
    0 Votes
    2 Posts
    257 Views
    robert-hhR
    @Zinoex You can open UART0 like any other uart, even if it is used by REPL, and use uart.any() for checking, whether a character arrived. REPL is only active when no code is running. Be aware that this channel is not fully transparent, since by default the input stream is still checked for Ctrl-C and Ctrl-F. You can deactivate this test off by calling micropython.kbd_intr(-1).

Pycom on Twitter