Dragino PG1302 not working on Raspbian 11 bullseye

Hello,

I try to run the Dragino PG1302 EU868 Gateway HAT on a Raspberry PI 3/4 with Raspbian 11 (bullseye).
I use Draginos own forwarder “draginofwd.deb” as described here: PG1302 - LoRaWAN Concentrator User Manual - DRAGINO
The concentrator fails to start, see logs below.

Does anyone run this Gateway HAT successfully on latest Raspbian11?

The Hardware works, the dedicated gateway Image from Dragino works fine, but I want to use the latest OS version and install the Gateway software on top.

Log:

Jan 12 13:21:51 pigw systemd[1]: Started dragino packet forwarder.
Jan 12 13:21:52 pigw fwd[758]: *** Dragino Packet Forwarder for Lora Gateway ***
Jan 12 13:21:52 pigw fwd[758]: *** LoRa concentrator HAL library version info Release:2022-06-07 01:36:41,  Version:2.0.6 ***
Jan 12 13:21:52 pigw fwd[758]: *** LoRa radio type of board is: sx1302 ***
Jan 12 13:21:52 pigw fwd[758]: *** Platform bytes endian is: "LITTLEENDIAN" ***
Jan 12 13:21:52 pigw fwd[758]: WARNING~ [db] Error executing SQL (SELECT devaddr, appskey, nwkskey FROM a.abpdevs): no such table: a.abpdevs
Jan 12 13:21:52 pigw fwd[758]: INFO~ [LoadCFG] /etc/lora/global_conf.json does contain a JSON object named SX130x_conf, parsing SX130x parameters
Jan 12 13:21:52 pigw fwd[758]: INFO~ [LoadCFG] spidev_path /dev/spidev0.0, lorawan_public 1, clksrc 0, full_duplex 0
Jan 12 13:21:52 pigw fwd[758]: lgw_board_setconf:477: Note: board configuration: com_type: SPI, com_path: /dev/spidev0.0, lorawan_public:1, clksrc:0, full_duplex:0
Jan 12 13:21:52 pigw fwd[758]: INFO~ [LoadCFG] antenna_gain 0 dBi
Jan 12 13:21:52 pigw fwd[758]: INFO~ [LoadCFG] /etc/lora/global_conf.json does not contain a JSON object for fine timestamp
Jan 12 13:21:52 pigw fwd[758]: INFO~ [LoadCFG] no configuration for SX1261
Jan 12 13:21:52 pigw fwd[758]: INFO~ [LoadCFG] Configuring Tx Gain LUT for rf_chain 0 with 16 indexes for sx1250
Jan 12 13:21:52 pigw fwd[758]: INFO~ [LoadCFG] radio 0 enabled (type SX1250), center frequency 867500000, RSSI offset -215.399994, tx enabled 1, single input mode 0
Jan 12 13:21:52 pigw fwd[758]: lgw_rxrf_setconf:536: Note: rf_chain 0 configuration; en:1 freq:867500000 rssi_offset:-215.399994 radio_type:5 tx_enable:1 single_input_mode:0
Jan 12 13:21:52 pigw fwd[758]: INFO~ [LoadCFG] radio 1 enabled (type SX1250), center frequency 868500000, RSSI offset -215.399994, tx enabled 0, single input mode 0
Jan 12 13:21:52 pigw fwd[758]: lgw_rxrf_setconf:536: Note: rf_chain 1 configuration; en:1 freq:868500000 rssi_offset:-215.399994 radio_type:5 tx_enable:0 single_input_mode:0
Jan 12 13:21:52 pigw fwd[758]: INFO~ [LoadCFG] no configuration for LoRa multi-SF spreading factors enabling
Jan 12 13:21:52 pigw fwd[758]: INFO~ [LoadCFG] Lora multi-SF channel 0>  radio 1, IF -400000 Hz, 125 kHz bw, SF 5 to 12
Jan 12 13:21:52 pigw fwd[758]: lgw_rxif_setconf:661: Note: LoRa 'multi' if_chain 0 configuration; en:1 freq:-400000
Jan 12 13:21:52 pigw fwd[758]: INFO~ [LoadCFG] Lora multi-SF channel 1>  radio 1, IF -200000 Hz, 125 kHz bw, SF 5 to 12
Jan 12 13:21:52 pigw fwd[758]: lgw_rxif_setconf:661: Note: LoRa 'multi' if_chain 1 configuration; en:1 freq:-200000
Jan 12 13:21:52 pigw fwd[758]: INFO~ [LoadCFG] Lora multi-SF channel 2>  radio 1, IF 0 Hz, 125 kHz bw, SF 5 to 12
Jan 12 13:21:52 pigw fwd[758]: lgw_rxif_setconf:661: Note: LoRa 'multi' if_chain 2 configuration; en:1 freq:0
Jan 12 13:21:52 pigw fwd[758]: INFO~ [LoadCFG] Lora multi-SF channel 3>  radio 0, IF -400000 Hz, 125 kHz bw, SF 5 to 12
Jan 12 13:21:52 pigw fwd[758]: lgw_rxif_setconf:661: Note: LoRa 'multi' if_chain 3 configuration; en:1 freq:-400000
Jan 12 13:21:52 pigw fwd[758]: INFO~ [LoadCFG] Lora multi-SF channel 4>  radio 0, IF -200000 Hz, 125 kHz bw, SF 5 to 12
Jan 12 13:21:52 pigw fwd[758]: lgw_rxif_setconf:661: Note: LoRa 'multi' if_chain 4 configuration; en:1 freq:-200000
Jan 12 13:21:52 pigw fwd[758]: INFO~ [LoadCFG] Lora multi-SF channel 5>  radio 0, IF 0 Hz, 125 kHz bw, SF 5 to 12
Jan 12 13:21:52 pigw fwd[758]: lgw_rxif_setconf:661: Note: LoRa 'multi' if_chain 5 configuration; en:1 freq:0
Jan 12 13:21:52 pigw fwd[758]: INFO~ [LoadCFG] Lora multi-SF channel 6>  radio 0, IF 200000 Hz, 125 kHz bw, SF 5 to 12
Jan 12 13:21:52 pigw fwd[758]: lgw_rxif_setconf:661: Note: LoRa 'multi' if_chain 6 configuration; en:1 freq:200000
Jan 12 13:21:52 pigw fwd[758]: INFO~ [LoadCFG] Lora multi-SF channel 7>  radio 0, IF 400000 Hz, 125 kHz bw, SF 5 to 12
Jan 12 13:21:52 pigw fwd[758]: lgw_rxif_setconf:661: Note: LoRa 'multi' if_chain 7 configuration; en:1 freq:400000
Jan 12 13:21:52 pigw fwd[758]: INFO~ [LoadCFG] Lora std channel> radio 1, IF -200000 Hz, 250000 Hz bw, SF 7, Explicit header
Jan 12 13:21:52 pigw fwd[758]: lgw_rxif_setconf:634: Note: LoRa 'std' if_chain 8 configuration; en:1 freq:-200000 bw:5 dr:7
Jan 12 13:21:52 pigw fwd[758]: INFO~ [LoadCFG] FSK channel 8 disabled
Jan 12 13:21:52 pigw fwd[758]: lgw_rxif_setconf:565: Note: if_chain 9 disabled
Jan 12 13:21:52 pigw fwd[758]: INFO~ [LoadCFG] /etc/lora/local_conf.json does contain a JSON object named gateway_conf, parsing gateway parameters
Jan 12 13:21:52 pigw fwd[758]: INFO~ [LoadCFG] gateway MAC address is configured to A84041FDFE10758A
Jan 12 13:21:52 pigw fwd[758]: INFO~ [LoadCFG] mac_decode is false
Jan 12 13:21:52 pigw fwd[758]: INFO~ [LoadCFG] mac2db is false
Jan 12 13:21:52 pigw fwd[758]: INFO~ [LoadCFG] mac2file is false
Jan 12 13:21:52 pigw fwd[758]: INFO~ [LoadCFG] custom_downlink is false
Jan 12 13:21:52 pigw fwd[758]: INFO~ [LoadCFG] LOG open LOG_INFO
Jan 12 13:21:52 pigw fwd[758]: INFO~ [LoadCFG] LOG open LOG_PKT
Jan 12 13:21:52 pigw fwd[758]: INFO~ [LoadCFG] LOG open LOG_WARNING
Jan 12 13:21:52 pigw fwd[758]: INFO~ [LoadCFG] LOG open LOG_ERROR
Jan 12 13:21:52 pigw fwd[758]: INFO~ [LoadCFG] LOG close LOG_REPORT
Jan 12 13:21:52 pigw fwd[758]: INFO~ [LoadCFG] LOG close LOG_DEBUG
Jan 12 13:21:52 pigw fwd[758]: INFO~ [LoadCFG] LOG close LOG_JIT
Jan 12 13:21:52 pigw fwd[758]: INFO~ [LoadCFG] LOG close LOG_BEACON
Jan 12 13:21:52 pigw fwd[758]: INFO~ [LoadCFG] LOG close LOG_TIMERSYNC
Jan 12 13:21:52 pigw fwd[758]: INFO~ [LoadCFG] LOG close LOG_MEM
Jan 12 13:21:52 pigw fwd[758]: INFO~ [LoadCFG] ghost_host is configured to "localhost"
Jan 12 13:21:52 pigw fwd[758]: INFO~ [LoadCFG] ghost_port is configured to "0"
Jan 12 13:21:52 pigw fwd[758]: INFO~ [LoadCFG] Platform is configured to "SX1302"
Jan 12 13:21:54 pigw fwd[758]: INFO~ [LoadCFG] GW description: "Dragin
Jan 12 13:21:54 pigw fwd[761]: CoreCell reset through GPIO23...
Jan 12 13:21:59 pigw fwd[774]: CoreCell reset through GPIO23...
Jan 12 13:22:02 pigw fwd[758]: o LoRaWAN Gateway"
Jan 12 13:22:02 pigw fwd[758]: INFO~ [LoadCFG] Reference latitude is configured to 53.000000 deg
Jan 12 13:22:02 pigw fwd[758]: INFO~ [LoadCFG] Reference longitude is configured to 10.000000 deg
Jan 12 13:22:02 pigw fwd[758]: INFO~ [LoadCFG] Reference altitude is configured to 450 meters
Jan 12 13:22:02 pigw fwd[758]: INFO~ [LoadCFG] Beaconing period is configured to 0 seconds
Jan 12 13:22:02 pigw fwd[758]: INFO~ [LoadCFG] Beaconing signal will be emitted at 869525000 Hz
Jan 12 13:22:02 pigw fwd[758]: INFO~ [LoadCFG] Beaconing datarate is set to SF9
Jan 12 13:22:02 pigw fwd[758]: INFO~ [LoadCFG] Beaconing modulation bandwidth is set to 125000Hz
Jan 12 13:22:02 pigw fwd[758]: INFO~ [LoadCFG] Beaconing TX power is set to 14dBm
Jan 12 13:22:02 pigw fwd[758]: INFO~ [LoadCFG] Beaconing information descriptor is set to 0
Jan 12 13:22:02 pigw fwd[758]: INFO~ [LoadCFG] Found 1 servers in array.
Jan 12 13:22:02 pigw fwd[758]: INFO~ [LoadCFG] Found a server configure, name is configure to "nametest"
Jan 12 13:22:02 pigw fwd[758]: INFO~ [LoadCFG][nametest] server address is configure to "eu1.cloud.thethings.network"
Jan 12 13:22:02 pigw fwd[758]: INFO~ [LoadCFG][nametest] serv_port_up is configure to "1700"
Jan 12 13:22:02 pigw fwd[758]: INFO~ [LoadCFG][nametest] serv_port_down is configure to "1700"
Jan 12 13:22:02 pigw fwd[758]: INFO~ [LoadCFG][nametest] stat_interval is configure to "30"
Jan 12 13:22:02 pigw fwd[758]: INFO~ [LoadCFG][nametest] packets received with a valid CRC will be forwarded
Jan 12 13:22:02 pigw fwd[758]: INFO~ [LoadCFG][nametest] packets received with a CRC error will NOT be forwarded
Jan 12 13:22:02 pigw fwd[758]: INFO~ [LoadCFG][nametest] packets received with a no CRC will NOT be forwarded
Jan 12 13:22:02 pigw fwd[758]: INFO~ [LoadCFG][nametest] packets received with a fport filter, level(0)
Jan 12 13:22:02 pigw fwd[758]: INFO~ [LoadCFG][nametest] packets received with a devaddr filter, level(0)
Jan 12 13:22:02 pigw fwd[758]: INFO~ [LoadCFG] /etc/lora/local_conf.json does contain a JSON object named debug_conf, parsing debug parameters
Jan 12 13:22:02 pigw fwd[758]: INFO~ [LoadCFG] got 2 debug reference payload
Jan 12 13:22:02 pigw fwd[758]: INFO~ [LoadCFG] reference payload ID 0 is 0xCAFE1234
Jan 12 13:22:02 pigw fwd[758]: INFO~ [LoadCFG] reference payload ID 1 is 0xCAFE2345
Jan 12 13:22:02 pigw fwd[758]: INFO~ [LoadCFG] setting debug log file name to loragw_hal.log
Jan 12 13:22:02 pigw fwd[758]: INFO~ [main] Starting the concentrator
Jan 12 13:22:02 pigw fwd[758]: lgw_start:850:  --- IN
Jan 12 13:22:02 pigw fwd[758]: Opening SPI communication interface
Jan 12 13:22:02 pigw fwd[758]: Note: chip version is 0x10 (v1.0)
Jan 12 13:22:02 pigw fwd[758]: INFO: using legacy timestamp
Jan 12 13:22:02 pigw fwd[758]: INFO: LoRa Service modem: configuring preamble size to 8 symbols
Jan 12 13:22:02 pigw fwd[758]: Loading AGC fw for sx1250
Jan 12 13:22:02 pigw fwd[758]: Loading ARB fw
Jan 12 13:22:02 pigw fwd[758]: ARB: dual demodulation disabled for all SF
Jan 12 13:22:02 pigw fwd[758]: ERROR: failed to open I2C for temperature sensor on port 0x39
Jan 12 13:22:02 pigw fwd[758]: ERROR~ [main] failed to start the concentrator
Jan 12 13:22:03 pigw systemd[1]: draginofwd.service: Main process exited, code=exited, status=1/FAILURE
Jan 12 13:22:03 pigw systemd[1]: draginofwd.service: Failed with result 'exit-code'.
Jan 12 13:22:33 pigw systemd[1]: draginofwd.service: Scheduled restart job, restart counter is at 1.
Jan 12 13:22:33 pigw systemd[1]: Stopped dragino packet forwarder.

