UniCT-ARSLab/LWN-Simulator

Device not registered on ChirpStack

Opened this issue · 10 comments

I created 1 virtual GW and 1 virtual device on LWM, and redirected gateway bridge to my NAS executing ChirpStack. All on the same local network.

I can see the virtual gateway active on ChirpStack Dashboard (with localization ok).

Under the device detail on CS dashboard I can see activation data and LoRaWAN frames, but only JOIN_REQUEST/JOIN_ACCEPT ... no downlink/uplink messagge .

I reported the simulator console output. I can't understand if the problem is the simulator or the server. Seems the JOIN_accepted message is not received, but I'm not sure.

Same executing lwm simulator with make run or docker

2023/09/28 16:15:46 LWN Simulator is online...
2023/09/28 16:15:46 Autostart not enabled
2023/09/28 16:15:46 [WS]: Listen [ 192.168.10.52:8000 ]
2023/09/28 16:16:24 [WS]: Socket connected
2023/09/28 16:16:27 [SIM]: SETUP OK!
2023/09/28 16:16:27 [SIM]: START
2023/09/28 16:16:27 GW[vg1]: Setup OK!
2023/09/28 16:16:27 GW[vg1]: UDP connection with 192.168.10.250:1700
2023/09/28 16:16:27 GW[vg1]: Turn ON
2023/09/28 16:16:27 GW[vg1]: PULL DATA send
2023/09/28 16:16:27 DEV[vd1] |Activation| {A}: Setup OK!
2023/09/28 16:16:27 DEV[vd1] |Activation| {A}: Turn ON
2023/09/28 16:16:27 DEV[vd1] |Activation| {A}: JOIN REQUEST sent
2023/09/28 16:16:27 DEV[vd1] |Activation| {A}: Open RXs for 0 and 869525000
2023/09/28 16:16:27 GW[vg1]: PUSH DATA send
2023/09/28 16:16:28 GW[vg1]: PULL ACK received
2023/09/28 16:16:29 GW[vg1]: PUSH ACK received
2023/09/28 16:16:30 GW[vg1]: PULL RESP received
2023/09/28 16:16:30 GW[vg1]: TX ACK sent
2023/09/28 16:16:39 DEV[vd1] |Activation| {A}: None downlink received
2023/09/28 16:16:39 DEV[vd1] |Activation| {A}: Unjoined
2023/09/28 16:16:39 DEV[vd1] |Activation| {A}: JOIN REQUEST sent
2023/09/28 16:16:39 GW[vg1]: PUSH DATA send
2023/09/28 16:16:39 DEV[vd1] |Activation| {A}: Open RXs for 0 and 869525000
2023/09/28 16:16:40 GW[vg1]: PUSH ACK received
2023/09/28 16:16:42 GW[vg1]: PULL RESP received
2023/09/28 16:16:42 GW[vg1]: TX ACK sent

log.zip

Here the log dowloaded from CS, from the device LoraWAN Frames paage

Hi thank you for the notice, we are going to check the issue on OTAA join

Seems that something is broken on source code because the built on works well, can you confirm this?

Yes, I can confirm the release v1.0.2beta (lwnsimulator_x64.zip ) works great.

I also downloaded the source tarball from release page, compiled and executed with make run, and again it works well.

ok then I will check the problem into the all commits xD

Any solution to this bug? I installed this week the simulator and i have this problem too. I only view the Gateway. I can see the LoRaWAN frames (join request and accept) but no data coming from the sensor.

Any updates on this issue? Is there at leat a temporary workaround.

Hi, is there any solution?

Did you try the 1.0.2 version from the releases?
https://github.com/UniCT-ARSLab/LWN-Simulator/releases/tag/v1.0.2

This issue is caused by b247855

There is a new branch dev that aims to do a code clean up and fixes these bugs. Try that branch and let me know.