LoRaWAN Simulator (works with ChirpStack)

[Processing uplink frame error]

Hi everyone!

I have installed LWN Simulator and ChirpStack server on a Raspberry pi 4. Specifically I have installed chirpstack using docker compose.

I have managed to have communication between the two as I can see in the dashboard my active virtual gateway that I created in the simulator.

But I can not see the devices that I register. I set the same parameters both in the simulator and in Chirpstack (Name, DevEUI, Region and Otaa supported with appKey). The location is a few meters from the GatewAy.

In the log I see a chirpstack network error: Processing uplink frame error.
Error: Zero items in collect set

Any help would be welcome.

Thank you very much for your help.

So if I will create the devices by hand, I simply can not simulate 50k devices with this LoRaWAN Simulator ? Am I right ?

1 Like

Hi everyone!

I have installed LWN Simulator on a Raspberry pi 3.
The Raspberry pi ip address is: http://172.18.96.100:8000 (This is an intranet IP address)
LWN Simulator is working on Pi.
I see on this console log:

2022/03/31 12:42:04 GW[Lora_Agr]: PUSH DATA send
2022/03/31 12:42:16 DEV[Test_agr_dev] |Activation| {A}: None downlink received
2022/03/31 12:42:16 DEV[Test_agr_dev] |Activation| {A}: Unjoined
2022/03/31 12:42:16 DEV[Test_agr_dev] |Activation| {A}: JOIN REQUEST sent
2022/03/31 12:42:16 DEV[Test_agr_dev] |Activation| {A}: Open RXs
2022/03/31 12:42:16 GW[Lora_Agr]: PUSH DATA send
2022/03/31 12:42:28 DEV[Test_agr_dev] |Activation| {A}: None downlink received
2022/03/31 12:42:28 DEV[Test_agr_dev] |Activation| {A}: Unjoined
2022/03/31 12:42:28 DEV[Test_agr_dev] |Activation| {A}: JOIN REQUEST sent
2022/03/31 12:42:28 GW[Lora_Agr]: PUSH DATA send
2022/03/31 12:42:28 DEV[Test_agr_dev] |Activation| {A}: Open RXs
2022/03/31 12:42:34 GW[Lora_Agr]: PULL DATA send
2022/03/31 12:42:40 DEV[Test_agr_dev] |Activation| {A}: None downlink received
2022/03/31 12:42:40 DEV[Test_agr_dev] |Activation| {A}: Unjoined
2022/03/31 12:42:40 DEV[Test_agr_dev] |Activation| {A}: JOIN REQUEST sent
2022/03/31 12:42:40 GW[Lora_Agr]: PUSH DATA send
2022/03/31 12:42:40 DEV[Test_agr_dev] |Activation| {A}: Open RXs
2022/03/31 12:42:52 DEV[Test_agr_dev] |Activation| {A}: None downlink received
2022/03/31 12:42:52 DEV[Test_agr_dev] |Activation| {A}: Unjoined
2022/03/31 12:42:52 DEV[Test_agr_dev] |Activation| {A}: JOIN REQUEST sent
2022/03/31 12:42:52 GW[Lora_Agr]: PUSH DATA send
2022/03/31 12:42:52 DEV[Test_agr_dev] |Activation| {A}: Open RXs
2022/03/31 12:43:04 GW[Lora_Agr]: PULL DATA send
2022/03/31 12:43:04 DEV[Test_agr_dev] |Activation| {A}: None downlink received
2022/03/31 12:43:04 DEV[Test_agr_dev] |Activation| {A}: Unjoined
2022/03/31 12:43:04 DEV[Test_agr_dev] |Activation| {A}: JOIN REQUEST sent
2022/03/31 12:43:04 DEV[Test_agr_dev] |Activation| {A}: Open RXs
2022/03/31 12:43:04 GW[Lora_Agr]: PUSH DATA send
2022/03/31 12:43:16 DEV[Test_agr_dev] |Activation| {A}: None downlink received
2022/03/31 12:43:16 DEV[Test_agr_dev] |Activation| {A}: Unjoined
2022/03/31 12:43:16 DEV[Test_agr_dev] |Activation| {A}: JOIN REQUEST sent
2022/03/31 12:43:16 DEV[Test_agr_dev] |Activation| {A}: Open RXs
2022/03/31 12:43:16 GW[Lora_Agr]: PUSH DATA send
2022/03/31 12:43:28 DEV[Test_agr_dev] |Activation| {A}: None downlink received
2022/03/31 12:43:28 DEV[Test_agr_dev] |Activation| {A}: Unjoined
2022/03/31 12:43:28 DEV[Test_agr_dev] |Activation| {A}: JOIN REQUEST sent
2022/03/31 12:43:28 DEV[Test_agr_dev] |Activation| {A}: Open RXs
2022/03/31 12:43:28 GW[Lora_Agr]: PUSH DATA send
2022/03/31 12:43:34 GW[Lora_Agr]: PULL DATA send
2022/03/31 12:43:40 DEV[Test_agr_dev] |Activation| {A}: None downlink received
2022/03/31 12:43:40 DEV[Test_agr_dev] |Activation| {A}: Unjoined
2022/03/31 12:43:40 DEV[Test_agr_dev] |Activation| {A}: JOIN REQUEST sent
2022/03/31 12:43:40 DEV[Test_agr_dev] |Activation| {A}: Open RXs
2022/03/31 12:43:40 GW[Lora_Agr]: PUSH DATA send

