WM1302 Gateway Setup - GPS Problem

Hi guys, I have recently acquired a WM1302 Gateway Module partnered with the Pi Hat for a Raspberry Pi 3B+ using the official guide from the SeeedStudio.

All is well aside from the GPS. I kept receiving

This is what displays when I start the packet forwarder:

*** Packet Forwarder ***
Version: 2.1.0
*** SX1302 HAL library version info ***
Version: 2.1.0;
***
INFO: Little endian host
INFO: found configuration file global_conf.json.sx1250.EU868, parsing it
INFO: global_conf.json.sx1250.EU868 does contain a JSON object named SX130x_conf, parsing SX1302 parameters
INFO: com_type SPI, com_path /dev/spidev0.0, lorawan_public 1, clksrc 0, full_duplex 0
INFO: antenna_gain 0 dBi
INFO: Configuring legacy timestamp
INFO: Configuring Tx Gain LUT for rf_chain 0 with 16 indexes for sx1250
INFO: radio 0 enabled (type SX1250), center frequency 867500000, RSSI offset -215.399994, tx enabled 1, single input mode 0
INFO: radio 1 enabled (type SX1250), center frequency 868500000, RSSI offset -215.399994, tx enabled 0, single input mode 0
INFO: Lora multi-SF channel 0>  radio 1, IF -400000 Hz, 125 kHz bw, SF 5 to 12
INFO: Lora multi-SF channel 1>  radio 1, IF -200000 Hz, 125 kHz bw, SF 5 to 12
INFO: Lora multi-SF channel 2>  radio 1, IF 0 Hz, 125 kHz bw, SF 5 to 12
INFO: Lora multi-SF channel 3>  radio 0, IF -400000 Hz, 125 kHz bw, SF 5 to 12
INFO: Lora multi-SF channel 4>  radio 0, IF -200000 Hz, 125 kHz bw, SF 5 to 12
INFO: Lora multi-SF channel 5>  radio 0, IF 0 Hz, 125 kHz bw, SF 5 to 12
INFO: Lora multi-SF channel 6>  radio 0, IF 200000 Hz, 125 kHz bw, SF 5 to 12
INFO: Lora multi-SF channel 7>  radio 0, IF 400000 Hz, 125 kHz bw, SF 5 to 12
INFO: Lora std channel> radio 1, IF -200000 Hz, 250000 Hz bw, SF 7, Explicit header
INFO: FSK channel> radio 1, IF 300000 Hz, 125000 Hz bw, 50000 bps datarate
INFO: global_conf.json.sx1250.EU868 does contain a JSON object named gateway_conf, parsing gateway parameters
INFO: gateway MAC address is configured to C69201F5402DBD24
INFO: server hostname or IP address is configured to "au1.cloud.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: GPS serial port path is configured to "/dev/ttyS0"
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
INFO: fake GPS is disabled
INFO: Beaconing period is configured to 0 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: global_conf.json.sx1250.EU868 does contain a JSON object named debug_conf, parsing debug parameters
INFO: got 2 debug reference payload
INFO: reference payload ID 0 is 0xCAFE1234
INFO: reference payload ID 1 is 0xCAFE2345
INFO: setting debug log file name to loragw_hal.log
INFO: [main] TTY port /dev/ttyS0 open for GPS synchronization
CoreCell reset through GPIO17...
SX1261 reset through GPIO17...
CoreCell power enable through GPIO18...
CoreCell ADC reset through GPIO13...
Opening SPI communication interface
Note: chip version is 0x10 (v1.0)
INFO: using legacy timestamp
INFO: LoRa Service modem: configuring preamble size to 8 symbols
ARB: dual demodulation disabled for all SF
INFO: found temperature sensor on port 0x39
INFO: [main] concentrator started, packet can now be received
INFO: concentrator EUI: 0x0016c001ff13c8d9
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
INFO: [down] PULL_ACK received in 230 ms
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
INFO: [down] PULL_ACK received in 221 ms
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
INFO: [down] PULL_ACK received in 232 ms
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS

