Looking at the code I do not see any reason why a lock up should occur at that point apart from possible USB issues while accessing the LoRaWAN concentrator. I do not understand why this isnāt happening on the conduits Iām testing the code on.
Iāve created yet another version with additional debugging, please download it here and run it.
I got the same issue. Seems like every time i simmulate a downlink to update my sensor the packet forwarder crashes.
Iām still a newbie to this and I donāt know how to install this .ipk file. I know how to download the installer.sh file as described on the site. But no idea how to make sure the latest .ipk file is runningā¦ Can you please help?
I tested the new debugging version for almost a day.
During the first try it got stuck again after a few minutes.
Then I tried putting the MTAC-LORA-868 module into slot AP1 instead of AP2. According to the manual, that should not make a difference.
It seemed to be more stable indeed, as it kept going for the rest of the day. But during the night it got stuck again.
I also suspect that it is a problem accessing the LoRa module, with the lock not being released after INFO: Disabling GPS mode for concentrator's counter....
The last thing I could try is to upgrade to mLinux 3.3.6, currently I am running 3.2.0. @kersing what is the setup of your test gateways?
I have the same problem on AEP version with firmware 1.4.1.
After a few minutes since node starts transmitting data, packet forwarder stops working. The following information can be found in the lora_pkt_fwd.log file:
... INFO: [up] TTN lora packet send to server "bridge.eu.thethings.network" INFO: [down] TTN received downlink with payload INFO: [TTN] downlink 12 bytes lgw_receive:1161: WARNING: 128 = INVALID NUMBER OF PACKETS TO FETCH, ABORTING INFO: Enabling TX notch filter ...
Maybe this information will be useful to solve the problem.
It is an indication invalid data is exchanged between the radio on the mCard and the main processor (which I expected all along). Now I āonlyā need to find why there is invalid data.
Yes the old one worked fine the ānewā one works to but has a tendancy to dieā¦
It can run fine for several days and then stop.
As described before if I have a single node talking to the gateway and I reboot the node several times it will usually always kill the gateway. So if you want to try and reproduce I would recommend only one node connecting to the gateway, use OTAA and have a watchdog timer which restarts the node every few minutes. Within 10 cycles you should see the problemā¦ unless its more subtle
In my case the problem occurs very quickly when one node sends packets periodically with confirmation regardless the join method.
Packet forwarder seems to work stable when node transmits data with no confirmation (it has been started 3 days ago and no problems so far).
Additional error messages from the log file:
ERROR: SPI ERROR DURING REGISTER BURST READ
ERROR CONNECTING CONCENTRATOR
ERROR: FAIL TO CONNECT BOARD
ERROR: [main] failed to start the concentrator
ERROR: SPI ERROR DURING REGISTER WRITE
I have been testing with two gateways running mLinux 3.3.6 and the current packet forwarder (3.0.0-r5).
One gateway is still up and running after 5 days, the other one stopped like 10 minutes after I began to try the method suggested by @ssozonoff.
Before, I had mostly unconfirmed uplinks and occasional confirmed uplinks.
I get the lgw_receive:1161: WARNING: 42 = INVALID NUMBER OF PACKETS TO FETCH, ABORTING message from time to time, but itās never close to the moment it stops.
Both gateways are identical: MTCDT-H5-210L-EU-GB with MTAC-LORA-868 (1.0), using the original power supply.
The mCard is in slot AP1 (I switched it from AP2 - with no difference).
Both are running mLinux 3.3.6 since last week. The GSM functionality is not configured, just Ethernet.
I have a third identical gateway, but that one is still on mLinux 3.2.0 and downgraded to the old packet forwarder (I need it to be up and running). It showed the same problems when I upgraded it to the new forwarder one time.
Please correct me, if i am wrong. But when there is a a āLast seenā status every 30 seconds, i do not receive any valid packets.
I tried the hard way. Completely switching of the gateway, cooling it down, and switching it on after some time. This way it works some times.
When i have the āLast seenā status like more than 30 seconds, there are packets being sent.