I set the virtual GW on pi IP adr.: 193.6…(this is my ChirpStack NS and AS on a different computer. Windows server 2008 R2 )
The Chipstack server is looking at my Raspberry Pi on the intranet network.

The 1700 port is open.

I set the Chirpstack AS on this tutorial.
Notes for ChirpStack

But on the server I can’t see anything.

Can anyone help solve my problem?

@pippok96 , I did all you recommended, but I still have no active gateway in chirpstack.

@bakok , do you find solution?

it seems a configuration problem, could you send to us more information?

@Fedyfausto , what’s exactly info you need? I can collect logs (of all services) and publish configuration toml files. Is it OK?

Hello,

I’m looking to try LWN-Simulator, I also have installer portainer which use the port 8000.

How could I modify the port used by the simulator?

Regards

Edit:

Here is the answer:

Modify the config.json with the desired port
Modify the docker-compose.yml to reflect the new config
build the application with docker compose build (this is the step I have forgotten)

Hello, I have the same problem, did you find a solution?

Excuse me, i recently installed LWN simulator to create a network for a project and i would like to know if there is some kind of manual or something like that. I am new to this, so i don´t know much, but i would love to, so i really like to know if there is something like that. Thanks in advance.

Sorry if I disappeared but we started to better manage the GitHub for the various issues, indeed many collaborators are actively participating in the project being open-source, you are all welcome!

Did you end up finding a solution for this?

did anyone found solution for this, I am able to see Gateway, but Device is coming as never seen

@brocaar can you help with this, I have added LWN simulator (GitHub - 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.) as part of the chirpstack-docker and did a build, I was able to connect to gateway bridge via 1700 port, gw connection is success, but device join accept message is not reached to device, either mqtt message is not reached to gw bridge or gw bridge not forwarding the message to gw added. This is the reason I wanted to create binaries of chirpstack server and check the issue

I’m sorry, but I can not help you with this.

Excuse me for the time, we are working on a new release (1.0.3). Meanwhile, try to use the 1.0.2 from the releases section of GitHub:

Also, new scientific publications and video tutorials are coming out soon!

vous pouvez personnaliser un code Arduino pour envoyer des payloads dans un TWN- simulateur LoRaWAN.

Please keep the conversation in English.