##### 2023-03-05 06:38:27 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: 0 (0 bytes)
# PUSH_DATA acknowledged: 0.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): 30742749
# 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] ###
# Invalid time reference (age: 1677998307 sec)
# no valid GPS coordinates available yet
### Concentrator temperature: 44 C ###
##### END #####

When I stopped the packet forwarder:

##### 2023-03-05 06:38:28 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: 0.00%
### [DOWNSTREAM] ###
# PULL_DATA sent: 1 (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): 31727740
# 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] ###
# Invalid time reference (age: 1677998308 sec)
# no valid GPS coordinates available yet

INFO: End of GPS thread
### Concentrator temperature: 43 C ###
##### END #####

INFO: End of upstream thread

INFO: End of JIT thread

INFO: End of validation thread

INFO: End of downstream thread
INFO: GPS closed successfully
Closing SPI communication interface
INFO: concentrator stopped successfully
CoreCell reset through GPIO17...
SX1261 reset through GPIO17...
CoreCell power enable through GPIO18...
CoreCell ADC reset through GPIO13...
INFO: Exiting packet forwarder program

And this is what happens when I run sudo cat /dev/ttyS0 to try checking if the GPS is working:

$GNGGA,,,,,,0,00,25.5,,,,,,*64

$GNGLL,,,,,,V,N*7A

$GNGSA,A,1,,,,,,,,,,,,,25.5,25.5,25.5,1*01

$GNGSA,A,1,,,,,,,,,,,,,25.5,25.5,25.5,2*02

$GPGSV,1,1,00,0*65

$GLGSV,1,1,00,0*79

$GNRMC,,V,,,,,,,,,,N,V*37

$GNVTG,,,,,,,,,N*2E

$GNZDA,,,,,,*56

$GPTXT,01,01,01,ANTENNA OPEN*25

▒b N▒o▒"▒$GNGGA,,,,,,0,00,25.5,,,,,,*64

$GNGLL,,,,,,V,N*7A

$GNGSA,A,1,,,,,,,,,,,,,25.5,25.5,25.5,1*01

$GNGSA,A,1,,,,,,,,,,,,,25.5,25.5,25.5,2*02

$GPGSV,1,1,00,0*65

$GLGSV,1,1,00,0*79

$GNRMC,,V,,,,,,,,,,N,V*37

$GNVTG,,,,,,,,,N*2E

$GNZDA,,,,,,*56

$GPTXT,01,01,01,ANTENNA OPEN*25

What seems to be the problem?

GPS is not working properly (faulty antenna input) or is missing its antenna or is indoors and not pcking up GPS signals.

My previous setup only uses a ceramic antenna that comes along with the LoRaWAN module, but I have already upgraded it to use the required 868 Mhz antenna and was placed outside.

Here are the photos:


Here are the results when I tried running it:


