I’m trying to run the “single_chan_pkt_fwd” app on an RPI 3 with a LoRa/GPS HAT attached.
When I start the app, the SX1276 is detected, but the gateway ID is zeroed out.
SX1276 detected, starting.
Gateway ID: 00:00:00:ff:ff:00:00:00
Listening at SF7 on 915.000000 Mhz.
Is this a defective board? I’ve seen some info on the internet noting adding a solder bridge between pins 22 and 24 on the board. Required? I’m using Ver 1.4 of the HAT
Thanks All
Dan
Hi there geraldinebc ,
Lot’s of issues here concerning the Dragino LoRa/GPS Hat.
The User Manual referenced in the WIKI for this board specifies a packet forwarding software for this board called “dual_chan_pkt_fwd”. This is available from the GitHub/Dragino repository. Unfortunately, this fails. I think it fails because this Dragino LoRa/GPS is said to be a single channel device. Therefore, I found a “single_chan_pkt_fwd” app that may work. It’s from [m2mlorawan] (https://github.com/m2mlorawan) (https://github.com/m2mlorawan/single_chan_pkt_fwd). Now to the issue of the gateway ID. Looking at the code, the Gateway id is derived from “eth0”, the hardware MAC address for the ethernet controller on most RPI boards. Since I’m using a RPI3+ board, which has no ethernet interface, I get zeros for this value. I changed the ‘eth0’ reference to ‘wlan0’ and acquired the MAC address from the wifi interface. The Things Network only needs a unique number for the Gateway ID and this will do it. It appears the board works, but I won’t be sure till a build a node to send data to it. Hope that helps.
Here’s some follow-up information on the LoRa/GPS Gateway.
The gateway finally works. The big issue I had to contend with was the set frequency. All documentation I could find says to use 915000000 setting, in the global_conf.json file, as the frequency for the single_chan_pkt_fwd app. TTN says to use Band 2. See below for the TTN frequency bands.
or see https://www.thethingsnetwork.org/docs/lorawan/frequency-plans.html#us902-928
I set my gateway frequency to 903900000. Then I set my nodes to transmit on only this band. Now everything is working.
Used in USA, Canada and South America
Uplink:
903.9 - SF7BW125 to SF10BW125
904.1 - SF7BW125 to SF10BW125
904.3 - SF7BW125 to SF10BW125
904.5 - SF7BW125 to SF10BW125
904.7 - SF7BW125 to SF10BW125
904.9 - SF7BW125 to SF10BW125
905.1 - SF7BW125 to SF10BW125
905.3 - SF7BW125 to SF10BW125
904.6 - SF8BW500
if your going to use this board to connect to TTN then only use one of the Band 2 channels and if you are using the Arduino LMIC Library, set the transmit channel to the channel of the Single_Channel Gateway!