RAK2245 Rejecting activation from TTN

Issue: RAK2245 Rejecting Mote Activation by TTN

Setup:RAK2245 Gateway in IN865 region

Server:TTN

Details:Hi
I have setup a RAK2245 gateway for my Lora mote. I have configured the gateway to operate in IN865 frequency plan and registered the same with TTN server. The id of the TTN router is ttn-router-asia-se.

After sending join request by my lora mote, the gateway seems to reject EU fequency from TTN.
Following are the logs from gateway

Oct 28 10:44:22 rak-gateway ttn-gateway[640]: JSON up: {“rxpk”:[{“tmst”:4126834964,“time”:“2020-10-28T10:44:10.937731Z”,“tmms”:1287917069937,“chan”:2,“rfch”:1,“freq”:865.985000,“stat”:1,“modu”:“LORA”,“datr”:“SF12BW125”,“codr”:“4/5”,“lsnr”:11.0,“rssi”:-49,“size”:23,“data”:“AOhjA9B+1bNwBHY3czc3MjFN+klZcbA=”}]}
Oct 28 10:44:22 rak-gateway ttn-gateway[640]: INFO: [down] PULL_RESP received - token[0:46] :slight_smile:
Oct 28 10:44:22 rak-gateway ttn-gateway[640]: JSON down: {“txpk”:{“imme”:false,“tmst”:4132834964,“freq”:923.2,“rfch”:0,“powe”:14,“modu”:“LORA”,“datr”:“SF10BW125”,“codr”:“4/5”,“ipol”:true,“size”:17,“ncrc”:true,“data”:“IIK9Fsu/P+J9nE+S1eAbIvc=”}}
Oct 28 10:44:22 rak-gateway ttn-gateway[640]: ERROR: Packet REJECTED, unsupported frequency - 923200000 (min:865000000,max:867000000)
Oct 28 10:44:22 rak-gateway ttn-gateway[640]: INFO: [down] PULL_ACK received in 77 ms
Oct 28 10:44:22 rak-gateway ttn-gateway[640]: ##### 2020-10-28 10:44:22 GMT #####
Oct 28 10:44:22 rak-gateway ttn-gateway[640]: ### [UPSTREAM] ###
Oct 28 10:44:22 rak-gateway ttn-gateway[640]: # RF packets received by concentrator: 1
Oct 28 10:44:22 rak-gateway ttn-gateway[640]: # CRC_OK: 100.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
Oct 28 10:44:22 rak-gateway ttn-gateway[640]: # RF packets forwarded: 1 (23 bytes)
Oct 28 10:45:01 rak-gateway CRON[1208]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Oct 28 10:45:01 rak-gateway kernel: [ 8493.407047] Under-voltage detected! (0x00050005)
Oct 28 10:45:07 rak-gateway kernel: [ 8499.647134] Voltage normalised (0x00000000)
Oct 28 10:45:52 rak-gateway ttn-gateway[640]: # PUSH_DATA datagrams sent: 2 (418 bytes)
Oct 28 10:45:52 rak-gateway ttn-gateway[640]: # PUSH_DATA acknowledged: 0.00%
Oct 28 10:45:52 rak-gateway ttn-gateway[640]: ### [DOWNSTREAM] ###
Oct 28 10:45:52 rak-gateway ttn-gateway[640]: # PULL_DATA sent: 3 (100.00% acknowledged)
Oct 28 10:45:52 rak-gateway ttn-gateway[640]: # PULL_RESP(onse) datagrams received: 1 (191 bytes)
Oct 28 10:45:52 rak-gateway ttn-gateway[640]: # RF packets sent to concentrator: 0 (17 bytes)
Oct 28 10:45:52 rak-gateway ttn-gateway[640]: # TX errors: 0
Oct 28 10:45:52 rak-gateway ttn-gateway[640]: # TX rejected (collision packet): 0.00% (req:13, rej:0)
Oct 28 10:45:52 rak-gateway ttn-gateway[640]: # TX rejected (collision beacon): 0.00% (req:13, rej:0)
Oct 28 10:45:52 rak-gateway ttn-gateway[640]: # TX rejected (too late): 0.00% (req:13, rej:0)
Oct 28 10:45:52 rak-gateway ttn-gateway[640]: # TX rejected (too early): 0.00% (req:13, rej:0)

