# Waveshare SX1302 LoRaWAN Gateway Pi HAT + Module Issues

**URL:** <https://forum.core-electronics.com.au/t/waveshare-sx1302-lorawan-gateway-pi-hat-module-issues/17438>\
**Category:** Wireless/RF\
**Created:** [28 June 2023 04:41 UTC](https://forum.core-electronics.com.au/t/waveshare-sx1302-lorawan-gateway-pi-hat-module-issues/17438 "2023-06-28T04:41:33Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris211874](https://avatars.discourse-cdn.com/v4/letter/c/b38774/32.png) [@Chris211874](https://forum.core-electronics.com.au/u/Chris211874)\
**Post date:** [28 June 2023 04:41 UTC](https://forum.core-electronics.com.au/t/waveshare-sx1302-lorawan-gateway-pi-hat-module-issues/17438/1 "2023-06-28T04:41:33Z")

</div>

Hi,

Ive just purchased a SX1303 915M LoRaWAN Gateway Module+HAT for Raspberry Pi and trying to get it up and running. Im having an issue with either Pin configuration, or a faulty product and would appreciate some assistance. Im following the guide here: [SX1302 LoRaWAN Gateway HAT - Waveshare Wiki](https://www.waveshare.com/wiki/SX1302_LoRaWAN_Gateway_HAT) as well as every other piece of information that sounds even vaguely related.

When i run the ./chip\_id which in turn kicks off reset\_lgw.sh - i get the following:

CoreCell reset through GPIO23…  
SX1261 reset through GPIO17…  
CoreCell power enable through GPIO18…  
CoreCell ADC reset through GPIO13…  
Opening SPI communication interface Note: chip version is 0x00 (v0.0)  
ERROR: Failed to set SX1250\_0 in STANDBY\_RC mode  
ERROR: failed to setup radio 0  
ERROR: failed to start the gateway

Two things stand out here, the chip version, and the GPIO Pin configuration. Most posts ive seen with a similar error indicate the reset script is initialise the wrong pins. Your page and Waveshares have slightly different diagrams, so im really not sure.

Any help on this would be appreciated.

---

<div class="post-metadata">

**Author:** ![Trent5487676](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/trent5487676/32/4583_2.png) [@Trent5487676](https://forum.core-electronics.com.au/u/Trent5487676)\
**Post date:** [28 June 2023 05:30 UTC](https://forum.core-electronics.com.au/t/waveshare-sx1302-lorawan-gateway-pi-hat-module-issues/17438/2 "2023-06-28T05:30:47Z")

</div>

Hi Chris,

I’ve had a look through the pinouts on our site and the documentation on Waveshare’s wiki and I think I might have a lead on what those discrepancies are caused by.

Waveshare make both an SX1302 and SX1303 version of this device, both in a module and HAT form factor. Since there are something like 8 versions of the device all up with slightly different firmware they all refer back to the same product wiki for documentation.

I think the installation instructions may have been provided for the SX1302 version of the product, without the explicit instructions to install a different library to suit the different pinout of the SX1303 version of the hardware.  
Looking at the github it does say this Hardware Abstraction Layer library does suit both the SX1302 and SX1303 chipsets, but since our physical hardware is using different pinouts between different module versions I’d say something in the pin mapping has gone wrong.

> **[GitHub - Lora-net/sx1302\_hal: SX1302/SX1303 Hardware Abstraction Layer and...](https://github.com/Lora-net/sx1302_hal)**
>
> SX1302/SX1303 Hardware Abstraction Layer and Tools (packet forwarder...) - GitHub - Lora-net/sx1302\_hal: SX1302/SX1303 Hardware Abstraction Layer and Tools (packet forwarder...)

EDIT: Before we go too deep down the rabbit hole here can you please shoot us a photo of your setup and confirm for me how you went with the sign up to TTN and login step just before the ./chip\_id step which has generated the error message you’re getting?

---

<div class="post-metadata">

**Author:** ![Chris211874](https://avatars.discourse-cdn.com/v4/letter/c/b38774/32.png) [@Chris211874](https://forum.core-electronics.com.au/u/Chris211874)\
**Post date:** [28 June 2023 06:39 UTC](https://forum.core-electronics.com.au/t/waveshare-sx1302-lorawan-gateway-pi-hat-module-issues/17438/3 "2023-06-28T06:39:00Z")

</div>

Thanks Trent,

I tend to agree. Would you like pics of the physical setup? If so thats easy but simply the Raspberry Pi 4 4GB (CE06426) and the Waveshare HAT/Module.

The TTN part isnt influencing any of the setup that’s failing, as i cannot even get the EUI for the LNS configuration. However, I wont be using TTN i’ll be using AWS IoT Core for LoRaWAN.

You can see a lot of folks run into similar issues using the RAK setup, and their fixes are around the Pin configuration in the reset script. Ive adjusted that script to a couple of potential variations, but not had any positive outcome as yet. The wiki on Waveshare that your product page links to is missing something as it doesnt have RESET for the SX126x

---

<div class="post-metadata">

**Author:** ![Chris211874](https://avatars.discourse-cdn.com/v4/letter/c/b38774/32.png) [@Chris211874](https://forum.core-electronics.com.au/u/Chris211874)\
**Post date:** [29 June 2023 03:55 UTC](https://forum.core-electronics.com.au/t/waveshare-sx1302-lorawan-gateway-pi-hat-module-issues/17438/4 "2023-06-29T03:55:48Z")

</div>

Hi Trent,

Any word on the Pinout config to get this hardware working with the SX1303?

---

<div class="post-metadata">

**Author:** ![Trent5487676](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/trent5487676/32/4583_2.png) [@Trent5487676](https://forum.core-electronics.com.au/u/Trent5487676)\
**Post date:** [30 June 2023 06:30 UTC](https://forum.core-electronics.com.au/t/waveshare-sx1302-lorawan-gateway-pi-hat-module-issues/17438/5 "2023-06-30T06:30:07Z")

</div>

Hi Chris,

A quick photo of your setup I think it worth the time, just so we can have a second set of fresh eyes look over it.  
Ideally we can catch a small simple issue or rule those out before we explore some more complex fault possibilities.

---

<div class="post-metadata">

**Author:** ![Jon208648](https://avatars.discourse-cdn.com/v4/letter/j/f6c823/32.png) [@Jon208648](https://forum.core-electronics.com.au/u/Jon208648)\
**Post date:** [2 December 2023 02:51 UTC](https://forum.core-electronics.com.au/t/waveshare-sx1302-lorawan-gateway-pi-hat-module-issues/17438/6 "2023-12-02T02:51:05Z")

</div>

Hi,  
I’ve also just bought the SX1303 915M LoRaWAN Gateway Module+HAT for Raspberry Pi and am having exactly the same problem. The physical set up is just the whole kit connected to a RPi4 with ethernet and power. Not sure where to go with this now.

 ![20231202_124038](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/d/d32b3e0b88a984103a606d1eeaba58ce4b17dfc0.jpeg)

---

<div class="post-metadata">

**Author:** ![James](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/james/32/4400_2.png) [@James](https://forum.core-electronics.com.au/u/James)\
**Post date:** [5 December 2023 05:54 UTC](https://forum.core-electronics.com.au/t/waveshare-sx1302-lorawan-gateway-pi-hat-module-issues/17438/7 "2023-12-05T05:54:41Z")

</div>

Hi Jon,

Could you send some screenshots of your terminal so we can get a feel for what you are doing and where the errors are? As well as some info as to the setup steps you followed?

If nobody is able to assist on this one I’ll have some time on Thursday to sit down and replicate your setup to see how far I can get.

---

<div class="post-metadata">

**Author:** ![Jon208648](https://avatars.discourse-cdn.com/v4/letter/j/f6c823/32.png) [@Jon208648](https://forum.core-electronics.com.au/u/Jon208648)\
**Post date:** [5 December 2023 20:45 UTC](https://forum.core-electronics.com.au/t/waveshare-sx1302-lorawan-gateway-pi-hat-module-issues/17438/8 "2023-12-05T20:45:13Z")

</div>

Good Morning,

Thanks for agreeing to help me out with this project, very keen to get the LoRa Gateway working for other project and other users.

Set up is the above kit put on a Raspberry Pi 4 (8G) with an ethernet connection. see picture

 ![](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/4/4091be82e015a294342d84a7796b97811e1c62b1.jpeg)  
I followed the link on your web site to [https://www.waveshare.com/wiki/SX1302\_LoRaWAN\_Gateway\_HAT](https://www.waveshare.com/wiki/SX1302_LoRaWAN_Gateway_HAT) and ran the following commands;

```auto

sudo apt update
sudo apt install git
cd ~/Documents/
git clone https://github.com/Lora-net/sx1302_hal.git
cd sx1302_hal
make clean all
make all
cp tools/reset_lgw.sh util_chip_id/
cp tools/reset_lgw.sh packet_forwarder/

```

all worked OK

then ran the following to get the sx1302 EUI to register it as a gateway;

```auto

# get sx1302 EUI
cd ~/Documents/sx1302_hal/util_chip_id/
./chip_id 

```

and got this output -

jon@raspberrypi:~/Documents/sx1302\_hal/util\_chip\_id $ ./chip\_id  
CoreCell reset through GPIO23…  
SX1261 reset through GPIO23…  
CoreCell power enable through GPIO18…  
CoreCell ADC reset through GPIO13…  
Opening SPI communication interface  
Note: chip version is 0x00 (v0.0)  
ERROR: Failed to set SX1250\_0 in STANDBY\_RC mode  
ERROR: failed to setup radio 0  
ERROR: failed to start the gateway

I notice this is the same out as someone else got in the forum but not quite sure what the solution was. Any help much appreciated.

Kind Regards,

Jon Potter

---

<div class="post-metadata">

**Author:** ![Michael](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/michael/32/3545_2.png) [@Michael](https://forum.core-electronics.com.au/u/Michael)\
**Post date:** [6 December 2023 01:02 UTC](https://forum.core-electronics.com.au/t/waveshare-sx1302-lorawan-gateway-pi-hat-module-issues/17438/9 "2023-12-06T01:02:17Z")

</div>

Hi @Jon208648 - just as a sanity check: do you have the SPI peripheral enabled for the RPi?  
Access this through the Raspberry Pi Configuration menu from the desktop or;

If you are using a terminal, you will need to:

1. Run `sudo raspi-config`.
2. Use the down arrow to select `5 Interfacing Options`
3. Arrow down to `P4 SPI`.
4. Select `yes` when it asks you to enable SPI,
5. Also select `yes` if it asks about automatically loading the kernel module.
6. Use the right arrow to select the `<Finish>` button.
7. Select `yes` when it asks to reboot.

![image](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/c/c8c54cdea855963926ff23e8422c850b15c3063d.png)

---

<div class="post-metadata">

**Author:** ![Jon208648](https://avatars.discourse-cdn.com/v4/letter/j/f6c823/32.png) [@Jon208648](https://forum.core-electronics.com.au/u/Jon208648)\
**Post date:** [6 December 2023 02:31 UTC](https://forum.core-electronics.com.au/t/waveshare-sx1302-lorawan-gateway-pi-hat-module-issues/17438/10 "2023-12-06T02:31:25Z")

</div>

Hi Michael,

Yes, SPI interface enabled - same result unfortunately.

Regards,

Jon

---

<div class="post-metadata">

**Author:** ![Michael](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/michael/32/3545_2.png) [@Michael](https://forum.core-electronics.com.au/u/Michael)\
**Post date:** [6 December 2023 03:00 UTC](https://forum.core-electronics.com.au/t/waveshare-sx1302-lorawan-gateway-pi-hat-module-issues/17438/11 "2023-12-06T03:00:52Z")

</div>

@Jon208648 after a little research I found [this thread](https://forum.chirpstack.io/t/unable-to-get-waveshare-gateway-hat-working/17180/12) where the same problem resolved just by applying a little pressure to the connector / reseating the module in the connector.

I belive this is what the user is referring to when they say “PCI Concentrator” (PCI Connector?)

 ![image](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/3/3e00c1628bfa437c90fdd197f6972d1018fe7314.jpeg)

---

<div class="post-metadata">

**Author:** ![Jon208648](https://avatars.discourse-cdn.com/v4/letter/j/f6c823/32.png) [@Jon208648](https://forum.core-electronics.com.au/u/Jon208648)\
**Post date:** [6 December 2023 04:34 UTC](https://forum.core-electronics.com.au/t/waveshare-sx1302-lorawan-gateway-pi-hat-module-issues/17438/12 "2023-12-06T04:34:21Z")

</div>

Hey Thanks - that worked would you believe ! (you have to press quite hard…)  
Difficult to diagnose as there are actually lights on the unit so you would think it connected OK.

So I now have my EUI, I’ll continue through getting the gateway registered and on-line  
I found AU915FSB1.zip which I’ll need to use.

Kind Regards,

Jon

---

<div class="post-metadata">

**Author:** ![Michael](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/michael/32/3545_2.png) [@Michael](https://forum.core-electronics.com.au/u/Michael)\
**Post date:** [6 December 2023 04:50 UTC](https://forum.core-electronics.com.au/t/waveshare-sx1302-lorawan-gateway-pi-hat-module-issues/17438/13 "2023-12-06T04:50:11Z")

</div>

UNREAL! 😃  
That must have been a frustrating problem to have for so long - but I’m glad it’s open and closed on the same day and you are back on track working on your project. Keep us updated 😃

---

<div class="post-metadata">

**Author:** ![Pete85947](https://avatars.discourse-cdn.com/v4/letter/p/eada6e/32.png) [@Pete85947](https://forum.core-electronics.com.au/u/Pete85947)\
**Post date:** [1 June 2024 08:58 UTC](https://forum.core-electronics.com.au/t/waveshare-sx1302-lorawan-gateway-pi-hat-module-issues/17438/14 "2024-06-01T08:58:43Z")

</div>

Hey all,

I’ve downloaded the AU915FSB1, and updated it. There’s only a two things that don’t work, so I’m reaching out hoping that there is someone in this group that’s got it up and running correctly, and are willing to share their configuration.

1. I haven’t been able to configure the GPS correctly.
2. Uploads to the things network work correctly, but my downloads appear to fail.

Any help would be appreciated  
Kind Regards,  
Pete Smith

---

<div class="post-metadata">

**Author:** ![Michael](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/michael/32/3545_2.png) [@Michael](https://forum.core-electronics.com.au/u/Michael)\
**Post date:** [3 June 2024 07:01 UTC](https://forum.core-electronics.com.au/t/waveshare-sx1302-lorawan-gateway-pi-hat-module-issues/17438/15 "2024-06-03T07:01:46Z")

</div>

Hi @Pete85947 - can you help out with a bit more information about how things are failing?  
What steps have you taken to get the GPS working?  
What is the console readout when you attempt to downlink data?

---

<div class="post-metadata">

**Author:** ![Michael99645](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/michael99645/32/11893_2.png) [@Michael99645](https://forum.core-electronics.com.au/u/Michael99645)\
**Post date:** [3 June 2024 20:55 UTC](https://forum.core-electronics.com.au/t/waveshare-sx1302-lorawan-gateway-pi-hat-module-issues/17438/16 "2024-06-03T20:55:31Z")

</div>

This one seems to be linked to

> [@SX1303 915M LoRaWAN Gateway Module+HAT for Raspberry Pi (CE09113)](https://forum.core-electronics.com.au/t/sx1303-915m-lorawan-gateway-module-hat-for-raspberry-pi-ce09113/17676/14):
>
> Hey all, I’ve downloaded the AU915FSB1, and updated it. There’s only a two things that don’t work, so I’m reaching out hoping that there is someone in this group that’s got it up and running correctly, and are willing to share their configuration. I haven’t been able to configure the GPS correctly. Uploads to the things network work correctly, but my downloads appear to fail. Any help would be appreciated Kind Regards, Pete Smith

I had a zoom session with peter and have the gps module working. We have also verified that ttn is sending packets back to the gateway with correct time to transmit and frequency.

So we are at the point to verify they are sent from the gateway and work out why the node did not get it.

My current thought is the node rx window delay needs to be tweaked to 5 and 6 seconds as i think its 1 and 2 by default and the ttn is seting 5 seconds.

He is away this week, so may be slow responding.

---

<div class="post-metadata">

**Author:** ![Michael](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/michael/32/3545_2.png) [@Michael](https://forum.core-electronics.com.au/u/Michael)\
**Post date:** [4 June 2024 06:12 UTC](https://forum.core-electronics.com.au/t/waveshare-sx1302-lorawan-gateway-pi-hat-module-issues/17438/17 "2024-06-04T06:12:43Z")

</div>

That’s a great lead 🙂 It’s awesome to see this level of collaboration within the CE forum community.

Looking forward to hearing your results - it could be a gamechanger for other Aussie makers in the future.

---

<div class="post-metadata">

**Author:** ![Pete85947](https://avatars.discourse-cdn.com/v4/letter/p/eada6e/32.png) [@Pete85947](https://forum.core-electronics.com.au/u/Pete85947)\
**Post date:** [12 June 2024 21:05 UTC](https://forum.core-electronics.com.au/t/waveshare-sx1302-lorawan-gateway-pi-hat-module-issues/17438/18 "2024-06-12T21:05:07Z")

</div>

Hey all,

Sorry, I think I have two forum posts going. My bad. I’ll add the link to the other thread. 😊

> [@SX1303 915M LoRaWAN Gateway Module+HAT for Raspberry Pi (CE09113)](https://forum.core-electronics.com.au/t/sx1303-915m-lorawan-gateway-module-hat-for-raspberry-pi-ce09113/17676/22):
>
> OK, I’m just going to make this quick. A big shout-out to [Michael99645](https://forum.core-electronics.com.au/u/Michael99645) for taking the time to help me better understand LoRaWAN and providing the fix for the GPS issue. Without his assistance, I probably wouldn’t have pursued fixing the downlink issue from The Things Network, as the existing setup was sufficient to complete my project. Now, all my original issues have been resolved. Further testing by 180 students at the upcoming AgTech events in Orange, Wagga Wagga, and Armidale should provid…

> [@SX1303 915M LoRaWAN Gateway Module+HAT for Raspberry Pi (CE09113)](https://forum.core-electronics.com.au/t/sx1303-915m-lorawan-gateway-module-hat-for-raspberry-pi-ce09113/17676/24):
>
> Here is the first draft. slight_smile[LoRaWAN GateWay SX1303 AU915.pdf](https://forum.core-electronics.com.au/uploads/short-url/1pJX0C3ns868E17CEESOjM1zjuk.pdf) (4.4 MB) Cheers Pete Smith

Cheer  
Pete Smith

---

<div class="post-metadata">

**Author:** ![Nicholas252245](https://avatars.discourse-cdn.com/v4/letter/n/d6d6ee/32.png) [@Nicholas252245](https://forum.core-electronics.com.au/u/Nicholas252245)\
**Post date:** [10 October 2024 20:28 UTC](https://forum.core-electronics.com.au/t/waveshare-sx1302-lorawan-gateway-pi-hat-module-issues/17438/19 "2024-10-10T20:28:32Z")

</div>

Finally got mine working up here in Lismore. Let me know if anyone needs a hand with the config.

---

<div class="post-metadata">

**Author:** ![Giorgi315999](https://avatars.discourse-cdn.com/v4/letter/g/cc9497/32.png) [@Giorgi315999](https://forum.core-electronics.com.au/u/Giorgi315999)\
**Post date:** [27 March 2026 15:05 UTC](https://forum.core-electronics.com.au/t/waveshare-sx1302-lorawan-gateway-pi-hat-module-issues/17438/21 "2026-03-27T15:05:12Z")

</div>

Hello, I have sx1303 waveshare hat and raspberry 4 compute module(with IO board). i have the same issue of not being able to get EUI and more importantly the chip version. i was getting it few days ago, but for last two days, no matter which pin i use for reset(I tried 17, 22, 23 and 25) it cant find chip anymore. im getting this as a result:  
CoreCell reset through GPIO25…  
SX1261 reset through GPIO25…  
CoreCell power enable through GPIO18…  
CoreCell ADC reset through GPIO13…  
Opening SPI communication interface  
Note: chip version is 0x00 (v0.0)  
ERROR: Failed to set SX1250\_0 in STANDBY\_RC mode  
ERROR: failed to setup radio 0  
ERROR: failed to start the gateway  
i also tried “pushing on PCI connector method” and no luck.

[Next page](https://forum.core-electronics.com.au/t/waveshare-sx1302-lorawan-gateway-pi-hat-module-issues/17438.md?page=2)
