-
Notifications
You must be signed in to change notification settings - Fork 299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to start the concentrator with kernel 6.6.22 (Pi 4B Bookworm + SX130X) #120
Comments
Just for confirmation: I just ran into the same issue. |
I've seen that article too. |
Looks like it is fairly trivial to use the gpiod command line tools for the reset script: I'll give that a go and let you know if that fixes everything. |
I think that this repo should be marked as deprecated. I switched to Basic Station using this repo which supports libgpiod. working docker-compose example for your convenience:
|
Packet forwarder is old and does not work on the latest debian kernel. See: Lora-net/sx1302_hal#120
I think it misses GPS support which Waveshare's SX130X includes in its hardware implementation |
Hello, |
Is there any fix for the time being? |
@KonRoz for now nothing official, but in the meantime you can check what has been done here: |
From a quick test I've done, it seems to reset correctly now, by using the following values for a Waveshare SX130X board on a RPi4 w/ 6.6.28 Kernel: |
I'm also hitting this problem on a Pi 4. Looks like this repo hasn't had a release in 3 years, and isn't being actively maintained. Is there a better solution? I'd rather not go the Docker route. |
Hello, |
That's good news. Although Lora is working just fine on TTN v3, it seems that its GPS cannot return valid data even under clear and direct sky, always while running packet_forwarder. It logs:
Maybe this issue should also be checked if it has been broken too, due to newest kernel of Linux ? |
Hello all, |
@timiman I'll check the GPS on RPi4 too |
At least on my RPI4, with a WM1302, no.
|
@davidgs which version of the WM1302 do you have exactly (seeed product reference) ? |
@timiman I've tested the GPS on my RPi4, and I see no issue, it is working as expected for me. What do you get when you do a "cat /dev/ttyS0" ? Have you enabled the serial interface, and modified the /boot/firmware/cmdline.txt to free the serial0 ? |
Serial Port is enabled. With "sudo cat /dev/sttyS0" I get fast scrolling text with ( hide/altered with ##'s location data ): From the test python code of L76K found on Waveshare's site, the GPS data is generated just fine. Also, if I run packet_forwarder and try the python GPS example, Finally, the baud-rate of the serial port from python example above is set to 9600. |
@timiman I've never used the Waveshare board, but I've ordered one to test. What do you get if you do "cat /boot/firmware/cmdline.txt" on your RPi ? The baudrate is the same as what is used by the hal to configure the serial port: sx1302_hal/libloragw/src/loragw_gps.c Line 58 in 4b42025
Maybe you could create a separate issue for this, it is quite different from the initial issue reported here. :) |
cat /boot/firmware/cmdline.txt gives: |
Could you try to remove the console=serial0,115200 from this file ? |
No change. Same message. I will open a new issue. |
@timiman even after a reboot of the RPi ?
|
WM1302
|
I have gotten it working. The problem was that I was not using a Pi HAT. I was trying to use the card directly via the M.2 slot on our board, which it turns out does not have access to any of the Pi-header pins. |
Ok, good news. :) |
Also thx from over here. Created a RPi CM4 test setup a couple of days ago and immediately got stuck Thx for sharing; exactly what I needed. A true time saver :) |
Comfirmed this Works on WM1302 module in SenseCAP M1 AS923 Region. Debian 12, Kernel 6.6.31 Great work! |
Excellent work! |
I am encountering the same error: |
Yes |
@hetal-indiesemic which hardware are you using ? |
I recently changed the operating system version on my Raspberry Pi. Previously, I was using Raspberry Pi OS Lite (64-bit), and I switched to Raspberry Pi OS Lite (32-bit Legacy ). Now it is working correctly. My current logs are as follows:
I am currently exploring how to use LoRaWAN , want to use without the lora server . As someone new to LoRa technology, I am finding it a bit confusing. If anyone has suggestions or insights, I would greatly appreciate your guidance. Thank you.
|
Hi @hetal-indiesemic , good to know that it is working for you now. |
Hi Dec 31 04:22:32 raspberrypi lora[1687]: INFO: got 2 debug reference payload |
|
I am used Raspberry Pi OS Lite (32-bit Legacy), still not working Dec 31 10:59:15 raspberrypi lora[2597]: CoreCell power enable on through GPIO18... |
"> Dec 31 10:59:15 raspberrypi lora[2597]: CoreCell power enable on through GPIO18... Dec 31 10:59:15 raspberrypi lora[2597]: CoreCell reset through GPIO23... Dec 31 10:59:15 raspberrypi lora[2597]: SX1261 reset through GPIO22... Dec 31 10:59:15 raspberrypi lora[2597]: CoreCell ADC reset through GPIO13..." I found some information across different websites that might help you. First, please verify your configuration according to the documentation here: Make sure to review the pin configuration and ensure that SPI and I2C are enabled on your Raspberry Pi. Also, double-check that the antenna is properly connected. Remember, the antenna should not be connected to the GPS port; it should be connected to the LoRa port. You can find additional details in this forum thread: Let me know if you need further assistance! |
I'm unable to start a SX130X as concentrator under kernel 6.6.22 on a Pi 4B.
Running reset_lgw.sh, outputs:
./reset_lgw.sh: 26: echo: echo: I/O error ./reset_lgw.sh: 27: echo: echo: I/O error ./reset_lgw.sh: 28: echo: echo: I/O error ./reset_lgw.sh: 29: echo: echo: I/O error ./reset_lgw.sh: 32: cannot create /sys/class/gpio/gpio17/direction: Directory nonexistent ./reset_lgw.sh: 33: cannot create /sys/class/gpio/gpio22/direction: Directory nonexistent ./reset_lgw.sh: 34: cannot create /sys/class/gpio/gpio18/direction: Directory nonexistent ./reset_lgw.sh: 35: cannot create /sys/class/gpio/gpio13/direction: Directory nonexistent CoreCell reset through GPIO17... SX1261 reset through GPIO17... CoreCell power enable through GPIO18... CoreCell ADC reset through GPIO13... ./reset_lgw.sh: 45: cannot create /sys/class/gpio/gpio18/value: Directory nonexistent ./reset_lgw.sh: 47: cannot create /sys/class/gpio/gpio17/value: Directory nonexistent ./reset_lgw.sh: 48: cannot create /sys/class/gpio/gpio17/value: Directory nonexistent ./reset_lgw.sh: 50: cannot create /sys/class/gpio/gpio22/value: Directory nonexistent ./reset_lgw.sh: 51: cannot create /sys/class/gpio/gpio22/value: Directory nonexistent ./reset_lgw.sh: 53: cannot create /sys/class/gpio/gpio13/value: Directory nonexistent ./reset_lgw.sh: 54: cannot create /sys/class/gpio/gpio13/value: Directory nonexistent
By default the reset GPIO pin was pointing to 23, but found that 17 is the correct one for this SX130X.
It seems like the GPIO number has changed for 6.6.22 , as I'm getting:
grep -s . /sys/class/gpio/gpiochip*/* /sys/class/gpio/gpiochip512/base:512 /sys/class/gpio/gpiochip512/label:pinctrl-bcm2711 /sys/class/gpio/gpiochip512/ngpio:58 /sys/class/gpio/gpiochip570/base:570 /sys/class/gpio/gpiochip570/label:raspberrypi-exp-gpio /sys/class/gpio/gpiochip570/ngpio:8
User running all above is in group 'gpio'.
Does the reset_lgw.sh needs changes to work with new GPIO numbering ?
The text was updated successfully, but these errors were encountered: