Hello, i developed a LoRa Basics Station gateway running on a Raspberry Pi (3 / 4) with RAK2245 on balena.io. You can install it using the button Deploy with Balena.
I tested the project and it can work on TTN and TTI.
I personally havenāt tested the RAK831 but if this is an SPI sx1301 model, it should work. Check what is the RESET_PIN of the concentrator and modify the balenaCloud Device Variables if needed.
Looks like there is a hardware issue more related with the SPI communication between the Pi and the hat. What RAK831 and Pi Hat are you using? Could you please share?
SPI speed with some of the RAK (and other) conc cards running on RPiās can be a known issue and recommendation in that case is dial down the SPI clock speed (using RaspiConfig?) (Use forum search - it was a āthingā a year or two back IIRC)
It works with basicstation repo on pi zero + pi hat + RAK831 but it doesnāt work on Pi3+ + pi hat + RAK831 with the same configuration on RESET_PIN and others?
@gy4nt so far it seems it is stupid error. After upgrade from packet forwarder in v2 to basic station (your Balena image GitHub - mpous/basicstation: LoRa Basicsā¢ Station - The LoRaWAN Gateway Software) in v3, two RPi hats doesnāt work anymore. Is it possible basic station drains more current than packet forwarder? I know it is stupid but anyway - I have no other reasonable explanation ā¦ one RAK831&RPi3B+ works even after migration, but occasionaly receiving error in Balena āundervoltageā. Before migration Iāve never seen this error. The other two doesnāt start. If I use RAK2245 (without a RPi hat) it starts without any problem.
Iāve tested two RAK831 on Rpi 0 with packet forwarder in v2 and it works. It seems my RPi hats with PoE are on the limit. If I powering over PoE, undervoltage is present most of the times, but if I powering directly with 5V PSU, there is no undervoltage warning. Despite using 5V PSU, two concentrators doesnāt start with two RPi hats.
I have to find out new RPi hat, test it and then I can make final conclusion.
It would be fine if youāll make GitHub - mpous/basicstation: LoRa Basicsā¢ Station - The LoRaWAN Gateway Software for Raspberry Pi 0 also. Sure, if it wouldnāt take you to much time.
I agree. From HW perspective is clear, but Iāve never managed to put RAK831 in work with this settings. As long as I know, settings are:
SPI_SPEED (down to 2000000; Iāve changed to lower also, but the only results is, console couldnāt show all messages)
BALENA_HOST_CONFIG_core_freq 250
BALENA_HOST_CONFIG_dtoverlay pi3-miniuart-bt
Is it possible, problems with SPI communication arise when using basic station? My RAK831 with the same RPi hat started every time with packer forwarder, but now with basic station not
@Roberto69 one question, did you register to TTS the gateway with EUI b827ebfffed3c6ee? Could you please do it and see if it still give the same error?
Hi @gy4nt, thank you for your help. The problem was in RPi3B+/RAK831 hat. I have no idea why worked before migration and after migration no more. In next days I will test with Dupont wires instead of using hat.
Yes, EUI b827ebfffed3c6ee belongs to my test RPi3B+. My final conclusion is, every RAK and RPi works, as long as they are not connected with hats. Even RPi0 works with every RAK831 in v2, but it uses different hat. Not to mention, RAK2245 has no problems as it is connected directly to RPi.
At the end even RPi0 works, but in v2. Balena image for basic station and RPi0 in v3 will be appreciated. Open question remains, why these problems arise after migration. In case you would like to check more circumstances, please let me know. Still have two GWs on the table
@gy4nt, RPi3 + RAK2245 works fine. When I change RAK2245 with RAK831, concentrator not starts.
My question is, is there any limit or problem if I want to change concentrator and keep RPi and all the settings and parameters (including TC_URI) the same? Can I exchange concentrators without any changes?
Main reason for a conc card not starting is usually incorrect reset pinā¦donāt have a 2245 or the time to go read doc and checkā¦a job for you!..but my 1st stop would be see if there is a difference in pin mapping for the conc reset line then if so adjust in s/w configā¦
2nd most common problem on a Pi is probably the bus speed as I posted aboveā¦did you check/adjust that? I seem to recall some RAK designs introduced a level shifter (not needed per some posts?) that then slowed interface down drastically forcing e.g. SPI changesā¦
Another update just read back up posts and see you did try change but was that set for 2245 or the 831?