Hi,
I wanted to migrate the Gateways to TTN v3 today.
But I got stuck at the end.
I followed the documentation.
But when I start the packet forwarder with the new global_config.json
I get the following error:
bash-3.2# /etc/pktfwd/pkt_forwarder -c /etc/pktfwd/config.json -g/dev/ttyS1
+++ Start of packet forwarder for 'SX1301 array' concentrator +++
Version string: 5.1.0
SX1301 array library version string: 5.1.0
INFO: SPI speed set to 2000000 Hz
GPS enabled for synchronization using device /dev/ttyS1
INFO: Little endian host
INFO: found configuration file /etc/pktfwd/config.json
INFO: parsing gateway parameters
INFO: gateway MAC address is configured to 70DB98FFFE******
INFO: server hostname or IP address is configured to "eu1.cloud.thethings.network"
INFO: upstream port is configured to "1700"
INFO: downstream port is configured to "1700"
INFO: packets received with a valid CRC will be forwarded
INFO: packets received with a CRC error will NOT be forwarded
INFO: packets received with no CRC will NOT be forwarded
INFO: no configuration for beaconing
INFO: Link testing mote address is configured not configured
INFO: parsing GPS parameters
GPS: I/O port configuration
GPS: Disable SBAS
GPS: Set NAV5 parameters: Dynamic platform model: 2, Pos fixing mode: 2, Fixed altitude: 0
GPS: Information message configuration
INFO: socket 5 opened for upstream traffic, host: 52.212.223.226, port: 1700
INFO: socket 5 opened for downstream traffic, host: 63.34.215.128, port: 1700
spi_r/w=NULL
ERROR: sx1301ar_start failed ; Invalid null pointer in function parameter
When I start the forwarder with the older config (v2), It seems to work:
bash-3.2# /tools/pkt_forwarder -c /tmp/config.json -g/dev/ttyS1
+++ Start of packet forwarder for 'SX1301 array' concentrator +++
Version string: 5.1.0
SX1301 array library version string: 5.1.0
INFO: SPI speed set to 2000000 Hz
GPS enabled for synchronization using device /dev/ttyS1
INFO: Little endian host
INFO: found configuration file /tmp/config.json
INFO: parsing concentrator parameters for board #0
INFO: Master board
INFO: board center frequency configured at 866500000 Hz
INFO: board RX bandwidth configured at 7000000 Hz
INFO: rf_chain 0: RSSI offset configured at -202.5, a=20, b=2925
INFO: rf_chain 0: Configuring Tx LUT with 16 indexes
INFO: rf_chain 1: RSSI offset configured at -202.5, a=20, b=2925
INFO: rf_chain 1: Configuring Tx LUT with 16 indexes
INFO: LBT is disabled
INFO: gateway AES-128 key is configured to ABCDEF0123456789ABCDEF0123456789
INFO: Calibration room temperature (Tref) set to 22 oC
INFO: Calibration radio temperature code at [Tref] set to 77
INFO: 1 dsp on the board
INFO: chip 0 enabled
INFO: chip 0 center frequency configured at 868000000 Hz
INFO: LoRa multi-SF channel 0x00 configured at 867100000 Hz, BW 125kHz, SF 7 to 12
INFO: LoRa multi-SF channel 0x01 configured at 867300000 Hz, BW 125kHz, SF 7 to 12
INFO: LoRa multi-SF channel 0x02 configured at 867500000 Hz, BW 125kHz, SF 7 to 12
INFO: LoRa multi-SF channel 0x03 configured at 867700000 Hz, BW 125kHz, SF 7 to 12
INFO: LoRa multi-SF channel 0x04 configured at 867900000 Hz, BW 125kHz, SF 7 to 12
INFO: LoRa multi-SF channel 0x05 configured at 868100000 Hz, BW 125kHz, SF 7 to 12
INFO: LoRa multi-SF channel 0x06 configured at 868300000 Hz, BW 125kHz, SF 7 to 12
INFO: LoRa multi-SF channel 0x07 configured at 868500000 Hz, BW 125kHz, SF 7 to 12
INFO: LoRa stand-alone channel 0x08 configured at 868300000 Hz, BW 250000 Hz, SF 7
INFO: FSK channel 0x09 configured at 868800000 Hz, BW 125000 Hz, bit rate 50000
INFO: chip 1 enabled
INFO: chip 1 center frequency configured at 868000000 Hz
INFO: LoRa multi-SF channel 0x10 configured at 867100000 Hz, BW 125kHz, SF 7 to 12
INFO: LoRa multi-SF channel 0x11 configured at 867300000 Hz, BW 125kHz, SF 7 to 12
INFO: LoRa multi-SF channel 0x12 configured at 867500000 Hz, BW 125kHz, SF 7 to 12
INFO: LoRa multi-SF channel 0x13 configured at 867700000 Hz, BW 125kHz, SF 7 to 12
INFO: LoRa multi-SF channel 0x14 configured at 867900000 Hz, BW 125kHz, SF 7 to 12
INFO: LoRa multi-SF channel 0x15 configured at 868100000 Hz, BW 125kHz, SF 7 to 12
INFO: LoRa multi-SF channel 0x16 configured at 868300000 Hz, BW 125kHz, SF 7 to 12
INFO: LoRa multi-SF channel 0x17 configured at 868500000 Hz, BW 125kHz, SF 7 to 12
INFO: LoRa stand-alone channel 0x18 configured at 868300000 Hz, BW 250000 Hz, SF 7
INFO: FSK channel 0x19 configured at 868800000 Hz, BW 125000 Hz, bit rate 50000
INFO: parsing gateway parameters
INFO: gateway MAC address is configured to 70DB98******0000
INFO: server hostname or IP address is configured to "router.eu.thethings.network"
INFO: upstream port is configured to "1700"
INFO: downstream port is configured to "1700"
INFO: downstream keep-alive interval is configured to 10 seconds
INFO: statistics display interval is configured to 30 seconds
INFO: upstream PUSH_DATA time-out is configured to 100 ms
INFO: packets received with a valid CRC will be forwarded
INFO: packets received with a CRC error will NOT be forwarded
INFO: packets received with no CRC will NOT be forwarded
INFO: Beaconing period is configured to 128 seconds
INFO: Beaconing signal will be emitted at 869525000 Hz
INFO: Beaconing datarate is set to SF9
INFO: Beaconing modulation bandwidth is set to 125000Hz
INFO: Beaconing TX power is set to 14dBm
INFO: Beaconing information descriptor is set to 0
INFO: Link testing mote address is configured to 00CC01AF
INFO: parsing GPS parameters
INFO: Reference latitude is configured to 0.000000 deg
INFO: Reference longitude is configured to 0.000000 deg
INFO: Reference altitude is configured to 0 meters (fixed:0)
GPS: I/O port configuration
ERROR: set_port_configuration (line 1630) - Failed to get UBX command response (timeout)
WARNING: GPS initialization failed, retrying (10)...
GPS: I/O port configuration
ERROR: set_port_configuration (line 1630) - Failed to get UBX command response (timeout)
WARNING: GPS initialization failed, retrying (9)...
GPS: I/O port configuration
ERROR: set_port_configuration (line 1630) - Failed to get UBX command response (timeout)
WARNING: GPS initialization failed, retrying (8)...
GPS: I/O port configuration
ERROR: set_port_configuration (line 1630) - Failed to get UBX command response (timeout)
WARNING: GPS initialization failed, retrying (7)...
GPS: I/O port configuration
GPS: Disable SBAS
GPS: Set NAV5 parameters: Dynamic platform model: 2, Pos fixing mode: 2, Fixed altitude: 0
GPS: Information message configuration
INFO: socket 5 opened for upstream traffic, host: 52.169.76.203, port: 1700
INFO: socket 5 opened for downstream traffic, host: 52.169.76.203, port: 1700
Configuring radio...
Configuring DSP...
INFO: [BRD0] enabling chip 0
INFO: [BRD0] enabling chip 1
INFO: [BRD0] channel diversity table: { 1 1 1 1 1 1 1 1 1 1 }
--> board 0 started
INFO: concentrator started
INFO: selected rf_chain 0 for beaconing
WARNING: GPS time reference is invalid. Check GPS configuration (UBX: NAV-TIMEGPS)
INFO: [down] ACK received :)
WARNING: GPS time reference is invalid. Check GPS configuration (UBX: NAV-TIMEGPS)
[...]
WARNING: GPS time reference is invalid. Check GPS configuration (UBX: NAV-TIMEGPS)
WARNING: GPS time reference is invalid. Check GPS configuration (UBX: NAV-TIMEGPS)
INFO: [down] ACK received :)
[...]
WARNING: GPS time reference is invalid. Check GPS configuration (UBX: NAV-TIMEGPS)
INFO: [BRD0] Received pkt from mote: 260BC9A2 (fcnt=21231)
[1637254505010251] JSON up [1] [29CD]: {"rxpk":[{"jver":2,"tmst":10407604,"brd":0,"aesk":0,"freq":868.100000,"stat":1,"modu":"LORA","datr":"SF9BW125","codr":"4/5","size":21,"data":"QKLJCyaA71IBsS1TyRiTIOyO4O1j","rsig":[{"ant":0,"chan":5,"rssic":-113,"lsnr":-14.0,"ftstat":0,"rssis":-128,"rssisd":1,"foff":-4099}]}]}
INFO: [up] ACK received [29CD] :)
[...]
WARNING: GPS time reference is invalid. Check GPS configuration (UBX: NAV-TIMEGPS)
WARNING: GPS time reference is invalid. Check GPS configuration (UBX: NAV-TIMEGPS)
INFO: [BRD0] Received pkt from mote: 48000129 (fcnt=9082)
[1637254507336670] JSON up [1] [BAAB]: {"rxpk":[{"jver":2,"tmst":12697540,"brd":0,"aesk":0,"freq":868.100000,"stat":1,"modu":"LORA","datr":"SF12BW125","codr":"4/5","size":21,"data":"QCkBAEiAeiMFi9cLkFFnjXHFbpjj","rsig":[{"ant":0,"chan":5,"rssic":-112,"lsnr":-23.0,"ftstat":0,"rssis":-136,"rssisd":2,"foff":-7879},{"ant":1,"chan":21,"rssic":-113,"lsnr":-22.0,"ftstat":0,"rssis":-136,"rssisd":1,"foff":-7879}]}]}
WARNING: GPS time reference is invalid. Check GPS configuration (UBX: NAV-TIMEGPS)
INFO: [up] ACK received [BAAB] :)
WARNING: GPS time reference is invalid. Check GPS configuration (UBX: NAV-TIMEGPS)
[...]
WARNING: GPS time reference is invalid. Check GPS configuration (UBX: NAV-TIMEGPS)
Any idea were to look next?