LWN-Simulator
LWN-Simulator copied to clipboard
How to connect Chirpstack device and generate testing data from simulator device?
I have copied DevEUI to Chirpstack's device. The gateway can be associated correctly. But "Last seen at" is always "never" for device.
Do the Gateway and devices work?
Gateway seems work and is visible at "Active gateways", but device is not available at "Active devices"
From LWN-Simulator console: 2022/04/20 10:31:26 DEV[LWN-Dev-1] |Activation| {A}: None downlink received 2022/04/20 10:31:26 DEV[LWN-Dev-1] |Activation| {A}: Unjoined 2022/04/20 10:31:26 DEV[LWN-Dev-1] |Activation| {A}: JOIN REQUEST sent 2022/04/20 10:31:26 DEV[LWN-Dev-1] |Activation| {A}: Open RXs 2022/04/20 10:31:26 GW[LWN-GT-1]: PUSH DATA send 2022/04/20 10:31:27 GW[LWN-GT-1]: PUSH ACK received 2022/04/20 10:31:28 GW[LWN-GT-1]: PULL RESP received 2022/04/20 10:31:28 GW[LWN-GT-1]: TX ACK sent
From NS console (dev_eui is the one configured from LWN-Simulator ): time="2022-04-20T10:01:01.1066545+08:00" level=info msg="backend/joinserver: sending response" dev_eui=218bfeacd34a8728 message_type=JoinAns receiver_id=000000 result_code=Success sender_id=0000000000000000 transaction_id=4181779636
From Application console (gateway_id and dev_eui are set from LWN-Simulator ):
time="2022-04-20T10:26:02.5749609+08:00" level=error msg="log uplink frame for device error" ctx_id="
Might be a little late but here's how I got it working:
- Configure device in Simulator
- Create a device in Chirpstack
- Then use Chripstack API Endpoint to first get a JWD-Token via [POST] [/api/internal/login] and then use route [GET][/api/devices/{dev_eui}/activation] to activate your device manually.
If anyone is using Europe to testing their devices I got it working by changing device region from EU433 to EU868.
The frequency must be the same on the Chirpstack and in the Simulator. The device auth is ABP?
Closing the issue, I think the problem was solved