Hello,
I’m trying the Thing Stack on the localhost following this guide: Configuration | The Things Stack for LoRaWAN.
Things stack open-source on localhost
Creating gateway works as expected. I’m using RakWireless USB Gateway device: wisgate-developer-base.
After creating application and a device with settings as shown below,
I updated the sample OTAA code for Arduino MKR1310 with the DevUI and the AppKey from the screenshot as shown above. Followed the same process for second device Rak113100 and uploaded the OTAA example code.
https://github.com/RAKWireless/WisBlock/blob/master/examples/RAK11300/communications/LoRa/LoRaWAN/LoRaWAN_OTAA_ABP/LoRaWAN_OTAA_ABP.ino
OTAA Accept join-request and Forward join-accept message runs in loop and doesn’t complete. RSSI values are about -40 and the device was more than 5meters away from gateway.
Same test with nam1.cloud.thethings.network
Then, I created TTN account to try same gateway and devices with the cloud based service.
After updating the udp packet forwarder docker-compose and the global_conf.json file Gateway is online
So no issues connect the gateway to TTN nam1 service and then same code runs fine without any issues.
Logs
Previous logs from the localhost host docker instances. I do not see any error messages.
stack_1 | INFO Finished unary call {"duration": 0.02, "grpc.method": "HandleJoin", "grpc.service": "ttn.lorawan.v3.NsJs", "namespace": "grpc", "peer.address": "pipe", "request_id": "01GA0B9FPJXVSS3D00NFX9EP6J"}
stack_1 | INFO Finished unary call {"duration": 0.2146, "grpc.method": "HandleUplink", "grpc.service": "ttn.lorawan.v3.GsNs", "namespace": "grpc", "peer.address": "pipe", "request_id": "01GA0B9FP52KTXV8KMZ5AWCJHA"}
stack_1 | INFO Finished unary call {"duration": 0.001, "grpc.method": "ScheduleDownlink", "grpc.service": "ttn.lorawan.v3.NsGs", "namespace": "grpc", "peer.address": "pipe", "request_id": "01GA0B9HHBB68TMD88MHW9PPZX"}
stack_1 | INFO Finished unary call {"duration": 0.0176, "grpc.method": "HandleUplink", "grpc.service": "ttn.lorawan.v3.NsAs", "namespace": "grpc", "peer.address": "pipe", "request_id": "01GA0B9HHTHQ36240X0KD8M9TB"}
stack_1 | INFO Finished unary call {"auth.token_id": "NDNBHTXBO3PFGRQ2ORCGD66O6ZYXP7ZKJVFZOPI", "auth.token_type": "AccessToken", "auth.user_id": "admin", "duration": 0.0371, "grpc.method": "Get", "grpc.request.application_id": "app01", "grpc.request.device_id": "eui-79739dd7cae90dcf", "grpc.service": "ttn.lorawan.v3.NsEndDeviceRegistry", "namespace": "grpc", "peer.address": "pipe", "peer.real_ip": "192.168.0.102", "request_id": "01GA0B9HKCEADWB383WT3H0YMV"}
stack_1 | INFO Finished unary call {"auth.token_id": "NDNBHTXBO3PFGRQ2ORCGD66O6ZYXP7ZKJVFZOPI", "auth.token_type": "AccessToken", "auth.user_id": "admin", "duration": 0.0345, "grpc.method": "Get", "grpc.request.application_id": "app01", "grpc.request.device_id": "eui-79739dd7cae90dcf", "grpc.service": "ttn.lorawan.v3.AsEndDeviceRegistry", "namespace": "grpc", "peer.address": "pipe", "peer.real_ip": "192.168.0.102", "request_id": "01GA0B9HKF23HF10M81C9H1G6S"}
stack_1 | INFO Request handled {"auth.token_id": "NDNBHTXBO3PFGRQ2ORCGD66O6ZYXP7ZKJVFZOPI", "auth.token_type": "AccessToken", "duration": 0.0371, "http.method": "GET", "http.path": "/api/v3/as/applications/app01/devices/eui-79739dd7cae90dcf", "http.status": 200, "namespace": "web", "peer.address": "192.168.0.102:47200", "request_id": "01GA0B9HKF23HF10M81C9H1G6S"}
stack_1 | INFO Request handled {"auth.token_id": "NDNBHTXBO3PFGRQ2ORCGD66O6ZYXP7ZKJVFZOPI", "auth.token_type": "AccessToken", "duration": 0.0411, "http.method": "GET", "http.path": "/api/v3/ns/applications/app01/devices/eui-79739dd7cae90dcf", "http.status": 200, "namespace": "web", "peer.address": "192.168.0.102:47200", "request_id": "01GA0B9HKCEADWB383WT3H0YMV"}
stack_1 | INFO Finished unary call {"duration": 0.0066, "grpc.method": "BatchUpdateLastSeen", "grpc.service": "ttn.lorawan.v3.EndDeviceRegistry", "namespace": "grpc", "peer.address": "pipe", "request_id": "01GA0B9NH2802N369MCDP6VJKG"}
stack_1 | INFO Finished unary call {"duration": 0.0173, "grpc.method": "HandleJoin", "grpc.service": "ttn.lorawan.v3.NsJs", "namespace": "grpc", "peer.address": "pipe", "request_id": "01GA0BAKYMT33KNJYXZVH7XBP1"}
stack_1 | INFO Finished unary call {"duration": 0.2156, "grpc.method": "HandleUplink", "grpc.service": "ttn.lorawan.v3.GsNs", "namespace": "grpc", "peer.address": "pipe", "request_id": "01GA0BAKYC076XVHHRGWGX6QAH"}
stack_1 | INFO Finished unary call {"duration": 0.0006, "grpc.method": "ScheduleDownlink", "grpc.service": "ttn.lorawan.v3.NsGs", "namespace": "grpc", "peer.address": "pipe", "request_id": "01GA0BANR4HDH93WRT40S9JZ39"}
stack_1 | INFO Finished unary call {"duration": 0.0047, "grpc.method": "HandleUplink", "grpc.service": "ttn.lorawan.v3.NsAs", "namespace": "grpc", "peer.address": "pipe", "request_id": "01GA0BANRB2HQX2QR10PNYNHXM"}
stack_1 | INFO Finished unary call {"auth.token_id": "NDNBHTXBO3PFGRQ2ORCGD66O6ZYXP7ZKJVFZOPI", "auth.token_type": "AccessToken", "auth.user_id": "admin", "duration": 0.0246, "grpc.method": "Get", "grpc.request.application_id": "app01", "grpc.request.device_id": "eui-79739dd7cae90dcf", "grpc.service": "ttn.lorawan.v3.NsEndDeviceRegistry", "namespace": "grpc", "peer.address": "pipe", "peer.real_ip": "192.168.0.102", "request_id": "01GA0BANSBDA2XJ5JFR027E6ZG"}
stack_1 | INFO Request handled {"auth.token_id": "NDNBHTXBO3PFGRQ2ORCGD66O6ZYXP7ZKJVFZOPI", "auth.token_type": "AccessToken", "duration": 0.0277, "http.method": "GET", "http.path": "/api/v3/ns/applications/app01/devices/eui-79739dd7cae90dcf", "http.status": 200, "namespace": "web", "peer.address": "192.168.0.102:47200", "request_id": "01GA0BANSBDA2XJ5JFR027E6ZG"}
stack_1 | INFO Finished unary call {"auth.token_id": "NDNBHTXBO3PFGRQ2ORCGD66O6ZYXP7ZKJVFZOPI", "auth.token_type": "AccessToken", "auth.user_id": "admin", "duration": 0.0248, "grpc.method": "Get", "grpc.request.application_id": "app01", "grpc.request.device_id": "eui-79739dd7cae90dcf", "grpc.service": "ttn.lorawan.v3.AsEndDeviceRegistry", "namespace": "grpc", "peer.address": "pipe", "peer.real_ip": "192.168.0.102", "request_id": "01GA0BANSER4N36PXNEPCQGAV5"}
stack_1 | INFO Request handled {"auth.token_id": "NDNBHTXBO3PFGRQ2ORCGD66O6ZYXP7ZKJVFZOPI", "auth.token_type": "AccessToken", "duration": 0.0271, "http.method": "GET", "http.path": "/api/v3/as/applications/app01/devices/eui-79739dd7cae90dcf", "http.status": 200, "namespace": "web", "peer.address": "192.168.0.102:47200", "request_id": "01GA0BANSER4N36PXNEPCQGAV5"}
stack_1 | INFO Finished unary call {"duration": 0.0094, "grpc.method": "BatchUpdateLastSeen", "grpc.service": "ttn.lorawan.v3.EndDeviceRegistry", "namespace": "grpc", "peer.address": "pipe", "request_id": "01GA0BAWK399T3FYFXQFPDV1PE"}
Help!
–
Regards.