RAK2245 pi hat + Rpi zero w

Hello,

I have installed https://github.com/RAKWireless/RAK2245-RAK831-LoRaGateway-RPi-Raspbian-OS
on Rpi zero w connected to RAK2245, the gateway looks running but no thing received TTN Lora network or at console.thethingsnetwork.org not connected.
I have tested the same RAK2245 with Rpi 3B+ and same software working correctly.
I am suspecting the compilation is not dedicated to Pi zero ? any instructions to solve the problem please ?

Thanks in advance

1 Like

Hi @sassi
Can you check the EUI of your setup. You can see it from “sudo gateway-config” command.
RPi zero dont have ethernet only wifi. The Gateway EUI is based on ethernet mac address.
We have made this setup and the solution is to change this line "GATEWAY_EUI_NIC=“eth0"” in set_eui.sh to "GATEWAY_EUI_NIC=“wlan0"” and run it again. This will generate the EUI from Wlan mac address.
Keep in mind that when you change the RPI you have to register new Gateway in TTN due to change of the EUI.

Regards
Todor

hi Velev,

Thanks for the reply correct the problem looks coming from the mac but set_eui.sh is already done to change to wlan, I have change it bu the same problem, when I look to "sudo gateway-config” the EUI looks the one of the wifi, so it looks coming from MAC yes but I need to to do the change in another place ?

=======
#! /bin/bash
GATEWAY_EUI=""
if [ ! -e “/opt/ttn-gateway/packet_forwarder/lora_pkt_fwd/local_conf.json” ]; then
GATEWAY_EUI_NIC=“eth0”
if [[ grep "$GATEWAY_EUI_NIC" /proc/net/dev == “” ]]; then
GATEWAY_EUI_NIC=“wlan0”
fi

    if [[ `grep "$GATEWAY_EUI_NIC" /proc/net/dev` == "" ]]; then
       echo "ERROR: No network interface found. Cannot set gateway ID."

exit 1

    fi
    GATEWAY_EUI=$(ip link show $GATEWAY_EUI_NIC | awk '/ether/ {print $2}' | awk -F\: '{print $1$2$3"FFFE"$4$5$6}')
    GATEWAY_EUI=${GATEWAY_EUI^^}
LOCAL_CONFIG_FILE=/opt/ttn-gateway/packet_forwarder/lora_pkt_fwd/local_conf.json
echo -e "{\n\t\"gateway_conf\": {\n\t\t\"gateway_ID\": \"$GATEWAY_EUI\" \n\t}\n}" >$LOCAL_CONFIG_FILE
echo "$GATEWAY_EUI"

fi

==========
llogin as: pi
[email protected]’s password:
Linux rak-gateway 4.19.42+ #1219 Tue May 14 21:16:38 BST 2019 armv6l



… a new password.

