Subcategories

  • RTC.ntp_sync() and uasyncio halts entire program

    2
    0 Votes
    2 Posts
    43 Views
    L
    @Anthony-Leung said in RTC.ntp_sync() and uasyncio halts entire program: This issue halts the asyncio loop indefinitely Looking at your code the ntp sync is done already. If it hang then you do not even enter the asyncio.run(main()) Then i do not know if blame of ntp sync is good here. You can add also some sleep(1) after ntp sync to see if it somehow help.
  • BLE sniffer scan response filter

    7
    2
    0 Votes
    7 Posts
    60 Views
    C
    I made some try in esp-idf without success. I didn't manage to retrieve ble_evt_type. My initial goal was to filter the scan response, I will use another solution to do it. I added bt_event.scan.scan_rst.adv_data_len and bt_event.scan.scan_rst.scan_rsp_len to the values returned by get_adv() pycom function. These values will permit me to identify the scan response. To do that i made some changes in pycom-micropython-sigfox\esp32\mods\modbt.c line 1275 to 1291: STATIC mp_obj_t bt_read_scan(mp_obj_t self_in) { bt_event_result_t bt_event; STATIC const qstr bt_scan_info_fields[] = { MP_QSTR_mac, MP_QSTR_addr_type, MP_QSTR_adv_type, MP_QSTR_rssi, MP_QSTR_data, MP_QSTR_adv_len, MP_QSTR_scan_rsp_len, }; if (xQueueReceive(xScanQueue, &bt_event, (TickType_t)0)) { mp_obj_t tuple[7]; tuple[0] = mp_obj_new_bytes((const byte *)bt_event.scan.scan_rst.bda, 6); tuple[1] = mp_obj_new_int(bt_event.scan.scan_rst.ble_addr_type); tuple[2] = mp_obj_new_int(bt_event.scan.scan_rst.ble_evt_type); tuple[3] = mp_obj_new_int(bt_event.scan.scan_rst.rssi); tuple[4] = mp_obj_new_bytes((const byte *)bt_event.scan.scan_rst.ble_adv, sizeof(bt_event.scan.scan_rst.ble_adv)); tuple[5] = mp_obj_new_int(bt_event.scan.scan_rst.adv_data_len); tuple[6] = mp_obj_new_int(bt_event.scan.scan_rst.scan_rsp_len); return mp_obj_new_attrtuple(bt_scan_info_fields, 7, tuple); } return mp_const_none; } These modifications give me access to adv.adv_data_len and adv.scan_rsp_len which are returned by adv = bluetooth.get_adv() function.
  • Guru Meditation Error with Pymesh

    1
    0 Votes
    1 Posts
    16 Views
    No one has replied
  • Failed to connect the Pycom

    11
    1
    0 Votes
    11 Posts
    67 Views
    G
    The waiting for download lets you know the device is waiting / ready for a firmware update (using the firmware updater tool). You should be able to unpower and repower the device to make it stop saying that. If it always shows that, make sure nothing is connected to P2.
  • Freeze not recoverable by WDT probably during LTE connection

    2
    0 Votes
    2 Posts
    29 Views
    L
    @knaris I really like to setup WDT before any other action even other imports ;-) it is my first import and then i setup WDT. After setup WDT i place other imports and any other actions even before check of machine.reset_cause something like this from machine import WDT wdt = WDT(timeout=60 * 1000 * 10) import time from network import LTE maybe this help you somehow. PS. you can also build custom firmware and put WDT even ealier
  • Pygate 'impossible to create upstream thread'

    7
    0 Votes
    7 Posts
    45 Views
    R
    @peterp It's all good. Green light on the pygate and reliable communication between gateway and nodes by downgrading to 1.20.2.r4. Thanks for the help!
  • Expansion Board 3.1 - how does it differ from Expansion Board 3.0 ?

    bugs
    21
    1 Votes
    21 Posts
    1k Views
    rcolisteteR
    @rcolistete said in Expansion Board 3.1 - how does it differ from Expansion Board 3.0 ?: See this post : https://forum.pycom.io/topic/6161/guide-tutorial-reference-about-expansion-board/ which cites my "Using Expansion Board" guide, and the topic explains about v3.2. From my "Using Expansion Board" guide : Expansion Board v2.x : "voltage divider with 56 kOhm and 115 kOhm resistors"; Expansion Board v3.x : "voltage divider with resistors of 1 MOhm and 1 MOhm".
  • Sending values to TTN on Lopy4

    9
    0 Votes
    9 Posts
    74 Views
    J
    @Benjamin-Mavinga also your ADC input is out of range: 0F FF is 4095, the maximum value, which is returned whenever it exceeds the max input. You probably need to adjust the attenuation factor on the ADC, or possibly even need a voltage divider, depending on the output range of your sensor. Make sure you don’t exceed max allowed voltage! You could damage the ESP32...
  • Failed to connect (Error: Port is not open).

    2
    1
    0 Votes
    2 Posts
    27 Views
    G
    I get this issue in Atom or VSCode sometimes as well. Restarting the IDE generally solves the problem. It could be the case your program is running in deepsleep in the background, in which case, you can use safe booting: https://docs.pycom.io/gettingstarted/programming/safeboot/ or update the firmware using the firmware updater tool and select 'erase flash' in the advanced section
  • Lora raw Gateway not working

    2
    0 Votes
    2 Posts
    33 Views
    G
    Could you point me to the code you're using from iot-lab? Im not sure of the differences and I havent used the raw gateway for some time. What might be an issue is that the nano gateway only listens to a single channel / Datarate (SF +BW setting), so you'll have to configure the node to only send on that specific channel (as listed at the bottom of the LoRaWAN nanogateway docs: https://docs.pycom.io/tutorials/networks/lora/lorawan-nano-gateway/#nano-gateway-node)
  • 0 Votes
    10 Posts
    73 Views
    J
    @jlandercy is the network side set to class A as well? What’s the timing of the downlinks? Do you have logs on the network or gateway side (with matching timestamps)?
  • 0 Votes
    1 Posts
    7 Views
    No one has replied
  • PyTrack 2.0 GPS V_BKUP

    7
    0 Votes
    7 Posts
    80 Views
    G
    I checked the schematic and datasheet again, and what seems to happen: py.gps_standby(True) pulls the standby pin on the L76 low, entering standby mode (which should be ~0.5mA) py.sensor_power(False) cuts the power to the L76 VCC and Pyport, making the GPS module enter backup mode (as we keep the backup supply connected), this should be the 7uA mode. Normal mode should be around 20mA I havent done any current measurements to verify the results though Best, Gijs
  • machine.rng() not really random

    5
    0 Votes
    5 Posts
    29 Views
    A
    Thank you for your fast and clear answer. I think that the crypto command will help me.
  • L01 OEM Serial Issue

    4
    0 Votes
    4 Posts
    27 Views
    G
    Could you clarify the schematic around the UART connections perhaps? And could you elaborate on whether safebooting works for you? If that is the case, you should be able to erase the flash using os.fsformat("/flash") (which you could also try over telnet) which might alleviate the issue. Next to that, are you able to put the board in 'firmware update mode'? (by connecting a jumper between P2 and GND and resetting the board by pulling the RST pin low), you should see the coredumps stop on the REPL and it should mention something like 'READY FOR DOWNLOAD' By the way, it is be possible to connect both the UART (USB) and Telnet at the same time, though Im not expecting additional debug information to be present there.
  • Elimination of file system Lopy4

    3
    0 Votes
    3 Posts
    42 Views
    F
    Dear Gijs, We resolved the problem because during the reset hardware of whatchdog a P12 of Lopy 4 is tied high for hardaware problem and therefore the system sometimes comes back to factory conditions. Thanks for your supply Francesco Pugliese
  • W01 crashes with WIFI tx at max power

    7
    0 Votes
    7 Posts
    105 Views
    P
    @amstaff88 Did you make any progress on this issue?
  • AWSIoTMQTTClient keepAliveIntervalSecond parameter not working?

    2
    0 Votes
    2 Posts
    11 Views
    E
    @ecline Some progress.....found this setting in MQTTMsgHandler.py line 30 that seems to control the rate at which keepAlive pings are sent... self._ping_interval=20
  • Pycom AWS iot problem.

    5
    0 Votes
    5 Posts
    66 Views
    G
    @Gijs When the connect() function is empty, I get a number of socket connect errors. I also tried recreating the createSocketConnection() suggesting and it just led to same issue of code getting stuck.
  • L01 OEM 3.3V to GND Arcs.

    3
    0 Votes
    3 Posts
    28 Views
    robert-hhR
    @Gijs Arcs like that are often caused by soldering, like a small solder ball or burned flux, which sometimes get conductive by whatever chemical reaction. Maybe it accumulates humidity.

Pycom on Twitter