Replies: 5 comments 24 replies
-
That doesn't sound right, why in the examples folder? You can take a look at the CI, which installs the library on a Raspberry Pi runner and then performs some tests on it, for example here: https://github.com/jgromes/RadioLib/actions/runs/10334213403/job/28607425921 And of course there's the wiki ;) https://github.com/jgromes/RadioLib/wiki/Porting-to-non-Arduino-Platforms |
Beta Was this translation helpful? Give feedback.
-
I see that you have found your way over from the TTN forum. I'd be happy to pickup from there except we still don't know why you want to use a Pi 4/5 and for TTN use there is some hesitation amongst the community with Pi based devices as they can quickly become non-compliant due to timing issues as outlined. Also, that screen shot is a nightmare to read & can't be copied & pasted so please please post as text. It was also not made clear over on TTN which board you are using, so it would be useful to answer that as well please. |
Beta Was this translation helpful? Give feedback.
-
Given your self-professed lack of C knowledge, there are Python implementations around you could look at - from people on TTN who host them on GitHub. |
Beta Was this translation helpful? Give feedback.
-
i don't mind at all to use the python code, but i didn't find anything useful for the HW combination i have (i would appreciate if you point me to some resources for python code for this boards combination). i use the raspberry pi to collect some data out from the sensors and do some calculation and was looking to be able to send the data from time to time from Raspberry Pi directly to LoRaWAN network. I bought the Raspberry Pi SX1262 LoRaWAN HAT from Waveshare as it was written to be LoRaWAN complaint. From the TTN forum discussions i found this library as an only valid choice to implement what i want so far. |
Beta Was this translation helpful? Give feedback.
-
RPi4B+ and 2W both have the -> Initializing ... failed, code -707 Anyone able to use this HAT successfully? Did try SX1262 radio = new Module(hal,21, 16, 18, 20); mi@localhost:/RadioLib-master/examples/NonArduino/Raspberry $ sudo bash build.sh mi@localhost:/RadioLib-master/examples/NonArduino/Raspberry $ cat /sys/kernel/debug/gpio gpiochip1: GPIOs 570-577, parent: platform/soc:firmware:gpio, raspberrypi-exp-gpio, can sleep: Here is the code: This example shows how to use RadioLib without Arduino. Can be used as a starting point to port RadioLib to any platform! For full API reference, see the GitHub Pages // include the library // include the hardware abstraction layer // create a new instance of the HAL class // now we can create the radio module // the entry point for the program // loop forever
} return(0); |
Beta Was this translation helpful? Give feedback.
-
i was trying to understand how i can implement the NonArduino code on my Raspberry Pi device. I cloned the repo on RPi and executed $ cmake ..
$ sudo make install in the example folder without any errors. But when i try to execute gcc -o RaspberryPi main.cpp it start to give me a lot of errors for the header files. i copied all the folders from include RadioLib file into the NonArduino folder, but now i'm getting an errors with the "undefined references SX1262, PhysicalLayer etc"
could you please help me!
Beta Was this translation helpful? Give feedback.
All reactions