[email protected]:~ $ sudo tail -f /var/log/syslog
Jun 23 10:32:35 rak-gateway systemd[655]: Listening on GnuPG cryptographic agent (access for web browsers).
Jun 23 10:32:35 rak-gateway systemd[655]: Listening on GnuPG cryptographic agent and passphrase cache (restricted).
Jun 23 10:32:35 rak-gateway systemd[655]: Listening on GnuPG cryptographic agent (ssh-agent emulation).
Jun 23 10:32:35 rak-gateway systemd[655]: Reached target Paths.
Jun 23 10:32:35 rak-gateway systemd[655]: Reached target Sockets.
Jun 23 10:32:35 rak-gateway systemd[655]: Reached target Timers.
Jun 23 10:32:35 rak-gateway systemd[655]: Reached target Basic System.
Jun 23 10:32:35 rak-gateway systemd[655]: Reached target Default.
Jun 23 10:32:35 rak-gateway systemd[655]: Startup finished in 154ms.
Jun 23 10:32:35 rak-gateway systemd[1]: Started User Manager for UID 1000.
Jun 23 10:34:13 rak-gateway ttn-gateway[528]: src/jitqueue.c:448:jit_print_queue(): INFO: [jit] queue is empty
Jun 23 10:34:13 rak-gateway ttn-gateway[528]: ### [GPS] ###
Jun 23 10:34:13 rak-gateway ttn-gateway[528]: # Valid time reference (age: 0 sec)
Jun 23 10:34:13 rak-gateway ttn-gateway[528]: # GPS coordinates: latitude 4.43009, longitude 5.06528, altitude 199 m
Jun 23 10:34:13 rak-gateway ttn-gateway[528]: ##### END #####
Jun 23 10:34:13 rak-gateway ttn-gateway[528]: JSON up: {“stat”:{“time”:“2019-06-23 09:32:13 GMT”,“lati”:4.43009,“long”:5.06528,“alti”:199,“rxnb”:0,“rxok”:0,“rxfw”:0,“ackr”:0.0,“dwnb”:0,“txnb”:0}}
Jun 23 10:34:13 rak-gateway ttn-gateway[528]: INFO: [up] PUSH_ACK received in 108 ms
Jun 23 10:34:13 rak-gateway ttn-gateway[528]: INFO: [down] PULL_ACK received in 109 ms
Jun 23 10:34:13 rak-gateway ttn-gateway[528]: INFO: [down] PULL_ACK received in 113 ms
Jun 23 10:34:13 rak-gateway ttn-gateway[528]: INFO: [down] PULL_ACK received in 113 ms
Jun 23 10:34:13 rak-gateway ttn-gateway[528]: INFO: Disabling GPS mode for concentrator’s counter…
Jun 23 10:34:13 rak-gateway ttn-gateway[528]: INFO: host/sx1301 time offset=(1561282300s:600643µs) - drift=9718279µs
Jun 23 10:34:13 rak-gateway ttn-gateway[528]: INFO: Enabling GPS mode for concentrator’s counter.
Jun 23 10:34:13 rak-gateway ttn-gateway[528]: ##### 2019-06-23 09:32:43 GMT #####
Jun 23 10:34:13 rak-gateway ttn-gateway[528]: ### [UPSTREAM] ###
Jun 23 10:34:13 rak-gateway ttn-gateway[528]: # RF packets received by concentrator: 0
Jun 23 10:34:13 rak-gateway ttn-gateway[528]: # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
Jun 23 10:34:13 rak-gateway ttn-gateway[528]: # RF packets forwarded: 0 (0 bytes)
Jun 23 10:34:13 rak-gateway ttn-gateway[528]: # PUSH_DATA datagrams sent: 1 (153 bytes)
Jun 23 10:34:13 rak-gateway ttn-gateway[528]: # PUSH_DATA acknowledged: 100.00%
Jun 23 10:34:13 rak-gateway ttn-gateway[528]: ### [DOWNSTREAM] ###
Jun 23 10:34:13 rak-gateway ttn-gateway[528]: # PULL_DATA sent: 3 (100.00% acknowledged)
Jun 23 10:34:13 rak-gateway ttn-gateway[528]: # PULL_RESP(onse) datagrams received: 0 (0 bytes)
Jun 23 10:34:13 rak-gateway ttn-gateway[528]: # RF packets sent to concentrator: 0 (0 bytes)
Jun 23 10:34:13 rak-gateway ttn-gateway[528]: # TX errors: 0
Jun 23 10:34:13 rak-gateway ttn-gateway[528]: # BEACON queued: 0
Jun 23 10:34:13 rak-gateway ttn-gateway[528]: # BEACON sent so far: 0
Jun 23 10:34:13 rak-gateway ttn-gateway[528]: # BEACON rejected: 0
Jun 23 10:34:13 rak-gateway ttn-gateway[528]: ### [JIT] ###
Jun 23 10:34:13 rak-gateway ttn-gateway[528]: # SX1301 time (PPS): 62553348
Jun 23 10:34:13 rak-gateway ttn-gateway[528]: src/jitqueue.c:448:jit_print_queue(): INFO: [jit] queue is empty
Jun 23 10:34:13 rak-gateway ttn-gateway[528]: ### [GPS] ###
Jun 23 10:34:13 rak-gateway ttn-gateway[528]: # Valid time reference (age: 0 sec)
Jun 23 10:34:13 rak-gateway ttn-gateway[528]: # GPS coordinates: latitude 4.43004, longitude 5.06526, altitude 200 m
Jun 23 10:34:13 rak-gateway ttn-gateway[528]: ##### END #####
Jun 23 10:34:13 rak-gateway ttn-gateway[528]: JSON up: {“stat”:{“time”:“2019-06-23 09:32:43 GMT”,“lati”:4.43004,“long”:5.06526,“alti”:200,“rxnb”:0,“rxok”:0,“rxfw”:0,“ackr”:100.0,“dwnb”:0,“txnb”:0}}
Jun 23 10:34:13 rak-gateway ttn-gateway[528]: INFO: [up] PUSH_ACK received in 108 ms
Jun 23 10:34:13 rak-gateway ttn-gateway[528]: INFO: [down] PULL_ACK received in 111 ms
Jun 23 10:34:13 rak-gateway ttn-gateway[528]: INFO: [down] PULL_ACK received in 128 ms
Jun 23 10:34:13 rak-gateway ttn-gateway[528]: INFO: [down] PULL_ACK received in 109 ms
Jun 23 10:34:13 rak-gateway ttn-gateway[528]: ##### 2019-06-23 09:33:13 GMT #####



Jun 23 10:35:43 rak-gateway ttn-gateway[528]: ### [UPSTREAM] ###
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: # RF packets received by concentrator: 1
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: # CRC_OK: 0.00%, CRC_FAIL: 100.00%, NO_CRC: 0.00%
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: # RF packets forwarded: 0 (0 bytes)
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: # PUSH_DATA datagrams sent: 1 (155 bytes)
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: # PUSH_DATA acknowledged: 100.00%
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: ### [DOWNSTREAM] ###
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: # PULL_DATA sent: 3 (100.00% acknowledged)
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: # PULL_RESP(onse) datagrams received: 0 (0 bytes)
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: # RF packets sent to concentrator: 0 (0 bytes)
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: # TX errors: 0
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: # BEACON queued: 0
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: # BEACON sent so far: 0
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: # BEACON rejected: 0
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: ### [JIT] ###
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: # SX1301 time (PPS): 182582548
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: src/jitqueue.c:448:jit_print_queue(): INFO: [jit] queue is empty
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: ### [GPS] ###
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: # Valid time reference (age: 0 sec)
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: # GPS coordinates: latitude 4.43007, longitude 5.06530, altitude 207 m
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: ##### END #####
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: JSON up: {“stat”:{“time”:“2019-06-23 09:34:43 GMT”,“lati”:4.43007,“long”:5.06530,“alti”:207,“rxnb”:1,“rxok”:0,“rxfw”:0,“ackr”:100.0,“dwnb”:0,“txnb”:0}}
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: INFO: [up] PUSH_ACK received in 110 ms
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: INFO: [down] PULL_ACK received in 111 ms
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: INFO: [down] PULL_ACK received in 115 ms
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: INFO: [down] PULL_ACK received in 125 ms
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: ##### 2019-06-23 09:35:13 GMT #####
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: ### [UPSTREAM] ###
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: # RF packets received by concentrator: 0
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: # RF packets forwarded: 0 (0 bytes)
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: # PUSH_DATA datagrams sent: 1 (155 bytes)
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: # PUSH_DATA acknowledged: 100.00%
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: ### [DOWNSTREAM] ###
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: # PULL_DATA sent: 3 (100.00% acknowledged)
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: # PULL_RESP(onse) datagrams received: 0 (0 bytes)
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: # RF packets sent to concentrator: 0 (0 bytes)
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: # TX errors: 0
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: # BEACON queued: 0
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: # BEACON sent so far: 0
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: # BEACON rejected: 0
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: ### [JIT] ###
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: # SX1301 time (PPS): 212400919
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: src/jitqueue.c:448:jit_print_queue(): INFO: [jit] queue is empty
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: ### [GPS] ###
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: # Valid time reference (age: 0 sec)
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: # GPS coordinates: latitude 4.43007, longitude 5.06530, altitude 210 m
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: ##### END #####
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: JSON up: {“stat”:{“time”:“2019-06-23 09:35:13 GMT”,“lati”:4.43007,“long”:5.06530,“alti”:210,“rxnb”:0,“rxok”:0,“rxfw”:0,“ackr”:100.0,“dwnb”:0,“txnb”:0}}
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: INFO: [up] PUSH_ACK received in 118 ms
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: INFO: [down] PULL_ACK received in 114 ms
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: INFO: [down] PULL_ACK received in 112 ms
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: INFO: [down] PULL_ACK received in 109 ms
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: INFO: Disabling GPS mode for concentrator’s counter…
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: INFO: host/sx1301 time offset=(1561282300s:566372µs) - drift=-6350µs
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: INFO: Enabling GPS mode for concentrator’s counter.
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: ##### 2019-06-23 09:35:43 GMT #####
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: ### [UPSTREAM] ###
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: # RF packets received by concentrator: 0
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: # RF packets forwarded: 0 (0 bytes)
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: # PUSH_DATA datagrams sent: 1 (155 bytes)
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: # PUSH_DATA acknowledged: 100.00%
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: ### [DOWNSTREAM] ###
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: # PULL_DATA sent: 3 (100.00% acknowledged)
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: # PULL_RESP(onse) datagrams received: 0 (0 bytes)
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: # RF packets sent to concentrator: 0 (0 bytes)
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: # TX errors: 0
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: # BEACON queued: 0
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: # BEACON sent so far: 0
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: # BEACON rejected: 0
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: ### [JIT] ###
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: # SX1301 time (PPS): 242589546
Jun 23 10:35:43 rak-gateway ttn-gateway[528]: src/jitqueue.c:448:jit_print_queue(): INFO: [jit] queue is empty
Jun 23 10:36:59 rak-gateway systemd[1]: Stopping The Things Network Gateway…
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: ### [GPS] ###
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: # Valid time reference (age: 0 sec)
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: # GPS coordinates: latitude 4.43008, longitude 5.06529, altitude 214 m
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: ##### END #####
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: JSON up: {“stat”:{“time”:“2019-06-23 09:35:43 GMT”,“lati”:4.43008,“long”:5.06529,“alti”:214,“rxnb”:0,“rxok”:0,“rxfw”:0,“ackr”:100.0,“dwnb”:0,“txnb”:0}}
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: INFO: [up] PUSH_ACK received in 107 ms
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: INFO: [down] PULL_ACK received in 114 ms
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: INFO: [down] PULL_ACK received in 103 ms
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: INFO: [down] PULL_ACK received in 107 ms
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: ##### 2019-06-23 09:36:13 GMT #####
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: ### [UPSTREAM] ###
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: # RF packets received by concentrator: 0
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: # RF packets forwarded: 0 (0 bytes)
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: # PUSH_DATA datagrams sent: 1 (155 bytes)
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: # PUSH_DATA acknowledged: 100.00%
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: ### [DOWNSTREAM] ###
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: # PULL_DATA sent: 3 (100.00% acknowledged)
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: # PULL_RESP(onse) datagrams received: 0 (0 bytes)
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: # RF packets sent to concentrator: 0 (0 bytes)
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: # TX errors: 0
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: # BEACON queued: 0
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: # BEACON sent so far: 0
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: # BEACON rejected: 0
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: ### [JIT] ###
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: # SX1301 time (PPS): 272400929
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: src/jitqueue.c:448:jit_print_queue(): INFO: [jit] queue is empty
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: ### [GPS] ###
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: # Valid time reference (age: 0 sec)
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: # GPS coordinates: latitude 4.43011, longitude 5.06530, altitude 217 m
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: ##### END #####
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: JSON up: {“stat”:{“time”:“2019-06-23 09:36:13 GMT”,“lati”:4.43011,“long”:5.06530,“alti”:217,“rxnb”:0,“rxok”:0,“rxfw”:0,“ackr”:100.0,“dwnb”:0,“txnb”:0}}
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: INFO: [up] PUSH_ACK received in 103 ms
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: INFO: [down] PULL_ACK received in 108 ms
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: INFO: [down] PULL_ACK received in 114 ms
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: INFO: [down] PULL_ACK received in 104 ms
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: INFO: Disabling GPS mode for concentrator’s counter…
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: INFO: host/sx1301 time offset=(1561282300s:575447µs) - drift=9075µs
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: INFO: Enabling GPS mode for concentrator’s counter.
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: ##### 2019-06-23 09:36:43 GMT #####
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: ### [UPSTREAM] ###
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: # RF packets received by concentrator: 0
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: # RF packets forwarded: 0 (0 bytes)
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: # PUSH_DATA datagrams sent: 1 (155 bytes)
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: # PUSH_DATA acknowledged: 100.00%
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: ### [DOWNSTREAM] ###
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: # PULL_DATA sent: 3 (100.00% acknowledged)
Jun 23 10:36:59 rak-gateway systemd[1]: Stopped The Things Network Gateway.
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: # PULL_RESP(onse) datagrams received: 0 (0 bytes)
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: # RF packets sent to concentrator: 0 (0 bytes)
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: # TX errors: 0
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: # BEACON queued: 0
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: # BEACON sent so far: 0
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: # BEACON rejected: 0
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: ### [JIT] ###
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: # SX1301 time (PPS): 302580949
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: src/jitqueue.c:448:jit_print_queue(): INFO: [jit] queue is empty
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: ### [GPS] ###
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: # Valid time reference (age: 0 sec)
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: # GPS coordinates: latitude 4.43011, longitude 5.06531, altitude 218 m
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: ##### END #####
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: JSON up: {“stat”:{“time”:“2019-06-23 09:36:43 GMT”,“lati”:4.43011,“long”:5.06531,“alti”:218,“rxnb”:0,“rxok”:0,“rxfw”:0,“ackr”:100.0,“dwnb”:0,“txnb”:0}}
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: INFO: [up] PUSH_ACK received in 112 ms
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: INFO: [down] PULL_ACK received in 111 ms
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: INFO: [down] PULL_ACK received in 108 ms
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: ##### 2019-06-23 09:36:59 GMT #####
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: ### [UPSTREAM] ###
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: # RF packets received by concentrator: 0
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: # RF packets forwarded: 0 (0 bytes)
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: # PUSH_DATA datagrams sent: 1 (155 bytes)
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: # PUSH_DATA acknowledged: 100.00%
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: ### [DOWNSTREAM] ###
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: # PULL_DATA sent: 2 (100.00% acknowledged)
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: # PULL_RESP(onse) datagrams received: 0 (0 bytes)
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: # RF packets sent to concentrator: 0 (0 bytes)
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: # TX errors: 0
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: # BEACON queued: 0
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: # BEACON sent so far: 0
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: # BEACON rejected: 0
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: ### [JIT] ###
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: # SX1301 time (PPS): 318400936
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: src/jitqueue.c:448:jit_print_queue(): INFO: [jit] queue is empty
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: ### [GPS] ###
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: # Valid time reference (age: 0 sec)
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: # GPS coordinates: latitude 4.43011, longitude 5.06529, altitude 215 m
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: ##### END #####
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: INFO: End of GPS thread
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: INFO: End of upstream thread
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: WARNING: failed to close GPS successfully
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: INFO: concentrator stopped successfully
Jun 23 10:36:59 rak-gateway ttn-gateway[528]: INFO: Exiting packet forwarder program
Jun 23 10:36:59 rak-gateway systemd[1]: Started The Things Network Gateway.
Jun 23 10:37:00 rak-gateway ttn-gateway[773]: Device “eth0” does not exist.
Jun 23 10:37:00 rak-gateway ttn-gateway[773]: Device “eth0” does not exist.
Jun 23 10:37:00 rak-gateway ttn-gateway[773]: Gateway_ID set to fffe in file ./local_conf.json
Jun 23 10:37:01 rak-gateway kernel: [ 354.438121] sysrq: SysRq : HELP : loglevel(0-9) reboot(b) crash© terminate-all-tasks(e) memory-full-oom-kill(f) kill-all-tasks(i) thaw-filesystems(j) sak(k) show-memory-usage(m) nice-all-RT-tasks(n) poweroff(o) show-registers§ show-all-timers(q) unraw® sync(s) show-task-states(t) unmount(u) show-blocked-tasks(w) dump-ftrace-buffer(z)
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: *** Beacon Packet Forwarder for Lora Gateway ***
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: Version: 4.0.1
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: *** Lora concentrator HAL library version info ***
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: Version: 5.0.1;
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: ***
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: INFO: Little endian host
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: INFO: found global configuration file global_conf.json, parsing it
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: INFO: global_conf.json does contain a JSON object named SX1301_conf, parsing SX1301 parameters
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: INFO: lorawan_public 1, clksrc 1
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: INFO: no configuration for LBT
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: INFO: antenna_gain 0 dBi
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: INFO: Configuring TX LUT with 16 indexes
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: INFO: radio 0 enabled (type SX1257), center frequency 867500000, RSSI offset -166.000000, tx enabled 1, tx_notch_freq 0
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: INFO: radio 1 enabled (type SX1257), center frequency 868500000, RSSI offset -166.000000, tx enabled 0, tx_notch_freq 0
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: INFO: Lora multi-SF channel 0> radio 1, IF -400000 Hz, 125 kHz bw, SF 7 to 12
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: INFO: Lora multi-SF channel 1> radio 1, IF -200000 Hz, 125 kHz bw, SF 7 to 12
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: INFO: Lora multi-SF channel 2> radio 1, IF 0 Hz, 125 kHz bw, SF 7 to 12
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: INFO: Lora multi-SF channel 3> radio 0, IF -400000 Hz, 125 kHz bw, SF 7 to 12
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: INFO: Lora multi-SF channel 4> radio 0, IF -200000 Hz, 125 kHz bw, SF 7 to 12
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: INFO: Lora multi-SF channel 5> radio 0, IF 0 Hz, 125 kHz bw, SF 7 to 12
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: INFO: Lora multi-SF channel 6> radio 0, IF 200000 Hz, 125 kHz bw, SF 7 to 12
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: INFO: Lora multi-SF channel 7> radio 0, IF 400000 Hz, 125 kHz bw, SF 7 to 12
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: INFO: Lora std channel> radio 1, IF -200000 Hz, 250000 Hz bw, SF 7
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: INFO: FSK channel> radio 1, IF 300000 Hz, 125000 Hz bw, 50000 bps datarate
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: INFO: global_conf.json does contain a JSON object named gateway_conf, parsing gateway parameters
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: INFO: gateway MAC address is configured to 0000000000000000
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: INFO: server hostname or IP address is configured to “router.eu.thethings.network”
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: INFO: upstream port is configured to “1700”
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: INFO: downstream port is configured to “1700”
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: INFO: downstream keep-alive interval is configured to 10 seconds
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: INFO: statistics display interval is configured to 30 seconds
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: INFO: upstream PUSH_DATA time-out is configured to 100 ms
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: INFO: packets received with a valid CRC will be forwarded
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: INFO: packets received with a CRC error will NOT be forwarded
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: INFO: packets received with no CRC will NOT be forwarded
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: INFO: GPS serial port path is configured to “/dev/ttyAMA0”
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: INFO: Reference latitude is configured to 10.000000 deg
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: INFO: Reference longitude is configured to 20.000000 deg
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: INFO: Reference altitude is configured to -1 meters
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: INFO: fake GPS is disabled
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: INFO: Auto-quit after 6 non-acknowledged PULL_DATA
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: INFO: found local configuration file local_conf.json, parsing it
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: INFO: redefined parameters will overwrite global parameters
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: INFO: local_conf.json does not contain a JSON object named SX1301_conf
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: INFO: local_conf.json does contain a JSON object named gateway_conf, parsing gateway parameters
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: INFO: gateway MAC address is configured to 000000000000FFFE
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: INFO: packets received with a valid CRC will be forwarded
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: INFO: packets received with a CRC error will NOT be forwarded
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: INFO: packets received with no CRC will NOT be forwarded
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: INFO: [main] TTY port /dev/ttyAMA0 open for GPS synchronization
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: INFO: [main] concentrator started, packet can now be received
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: INFO: Disabling GPS mode for concentrator’s counter…
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: WARNING: [gps] could not get a valid message from GPS (no time)
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: WARNING: [gps] could not get a valid message from GPS (no time)
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: WARNING: [gps] could not get a valid message from GPS (no time)
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: WARNING: [gps] could not get a valid message from GPS (no time)
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: WARNING: [gps] could not get a valid message from GPS (no time)
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: WARNING: [gps] could not get a valid message from GPS (no time)
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: WARNING: [gps] could not get a valid message from GPS (no time)
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: WARNING: [gps] could not get a valid message from GPS (no time)
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: WARNING: [gps] could not get a valid message from GPS (no time)
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: WARNING: [gps] could not get a valid message from GPS (no time)
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: WARNING: [gps] could not get a valid message from GPS (no time)
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: INFO: host/sx1301 time offset=(1561282621s:880714µs) - drift=1880242570µs
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: INFO: Enabling GPS mode for concentrator’s counter.
Jun 23 10:37:04 rak-gateway ttn-gateway[773]: WARNING: [gps] GPS out of sync, keeping previous time reference
Jun 23 10:39:04 rak-gateway ttn-gateway[773]: WARNING: [gps] GPS out of sync, keeping previous time reference
Jun 23 10:39:04 rak-gateway ttn-gateway[773]: INFO: [down] PULL_ACK received in 106 ms
Jun 23 10:39:04 rak-gateway ttn-gateway[773]: INFO: [down] PULL_ACK received in 104 ms
Jun 23 10:39:04 rak-gateway ttn-gateway[773]: INFO: [down] PULL_ACK received in 123 ms
Jun 23 10:39:04 rak-gateway ttn-gateway[773]: ##### 2019-06-23 09:37:34 GMT #####

1 Like

Hi @sassi
It seems that the Gateway EUI (aka ID) is not set correct in local_conf.json ( it is in lora_pkt_fwd folder). Please check this file and correct the EUI .

And you have to change eth0 to wlan0 in update_gwid.sh. This is used in start up process for packet forwarder.
If a have some time tomorrow i will make installation for RPi Zero and uploaded it in GitHub. Will post link here.

Regards
Todor

1 Like

Hello,

/opt/ttn-gateway/packet_forwarder/lora_pkt_fwd/ I have put gateway_ID": “wifi mac”
/opt/ttn-gateway/packet_forwarder/lora_pkt_fwd/update_gwid.sh I have changed GWID_MIDFIX=“wifi mac”
but the second one is just midfix so not good fix …

It is working no problem but not elegant
Bests regards

Hi @sassi

We’ve ever tested the firmware of RAK2245 Pi HAT on RPi Zero, and it works fine with TTN and loraserver.
I think maybe you can test with RAK’s precompiled firmware image on your RPi Zero W directly:
https://www.rakwireless.com/en/download/LoRa/RAK2245-Pi-HAT#Firmware
https://www.rakwireless.com/en/download/LoRa/RAK2245-Pi-HAT#Application-Notes

Also, the gateway ID is not “wifi mac”, and you need to add “FF FE” in the middle of “wifi mac”, for example, if the WiFi MAC is “00 0B B2 C3 D4 E5”, the gateway ID should be “00 0B B2 FF FE C3 D4 E5”.

Hello,
I have tested the precompiled version, I didn’t had access with ap wifi mode, no ethernet … as well
So it didnt work for me …!!

Best regards

Hello sassi, did you succed to make it work with RPI zero W ? if yes could you please tell me how ? I want to use RPI zero W because of power consomation

Hello donald28
Yes nicely working, in fact the problem is related to the fact that te soft wants to use the mac/id of the ether cable which is not existing in pi zero, you need to play with configuration to put the one of the wifi manually, and it will work.
Try to use the precompiled firmware, for me it doesn’t work maybe related to the wifi setting when you start it. let me know if you are blocked

Yes for the low power is ideal I agree 1.5W + 1.5W for the RF=3W total no more
but better to use ethernet cable instead of wifi, I am looking to have ethernet+poe I do not find elegent solution.

Thank for you response, I will check to nigth

I have not succeed to make it work with rpi zero, could you please tell me exactly what to do ?

Hello Velev, did you have time to make installation for RPI Zero ?
It will be great to have RAK’s precompiled firmware image with LTE

Fomi, if I use RPI Zero, the Wifi is AP mode and not visible so the SSH connection is impossible and I cannot setup the gateway. could you please help to configure without the wifi in AP mode ?

Hi,

for RPi zero W, I think I just updated
/opt/ttn-gateway/packet_forwarder/lora_pkt_fwd/update_gwid.sh
from

