Rak7246G connect to TTN but no messages

I’ve set up the rak7246G into TTN and its status is connected but no packets are received. Node are close to the gateway, and it is checked with TTN through another gateway.

Check the log on the gateway itself, probably something like sudo tail -f /var/log/syslog

Is the packet forwarder running?

Is it receiving packets?

Is it actually pointed at TTN servers? Is it getting push acks?

Are you sure your RAK7246 is for the frequency band applicable in your area, and that the global_config.json holds the appropriate channel definitions used by TTN in your particular regional bandplan?

Here is an extract from the logs:

Nov 18 15:34:32 rak-gateway ttn-gateway[547]: JSON up: {“stat”:{“time”:“2020-11-18 15:33:33 GMT”,“lati”:40.65154,“long”:-4.67890,“alti”:1122,“rxnb”:0,“rxok”:0,“rxfw”:0,“ackr”:100.0,“dwnb”:0,“txnb”:0}}
Nov 18 15:34:32 rak-gateway ttn-gateway[547]: INFO: [up] PUSH_ACK received in 70 ms
Nov 18 15:34:32 rak-gateway ttn-gateway[547]: INFO: [down] PULL_ACK received in 70 ms
Nov 18 15:34:32 rak-gateway ttn-gateway[547]: INFO: [down] PULL_ACK received in 69 ms
Nov 18 15:34:32 rak-gateway ttn-gateway[547]: INFO: [down] PULL_ACK received in 69 ms
Nov 18 15:34:32 rak-gateway ttn-gateway[547]: ##### 2020-11-18 15:34:03 GMT #####
Nov 18 15:34:32 rak-gateway ttn-gateway[547]: ### [UPSTREAM] ###
Nov 18 15:34:32 rak-gateway ttn-gateway[547]: # RF packets received by concentrator: 0
Nov 18 15:34:32 rak-gateway ttn-gateway[547]: # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
Nov 18 15:34:32 rak-gateway ttn-gateway[547]: # RF packets forwarded: 0 (0 bytes)
Nov 18 15:34:33 rak-gateway ttn-gateway[547]: # PUSH_DATA datagrams sent: 1 (157 bytes)
Nov 18 15:34:33 rak-gateway ttn-gateway[547]: # PUSH_DATA acknowledged: 100.00%
Nov 18 15:34:33 rak-gateway ttn-gateway[547]: ### [DOWNSTREAM] ###
Nov 18 15:34:33 rak-gateway ttn-gateway[547]: # PULL_DATA sent: 3 (100.00% acknowledged)
Nov 18 15:34:33 rak-gateway ttn-gateway[547]: # PULL_RESP(onse) datagrams received: 0 (0 bytes)
Nov 18 15:34:33 rak-gateway ttn-gateway[547]: # RF packets sent to concentrator: 0 (0 bytes)
Nov 18 15:34:33 rak-gateway ttn-gateway[547]: # TX errors: 0
Nov 18 15:34:33 rak-gateway ttn-gateway[547]: # BEACON queued: 0
Nov 18 15:34:33 rak-gateway ttn-gateway[547]: # BEACON sent so far: 0
Nov 18 15:34:33 rak-gateway ttn-gateway[547]: # BEACON rejected: 0
Nov 18 15:34:33 rak-gateway ttn-gateway[547]: ### [JIT] ###
Nov 18 15:34:33 rak-gateway ttn-gateway[547]: # SX1301 time (PPS): 1979711488
Nov 18 15:34:33 rak-gateway ttn-gateway[547]: src/jitqueue.c:448:jit_print_queue(): INFO: [jit] queue is empty
Nov 18 15:34:33 rak-gateway ttn-gateway[547]: ### [GPS] ###
Nov 18 15:34:33 rak-gateway ttn-gateway[547]: # Invalid time reference (age: 15707 sec)
Nov 18 15:34:33 rak-gateway ttn-gateway[547]: # GPS coordinates: latitude 40.65155, longitude -4.67881, altitude 1133 m

You haven’t received any node transmissions during this period, which is not very unusual as nodes should transmit infrequently. You may have to study the logs for a longer period of time, or you may have a problem with your node, or one or both of your node or gateway may not be correct for your region of the world.

PULL_DATA sent: 3 (100.00% acknowledged)

This at least is good news; the gateway is in bidirectional communication with whatever network server you pointed it at

I think that lora module (gateway) doesn’t work properly. I’ve got another gateway and i can receive messages through that one.

This is the packet received by another gateway form ttgo node. (frequency configuration is 868100000, i don’t know why is shown 868099975 in ttn payload.)

{
“gw_id”: “eui-d8a01dffff4c6b24”,
“payload”: “QBwyASaACQABmhgTj2wOTd9hpdgyTVkd”,
“f_cnt”: 9,
“lora”: {
“spreading_factor”: 7,
“bandwidth”: 125,
“air_time”: 61696000
},
“coding_rate”: “4/5”,
“timestamp”: “2020-11-18T10:54:08.563Z”,
“rssi”: -35,
“snr”: 9,
“dev_addr”: “2601321C”,
“frequency”: 868099975
}

