• 0 Votes
    3 Posts
    56 Views
    J
    while True: rx = s.recv(64) time.sleep_ms(10) if rx: time.sleep_ms(10) rxStr = str(rx).split("'") index = int(rxStr[1]) try: i2c.writeto(56, 255-index) except Exception as error: print("i2c",error) startTime = time.ticks_ms() s.setblocking(True) time.sleep_ms(10) try: s.send("ack") except Exception as error: print("send ",error) time.sleep_ms(10) s.setblocking(False) print(time.ticks_ms()-startTime) wdt.feed() @jcaron thanks for your response. The problem is in the s.send(). I added the setblocking() statements around the statement along with putting it in its own try/except but they are still resetting at least 12-16 times a day. Is there any thing else you think I should check? Gateway setting? I'm using a Multitech Conduit gateway that's running node-red. Thanks again
  • MPL3115A2 hangs intermittently

    Expansion Board wipy 2 pysense mpl3115a2 hang
    16
    0 Votes
    16 Posts
    4k Views
    catalinC
    hi @smbunn, The code was not modified. On a second thought, the altitude is just a simple function of the pressure, considering the same sea-level pressure. This is not ok, as the sea-level pressure varies in time, and from place to place. So, I would recommend, to use just the pressure, and if altitude is required, some arithmetics code has to be added, to get the right altitude. You could use some weather forecast service to obtain the accurate and real-time sea-level pressure.
  • 0 Votes
    5 Posts
    2k Views
    N
    @jmarcelino Yes, my problem is the same as what you highlight, thanks for solving the mystery. As an temp solution (for lazy ppl) I can suggest : # hard reset if last was a soft reset if reset_cause() == 4: reset() if not 'sigfox' in locals(): sigfox = Sigfox(mode=Sigfox.SIGFOX, rcz=Sigfox.RCZ4) Regarding the UART1 activity causing Sigfox instability, I will do more tests later. Maybe update the SiPy pinout PDF to include the UART1 pins (like LoPy) as @livius mentioned?
  • Another machine.reset issue

    Issues & Bugs sleep reset hang
    1
    0 Votes
    1 Posts
    881 Views
    No one has replied