LoRa WAN Gateway + Basic station - Nebra HAT + LoRa Concentrator

Hey folks,

Having a lot of fun with Balena on my Rasp Pi 4 and it’s great the amount of projects etc that are out there.

So I come across the LoRa WAN Gateway + Basic station, I have a HAT on my “Pi” and a SX1301 LoRa concentrator, however they are not RAK but a Nebra Hat + Lora.

Been speaking with a very good Friend, (Salman) and he mentions that I would need to know the following:

We need to check the pin compatibility with the SPI bus and make sure that we are using the correct one defined in HAT and the software we are using

So in the mean time I’m looking for the schematics so I can find out the pins, what actually does this do to Balena when you change the device variables?

And would this project work if I get the settings? or is just RAK HATS?

The only errors that I see at the moment on Balena are the following :


basicstation  2022-10-08 13:05:37.275 [TCE:VERB] Connecting to MUXS...
basicstation  2022-10-08 13:05:37.437 [AIO:ERRO] [3] WS upgrade failed with HTTP status code: 401
basicstation  2022-10-08 13:05:37.437 [AIO:DEBU] [3] WS connection shutdown...
basicstation  2022-10-08 13:05:37.438 [TCE:VERB] Connection to MUXS closed in state 3
basicstation  2022-10-08 13:05:37.438 [TCE:INFO] INFOS reconnect backoff 10s (retry 1)

Is it worth pursuing this project, I have “Air Spy” on my PC and I have a couple of faulty SX1301’s and a one that works so I was thinking of running “Air Spy” and actually be able to see if packets are getting transmitted from the failed LoRa.

Thanks :slight_smile:

1 Like

I was using the enterprise account - doh! so now I’m using the correct version seem a little bit closer.

basicstation  ------------------------------------------------------------------
 basicstation  Protocol
 basicstation  ------------------------------------------------------------------
 basicstation  Mode:          STATIC
 basicstation  Protocol:      LNS
 basicstation  LNS Server:    wss://eu1.cloud.thethings.network:8887
 basicstation  Gateway EUI:   E45F01FFFE759XXX
 basicstation  ------------------------------------------------------------------
 basicstation  Radio
 basicstation  ------------------------------------------------------------------
 basicstation  Model:         SX1301
 basicstation  Concentrator:  SX1301
 basicstation  Design:        V2
 basicstation  Radio Device:  spi:/dev/spidev0.0
 basicstation  Interface:     SPI
 basicstation  SPI Speed:     2000000
 basicstation  Reset GPIO:    22
 basicstation  Enable GPIO:   0
 basicstation  ------------------------------------------------------------------
 basicstation  Killing process 41
Service exited 'basicstation sha256:99c7535fe1538072570883d60d73bd81341e95a3ddfa196c47705321ae9e34d8'

Thanks for sharing this @Wayne2022

The error basicstation Killing process 41 is really strange. Actually it means that the concentrator doesn’t start.

Could you please confirm what is the GW_RESET_GPIO of the LoRa concentrator that you are using?
Could you please share the Device Variables you have on balenaCloud?

1 Like

Thanks @mpous for the feedback. The pin is 22, I have a few SX1301’s and a SX1302, made by “Nebra”

@Wayne2022 i havent’ found the documentation on the Nebra webpage that says that the RESET PIN is the 22 on the SX1301. I only found for the SX1302/3. Could you please share the documentation?

To me, it looks like it dies on the reset process → basicstation/start.sh at 8fff9ecc2adce59ba24dfad4c54a66ca96485184 · xoseperez/basicstation · GitHub

Hi @mpous Thanks for the help so far. :slight_smile: OK found something out, when I remove the HAT with the LoRa on it, then the error log is identical, so there’s no difference between it when the HAT’s fitted or not to the Rasp Pi, should I be seeing a different error? I presume that the HAT isn’t working or talking to the Rasp Pi. (I have the schematics I can DM them to you if you like?)

Could you please confirm what hat are you using @Wayne2022 ? Thanks!

Thanks for your help :slight_smile: Salman got me this…

So this is the RAK833 @Wayne2022 ?

@mpous oh no, this is a Nebra Hat + Nebra Lora SX1301

@salmanfarisvp could you please confirm the RESET PIN of this Nebra LoRa hat and concentrator?

@Wayne2022 i tested myself with a RAK2245 (SX1301) and the latest basicstation version worked well on my side.

Please click the Deploy with balena button and get the latest release from this repository on your fleet → GitHub - xoseperez/basicstation: Basics™ Station Packet Forward protocol using Docker

Let me know if that works!

1 Like

@mpous Thanks, I pushed Build 2834b75 to it just now.

OMG it worked! the only thing I changed was in advanced and changed the port to 22 in there…!

Amazing! Amazing! what was it, just I hadn’t upgraded ?? :grinning:

1 Like

Yes! i think this was the issue, it was not updated to the latest version!

There was an issue solved here → GW_RESET_GPIO not working · Issue #8 · xoseperez/basicstation · GitHub

1 Like