Replies: 10 comments 3 replies
-
I'm a little bit confused about your pinout: in the first table, you seem to be referring to the physical pin number on the pin header. However, some of them seem wrong
So without knowing your hardware, I'm guessing the initialization should look like this: SX1276 radio = new Module(hal, 25, 17, 4, RADIOLIB_NC);
You have connected the NSS to a random GPIO pin, not one of the SPI0_CEx pins (GPIO7 or GPIO8), so I don't know what you mean by that. I don't know how the pigpio library behaves when using something else than CEx for the NSS pin.
SX127x cannot do ASK, it can do LoRa, FSK or OOK, all of which are supported by RadioLib. |
Beta Was this translation helpful? Give feedback.
-
Dear, thank you for your answer.
We are now using the following initialization:
Indeed, assuming that inside the Module function we should use the GPIOXX value and not the PINXX one, we connected the NSS to the GPIO8 (pin 24). We recompiled the NonArduino example code and something changed. Do you have any suggestion? Thanks. |
Beta Was this translation helpful? Give feedback.
-
I would suggest to follow the issue template, at least by providing the debug + verbose output: https://github.com/jgromes/RadioLib/wiki/Debug-mode -16 is SPI write failed, meaning the value in SPI register did not update even though it should have. Debug mode will show you exactly which register has failed. |
Beta Was this translation helpful? Give feedback.
-
We recompiled in debug-mode and we got the follows
|
Beta Was this translation helpful? Give feedback.
-
Dear, the first question about the Raspberry example.
Second, now we are initializing the LoRa module with this.
and we receive on the RPi4 terminal:
Is it correct? We use only one module, so we don't have any receivers. Thanks. |
Beta Was this translation helpful? Give feedback.
-
as the comment says, this is something that's specific to Waveshare LoRaWAN hat, so no need for you to do that. Next, error code -5 is transmit timeout, which likely means you do not have DIO0 connected. It seems like this is not an issue in the library, so I'm converting it to a discussion instead. |
Beta Was this translation helpful? Give feedback.
-
do we have to comment on those lines?
We connected DIO0 to GPIO7 = pin 7, is it correct? And I do not completely understand how to connect the RESET. I'm sorry can you clarify this point as well? Thanks. |
Beta Was this translation helpful? Give feedback.
-
dear @jgromes, We are fine with the fact that you changed this thread in a discussion. Thank you in advance for your support. Kind regards. |
Beta Was this translation helpful? Give feedback.
-
You're not using it since your harwdare is different, so you can safely remove it.
It isn't, if you have initialized the module like you posted (
Going off of the initialization above, you should be using GPIO4. To sum up:
I would suggest taking a look at the examples and documentation again, as well as to examine the difference between the pin header numbering and Raspberry Pi GPIO pin numbers. |
Beta Was this translation helpful? Give feedback.
-
Dear @jgromes, Thanks for your support. Using the same NonArduino example for Raspberry on two "RPi+LoRa," unfortunately, we are not able to receive the "Hello World"" message. We got ERROR -24. Thanks. |
Beta Was this translation helpful? Give feedback.
-
Dear All,
we have the following configuration:
they are connected as follows:
with this configuration, we are assuming to use SPI channel 0 on the RPi4.
We have started with your example:
https://github.com/jgromes/RadioLib/tree/master/examples/NonArduino/Raspberry
We modified the main.cpp as follows to accommodate the hardware configuration above:
This code compiles directly on our target, i.e., RPi.
Unfortunately, this example program fails while running the initialization phase reporting the ERROR NUMBER -2.
We are using the last version of the RadioLib available on this repository.
May we ask for your support in using RadioLib with our hardware configuration?
We are also interested in using RadioLib to set ASK or FSK modulation on this SX1276 module. Is it possible?
Thank you in advance for your support.
Beta Was this translation helpful? Give feedback.
All reactions