Given that you show such a short piece of log, you almost certainly weren’t watching when your node actually transmitted, so you need to watch continuously while waiting to see that the other gateway got a packet. Also make sure your antenna is connected, etc.

Of course your gateway could also be misconfigured with the wrong contents in the applicable global_config.json for your regional bandplan.

During startup of the packet forwarder, the channel frequencies monitored will be printed to the log; compare them to the (rounded off) channel your node actually transmitted on.

It was a short extract of the log but i was watching for a long time and it’s the same…
During the same time i’m sure that node worked fine (i recived messages throught another gate).

I’ve re-installed firmware, checked conections, etc.

This is the log at the beggining, the channel frequencies are ok (as far as i know), EU range.

Nov 19 08:55:08 rak-gateway systemd[1]: Started The Things Network Gateway.
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: *** Beacon Packet Forwarder for Lora Gateway ***
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: Version: 4.0.1
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: *** Lora concentrator HAL library version info ***
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: Version: 5.0.1;
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: ***
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: INFO: Little endian host
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: INFO: found global configuration file global_conf.json, parsing it
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: INFO: global_conf.json does contain a JSON object named SX1301_conf, parsing SX1301 parameters
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: INFO: lorawan_public 1, clksrc 1
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: INFO: no configuration for LBT
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: INFO: antenna_gain 0 dBi
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: INFO: Configuring TX LUT with 16 indexes
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: INFO: radio 0 enabled (type SX1257), center frequency 867500000, RSSI offset -166.000000, tx enabled 1, tx_notch_freq 0
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: INFO: radio 1 enabled (type SX1257), center frequency 868500000, RSSI offset -166.000000, tx enabled 0, tx_notch_freq 0
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: INFO: Lora multi-SF channel 0> radio 1, IF -400000 Hz, 125 kHz bw, SF 7 to 12
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: INFO: Lora multi-SF channel 1> radio 1, IF -200000 Hz, 125 kHz bw, SF 7 to 12
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: INFO: Lora multi-SF channel 2> radio 1, IF 0 Hz, 125 kHz bw, SF 7 to 12
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: INFO: Lora multi-SF channel 3> radio 0, IF -400000 Hz, 125 kHz bw, SF 7 to 12
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: INFO: Lora multi-SF channel 4> radio 0, IF -200000 Hz, 125 kHz bw, SF 7 to 12
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: INFO: Lora multi-SF channel 5> radio 0, IF 0 Hz, 125 kHz bw, SF 7 to 12
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: INFO: Lora multi-SF channel 6> radio 0, IF 200000 Hz, 125 kHz bw, SF 7 to 12
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: INFO: Lora multi-SF channel 7> radio 0, IF 400000 Hz, 125 kHz bw, SF 7 to 12
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: INFO: Lora std channel> radio 1, IF -200000 Hz, 250000 Hz bw, SF 7
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: INFO: FSK channel> radio 1, IF 300000 Hz, 125000 Hz bw, 50000 bps datarate
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: INFO: global_conf.json does contain a JSON object named gateway_conf, parsing gateway parameters
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: INFO: gateway MAC address is configured to 0000000000000000
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: INFO: server hostname or IP address is configured to “router.eu.thethings.network”
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: INFO: upstream port is configured to “1700”
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: INFO: downstream port is configured to “1700”
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: INFO: downstream keep-alive interval is configured to 10 seconds
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: INFO: statistics display interval is configured to 30 seconds
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: INFO: upstream PUSH_DATA time-out is configured to 100 ms
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: INFO: packets received with a valid CRC will be forwarded
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: INFO: packets received with a CRC error will NOT be forwarded
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: INFO: packets received with no CRC will NOT be forwarded
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: INFO: GPS serial port path is configured to “/dev/ttyAMA0”
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: INFO: Reference latitude is configured to 10.000000 deg
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: INFO: Reference longitude is configured to 20.000000 deg
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: INFO: Reference altitude is configured to -1 meters
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: INFO: fake GPS is disabled
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: INFO: Auto-quit after 20 non-acknowledged PULL_DATA
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: INFO: found local configuration file local_conf.json, parsing it
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: INFO: redefined parameters will overwrite global parameters
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: INFO: local_conf.json does not contain a JSON object named SX1301_conf
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: INFO: local_conf.json does contain a JSON object named gateway_conf, parsing gateway parameters
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: INFO: gateway MAC address is configured to B827EBFFFE7C7372
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: INFO: packets received with a valid CRC will be forwarded
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: INFO: packets received with a CRC error will NOT be forwarded
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: INFO: packets received with no CRC will NOT be forwarded
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: INFO: [main] TTY port /dev/ttyAMA0 open for GPS synchronization
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: INFO: [main] concentrator started, packet can now be received
Nov 19 08:55:43 rak-gateway ttn-gateway[2333]: INFO: Disabling GPS mode for concentrator’s counter…