Hello everyone,
I have setup a PG1302 RPi LoRaWAN gateway. During the setup I have ebabled,
- SPI interface
- I2C interface
- Serial interface
I am trying to get the GPS (PPS) synchroniszation active, but I get
WARNING: [gps] GPS out of sync, keeping previous time reference.
I am not able to understand where and what is the issue ?, because the GPS antenna is also kept outside in the open area.
Any suggestions will help !
My global_conf.json has following properties set for the gateway
"gateway_conf": {
"gateway_ID": "0016C001FF1CE6A4",
/* change with default server address/ports */
"server_address": "eu1.cloud.thethings.network",
"serv_port_up": 1700,
"serv_port_down": 1700,
/* adjust the following parameters for your network */
"keepalive_interval": 10,
"stat_interval": 30,
"push_timeout_ms": 100,
/* forward only valid packets */
"forward_crc_valid": true,
"forward_crc_error": false,
"forward_crc_disabled": false,
/* GPS configuration */
"gps_tty_path": "/dev/ttyAMA0",
/* GPS reference coordinates */
"ref_latitude": 0.0,
"ref_longitude": 0.0,
"ref_altitude": 0,
"gps": true,
"fake_gps": false,
/* Beaconing parameters */
"beacon_period": 0,
"beacon_freq_hz": 869525000,
"beacon_datarate": 9,
"beacon_bw_hz": 125000,
"beacon_power": 14,
"beacon_infodesc": 0,
"servers": [
{
"gateway_ID": "0016C001FF1CE6A4",
"server_address": "eu1.cloud.thethings.network",
"serv_port_up": 1700,
"serv_port_down": 1700,
"serv_enabled": true
}
]
},
And I get the following logs on the RPi terminal:
JSON up: {"stat":{"time":"2022-11-08 20:17:42 GMT","rxnb":0,"rxok":0,"rxfw":0,"ackr":0.0,"dwnb":0,"txnb":0,"temp":32.6}}
INFO: [up] PUSH_ACK received in 38 ms
INFO: [down] PULL_ACK received in 127 ms
INFO: [down] PULL_ACK received in 1203 ms
INFO: [down] PULL_ACK received in 131 ms
^[[1;2A
##### 2022-11-08 20:18:12 GMT #####
### [UPSTREAM] ###
# RF packets received by concentrator: 0
# CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
# RF packets forwarded: 0 (0 bytes)
# PUSH_DATA datagrams sent: 1 (123 bytes)
# PUSH_DATA acknowledged: 100.00%
### [DOWNSTREAM] ###
# PULL_DATA sent: 3 (100.00% acknowledged)
# PULL_RESP(onse) datagrams received: 0 (0 bytes)
# RF packets sent to concentrator: 0 (0 bytes)
# TX errors: 0
### SX1302 Status ###
# SX1302 counter (INST): 1110758314
# SX1302 counter (PPS): 0
# BEACON queued: 0
# BEACON sent so far: 0
# BEACON rejected: 0
### [JIT] ###
src/jitqueue.c:440:jit_print_queue(): INFO: [jit] queue is empty
#--------
src/jitqueue.c:440:jit_print_queue(): INFO: [jit] queue is empty
### [GPS] ###
# Valid time reference (age: 0 sec)
# no valid GPS coordinates available yet
### Concentrator temperature: 32 C ###
##### END #####