Closed robert-hh closed 6 years ago
Hello, I am having similar problem. Beginner here. I am trying the Nano gateway sample with fresh Pysense+Lopy4. Updated firmware, registered with TTN. Node -
os.uname() (sysname='LoPy4', nodename='LoPy4', release='1.17.2.b1', version='v1.8.6-849-1bf377b on 2018-03-16', machine='LoPy4 with ESP32', lorawan='1.0.2', sigfox='1.0.1')
Gateway -
os.uname() (sysname='LoPy4', nodename='LoPy4', release='1.17.2.b1', version='v1.8.6-849-1bf377b on 2018-03-16', machine='LoPy4 with ESP32', lorawan='1.0.2', sigfox='1.0.1')
On starting the gateway, TTN shows that the gateway is connected. I see Pull Ack/Push Ack on console On starting the node, the console says "Not joined yet" continuously. The TTN console for Gateway shows multiple Join Request/Join Response No activity on TTN console for the device though it shows it as available Soon the gateway console starts having core dumps
rst:0xc (SW_CPU_RESET),boot:0x16 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff8028,len:8 load:0x3fff8030,len:1984 load:0x4009fa00,len:0 load:0x4009fa00,len:18636 entry 0x400a05b4 Guru Meditation Error: Core 1 panic'ed (InstrFetchProhibited) . Exception was unhandled. Register dump:
I have a slightly modified nanogateway.py here, that runs on my LoPy so far, now with 1.17.2.b1 https://github.com/robert-hh/pycom-libraries/blob/master/examples/lorawan-nano-gateway/nanogateway.py Be sure to set it to the right region.
Hello Robert, Thanks for the quick response. I am using the code available at https://github.com/pycom/pycom-libraries/blob/master/examples/lorawan-nano-gateway/nanogateway.py
I couldnt find any difference in the code in the above link. Am I missing anything?
Regards
Sorry, wrong branch. This is the right one: https://github.com/robert-hh/pycom-libraries/blob/nanogateway/examples/lorawan-nano-gateway/nanogateway.py
Seems to be fixed with 1.17.3.b1
Are you using your branch code for nanogateway or the master branch? OTAA or ABP??
No, I'm using my own version of the nanogateway lib, both OTAA and ABP. But this issue was about the crash (call for the GURU), not about the timing problems and not about lost uplink messages.
configuration: LoPy1, with V1.17.0.b1, modified to call mp_hal_us() in ticks_us() and the sx127x drivers. Aurel GP868 antenna. I run the gateway since about two weeks. It crashes after a while, sometimes after a few hours, sometimes after a few days. Adding a WDT did not help, since it runs into a hard error. The only thing that my help is an external watchdog.