pycom / pycom-micropython-sigfox

A fork of MicroPython with the ESP32 port customized to run on Pycom's IoT multi-network modules.
MIT License
200 stars 166 forks source link

problem with using sigfox and lora simultaneously #420

Open jackyckygit opened 4 years ago

jackyckygit commented 4 years ago

Board: FiPy firmware version: (sysname='FiPy', nodename='FiPy', release='1.20.2.rc6', version='v1.11-01f49f7 on 2020-02-28', machine='FiPy with ESP32', lorawan='1.0.2', sigfox='1.0.1', pybytes='1.3.1')

I find that there is problem with using lorawan and sigfox at the same time. The board can send out data with lorawan repeatedly without problem. However, if I try to send out with sigfox, then it cannot send out data with lorawan again unless reset the board. The steps are as follow

  1. reset the board
  2. init lora and otaa join -> ok
  3. send data with lora -> ok
  4. init sigfox and send data with sigfox -> ok
  5. send data again with lora -> failed

It is undesirable to reset the board after sending out with sigfox in my case as it will clear the program state. Is there any method to recover the lorawan communication after using sigfox?

Thanks