Please help to continue with the activation!!

Thanks,
Mary

Hello,

Can you please check which “Frequency plan” you have selected when registering the gateway. Both the AS923 and IN865 appear to use the same router, the one you are pointing to. This might be the issues as apparently the downlink is using a channel in the AS923 band.

Regards
Vladislav

Frequency Plan is India - 865 - 867MHz and router is ttn-router-asia-se

Hi
Any update ?

Thanks,
Mary

The downlink frequency on the gateway logs you posted is 923.2Mhz. That’s why @Hobo wants you to doublecheck the frequency plan you selected on setting up the gateway :slight_smile:

This is the IN865 frequency plan from TTN.

image

As it’s a Pi based gateway, why not reinstall from scratch - shouldn’t take more than a few minutes and you can record your setup as you go.

Also, please don’t cross post to TTN, it gets confusing for the volunteers over there as things progress but no one can figure out why because the discussion is else where. Stick to here, RAK are the experts on the RAK2245!

Sure will do that. But I am not getting the issue solved and I’m not sure if the issue is from the RAK side or from TTN. But the TTN downlink frequency is at 923.32Mz though I have configured in the Indian frequency band.
Anyway, will reinstall from scratch.

Thanks,
Mary

Can you post a screen shot of the TTN gateway page, just to sanity check it for you.

And can you find an official or branded power supply - not saying that has any bearing on what TTN servers may request your gateway to transmit on, but it helps with the Pi & the radio board don’t brown out due to power issues.

Would be useful to know if ABP is OK and if you can send a downlink to an ABP device.

The gateway page -

The gateway traffic -

I tried the ABP. Still ends up with the same issue.

Due to the general nature of Programmer OCD with a good dollop of paranoia, can you confirm that this means:

  1. ABP will send uplinks OK?
  2. If you schedule a downlink, it is sent at 923.2?

And, finally, is this before a re-install or after?

ABP issue is there even after re-install.
If I schedule a downlink, it is sent at 923.2. I shall share the screenshot if required.

