Join Accept not received but sent

Hello,

I am new in Lora/LoraWan and I have a problem with a test node I am using. I have a Mikrotik LtAP LR8 LTE gateway integrated on ChirpStack and I am trying to send some uplinks with a TTGO T-Beam V1.1 (LMIC firmware: [GitHub - lnlp/LMIC-node: LMIC-node | One example to rule them all]) . LMIC-node is an example LoRaWAN application for a node that can be used with The Things Network. It demonstrates how to send uplink messages, how to receive downlink messages, how to implement a downlink command and it provides useful status information. With LMIC-node it is easy to get a working node quickly up and running. LMIC-node supports many popular (LoRa) development boards out of the box. It uses the Arduino framework, the LMIC LoRaWAN library and PlatformIO.](GitHub - lnlp/LMIC-node: LMIC-node | One example to rule them all. LMIC-node is an example LoRaWAN application for a node that can be used with The Things Network. It demonstrates how to send uplink messages, how to receive downlink messages, how to implement a downlink command and it provides useful status information. With LMIC-node it is easy to get a working node quickly up and running. LMIC-node supports many popular (LoRa) development boards out of the box. It uses the Arduino framework, the LMIC LoRaWAN library and PlatformIO.)).

The node sends a Join Request and the server sends a Join Accept, but the node is not receiving it. My ChirpStack V4 is in a docker container and it looks like the MQTT integration is working well. I can see the log of my gateway, gateway-bridge and mosquitto and the ACK DOWNLINK is being sent, however, the node is not receiving it.

My gateway bridge log is: time=“2024-01-17T11:04:46.101652201Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:04:54.21839702Z” level=info msg=“integration/mqtt: publishing event” event=up qos=0 topic=eu868/gateway/50303541175a4750/event/up uplink_id=14081
time=“2024-01-17T11:04:54.528007154Z” level=info msg=“integration/mqtt: downlink frame received” downlink_id=1008049387 gateway_id=50303541175a4750
time=“2024-01-17T11:04:54.5469013Z” level=info msg=“integration/mqtt: publishing event” event=ack qos=0 topic=eu868/gateway/50303541175a4750/event/ack
time=“2024-01-17T11:05:16.097500577Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:05:46.101899844Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:06:16.10028055Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:06:46.097318514Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:07:16.096586103Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:07:46.100188456Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:08:16.100523814Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:08:46.098786458Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:09:16.105134091Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:09:46.098772655Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:10:16.096898445Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:10:46.101285255Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:11:16.10344781Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:11:46.094990907Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:12:16.101445613Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:12:36.922174575Z” level=info msg=“integration/mqtt: publishing event” event=up qos=0 topic=eu868/gateway/50303541175a4750/event/up uplink_id=769
time=“2024-01-17T11:12:37.166367707Z” level=info msg=“integration/mqtt: downlink frame received” downlink_id=1799520969 gateway_id=50303541175a4750
time=“2024-01-17T11:12:37.190550463Z” level=info msg=“integration/mqtt: publishing event” event=ack qos=0 topic=eu868/gateway/50303541175a4750/event/ack
time=“2024-01-17T11:12:46.10186791Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:13:16.095301581Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:13:46.095205045Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:14:16.095352572Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:14:46.095705808Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:15:16.095848937Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:15:46.104119068Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:16:16.100288109Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:16:46.10543542Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:17:16.104362231Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:17:46.098779173Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:18:16.103027676Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:18:46.102999292Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:18:49.547385409Z” level=info msg=“integration/mqtt: publishing event” event=up qos=0 topic=eu868/gateway/50303541175a4750/event/up uplink_id=9729
time=“2024-01-17T11:18:49.794409453Z” level=info msg=“integration/mqtt: downlink frame received” downlink_id=199677059 gateway_id=50303541175a4750
time=“2024-01-17T11:18:49.816082025Z” level=info msg=“integration/mqtt: publishing event” event=ack qos=0 topic=eu868/gateway/50303541175a4750/event/ack
time=“2024-01-17T11:19:16.098783462Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:19:46.101066387Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:20:16.09584305Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:20:46.099590552Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:21:16.100571311Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:21:28.442865191Z” level=info msg=“integration/mqtt: publishing event” event=up qos=0 topic=eu868/gateway/50303541175a4750/event/up uplink_id=51457
time=“2024-01-17T11:21:28.672680707Z” level=info msg=“integration/mqtt: downlink frame received” downlink_id=2114561119 gateway_id=50303541175a4750
time=“2024-01-17T11:21:28.694024769Z” level=info msg=“integration/mqtt: publishing event” event=ack qos=0 topic=eu868/gateway/50303541175a4750/event/ack
time=“2024-01-17T11:21:46.097985899Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:22:16.097505128Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:22:46.094653533Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:23:16.100044144Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:23:46.095684099Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:24:16.099473387Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:24:46.10019136Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:25:16.107199763Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:25:46.108381589Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:26:16.110511577Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:26:46.114404863Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:27:16.111091327Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:27:46.110468416Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:28:09.506843567Z” level=info msg=“integration/mqtt: publishing event” event=up qos=0 topic=eu868/gateway/50303541175a4750/event/up uplink_id=33537
time=“2024-01-17T11:28:09.828800144Z” level=info msg=“integration/mqtt: downlink frame received” downlink_id=1148190890 gateway_id=50303541175a4750
time=“2024-01-17T11:28:09.853478214Z” level=info msg=“integration/mqtt: publishing event” event=ack qos=0 topic=eu868/gateway/50303541175a4750/event/ack
time=“2024-01-17T11:28:16.10963963Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:28:46.114965554Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:29:16.116641062Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:29:46.124202472Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:30:16.122036991Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:30:46.117978068Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:31:16.119919871Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:31:46.12516633Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:32:16.129213562Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:32:46.128607748Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:33:16.132805506Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:33:46.128254602Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:33:56.303996716Z” level=info msg=“integration/mqtt: publishing event” event=up qos=0 topic=eu868/gateway/50303541175a4750/event/up uplink_id=43521
time=“2024-01-17T11:33:56.603542199Z” level=info msg=“integration/mqtt: downlink frame received” downlink_id=1726887402 gateway_id=50303541175a4750
time=“2024-01-17T11:33:56.626927098Z” level=info msg=“integration/mqtt: publishing event” event=ack qos=0 topic=eu868/gateway/50303541175a4750/event/ack
time=“2024-01-17T11:34:16.126432069Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:34:46.128524956Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:35:16.128686461Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:35:46.129824511Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:36:16.128041785Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:36:46.12568111Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:37:16.133517091Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:37:46.143228611Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:37:52.960891417Z” level=info msg=“integration/mqtt: publishing event” event=up qos=0 topic=eu868/gateway/50303541175a4750/event/up uplink_id=29185
time=“2024-01-17T11:37:53.2673952Z” level=info msg=“integration/mqtt: downlink frame received” downlink_id=114332547 gateway_id=50303541175a4750
time=“2024-01-17T11:37:53.284154615Z” level=info msg=“integration/mqtt: publishing event” event=ack qos=0 topic=eu868/gateway/50303541175a4750/event/ack
time=“2024-01-17T11:38:16.151908811Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:38:46.148808227Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats
time=“2024-01-17T11:39:16.147317195Z” level=info msg=“integration/mqtt: publishing event” event=stats qos=0 topic=eu868/gateway/50303541175a4750/event/stats

