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. .
  • Pycom GitHub not update?

    4
    1 Votes
    4 Posts
    113 Views
    robert-hhR
    @livius There is one from April 19 in branch master_idf_4.1. But, as far as I recall, since then no indication of activity. Looking at the activity, Pycom does not make a healthy impression. The only one alive seems to be @Gijs . Yes, and Fred, sending a twitter note sometime (the last one in June) and apologies for continuously failing at the PyGo project.
  • Sigfox and SSD1306

    6
    0 Votes
    6 Posts
    90 Views
    L
    @jcaron said in Sigfox and SSD1306: i2c.writevto this looks like bug should be writeto
  • Powering PyTrack+Wipy with Solar Panel + Lipo

    solar charging lipo battery pytrack
    5
    0 Votes
    5 Posts
    960 Views
    D
    Have you tried solar panel ? I mean how much batteries are required to store the solar energy and what about backup.
  • PyGate dimensions

    3
    0 Votes
    3 Posts
    67 Views
    L
    @Gijs I suppose he need 2 values from top and left ;-)
  • How do I exit a thread?

    thread
    10
    1 Votes
    10 Posts
    7k Views
    P
    Thanks for the clarification.
  • Anyone using Google Cloud (not on Pybytes)?

    7
    0 Votes
    7 Posts
    115 Views
    L
    It will be really good if this two worlds will merge together finally and there will be only "micropython".
  • Voltage regulator for primary battery

    battery regulator oem
    21
    0 Votes
    21 Posts
    6k Views
    L
    @miroslav-petrov said in Voltage regulator for primary battery: LTC3335 But it is quite expensive or maybe i am looking wrongly...
  • problem running pygate example code

    4
    1
    0 Votes
    4 Posts
    69 Views
    E
    @jcaron Nevermind, you where right, there was one miss Identation that i didn't see thanks !!
  • Don’t understand how Voltage Regulators work

    voltage regulat regulator
    5
    0 Votes
    5 Posts
    165 Views
    T
    Guys, Thanks so much for your valuable answers. I'm really excited today. Couple of months back I was struggling with my less knowledge about voltage regulators but my hard work pays off :) I spent ample amount of time in getting each and every information about them. But during the course I realised that one should have share their knowledge in writing as world is online now so that it can help especially newbies. I have written about voltage regulators and then reached to couple of Admins with my content. You know what, my post has been accepted and I'm very much motivated now. Please check out: https://www.derf.com/an-overview-on-voltage-regulators/ Feel free to share your suggestions/advise. Cheers
  • Single Layer vs Multilayer PCBs

    5
    0 Votes
    5 Posts
    87 Views
    J
    @livius Thank you for the additional information.
  • Pybytes debugging

    2
    0 Votes
    2 Posts
    107 Views
    G
    Adjusting the pybytes debug level in nvs affects when debug statements get printed. If you want to save all information in a file on the device, I would suggest adding the statement in the pybytes debug print function: https://github.com/pycom/pycom-micropython-sigfox/blob/Dev/esp32/frozen/Pybytes/_pybytes_debug.py#L22 Else, I would log the prints over USB to a computer and a minicom, saving the output to a file there. This has the advantage of also saving the coredumps, which would not get saved on the device itself Gijs
  • Soil Moisture and Water Level Sensor setup using LoPy4

    6
    0 Votes
    6 Posts
    112 Views
    R
    Thank you for the assistance. I have a couple of issues I am trying to figure out and I was hoping someone could help. Apologies if these questions seems obvious and straightforward as my knowledge with electronics is very limited. I plan to set these sensors up on a breadboard (and for as cheap as possible) and I am struggling with translating circuit diagrams/schematics over to a setup on a breadboard. As from my previous post, I plan to setup a resistive soil moisture sensor and a 4-20ma water level sensor and these both require some sort of circuitry to connect to the Pycom device. If anyone has an example I can follow and setup on a breadboard I would appreciate it greatly.
  • LoPy4 RED LED after OTA method B firmware flash (meaning?)

    3
    0 Votes
    3 Posts
    110 Views
    D
    @Fatoumata-Thiam Hello. I no longer kept looking into the issue. Whenever that happened, I just went into safeboot and then flashed the firmware again using the CLI tool from Pycom. Here's a github thread with some more advice that was given to me: https://github.com/pycom/pycom-micropython-sigfox/issues/496 Maybe it helps you. Best, Dan
  • optimizing wifi range

    Moved
    4
    0 Votes
    4 Posts
    320 Views
    G
    Hi, 'Optimizing the wifi range' is such a broad, heavily researched topic, that I cannot provide a definitive answer there. It all has to do with your environment (reflections, obstacles, weather conditions, antenna orientation etc.) There is many articles out there on the web that suggest (sometimes contradicting) options to extend the range of your WiFi network. There is a power setting that you can tweak on the pycom module (https://docs.pycom.io/firmwareapi/pycom/network/wlan/#wlanmax_tx_powerpower) and changing the physical mode (b / g / n) can also have some effect. Concerning the range extenders, as long as they support the 802.11 b, g and/or n type, you should be fine. Gijs
  • LTE NB-IoT with NIDD (Non-IP Data Delivery) ???

    2
    0 Votes
    2 Posts
    159 Views
    O
    Hi, NIDD is one of the transport layer supported by LwM2M, this will let you work with higher layers and minimize your payload. Although it refers to NB-IoT, you might want to give a look at the discussion, we had with Deutsche Telekom back in June: https://ioterop.com/nb-iot-webinar/ Note that for a correct comparison IP vs NIDD, you may want to test CoAP/DTLS with Continuation Identifier (CID), before getting rid of IP. CID gets you rid of authentication. See below. [image: 1612181053149-coaps_vs_mqtts.png]
  • Where is `rgbled` function in code?

    5
    0 Votes
    5 Posts
    77 Views
    robert-hhR
    @Matthew-Felgate The question then would be, which web colour set to use. Thus I consider it sufficient as it is. You can always make s little Python module wich defines the color names and reuse that, e.g. WHITE = const(0xffffff) RED = const(0xff0000) # and so on
  • Certifications for Canada and Brazil for Bluetooth and LORA modules

    3
    0 Votes
    3 Posts
    62 Views
    rcolisteteR
    FCC/CE/etc aren't accepted in Brazil. It needs ANATEL certification.
  • Do we need to convert the sensor data?

    1
    0 Votes
    1 Posts
    34 Views
    No one has replied
  • This topic is deleted!

    1
    1
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • pymakr wifi upload in STA mode

    2
    0 Votes
    2 Posts
    57 Views
    G
    Hi, It is also possible to use the FTP server when the device is in STA mode, but you will need to change the IP address in pymakr from 192.168.4.1 to the IP address assigned to the lopy by your network. Next to that, you can also use the terminal or other FTP software as described here: https://docs.pycom.io/gettingstarted/programming/ftp/ with the correct IP address of course

Pycom on Twitter