GWID_BEGIN=$(ip link show eth0 | awk '/ether/ {print $2}' | awk -F\: '{print $1$2$3}')
GWID_END=$(ip link show eth0 | awk '/ether/ {print $2}' | awk -F\: '{print $4$5$6}')

to

GWID_BEGIN=$(ip link show wlan0 | awk '/ether/ {print $2}' | awk -F\: '{print $1$2$3}')
GWID_END=$(ip link show wlan0 | awk '/ether/ {print $2}' | awk -F\: '{print $4$5$6}')
1 Like

Does Rpi zero have wlan0?
Rpi zero w has wlan0.

Yes, I had RPI Zero W in mind, thx for noticing (corrected)!

I tried to use the latest image (https://downloads.rakwireless.com/en/LoRa/RAK2245-Pi-HAT/Firmware/RAK2245_based_on_Raspbian_OS_V2.9.2_20190820.rar) with support for raspberry pi zero w now. However the WIFI AP Mode is not available and I cannot continue to set it up.

Can anyone give some hints?

Update

It managed to manually setup the Wifi Client Mode by following a guide like this

I just got rpi zero w not long ago.
I have found the reason why the AP mode does not work on rpi zero w.

After burning the firmware, you need to modify a file.
1.The firmware sd card needs to be inserted into a linux PC
2019-09-09%2010%3A26%3A58
2.Modify the rootfs/usr/local/rak/ap/create_ap.conf file in the rootfs directory


3.Find “eth0” and change to “lo”
2019-09-09%2010%3A29%3A53
4.Finally save the file, just insert the sd card into pi zero w.