UniCT-ARSLab / LWN-Simulator

A LoRaWAN nodes' and network simulator that works with a real LoRaWAN environment (such as Chirpstack) and equipped with a web interface for real-time interaction.
MIT License
81 stars 50 forks source link

Device not registered on ChirpStack #21

Open itarozzi opened 1 year ago

itarozzi commented 1 year ago

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
itarozzi commented 1 year ago

log.zip

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

filirnd commented 1 year ago

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

fedyfausto commented 1 year ago

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

itarozzi commented 1 year ago

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.

fedyfausto commented 1 year ago

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

adrianf77 commented 10 months ago

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.

NuwanUdara commented 10 months ago

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

DmSilkin commented 8 months ago

Hi, is there any solution?

fedyfausto commented 8 months ago

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

LightDestory commented 4 days ago

This issue is caused by b247855130a0d2af916a9f61bc7d3be18dbcac37

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.