*** Packet Forwarder ***
Version: 2.1.0
*** SX1302 HAL library version info ***
Version: 2.1.0;
***
INFO: Little endian host
INFO: found configuration file global_conf.json.sx1250.EU868, parsing it
INFO: global_conf.json.sx1250.EU868 does contain a JSON object named SX130x_conf, parsing SX1302 parameters
INFO: com_type SPI, com_path /dev/spidev0.0, lorawan_public 1, clksrc 0, full_duplex 0
INFO: antenna_gain 0 dBi
INFO: Configuring legacy timestamp
INFO: Configuring Tx Gain LUT for rf_chain 0 with 16 indexes for sx1250
INFO: radio 0 enabled (type SX1250), center frequency 867500000, RSSI offset -215.399994, tx enabled 1, single input                                       mode 0
INFO: radio 1 enabled (type SX1250), center frequency 868500000, RSSI offset -215.399994, tx enabled 0, single input                                       mode 0
INFO: Lora multi-SF channel 0>  radio 1, IF -400000 Hz, 125 kHz bw, SF 5 to 12
INFO: Lora multi-SF channel 1>  radio 1, IF -200000 Hz, 125 kHz bw, SF 5 to 12
INFO: Lora multi-SF channel 2>  radio 1, IF 0 Hz, 125 kHz bw, SF 5 to 12
INFO: Lora multi-SF channel 3>  radio 0, IF -400000 Hz, 125 kHz bw, SF 5 to 12
INFO: Lora multi-SF channel 4>  radio 0, IF -200000 Hz, 125 kHz bw, SF 5 to 12
INFO: Lora multi-SF channel 5>  radio 0, IF 0 Hz, 125 kHz bw, SF 5 to 12
INFO: Lora multi-SF channel 6>  radio 0, IF 200000 Hz, 125 kHz bw, SF 5 to 12
INFO: Lora multi-SF channel 7>  radio 0, IF 400000 Hz, 125 kHz bw, SF 5 to 12
INFO: Lora std channel> radio 1, IF -200000 Hz, 250000 Hz bw, SF 7, Explicit header
INFO: FSK channel> radio 1, IF 300000 Hz, 125000 Hz bw, 50000 bps datarate
INFO: global_conf.json.sx1250.EU868 does contain a JSON object named gateway_conf, parsing gateway parameters
INFO: gateway MAC address is configured to C69201F5402DBD24
INFO: server hostname or IP address is configured to "au1.cloud.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: GPS serial port path is configured to "/dev/ttyS0"
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
INFO: fake GPS is disabled
INFO: Beaconing period is configured to 0 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: global_conf.json.sx1250.EU868 does contain a JSON object named debug_conf, parsing debug parameters
INFO: got 2 debug reference payload
INFO: reference payload ID 0 is 0xCAFE1234
INFO: reference payload ID 1 is 0xCAFE2345
INFO: setting debug log file name to loragw_hal.log
INFO: [main] TTY port /dev/ttyS0 open for GPS synchronization
CoreCell reset through GPIO17...
SX1261 reset through GPIO17...
CoreCell power enable through GPIO18...
CoreCell ADC reset through GPIO13...
Opening SPI communication interface
Note: chip version is 0x10 (v1.0)
INFO: using legacy timestamp
INFO: LoRa Service modem: configuring preamble size to 8 symbols
ARB: dual demodulation disabled for all SF
INFO: found temperature sensor on port 0x39
INFO: [main] concentrator started, packet can now be received
INFO: concentrator EUI: 0x0016c001ff13c8d9
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
INFO: [down] PULL_ACK received in 177 ms
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
INFO: [down] PULL_ACK received in 171 ms
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
INFO: [down] PULL_ACK received in 175 ms
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS
WARNING: [gps] could not get GPS time from GPS

##### 2023-03-16 05:59:29 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: 0 (0 bytes)
# PUSH_DATA acknowledged: 0.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): 30745643
# 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] ###
# Invalid time reference (age: 1678946369 sec)
# no valid GPS coordinates available yet
### Concentrator temperature: 55 C ###
##### END #####

The GPS still spouts this nonsense when I tried to run it, does this happen to others?

lorapi@loragatewaypi:~/sx1302_hal/packet_forwarder $ sudo cat /dev/ttyS0
5.5,25.5,25.5,1*01

$GNGSA,A,1,,,,,,,,,,,,,25.5,25.5,25.5,2*02

$GPGSV,1,1,00,0*65

$GLGSV,1,1,00,0*79

$GNRMC,,V,,,,,,,,,,N,V*37

$GNVTG,,,,,,,,,N*2E

$GNZDA,,,,,,*56

$GPTXT,01,01,01,ANTENNA OPEN*25

W▒hG$GNGGA,,,,,,0,00,25.5,,,,,,*64

$GNGLL,,,,,,V,N*7A

$GNGSA,A,1,,,,,,,,,,,,,25.5,25.5,25.5,1*01

$GNGSA,A,1,,,,,,,,,,,,,25.5,25.5,25.5,2*02

$GPGSV,1,1,00,0*65

$GLGSV,1,1,00,0*79

$GNRMC,,V,,,,,,,,,,N,V*37

$GNVTG,,,,,,,,,N*2E

$GNZDA,,,,,,*56

$GPTXT,01,01,01,ANTENNA OPEN*25

▒V▒߅$GNGGA,,,,,,0,00,25.5,,,,,,*64

