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
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.
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)
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!
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