I think sometimes the TTN is sending at 865.985 and the gateway logs are -
Oct 29 15:49:25 rak-gateway ttn-gateway[650]: # BEACON sent so far: 0
Oct 29 15:49:25 rak-gateway ttn-gateway[650]: # BEACON rejected: 0
Oct 29 15:49:25 rak-gateway ttn-gateway[650]: ### [JIT] ###
Oct 29 15:49:25 rak-gateway ttn-gateway[650]: # SX1301 time (PPS): 602647310
Oct 29 15:49:25 rak-gateway ttn-gateway[650]: src/jitqueue.c:448:jit_print_queue(): INFO: [jit] queue is empty
Oct 29 15:49:25 rak-gateway ttn-gateway[650]: ### [GPS] ###
Oct 29 15:49:25 rak-gateway ttn-gateway[650]: # Valid time reference (age: 0 sec)
Oct 29 15:49:25 rak-gateway ttn-gateway[650]: # no valid GPS coordinates available yet
Oct 29 15:49:25 rak-gateway ttn-gateway[650]: ##### END #####
Oct 29 15:49:25 rak-gateway ttn-gateway[650]: JSON up: {“stat”:{“time”:“2020-10-29 15:48:25 GMT”,“rxnb”:1,“rxok”:0,“rxfw”:0,“ackr”:0.0,“dwnb”:0,“txnb”:0}}
Oct 29 15:49:25 rak-gateway ttn-gateway[650]: INFO: Received pkt from mote: D0037274 (fcnt=46037)
Oct 29 15:49:25 rak-gateway ttn-gateway[650]: JSON up: {“rxpk”:[{“tmst”:604462684,“time”:“2020-10-29T15:48:27.815374Z”,“tmms”:1288021726815,“chan”:2,“rfch”:1,“freq”:865.985000,“stat”:1,“modu”:“LORA”,“datr”:“SF12BW125”,“codr”:“4/5”,“lsnr”:9.5,“rssi”:-22,“size”:23,“data”:“AHRyA9B+1bNwBHY3czc3MjFYCzsQAVM=”}]}
Oct 29 15:49:25 rak-gateway ttn-gateway[650]: INFO: [down] PULL_RESP received - token[0:4] :slight_smile:
Oct 29 15:49:25 rak-gateway ttn-gateway[650]: JSON down: {“txpk”:{“imme”:false,“tmst”:609462684,“freq”:865.985,“rfch”:0,“powe”:14,“modu”:“LORA”,“datr”:“SF10BW125”,“codr”:“4/5”,“ipol”:true,“size”:17,“ncrc”:true,“data”:“IKspeoF//WdyU5Pqtia17V0=”}}
Oct 29 15:49:25 rak-gateway ttn-gateway[650]: INFO: == used txlut index:9
Oct 29 15:49:25 rak-gateway ttn-gateway[650]: INFO: tx_start_delay=1495 (1495.500000) - (1497, bw_delay=1.500000, notch_delay=0.000000)
Oct 29 15:49:25 rak-gateway ttn-gateway[650]: INFO: [down] PULL_ACK received in 120 ms
Oct 29 15:49:25 rak-gateway ttn-gateway[650]: INFO: [down] PULL_ACK received in 96 ms
Oct 29 15:49:25 rak-gateway ttn-gateway[650]: INFO: [down] PULL_ACK received in 87 ms
Oct 29 15:49:25 rak-gateway ttn-gateway[650]: ##### 2020-10-29 15:48:55 GMT #####
Oct 29 15:49:25 rak-gateway ttn-gateway[650]: ### [UPSTREAM] ###
Oct 29 15:49:25 rak-gateway ttn-gateway[650]: # RF packets received by concentrator: 1
Oct 29 15:49:25 rak-gateway ttn-gateway[650]: # CRC_OK: 100.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
Oct 29 15:49:25 rak-gateway ttn-gateway[650]: # RF packets forwarded: 1 (23 bytes)
Oct 29 15:49:25 rak-gateway ttn-gateway[650]: # PUSH_DATA datagrams sent: 2 (375 bytes)
Oct 29 15:49:25 rak-gateway ttn-gateway[650]: # PUSH_DATA acknowledged: 0.00%
Oct 29 15:49:25 rak-gateway ttn-gateway[650]: ### [DOWNSTREAM] ###
Oct 29 15:49:25 rak-gateway ttn-gateway[650]: # PULL_DATA sent: 3 (100.00% acknowledged)
Oct 29 15:49:25 rak-gateway ttn-gateway[650]: # PULL_RESP(onse) datagrams received: 1 (192 bytes)
Oct 29 15:49:25 rak-gateway ttn-gateway[650]: # RF packets sent to concentrator: 1 (17 bytes)
Oct 29 15:49:25 rak-gateway ttn-gateway[650]: # TX errors: 0
Oct 29 15:49:25 rak-gateway ttn-gateway[650]: # TX rejected (collision packet): 0.00% (req:1, rej:0)
Oct 29 15:49:25 rak-gateway ttn-gateway[650]: # TX rejected (collision beacon): 0.00% (req:1, rej:0)
Oct 29 15:49:25 rak-gateway ttn-gateway[650]: # TX rejected (too late): 0.00% (req:1, rej:0)
Oct 29 15:49:25 rak-gateway ttn-gateway[650]: # TX rejected (too early): 0.00% (req:1, rej:0)
Oct 29 15:49:25 rak-gateway ttn-gateway[650]: # BEACON queued: 0
Oct 29 15:49:25 rak-gateway ttn-gateway[650]: # BEACON sent so far: 0
Oct 29 15:49:25 rak-gateway ttn-gateway[650]: # BEACON rejected: 0

Any clue on this?

It’s not clear how you are determining that it’s requesting a send on 923.2.

The log shows the uplink and the subsequent downlink on 865.985 so this looks OK and I’ll assume that the information appears as expected on the web console.

Can you try again with OTAA and post the log so we can see if the re-install has changed anything.

The RSSI shown in the second log seems rather high - how far apart is the gateway & device?

Whilst in theory this is irrelevant to the TTN asking for the wrong frequency, it will still have an impact on other tests as both transmitters can overload the input stage of the receiver and make a mess of things.

As a part of testing, they are just few meters apart. Should I keep them away?

Yes, read above, the concentrator can get very confused about which channel received a message if you have reasonable antenna’s without any blocking.

A brick wall, a computer monitor or 5m is needed to minimise this. Preferably 20m separation.

I’ve kept them apart. Still the same scenario.

I wasn’t expecting that to fix it, it was an aside.

Please can we have the log for the OTAA join 923.2 issue.

Oct 29 17:42:21 rak-gateway ttn-gateway[1508]: JSON up: {“stat”:{“time”:“2020-10-29 17:41:45 GMT”,“rxnb”:1,“rxok”:1,“rxfw”:1,“ackr”:0.0,“dwnb”:0,“txnb”:0}}
Oct 29 17:42:21 rak-gateway ttn-gateway[1508]: WARNING: [gps] could not get GPS time from GPS
Oct 29 17:42:21 rak-gateway ttn-gateway[1508]: WARNING: [gps] could not get GPS time from GPS
Oct 29 17:42:21 rak-gateway ttn-gateway[1508]: INFO: [down] PULL_RESP received - token[0:1] :slight_smile:
Oct 29 17:42:21 rak-gateway ttn-gateway[1508]: JSON down: {“txpk”:{“imme”:false,“tmst”:275000092,“freq”:923.2,“rfch”:0,“powe”:14,“modu”:“LORA”,“datr”:“SF10BW125”,“codr”:“4/5”,“ipol”:true,“size”:17,“ncrc”:true,“data”:“IEJtPCbx/6FMY3nrXgSxJjU=”}}
Oct 29 17:42:21 rak-gateway ttn-gateway[1508]: ERROR: Packet REJECTED, unsupported frequency - 923200000 (min:865000000,max:867000000)
Oct 29 17:42:21 rak-gateway ttn-gateway[1508]: WARNING: [gps] could not get GPS time from GPS
Oct 29 17:42:21 rak-gateway ttn-gateway[1508]: WARNING: [gps] could not get GPS time from GPS
Oct 29 17:42:21 rak-gateway ttn-gateway[1508]: WARNING: [gps] could not get GPS time from GPS
Oct 29 17:42:21 rak-gateway ttn-gateway[1508]: INFO: [down] PULL_ACK received in 124 ms

Oct 29 17:47:15 rak-gateway ttn-gateway[1508]: INFO: Received pkt from mote: D0037274 (fcnt=46037)
Oct 29 17:47:15 rak-gateway ttn-gateway[1508]: JSON up: {“rxpk”:[{“tmst”:569030292,“chan”:2,“rfch”:1,“freq”:865.985000,“stat”:1,“modu”:“LORA”,“datr”:“SF12BW125”,“codr”:“4/5”,“lsnr”:10.0,“rssi”:-87,“size”:23,“data”:“AHRyA9B+1bNwBHY3czc3MjF+8qEbwWk=”}]}
Oct 29 17:47:15 rak-gateway ttn-gateway[1508]: WARNING: [gps] could not get GPS time from GPS
Oct 29 17:47:15 rak-gateway ttn-gateway[1508]: WARNING: [gps] could not get GPS time from GPS
Oct 29 17:47:15 rak-gateway ttn-gateway[1508]: WARNING: [gps] could not get GPS time from GPS
Oct 29 17:47:15 rak-gateway ttn-gateway[1508]: INFO: [down] PULL_ACK received in 85 ms
Oct 29 17:47:15 rak-gateway ttn-gateway[1508]: WARNING: [gps] could not get GPS time from GPS
Oct 29 17:47:15 rak-gateway ttn-gateway[1508]: ##### 2020-10-29 17:46:45 GMT #####
Oct 29 17:47:15 rak-gateway ttn-gateway[1508]: ### [UPSTREAM] ###
Oct 29 17:47:15 rak-gateway ttn-gateway[1508]: # RF packets received by concentrator: 1
Oct 29 17:47:15 rak-gateway ttn-gateway[1508]: # CRC_OK: 100.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
Oct 29 17:47:15 rak-gateway ttn-gateway[1508]: # RF packets forwarded: 1 (23 bytes)
Oct 29 17:47:15 rak-gateway ttn-gateway[1508]: # PUSH_DATA datagrams sent: 2 (318 bytes)
Oct 29 17:47:15 rak-gateway ttn-gateway[1508]: # PUSH_DATA acknowledged: 0.00%
Oct 29 17:47:15 rak-gateway ttn-gateway[1508]: ### [DOWNSTREAM] ###
Oct 29 17:47:15 rak-gateway ttn-gateway[1508]: # PULL_DATA sent: 3 (100.00% acknowledged)
Oct 29 17:47:15 rak-gateway ttn-gateway[1508]: # PULL_RESP(onse) datagrams received: 0 (0 bytes)
Oct 29 17:47:15 rak-gateway ttn-gateway[1508]: # RF packets sent to concentrator: 0 (0 bytes)
Oct 29 17:47:15 rak-gateway ttn-gateway[1508]: # TX errors: 0
Oct 29 17:47:15 rak-gateway ttn-gateway[1508]: # BEACON queued: 0
Oct 29 17:47:15 rak-gateway ttn-gateway[1508]: # BEACON sent so far: 0
Oct 29 17:47:15 rak-gateway ttn-gateway[1508]: # BEACON rejected: 0
Oct 29 17:47:15 rak-gateway ttn-gateway[1508]: ### [JIT] ###
Oct 29 17:47:15 rak-gateway ttn-gateway[1508]: # SX1301 time (PPS): 542640452
Oct 29 17:47:15 rak-gateway ttn-gateway[1508]: src/jitqueue.c:448:jit_print_queue(): INFO: [jit] queue is empty
Oct 29 17:47:15 rak-gateway ttn-gateway[1508]: ### [GPS] ###
Oct 29 17:47:15 rak-gateway ttn-gateway[1508]: # Invalid time reference (age: 1603993605 sec)
Oct 29 17:47:15 rak-gateway ttn-gateway[1508]: # no valid GPS coordinates available yet
Oct 29 17:47:15 rak-gateway ttn-gateway[1508]: ##### END #####
Oct 29 17:47:15 rak-gateway ttn-gateway[1508]: JSON up: {“stat”:{“time”:“2020-10-29 17:46:45 GMT”,“rxnb”:1,“rxok”:1,“rxfw”:1,“ackr”:0.0,“dwnb”:0,“txnb”:0}}
Oct 29 17:47:15 rak-gateway ttn-gateway[1508]: INFO: [down] PULL_RESP received - token[0:3] :slight_smile:
Oct 29 17:47:15 rak-gateway ttn-gateway[1508]: JSON down: {“txpk”:{“imme”:false,“tmst”:574030292,**“freq”:865.985,"**rfch":0,“powe”:14,“modu”:“LORA”,“datr”:“SF10BW125”,“codr”:“4/5”,“ipol”:true,“size”:17,“ncrc”:true,“data”:“IIvoQ4g0Q56kWNublMmcnqU=”}}
Oct 29 17:47:15 rak-gateway ttn-gateway[1508]: INFO: == used txlut index:9
Oct 29 17:47:15 rak-gateway ttn-gateway[1508]: WARNING: [gps] could not get GPS time from GPS
Oct 29 17:47:15 rak-gateway ttn-gateway[1508]: INFO: tx_start_delay=1495 (1495.500000) - (1497, bw_delay=1.500000, notch_delay=0.000000)
Oct 29 17:47:15 rak-gateway ttn-gateway[1508]: WARNING: [gps] could not get GPS time from GPS
Oct 29 17:47:15 rak-gateway ttn-gateway[1508]: WARNING: [gps] could not get GPS time from GPS
Oct 29 17:47:15 rak-gateway ttn-gateway[1508]: WARNING: [gps] could not get GPS time from GPS
Oct 29 17:47:15 rak-gateway ttn-gateway[1508]: WARNING: [gps] could not get GPS time from GPS
Oct 29 17:47:15 rak-gateway ttn-gateway[1508]: WARNING: [gps] could not get GPS time from GPS
Oct 29 17:47:15 rak-gateway ttn-gateway[1508]: WARNING: [gps] could not get GPS time from GPS
Oct 29 17:47:15 rak-gateway ttn-gateway[1508]: WARNING: [gps] could not get GPS time from GPS
Oct 29 17:47:15 rak-gateway ttn-gateway[1508]: WARNING: [gps] could not get GPS time from GPS
Oct 29 17:47:15 rak-gateway ttn-gateway[1508]: WARNING: [gps] could not get GPS time from GPS
Oct 29 17:47:15 rak-gateway ttn-gateway[1508]: INFO: [down] PULL_ACK received in 97 ms

The above log shows TTN has sent at freq":865.985, but not forwarded to the mote.

HI
Any update on this?