$GNGLL,,,,,,V,N*7A

$GNGSA,A,1,,,,,,,,,,,,,25.5,25.5,25.5,1*01

$GNGSA,A,1,,,,,,,,,,,,,25.5,25.5,25.5,2*02

$GPGSV,1,1,00,0*65

$GLGSV,1,1,00,0*79

$GNRMC,,V,,,,,,,,,,N,V*37

$GNVTG,,,,,,,,,N*2E

$GNZDA,,,,,,*56

$GPTXT,01,01,01,ANTENNA OPEN*25

4V▒X▒$GNGGA,,,,,,0,00,25.5,,,,,,*64

$GNGLL,,,,,,V,N*7A

$GNGSA,A,1,,,,,,,,,,,,,25.5,25.5,25.5,1*01

$GNGSA,A,1,,,,,,,,,,,,,25.5,25.5,25.5,2*02

$GPGSV,1,1,00,0*65

$GLGSV,1,1,00,0*79

$GNRMC,,V,,,,,,,,,,N,V*37

$GNVTG,,,,,,,,,N*2E

$GNZDA,,,,,,*56

$GPTXT,01,01,01,ANTENNA OPEN*25

▒U▒▒6$GNGGA,,,,,,0,00,25.5,,,,,,*64

$GNGLL,,,,,,V,N*7A

$GNGSA,A,1,,,,,,,,,,,,,25.5,25.5,25.5,1*01

$GNGSA,A,1,,,,,,,,,,,,,25.5,25.5,25.5,2*02

$GPGSV,1,1,00,0*65

$GLGSV,1,1,00,0*79

$GNRMC,,V,,,,,,,,,,N,V*37

$GNVTG,,,,,,,,,N*2E

$GNZDA,,,,,,*56

$GPTXT,01,01,01,ANTENNA OPEN*25

OU▒J▒$GNGGA,,,,,,0,00,25.5,,,,,,*64

$GNGLL,,,,,,V,N*7A

$GNGSA,A,1,,,,,,,,,,,,,25.5,25.5,25.5,1*01

$GNGSA,A,1,,,,,,,,,,,,,25.5,25.5,25.5,2*02

$GPGSV,1,1,00,0*65

$GLGSV,1,1,00,0*79

$GNRMC,,V,,,,,,,,,,N,V*37

$GNVTG,,,,,,,,,N*2E

$GNZDA,,,,,,*56

$GPTXT,01,01,01,ANTENNA OPEN*25

I have found some forums that it might be a compilation issue while trying to follow this setup.

Thats not ‘garbage’ from the GPS, its consistent data.

Seems to be reporting a problem with the GPS antenna.

Which GPS are you using ?

In reality GPS doesnt add much value to most GW installs (e.g. unless being configured to support device location services, etc) so may as well disable locally and just set location in TTN Console if not already done :wink: anything for an easy life - and save cost of GPS Ant!

1 Like

Can you clarify what you mean by this - from the pictures & text it looks like you are saying you removed the ceramic patch and replaced it with the fibreglass pole antenna??

What antenna do you have for LoRaWAN?

It is deeply unlikely to be a compile issue - the GPS is talking just fine to the Pi, it’s saying things quite clearly, like “Antenna Open”.

Yes, you were right. I’ve replaced the ceramic antenna with an omnidirectional 5dBi 868 Mhz fiberglass pole antenna. I choose this antenna as this would be applicable for the 868 Mhz WM1302 Gateway Module.

Aside from the GPS issue, the gateway was able to run correctly, which supposes that the antenna works just fine.

This then begs the question of whether it was a hardware problem on the module that causes it to fail or whether there is still something on the gateway I haven’t configured properly.

Do you have an antenna plugged in for LoRaWAN - if not it runs the risk of frying the concentrator card.

As for the GPS, the satellites that are 20,000km away are scattered all over the sky using a frequency in the 1575MHz range. Your replacement is making reception worse.

Hahaha actually this is very true to the use case of why the gateway was built. It was actually to be used to just track the capacity status of trash bins around a large area in the university.