OS Version /etc/os-release

PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

Maybe I can use the original Semtech forwarder from GitHub - Lora-net/packet_forwarder: A LoRa packet forwarder is a program running on the host of a LoRa gateway that forwards RF packets receive by the concentrator to a server through a IP/UDP link, and emits RF packets that are sent by the server. ? I tried, but no success so far.

Any Idea how to debug is welcome.

Best regards, flystack.

You might want to ask this question through the Dragino support channels :slight_smile:

While this is not a direct answer to your question, I would like to let you know that probably next month I’ll receive a PG102 so that I can integrate it in the ChirpStack Gateway OS :slight_smile:

I asked the Dragino Support, no working answer yet.
My hardware is ok, because it works with the Dragino GW Image.
But I want to start on the latest Raspberry OS and install a lot of other stuff, so prebuild Images are no solution.

Please let me know, if you have a working config I can try.

Hello @flystack, have you managed to get the PG1302 working on your end? I’m getting the same error that you had.

Kind regards,
Ameer

Please note that support for the PG1302 has been integrated in the latest ChirpStack Gateway OS :slight_smile:

https://www.chirpstack.io/docs/chirpstack-gateway-os/changelog.html#v411

1 Like

I got the board working somehow with this Software, but not with dragono’s own “draginofwd” software, because it does not work for me on debian 11 and Raspberry 3 and 4.

Thanks also for adding support to ChirpStack Gateway OS, but unfortunately this is no option for me. I need a full Debian because I want to install additional things.

I also see that the support is added in the chirpstack-concentratord, but I did not get it working as standalone yet. Is there some instruction how to compile this for Raspberry/Debian11? Or will there be binaries or .deb packages for easy installartion?