I am trying to setup the Chirpstack v4 server for US915 region. In my setup, I have a GW simulator that uses a UDP packet forwarder that is talking to the Chirpstack GW broker. The broker is configured with the region prefix. The GW shows online. However my device is not getting registered.
I am trying to register a “Class A” device that supports OTAA. I see Join Request followed by Join Accept, but in the Chirpstack WUI, the device status Never seen.
Chirpstack log
Sep 20 17:49:08 chirpstack chirpstack[165300]: {"timestamp":"2023-09-20T21:49:08.296490Z","level":"INFO","fields":{"message":"Message received from gateway","region_config_id":"us915_0","topic":"us915_0/gateway/d29cf3b7965a2309/event/stats","qos":0,"json":true},"target":"chirpstack::gateway::backend::mqtt"}
Sep 20 17:49:08 chirpstack chirpstack[165300]: {"timestamp":"2023-09-20T21:49:08.298052Z","level":"INFO","fields":{"message":"Message received from gateway","region_config_id":"us915_0","topic":"us915_0/gateway/d29cf3b7965a2309/event/up","qos":0,"json":true},"target":"chirpstack::gateway::backend::mqtt"}
Sep 20 17:49:08 chirpstack chirpstack[165300]: {"timestamp":"2023-09-20T21:49:08.306447Z","level":"INFO","fields":{"message":"Gateway state and location updated","gateway_id":"d29cf3b7965a2309"},"target":"chirpstack::storage::gateway","span":{"gateway_id":"d29cf3b7965a2309","name":"stats"},"spans":[{"gateway_id":"d29cf3b7965a2309","name":"stats"}]}
Sep 20 17:49:08 chirpstack chirpstack[165300]: {"timestamp":"2023-09-20T21:49:08.308227Z","level":"INFO","fields":{"message":"Metrics saved","name":"gw:d29cf3b7965a2309","aggregation":"HOUR"},"target":"chirpstack::storage::metrics","span":{"gateway_id":"d29cf3b7965a2309","name":"stats"},"spans":[{"gateway_id":"d29cf3b7965a2309","name":"stats"}]}
Sep 20 17:49:08 chirpstack chirpstack[165300]: {"timestamp":"2023-09-20T21:49:08.310326Z","level":"INFO","fields":{"message":"Metrics saved","name":"gw:d29cf3b7965a2309","aggregation":"DAY"},"target":"chirpstack::storage::metrics","span":{"gateway_id":"d29cf3b7965a2309","name":"stats"},"spans":[{"gateway_id":"d29cf3b7965a2309","name":"stats"}]}
Sep 20 17:49:08 chirpstack chirpstack[165300]: {"timestamp":"2023-09-20T21:49:08.312576Z","level":"INFO","fields":{"message":"Metrics saved","name":"gw:d29cf3b7965a2309","aggregation":"MONTH"},"target":"chirpstack::storage::metrics","span":{"gateway_id":"d29cf3b7965a2309","name":"stats"},"spans":[{"gateway_id":"d29cf3b7965a2309","name":"stats"}]}
Sep 20 17:49:08 chirpstack chirpstack[165300]: {"timestamp":"2023-09-20T21:49:08.504311Z","level":"INFO","fields":{"message":"Uplink received","m_type":"JoinRequest"},"target":"chirpstack::uplink","span":{"deduplication_id":"770ffea5-9ac8-4c14-9516-1baa89373373","name":"up"},"spans":[{"deduplication_id":"770ffea5-9ac8-4c14-9516-1baa89373373","name":"up"}]}
Sep 20 17:49:08 chirpstack chirpstack[165300]: {"timestamp":"2023-09-20T21:49:08.504457Z","level":"DEBUG","fields":{"message":"Updating gateway meta-data for uplink frame-set"},"target":"chirpstack::uplink","span":{"deduplication_id":"770ffea5-9ac8-4c14-9516-1baa89373373","name":"up"},"spans":[{"deduplication_id":"770ffea5-9ac8-4c14-9516-1baa89373373","name":"up"}]}
Sep 20 17:49:08 chirpstack chirpstack[165300]: {"timestamp":"2023-09-20T21:49:08.509338Z","level":"DEBUG","fields":{"message":"Logging uplink frame to Redis Stream"},"target":"chirpstack::uplink","span":{"deduplication_id":"770ffea5-9ac8-4c14-9516-1baa89373373","name":"up"},"spans":[{"deduplication_id":"770ffea5-9ac8-4c14-9516-1baa89373373","name":"up"}]}
Sep 20 17:49:08 chirpstack chirpstack[165300]: {"timestamp":"2023-09-20T21:49:08.542312Z","level":"INFO","fields":{"message":"Device-nonce validated, join-nonce incremented and stored","dev_eui":"73bc6a425b714ce6","dev_nonce":9782},"target":"chirpstack::storage::device_keys","span":{"name":"join_request"},"spans":[{"deduplication_id":"770ffea5-9ac8-4c14-9516-1baa89373373","name":"up"},{"name":"join_request"}]}
Sep 20 17:49:08 chirpstack chirpstack[165300]: {"timestamp":"2023-09-20T21:49:08.545030Z","level":"INFO","fields":{"message"Device-session saved:"","dev_eui":"73bc6a425b714ce6","dev_addr":"01618d7f"},"target":"chirpstack::storage::device_session","span":{"name":"join_request"},"spans":[{"deduplication_id":"770ffea5-9ac8-4c14-9516-1baa89373373","name":"up"},{"name":"join_request"}]}
Sep 20 17:49:08 chirpstack chirpstack[165300]: {"timestamp":"2023-09-20T21:49:08.550098Z","level":"INFO","fields":{"message":"Device queue flushed","dev_eui":"73bc6a425b714ce6","count":0},"target":"chirpstack::storage::device_queue","span":{"name":"join_request"},"spans":[{"deduplication_id":"770ffea5-9ac8-4c14-9516-1baa89373373","name":"up"},{"name":"join_request"}]}
Sep 20 17:49:08 chirpstack chirpstack[165300]: {"timestamp":"2023-09-20T21:49:08.555903Z","level":"INFO","fields":{"message":"Enabled class updated","dev_eui":"73bc6a425b714ce6","enabled_class":"A"},"target":"chirpstack::storage::device","span":{"name":"join_request"},"spans":[{"deduplication_id":"770ffea5-9ac8-4c14-9516-1baa89373373","name":"up"},{"name":"join_request"}]}
Sep 20 17:49:08 chirpstack chirpstack[165300]: {"timestamp":"2023-09-20T21:49:08.567583Z","level":"INFO","fields":{"message":"Updated DevAddr","dev_eui":"73bc6a425b714ce6","dev_addr":"01618d7f"},"target":"chirpstack::storage::device","span":{"name":"join_request"},"spans":[{"deduplication_id":"770ffea5-9ac8-4c14-9516-1baa89373373","name":"up"},{"name":"join_request"}]}
Sep 20 17:49:08 chirpstack chirpstack[165300]: {"timestamp":"2023-09-20T21:49:08.572604Z","level":"INFO","fields":{"message":"Updated JoinEUI","dev_eui":"73bc6a425b714ce6","join_eui":"0000000000000000"},"target":"chirpstack::storage::device","span":{"name":"join_request"},"spans":[{"deduplication_id":"770ffea5-9ac8-4c14-9516-1baa89373373","name":"up"},{"name":"join_request"}]}
Sep 20 17:49:08 chirpstack chirpstack[165300]: {"timestamp":"2023-09-20T21:49:08.574085Z","level":"INFO","fields":{"message":"Downlink-frame saved","downlink_id":2472484309},"target":"chirpstack::storage::downlink_frame","span":{"name":"join_request"},"spans":[{"deduplication_id":"770ffea5-9ac8-4c14-9516-1baa89373373","name":"up"},{"name":"join_request"}]}
Sep 20 17:49:08 chirpstack chirpstack[165300]: {"timestamp":"2023-09-20T21:49:08.574558Z","level":"INFO","fields":{"message":"Sending downlink frame","gateway_id":"d29cf3b7965a2309","topic":"us915_0/gateway/d29cf3b7965a2309/command/down","json":true},"target":"chirpstack::gateway::backend::mqtt","span":{"name":"join_request"},"spans":[{"deduplication_id":"770ffea5-9ac8-4c14-9516-1baa89373373","name":"up"},{"name":"join_request"}]}
Sep 20 17:49:08 chirpstack chirpstack[165300]: {"timestamp":"2023-09-20T21:49:08.582667Z","level":"INFO","fields":{"message":"Publishing event","topic":"application/97fceaf0-9f7f-489c-bc9b-362ca15fe5e8/device/73bc6a425b714ce6/event/join"},"target":"chirpstack::integration::mqtt"}
Sep 20 17:49:11 chirpstack chirpstack[165300]: {"timestamp":"2023-09-20T21:49:11.305873Z","level":"INFO","fields":{"message":"Message received from gateway","region_config_id":"us915_0","topic":"us915_0/gateway/d29cf3b7965a2309/event/ack","qos":0,"json":true},"target":"chirpstack::gateway::backend::mqtt"}
Sep 20 17:49:11 chirpstack chirpstack[165300]: {"timestamp":"2023-09-20T21:49:11.307500Z","level":"INFO","fields":{"message":"Log downlink-frame for gateway","gateway_id":"d29cf3b7965a2309"},"target":"chirpstack::downlink::tx_ack"}
Sep 20 17:49:11 chirpstack chirpstack[165300]: {"timestamp":"2023-09-20T21:49:11.309513Z","level":"INFO","fields":{"message":"Log downlink-frame for device","device_eui":"73bc6a425b714ce6"},"target":"chirpstack::downlink::tx_ack"}
Log from the chirpstack-gateway-bridge
Sep 20 17:49:08 chirpstack chirpstack-gateway-bridge[167250]: {"event":"stats","level":"info","msg":"integration/mqtt: publishing event","qos":0,"time":"2023-09-20T17:49:08-04:00","topic":"us915_0/gateway/d29cf3b7965a2309/event/stats"}
Sep 20 17:49:08 chirpstack chirpstack-gateway-bridge[167250]: {"event":"up","level":"info","msg":"integration/mqtt: publishing event","qos":0,"time":"2023-09-20T17:49:08-04:00","topic":"us915_0/gateway/d29cf3b7965a2309/event/up","uplink_id":29706}
Sep 20 17:49:08 chirpstack chirpstack-gateway-bridge[167250]: {"level":"info","msg":"integration/mqtt: subscribing to topic","qos":0,"time":"2023-09-20T17:49:08-04:00","topic":"us915_0/gateway/d29cf3b7965a2309/command/#"}
Sep 20 17:49:08 chirpstack chirpstack-gateway-bridge[167250]: {"level":"warning","module":"mqtt","msg":"[store] memorystore del: message 77 not found","time":"2023-09-20T17:49:08-04:00"}
Sep 20 17:49:08 chirpstack chirpstack-gateway-bridge[167250]: {"gateway_id":"d29cf3b7965a2309","level":"info","msg":"integration/mqtt: publishing state","qos":0,"state":"conn","time":"2023-09-20T17:49:08-04:00","topic":"gateway/d29cf3b7965a2309/state/conn"}
Sep 20 17:49:08 chirpstack chirpstack-gateway-bridge[167250]: {"downlink_id":2472484309,"gateway_id":"d29cf3b7965a2309","level":"info","msg":"integration/mqtt: downlink frame received","time":"2023-09-20T17:49:08-04:00"}
Sep 20 17:49:11 chirpstack chirpstack-gateway-bridge[167250]: {"event":"ack","level":"info","msg":"integration/mqtt: publishing event","qos":0,"time":"2023-09-20T17:49:11-04:00","topic":"us915_0/gateway/d29cf3b7965a2309/event/ack"}
Sep 20 17:50:43 chirpstack chirpstack-gateway-bridge[167250]: {"level":"info","msg":"integration/mqtt: unsubscribing from topic","time":"2023-09-20T17:50:43-04:00","topic":"us915_0/gateway/d29cf3b7965a2309/command/#"}
Sep 20 17:50:43 chirpstack chirpstack-gateway-bridge[167250]: {"level":"warning","module":"mqtt","msg":"[store] memorystore del: message 78 not found","time":"2023-09-20T17:50:43-04:00"}
Sep 20 17:50:43 chirpstack chirpstack-gateway-bridge[167250]: {"gateway_id":"d29cf3b7965a2309","level":"info","msg":"integration/mqtt: publishing state","qos":0,"state":"conn","time":"2023-09-20T17:50:43-04:00","topic":"gateway/d29cf3b7965a2309/state/conn"}
The device uses the following class A config:
Data Rate offset: 0
RX2 settings:
Channel Frequency: 923300000
Any pointers on how to resolve this device registration issue would be helpful. I feel, I am missing some configuration.
Thanks.