-
Notifications
You must be signed in to change notification settings - Fork 165
Issue with non-blocking LoRa socket since 1.10.0.b1 #102
Comments
I have observed similar behaviour, adding a 50ms delay in the loop caused the code to start working again. |
It can be considered as temporary workaround however that means 50ms of wasted time it could be doing something else :) |
Im not suggesting that as a final solution I'm just adding that a delay seems to make it work to help track down the issue. |
I've just experienced this issue. Today I upgraded my pair of LoPys to the latest firmware. Now one of them does not receive any LoRaRAW traffic from the other, when it is fitted to an Expansion Board 2. The other LoPy is on a PyTrack - it can receive OK. If I swap the LoPys, the receive problem remains on the Expansion Board 2. The LoPy on the PyTrack can always receive. I have no DeepSleep module fitted with the Exp.Brd2. (sysname='LoPy', nodename='LoPy', release='1.10.2.b1', version='v1.8.6-849-g0af003a4 on 2017-11-24', machine='LoPy withESP32', lorawan='1.0.0') |
@g0hww Do you have anything connected to the LoRa radio pins (P5, P6 and P7) on the expansion board? |
Nope. Out of curiosity, I removed all the jumpers but that had no unexpected effects, other than loss of the UART connection. |
@g0hww |
Sorry, I meant LoraRAW (will edit)
|
Odd. Its actually just started working now, though those LoPys have been on for an hour or so in this test run. The socket calls are all blocking and I'd added the 50ms delay in for good measure. That didn't seem to help earlier on. I've been fiddling with them for about 6 hours today and its the first time it has shown signs of reception. |
I updated one of my LoPys to 1.13.0.b1 and that device was then able to reliably receive my LoRa traffic when fitted to the ExpBrd2. My other LoPy still on 1.10.2.b1 continued to suffer from the problem I described above when it was fitted to the ExpBrd2 prior to upgrading. After upgrading it to 1.13.0.b1 it started to receive LoRa traffic reliably too. |
I think this has been resolved, so I'll close this issue. If you think otherwise, feel free to reopen it and add more details! |
* fix double building of frozen Mpy the second build after a first (clean) build would rebuild the frozen Mpy. echo ${CURR_TS} > ${BUILD_TIMESTAMP} that doesn't work if the dir doesn't exist!
* fix double building of frozen Mpy the second build after a first (clean) build would rebuild the frozen Mpy. echo ${CURR_TS} > ${BUILD_TIMESTAMP} that doesn't work if the dir doesn't exist!
* fix double building of frozen Mpy the second build after a first (clean) build would rebuild the frozen Mpy. echo ${CURR_TS} > ${BUILD_TIMESTAMP} that doesn't work if the dir doesn't exist!
Since 1.10.0.b1 I having issues with receiving data through raw LoRa non-blocking socket within a while loop. In case the loop is interrupted the data can be received by socket.recv() entered through the REPL.
Simplified code of receiver:
Output with 1.10.1.b1:
Output with 1.9.2.b2:
The text was updated successfully, but these errors were encountered: