Problems with basicstation

If I let it run automatically it throws the following error, with all previous defined ENV variables, SPI_SPEED, TC_URI, TTN_STACK_VERSION, TC_KEY, MODEL

03.04.21 20:37:02 (-0500) main 2021-04-04 01:37:02.466 [RAL:VERB] SX1301 ifchain 7: enable=1 rf_chain=1 freq=300000 bandwidth=0 datarate=0 sync_word=0/0
03.04.21 20:37:02 (-0500) main 2021-04-04 01:37:02.466 [RAL:VERB] SX1301 ifchain 8: enable=1 rf_chain=0 freq=300000 bandwidth=1 datarate=4 sync_word=0/0
03.04.21 20:37:02 (-0500) main 2021-04-04 01:37:02.466 [RAL:VERB] SX1301 ifchain 9: enable=0 rf_chain=0 freq=0 bandwidth=0 datarate=0 sync_word=0/0
03.04.21 20:37:02 (-0500) main 2021-04-04 01:37:02.466 [RAL:VERB] SX130x LBT not enabled
03.04.21 20:37:02 (-0500) main 2021-04-04 01:37:02.466 [RAL:VERB] Station device: /dev/spidev0.0 (PPS capture disabled)
03.04.21 20:37:02 (-0500) main 2021-04-04 01:37:02.468 [RAL:ERRO] Concentrator start failed: lgw_start
03.04.21 20:37:02 (-0500) main 2021-04-04 01:37:02.468 [RAL:ERRO] ral_config failed with status 0x08
03.04.21 20:37:02 (-0500) main 2021-04-04 01:37:02.468 [any:ERRO] Closing connection to muxs - error in s2e_onMsg

I discovered that if I have set the ENV variable SPI_SPEED it breaks the execution, I had this from the previous versions.
Now that I removed it from the app, it works correctly.

What was the value of SPI_SPEED when it was failing ? @ronyvargas Could you please try setting the value to 2000000 if different and let us know ?

Hi @abhatikar, yes the value I use for SPI_SPEED is 2000000, as soon I set this variable for the Model SX1301, it breaks execution, as soon I remove completely the variable it works back again

I will check. Thanks @ronyvargas for the information.

1 Like

Thank you for reporting @ronyvargas I tested with another developer from the community and it works on his side!

cc @abhatikar

have you tried setting GW_GPS to true, you have it set to false on icy-river.. .

@boatviid we have an open issue about the GPS on basicstation Test GPS issue · Issue #3 · balenalabs/basicstation · GitHub

Do you think you can help here?

Hi @mpous, I see you’ve made some updates to your basicstation repo, and also noticed there is a new release from Semtech, versio2.0.6, something you’re working on already?

1 Like

Hey @ronyvargas honestly i didn’t have time to work on this in the last weeks :frowning:

would you like to contribute? on the other hand @xoseperez made it run on his basicstation repo → GitHub - xoseperez/basicstation: Basics™ Station Packet Forward protocol using Docker

so it depends on what you preffer, you can choose one way or the other :slight_smile:

1 Like

Let me take a look on that repo from @xoseperez.

I just updated with the latest changes you have in yours, just having issues detecting the right EUI from the eth0, I’ll keep you on the loop

1 Like

@ronyvargas yes… i hacked the code of the project for devices that don’t have ethernet port (pi zero family) but i couldn’t reproduce the issue that you mention! what interface is selected?

Actually this is what i changed → basicstation/sys_linux.c at 04a95fef320c46ff4cf89004edd543653d35dac6 · mpous/basicstation · GitHub

Hi @mpous, yes I found the changes you did for Pi Zero.

Here is my setup:
RPI 4, RAK2287, Connected to internet via WLAN

When it detects the EUI of the device, it selects the WLAN instead of the ETH0 (this is the EUI registered in TTN),

I have 2 thoughts:

  • If I revert that piece of code you mention, I am 99.9% sure it will work again
  • If I connect the ETH0 to cable and disconnect the WLAN, I have the impression it may work (I will perform this test when I am back at GW’s location)

feel free to add an issue @ronyvargas and let’s solve this by next week :slight_smile:

Hi @ronyvargas just doing some housecleaning for some older support tickets; did you have any success with this?

Hey @ronyvargas best idea is to use Xose’s basicstation project GitHub - xoseperez/basicstation: Basics™ Station Packet Forward protocol using Docker

Did you try it?

Hi @mpous, Yes, I am running @xoseperez version of basicstation now without issues

Thanks for the advise

1 Like

Thanks for the update @ronyvargas

What are you working on these days? :slight_smile:

Hi @mpous not so much in the IoT area, mostly just doing my primary job functions, on the IT Cloud Infrastructure side.
Few updates here and there but that’s it for now

1 Like