Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Device not registered on ChirpStack #21

Open
itarozzi opened this issue Sep 28, 2023 · 10 comments
Open

Device not registered on ChirpStack #21

itarozzi opened this issue Sep 28, 2023 · 10 comments
Labels
bug Something isn't working

Comments

@itarozzi
Copy link

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
Copy link
Author

log.zip

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

@filirnd
Copy link
Collaborator

filirnd commented Sep 30, 2023

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

@fedyfausto
Copy link
Member

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

@itarozzi
Copy link
Author

itarozzi commented Oct 3, 2023

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
Copy link
Member

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

@fedyfausto fedyfausto added the bug Something isn't working label Nov 7, 2023
@adrianf77
Copy link

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
Copy link

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

@DmSilkin
Copy link

Hi, is there any solution?

@fedyfausto
Copy link
Member

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

@LightDestory
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants