# Prototype Pi gateway SX1302 issues

**URL:** <https://www.thethingsnetwork.org/forum/t/prototype-pi-gateway-sx1302-issues/41964>\
**Category:** Raspberry Pi Gateways\
**Created:** [December 6, 2020, 9:18pm UTC](https://www.thethingsnetwork.org/forum/t/prototype-pi-gateway-sx1302-issues/41964 "2020-12-06T21:18:17Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![manuelr](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/manuelr/32/36541_2.png) [@manuelr](https://www.thethingsnetwork.org/forum/u/manuelr)\
**Post date:** [December 6, 2020, 9:18pm UTC](https://www.thethingsnetwork.org/forum/t/prototype-pi-gateway-sx1302-issues/41964/1 "2020-12-06T21:18:17Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![cslorabox](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/cslorabox/32/35697_2.png) [@cslorabox](https://www.thethingsnetwork.org/forum/u/cslorabox)\
**Post date:** [December 6, 2020, 9:37pm UTC](https://www.thethingsnetwork.org/forum/t/prototype-pi-gateway-sx1302-issues/41964/2 "2020-12-06T21:37:47Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![TonySmith](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/tonysmith/32/46334_2.png) [@TonySmith](https://www.thethingsnetwork.org/forum/u/TonySmith)\
**Post date:** [December 6, 2020, 11:05pm UTC](https://www.thethingsnetwork.org/forum/t/prototype-pi-gateway-sx1302-issues/41964/3 "2020-12-06T23:05:56Z")

</div>

> [@manuelr](#):
>
> 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

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

> <https://github.com/JoToSystems/SX1302_UDP_Packet_Forwarder/blob/main/reset_lgw.sh>

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

---

<div class="post-metadata">

**Author:** ![manuelr](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/manuelr/32/36541_2.png) [@manuelr](https://www.thethingsnetwork.org/forum/u/manuelr)\
**Post date:** [December 7, 2020, 2:36pm UTC](https://www.thethingsnetwork.org/forum/t/prototype-pi-gateway-sx1302-issues/41964/4 "2020-12-07T14:36:11Z")

</div>

> [@TonySmith](#):
>
> ```auto
> 
> ```

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

---

<div class="post-metadata">

**Author:** ![cslorabox](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/cslorabox/32/35697_2.png) [@cslorabox](https://www.thethingsnetwork.org/forum/u/cslorabox)\
**Post date:** [December 7, 2020, 5:17pm UTC](https://www.thethingsnetwork.org/forum/t/prototype-pi-gateway-sx1302-issues/41964/5 "2020-12-07T17:17:36Z")

</div>

> [@manuelr](#):
>
> 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?

---

<div class="post-metadata">

**Author:** ![TonySmith](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/tonysmith/32/46334_2.png) [@TonySmith](https://www.thethingsnetwork.org/forum/u/TonySmith)\
**Post date:** [December 13, 2020, 4:55pm UTC](https://www.thethingsnetwork.org/forum/t/prototype-pi-gateway-sx1302-issues/41964/6 "2020-12-13T16:55:41Z")

</div>

> [@manuelr](#):
>
> Hi. I tried but it does not work.

Any luck in getting it working?

---

<div class="post-metadata">

**Author:** ![manuelr](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/manuelr/32/36541_2.png) [@manuelr](https://www.thethingsnetwork.org/forum/u/manuelr)\
**Post date:** [January 6, 2021, 6:36pm UTC](https://www.thethingsnetwork.org/forum/t/prototype-pi-gateway-sx1302-issues/41964/7 "2021-01-06T18:36:27Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![manuelr](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/manuelr/32/36541_2.png) [@manuelr](https://www.thethingsnetwork.org/forum/u/manuelr)\
**Post date:** [February 24, 2021, 2:16pm UTC](https://www.thethingsnetwork.org/forum/t/prototype-pi-gateway-sx1302-issues/41964/8 "2021-02-24T14:16:03Z")

</div>

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