I can see an uplink (Join Request from the node) and a downlink ack (Join Accept from ChirpStack) but in my serial monitor I cannot see the node received this ack.

Something else:


I can see the Join Request and Join Accept looping from my device and also some confirmed uplinks form nodes not registered in my ChirpStack (I don´t know if this image will help).

Can anyone help me with this? I would really appreciate it.

Hi again community,

I did not mention that I have tried changing the LoraMAC version and region parameters and it did not work either. It is configured as version 1.0.2 and region parameters A at the moment. I have already tried most of the solutions given to similar problems I have read in the forum but none of them has solved the problem.

Suggests are welcome. Thank you!

Yoy need to show the console of the LoRaWAN device.

If the Join Accept is not received by the device, then likely the frequencies of the gateway and device does not match.

Thank you for answering. This is my device´s log:

rst:0x1 (POWERON_RESET),boot:0x12 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1184
load:0x40078000,len:13232
load:0x40080400,len:3028
entry 0x400805e4

LMIC-node

Device-id: ttgo-tbeam-v1
LMIC library: MCCI
Activation: OTAA
Interval: 60 seconds

000000120001: Event: EV_JOINING

000000121867: doWork job started
000000446939: Event: EV_TXSTART
000000841973: Event: EV_JOIN_TXCOMPLETE

000003871867: doWork job started
000004787743: Event: EV_TXSTART
000005182812: Event: EV_JOIN_TXCOMPLETE

000007621867: doWork job started
000009176873: Event: EV_TXSTART

I can see the same picture I showed in my last post in the Chirpstack gateway lorawan frames. Here is my gateway log too, where you can see that the tx and rx frequencies are the same (as it is supposed to be in EU868):

@psanc I have the same problem, have you found any solutions to this?

If you share some more info maybe others could help (device type, region, etc…). Are you getting any dataup packets at all, or is it simply join-looping?

As Datnus said, this is typically caused by a frequency mismatch between device/gateway/chirpstack, this can happen when:

  • The device profile is configured wrong
  • Your Gateway Bridge / MQTT Forwarder is sending the wrong topic-prefixes
  • Your gateway, device, or Chirpstack is set to the wrong region or subband

Hello, what board are you using? I couldn’t fix it with my T-Beam and LMIC. So I tried changing the firmware to Beelan-LoraWAN and it worked fine.

@brocaar
Unable to resolve this issue since long.
Need sincere help on this

@brocaar Need help on this