I am just annoyed with the warning logs on the console and am also thinking of just disabling it. :joy:

But otherwise, the question about the GPS issue would be useful when time comes, as this gateway may be used on the other purposes, other than that of trash monitoring (i.e. Position Triangulation via Multiple Gateways) since it will be installed at the university.

Soo might as well ask, I might get a solution :joy:

Whilst there are some potential approximation solutions using RSSI, you still don’t need the GPS to work as you should know where the gateway is. If you want to do time of flight calculations you’ll need a concentrator card that can do that which are far more expensive.

GPS on a gateway is only required if you do not have a reliable time source - and even then the backhaul is usually good enough. GPS is just a distraction. Search the forums, we say this regularly to those who are struggling to configure it.

1 Like

Yup, it was directly connected so there will be no frying :laughing: but thanks for the advice.

But anyways, you might be right that the reception for the GPS is just bad soo, maybe I’ll be waiting for changes when this will be installed on a much higher place.

Thanks

OK, but nothing plugged in to the GPS antenna socket, which would be why it’s reporting Antenna Open.

As you now have it outside, why not just try the patch antenna. It may take half an hour to hear enough satellites and get started but even the very worst ceramic patches get there in the end.

I still wan to see solution to this, as soon a s the RSSI is to high the standard recommendation.

“5-10m with a brick wall or absorbing material in between”

@Johan_Scheepers, I think you are confusing threads here - maybe you mean the RAK tester thread?

owwwwwww waiit, you’re actually right, I do not have anything plugged in on the GPS antenna U.FL seat on the Pi Hat (I didn’t notice it until you pointed it out) :joy:

To confirm this, I’ve checked out the details for the WM1302 Pi Hat here and there it was, the GPS module is embedded IN the Pi Hat, not on the concentrator module :hugs: How did I miss that? :joy:

Screenshot 2023-03-16 191602

Anyway, to test this out, I’ve connected a patch antenna on the GPS U.FL seat.

And when I started the gateway once again, there it was working WITH GPS slowly connecting :hugs:

*** Packet Forwarder ***
Version: 2.1.0
*** SX1302 HAL library version info ***
Version: 2.1.0;
***
INFO: Little endian host
INFO: found configuration file global_conf.json.sx1250.EU868, parsing it
INFO: global_conf.json.sx1250.EU868 does contain a JSON object named SX130x_conf, parsing SX1302 parameters
INFO: com_type SPI, com_path /dev/spidev0.0, lorawan_public 1, clksrc 0, full_duplex 0
INFO: antenna_gain 5 dBi
INFO: Configuring legacy timestamp
INFO: Configuring Tx Gain LUT for rf_chain 0 with 16 indexes for sx1250
INFO: radio 0 enabled (type SX1250), center frequency 867500000, RSSI offset -215.399994, tx enabled 1, single input mode 0
INFO: radio 1 enabled (type SX1250), center frequency 868500000, RSSI offset -215.399994, tx enabled 0, single input mode 0
INFO: Lora multi-SF channel 0>  radio 1, IF -400000 Hz, 125 kHz bw, SF 5 to 12
INFO: Lora multi-SF channel 1>  radio 1, IF -200000 Hz, 125 kHz bw, SF 5 to 12
INFO: Lora multi-SF channel 2>  radio 1, IF 0 Hz, 125 kHz bw, SF 5 to 12
INFO: Lora multi-SF channel 3>  radio 0, IF -400000 Hz, 125 kHz bw, SF 5 to 12
INFO: Lora multi-SF channel 4>  radio 0, IF -200000 Hz, 125 kHz bw, SF 5 to 12
INFO: Lora multi-SF channel 5>  radio 0, IF 0 Hz, 125 kHz bw, SF 5 to 12
INFO: Lora multi-SF channel 6>  radio 0, IF 200000 Hz, 125 kHz bw, SF 5 to 12
INFO: Lora multi-SF channel 7>  radio 0, IF 400000 Hz, 125 kHz bw, SF 5 to 12
INFO: Lora std channel> radio 1, IF -200000 Hz, 250000 Hz bw, SF 7, Explicit header
INFO: FSK channel> radio 1, IF 300000 Hz, 125000 Hz bw, 50000 bps datarate
INFO: global_conf.json.sx1250.EU868 does contain a JSON object named gateway_conf, parsing gateway parameters
INFO: gateway MAC address is configured to C69201F5402DBD24
INFO: server hostname or IP address is configured to "au1.cloud.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: GPS serial port path is configured to "/dev/ttyS0"
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
INFO: fake GPS is disabled
INFO: Beaconing period is configured to 0 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: global_conf.json.sx1250.EU868 does contain a JSON object named debug_conf, parsing debug parameters
INFO: got 2 debug reference payload
INFO: reference payload ID 0 is 0xCAFE1234
INFO: reference payload ID 1 is 0xCAFE2345
INFO: setting debug log file name to loragw_hal.log
INFO: [main] TTY port /dev/ttyS0 open for GPS synchronization
CoreCell reset through GPIO17...
SX1261 reset through GPIO17...
CoreCell power enable through GPIO18...
CoreCell ADC reset through GPIO13...
Opening SPI communication interface
Note: chip version is 0x10 (v1.0)
INFO: using legacy timestamp
INFO: LoRa Service modem: configuring preamble size to 8 symbols
ARB: dual demodulation disabled for all SF
INFO: found temperature sensor on port 0x39
INFO: [main] concentrator started, packet can now be received
INFO: concentrator EUI: 0x0016c001ff13c8d9
WARNING: [gps] GPS out of sync, keeping previous time reference
WARNING: [gps] GPS out of sync, keeping previous time reference
INFO: [down] PULL_ACK received in 257 ms
INFO: [down] PULL_ACK received in 257 ms
INFO: [down] PULL_ACK received in 257 ms

