Prototype Pi gateway SX1302 issues

Hi. I am with a prototype gateway based on sx1302 Semtech reference Designs and have some problems. When executing the package forwarder returns this error related to the SX1250:

pi@pigatewayvix:~/sx1302_hal/packet_forwarder $ ./lora_pkt_fwd
*** Packet Forwarder ***
Version: 1.0.5
*** SX1302 HAL library version info ***
Version: 1.0.5;


INFO: Little endian host
INFO: found configuration file global_conf.json, parsing it
INFO: global_conf.json does contain a JSON object named SX130x_conf, parsing SX1302 parameters
INFO: spidev_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 904300000, RSSI offset -215.399994, tx enabled 1, single input mode 0
INFO: radio 1 enabled (type SX1250), center frequency 905000000, RSSI offset -215.399994, tx enabled 0, single input mode 0
INFO: Lora multi-SF channel 0> radio 0, IF -400000 Hz, 125 kHz bw, SF 5 to 12
INFO: Lora multi-SF channel 1> radio 0, IF -200000 Hz, 125 kHz bw, SF 5 to 12
INFO: Lora multi-SF channel 2> radio 0, IF 0 Hz, 125 kHz bw, SF 5 to 12
INFO: Lora multi-SF channel 3> radio 0, IF 200000 Hz, 125 kHz bw, SF 5 to 12
INFO: Lora multi-SF channel 4> radio 1, IF -300000 Hz, 125 kHz bw, SF 5 to 12
INFO: Lora multi-SF channel 5> radio 1, IF -100000 Hz, 125 kHz bw, SF 5 to 12
INFO: Lora multi-SF channel 6> radio 1, IF 100000 Hz, 125 kHz bw, SF 5 to 12
INFO: Lora multi-SF channel 7> radio 1, IF 300000 Hz, 125 kHz bw, SF 5 to 12
INFO: Lora std channel> radio 0, IF 300000 Hz, 500000 Hz bw, SF 8, Explicit header
INFO: FSK channel 8 disabled
INFO: global_conf.json does contain a JSON object named gateway_conf, parsing gateway parameters
INFO: gateway MAC address is configured to AA555A0000000000
INFO: server hostname or IP address is configured to “localhost”
INFO: upstream port is configured to “1730”
INFO: downstream port is configured to “1730”
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: 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 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
WARNING: [main] impossible to open /dev/ttyS0 for GPS sync (check permissions)
CoreCell reset through GPIO25…
CoreCell power enable through GPIO17…
ERROR: Failed to set SX1250_0 in STANDBY_XOSC mode
ERROR: Failed to set SX1250_1 in STANDBY_XOSC mode
ERROR: Failed to load fw
ERROR: [main] failed to start the concentrator

Please provide more details of the setup.

Is it in fact a RAK2287, or some other spin based on the Semtech design.

What is the host system, and how is it connected? What have you done for select and reset signals?

Does the SX1302 code have test routines the way the SX1301 code does? If so you should try those first; they may not all work but some should.

Also is your gateway configuration correct for the actual gateway build? In the SX1301 there were choices for the clock master radio, something like that may be the case here, too.

If it’s RAK’s card, can you try it on a pi with RAK’s wiring noand RAK’s software?

What are you doing for power supply? Have you checked for brownout at startup?

Looking at these errors I suspect the chips are not being reset

Making a huge number of assumptions about your hardware, I would start by changing the reset pin from Pin25 to Pin17. To do this edit the file reset_lgw.sh as below

SX1302_RESET_PIN=17

Also you don’t need the Power Enable as the RAK2287 is permanently powered.

You can see my version of the reset file at

PS, I’m not into Github and so have no idea how to link to existing Semtech code.

1 Like

Hi. I tried but it does not work. Just to be clear I am not using a RAK2287 but I am using a customized Gateway with the sx1302 and Raspberry pi 4

That’s going to make meaningful and technically specific answers to yesterday’s many questions even more important.

In addition to you needing to answer what was already asked, you’re also going to have to be specific about what exact concentrator this is, and what if any confirmation you have that anyone else has been able to make it work. In what situation did they use it - what host, host wiring, and software?

1 Like

Any luck in getting it working?

No yet. I am waiting for the fabrication of the new board. I fixed some Power bugs and I will try to execute that HAL files as soon as I receive the PCB

Hi. My new board works, I solved some power and footprint errors.

2 Likes