Setting GNSS Device Path to GPSd?

Wanting to connect an external Ublox GPS to my gateway.

I have GPSd installed and configured and am getting valid GPS readings when connecting xGPS.

The 4.4.3 Concentratord release announcement says that this works " If GPSd has been configured (e.g. gnss_dev_path="gpsd://localhost:2947")"

But where do you actually set this line? Tried setting it in the overall Concentratord UCI to no avail. Do you have to set the global model flag in a particular way?

Thank You

It is under [gateway] in the config template.

3 Likes

Please note that this might not 100% work as expected as you also need to wire the PPS signal from the GNSS module to the SX1301/2/3 module.

Is this something you can set through UCI? That’s not a directory I have been able to reach.

This is how I have it set on my machine and it does not appear to be working.

The RAK7289v2 Gateway OS image used Gpsd, see this config:

Again, this might not work in your case as with an external GPS module the PPS signal won’t be wired to the SX130X PPS pin.

I have developed a new highly cost and power efficient solution for a ChirpStack compatible Gateway. Bill of components is about 100€ (here in Finland, including VAT and customs duty). This gateway has build-in GPS module. And yes, the PPS signal is wired to SX1303 chip. Gateway is powered by using PoE.

Fine timestamping seems to work with ChirpStack OK (used by geolocation resolver).

The project is in a very early stage and this new gateway solution has been running on testbed about couple days.

There is still work to be done. Time will tell if this solution works. But as I mentioned earlier, this is a very promising solution.

I’ll share more about this project if no major issues arise during the test period.

The first diagram shows a general overview of the components used in the solution.

1 Like

Could you share the way to set the HT1303 in the chirpstak concentratord ?

Hi,

Yes, I’ll share the complete package information for this new gateway. I’ll publish a repository concerning the GLStation hardware and software solutions. However, give me a little time to finish and polish the repository and the solution to make it good enough for publication.

I can already tell you that the configuration works well and is stable. The configuration is based on customized Alpine Linux firmware, and this base station now has the following properties:

  • Ethernet + POE
  • WLAN
  • GPS
  • Experimental Bluetooth GATT server for configuration purposes of the device
  • Built-in ChirpStack concentrator (with fine timestamps) and MQTT-forwarder

And that’s not all. I also have an experimental solution for 3D geolocation tracking based on Fine Timestamp and TDoA. It is capable of tracing LoRa sensors without GPS (GLSensor tracker + GLSensor3D). I’ll publish information about these ideas later.

I have also designed a simply adapter pcb board for connecting MCU and HAT board together.

Adapter_pic

And there is experimental Bluetooth utility which help you find GLStation server after the first boot if it configured to use dynamic DHCP IP addresses. Utility tell you how to get the very first SSH connection to the server.

A mock version of the BT browser utility:

SSH-connection for the setup and admin tasks:

Hi,

Thank you for your answer. I’ll waiting your publish. Meanwhile i appreciate if you could guide me with the settings in concentratord to set the HT1303 (if this is possible). I couldn’t make this work.

Hi Juan,

My intention is to publish this concept what I have done for all parties who are interested in this new idea. It is much easier at the begin to do one guide for all than to advise everyone individually. I kindly ask for a little patience with this matter.

But yes, of course I’ll help you to get started.

Can you be more specific about what issues are problematic? There is lot of small details to work out If you refer that hw/software stack on the simplified diagram above. In that case, please wait a little for the release of this solution.

If the configuration/setup of the Chirpstack concentratord is only problem then answer is a very simple. You can use a basic configuration to starting point. The following lines are essential If you are using HT1303 card with USB interface:


sx1303.toml

.
.
.
  # Gateway vendor / model.
  #
  # This configures various vendor and model specific settings.
  model="semtech_sx1302css868gw1"

  # Gateway vendor / model flags.
  #
  # Flag can be used to configure additional vendor / model features. The
  # following flags can be used:
  #
  #   Global flags:
  #     GNSS - Enable GNSS / GPS support
  #     USB  - Use USB for concentrator communication (default is SPI)
  model_flags=["USB","GNSS"]
  
  # Device and pin configuration.
  # !!! Need GNNS model flag to be enabled --> model_flags=["USB","GNSS"]
  gnss_dev_path="gpsd://localhost:2947"
  # com_dev_path="/dev/ttyACM0"

.
.
.

TIP: The GPS device has a serial port interface that needs to be connected to the serial port of the MCU. The MCU should be able to run the Linux GPSD process.


Stacked construction of the MCU + HAT.


Here is GitHub link to the first “mock” version of the GLStation guide and firmware images.

I have built five GLStation gateway test units and so far everything seems to work as expected…

–
Cheers