I have a lot of OTAA errors. Below log from chirpstack
2024-02-13T09:22:52.452976Z INFO stats{gateway_id=bee43e54ae3e14eb}: chirpstack::storage::metrics: Metrics saved name=gw:bee43e54ae3e14eb aggregation=HOUR
2024-02-13T09:22:52.453476Z INFO stats{gateway_id=bee43e54ae3e14eb}: chirpstack::storage::metrics: Metrics saved name=gw:bee43e54ae3e14eb aggregation=DAY
2024-02-13T09:22:52.453939Z INFO stats{gateway_id=bee43e54ae3e14eb}: chirpstack::storage::metrics: Metrics saved name=gw:bee43e54ae3e14eb aggregation=MONTH
2024-02-13T09:22:52.651714Z INFO up{deduplication_id=a5daf4ff-2050-47dc-8697-2f935599492c}: chirpstack::uplink: Uplink received m_type=JoinRequest
2024-02-13T09:22:52.673149Z INFO up{deduplication_id=a5daf4ff-2050-47dc-8697-2f935599492c}:join_request{dev_eui=“6913acdb8e219436”}: chirpstack::storage::device_keys: Device-nonce validated, join-nonce incremented and stored dev_eui=6913acdb8e219436 dev_nonce=3073
2024-02-13T09:22:52.674196Z INFO up{deduplication_id=a5daf4ff-2050-47dc-8697-2f935599492c}:join_request{dev_eui=“6913acdb8e219436”}: chirpstack::storage::device_session: Device-session saved dev_eui=6913acdb8e219436 dev_addr=01e65476
2024-02-13T09:22:52.675019Z INFO up{deduplication_id=a5daf4ff-2050-47dc-8697-2f935599492c}:join_request{dev_eui=“6913acdb8e219436”}: chirpstack::storage::device_queue: Device queue flushed dev_eui=6913acdb8e219436 count=0
2024-02-13T09:22:52.676786Z INFO up{deduplication_id=a5daf4ff-2050-47dc-8697-2f935599492c}:join_request{dev_eui=“6913acdb8e219436”}: chirpstack::storage::device: Enabled class updated dev_eui=6913acdb8e219436 enabled_class=A
2024-02-13T09:22:52.679160Z INFO up{deduplication_id=a5daf4ff-2050-47dc-8697-2f935599492c}:join_request{dev_eui=“6913acdb8e219436”}: chirpstack::storage::device: Updated DevAddr dev_eui=6913acdb8e219436 dev_addr=01e65476
2024-02-13T09:22:52.680477Z INFO up{deduplication_id=a5daf4ff-2050-47dc-8697-2f935599492c}:join_request{dev_eui=“6913acdb8e219436”}: chirpstack::storage::device: Updated JoinEUI dev_eui=6913acdb8e219436 join_eui=0000000000000000
2024-02-13T09:22:52.680937Z INFO up{deduplication_id=a5daf4ff-2050-47dc-8697-2f935599492c}:join_request{dev_eui=“6913acdb8e219436”}:join_accept{downlink_id=3334082597}: chirpstack::storage::downlink_frame: Downlink-frame saved downlink_id=3334082597
2024-02-13T09:22:52.681010Z INFO up{deduplication_id=a5daf4ff-2050-47dc-8697-2f935599492c}:join_request{dev_eui=“6913acdb8e219436”}:join_accept{downlink_id=3334082597}: chirpstack::gateway::backend::mqtt: Sending downlink frame region_id=eu868 gateway_id=bee43e54ae3e14eb topic=eu868/gateway/bee43e54ae3e14eb/command/down json=false
2024-02-13T09:22:52.685631Z INFO chirpstack::integration::mqtt: Publishing event topic=application/944365fa-6d65-44ce-a675-36d885c591f7/device/6913acdb8e219436/event/join
2024-02-13T09:23:04.452787Z INFO chirpstack::gateway::backend::mqtt: Message received from gateway region_id=“eu868” topic=“eu868/gateway/bee43e54ae3e14eb/event/up” qos=0 json=false
2024-02-13T09:23:04.453565Z INFO chirpstack::gateway::backend::mqtt: Message received from gateway region_id=“eu868” topic=“eu868/gateway/bee43e54ae3e14eb/event/stats” qos=0 json=false
2024-02-13T09:23:04.455235Z INFO stats{gateway_id=bee43e54ae3e14eb}: chirpstack::storage::gateway: Gateway state and location updated gateway_id=bee43e54ae3e14eb

What is wrong?

Hi, dalmeida… I am interested too in the simulator. Do you have some information about how it works?

Josep