##### 2023-03-16 11:29:02 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: 0 (0 bytes)
# PUSH_DATA acknowledged: 0.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): 30745080
# SX1302 counter (PPS):  30425991
# 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: 1 sec)
# no valid GPS coordinates available yet
### Concentrator temperature: 34 C ###
##### END #####

JSON up: {"stat":{"time":"2023-03-16 11:29:02 GMT","rxnb":0,"rxok":0,"rxfw":0,"ackr":0.0,"dwnb":0,"txnb":0,"temp":34.2}}
INFO: [down] PULL_ACK received in 257 ms
INFO: [down] PULL_ACK received in 257 ms

##### 2023-03-16 11:29:32 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: 0.00%
### [DOWNSTREAM] ###
# PULL_DATA sent: 3 (66.67% 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): 60755266
# SX1302 counter (PPS):  60425990
# 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: 1 sec)
# no valid GPS coordinates available yet
### Concentrator temperature: 34 C ###
##### END #####

JSON up: {"stat":{"time":"2023-03-16 11:29:32 GMT","rxnb":0,"rxok":0,"rxfw":0,"ackr":0.0,"dwnb":0,"txnb":0,"temp":34.1}}

##### 2023-03-16 11:29:36 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: 0.00%
### [DOWNSTREAM] ###
# PULL_DATA sent: 1 (0.00% acknowledged)
# PULL_RESP(onse) datagrams received: 0 (0 bytes)
# RF packets sent to concentrator: 0 (0 bytes)
# TX errors: 0
### SX1302 Status ###
^C# SX1302 counter (INST): 65058644
# SX1302 counter (PPS):  64425990
# 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: 1 sec)
# no valid GPS coordinates available yet
### Concentrator temperature: 35 C ###
##### END #####

Thank you thank you very much @descartes :hugs:

1 Like

Fresh pair of eyes for the win

1 Like

No not at all, looing for the solution to calculate location via RSSI

So, thread hijack then!

Start a new thread on the topic and I’ll point you to the Semtech calculator - after a forum search!

1 Like

Yes, Semtech, TOA and RSSI, not RSSI alone.

image

My suggestion of 11 days ago as to the problem was;

“GPS is not working properly (faulty antenna input) or is missing its antenna or is indoors and not pcking up GPS signals.”

3 Likes