[riot-notifications] [RIOT-OS/RIOT] Lora sx1278 Module +Riot+Arduino (#16645)

IagoMrt notifications at github.com
Wed Jul 14 13:53:37 CEST 2021


#### Description
<!-- Hello everyone, I am a new user of RIOT, right now I am working in the concept of using RIOT + Lora + Arduino.

I am trying to run the sx127x driver example for that I am using:
Lora module: Ra-01 Sx1278.
Arduino board: arduino-mega2560.

I am aware the drivers are designed for sx1276 modules, however the difference between them is just the band they work on (800mhz-433mhz) so I don't know if that could be an issue.

So far I have modified the sx127x_params.h librari to remap the ports for the arduino board as follows:

_#ifndef SX127X_PARAM_SPI
#define SX127X_PARAM_SPI                    (SPI_DEV(0))
#endif

#ifndef SX127X_PARAM_SPI_NSS
#define SX127X_PARAM_SPI_NSS                GPIO_PIN(PORT_B, 0)       /* 51 */
#endif

#ifndef SX127X_PARAM_RESET
#define SX127X_PARAM_RESET                  GPIO_PIN(PORT_B, 4)       /* 10 */
#endif

#ifndef SX127X_PARAM_DIO0
#define SX127X_PARAM_DIO0                   GPIO_UNDEF     /* No conectado */
#endif

#ifndef SX127X_PARAM_DIO1
#define SX127X_PARAM_DIO1                   GPIO_PIN(PORT_B, 5)      /* 11 */
#endif

#ifndef SX127X_PARAM_DIO2
#define SX127X_PARAM_DIO2                   GPIO_UNDEF       /* No conectado  */
#endif

#ifndef SX127X_PARAM_DIO3
#define SX127X_PARAM_DIO3                   GPIO_UNDEF       /*  No conectado  */
#endif

#ifndef SX127X_PARAM_PASELECT
#define SX127X_PARAM_PASELECT               (SX127X_PA_BOOST)
#endif

#ifndef SX127X_PARAM_TX_SWITCH
#define SX127X_PARAM_TX_SWITCH              GPIO_UNDEF
#endif

#ifndef SX127X_PARAM_RX_SWITCH
#define SX127X_PARAM_RX_SWITCH              GPIO_UNDEF
#endif_

but  I haven't been able to run the example I get the following errors within the debug information:
**2021-07-14 13:27:25,822 # Failed to initialize SX127x device, exiting
2021-07-14 13:27:25,821 # [sx127x] error: no valid device found**
 

If any of you have worked with this kind of modules or even the sx1276 modules together with arduino would be nice to have some guideliness on how to proceed in order to make the system work.

Thanks for your help.

Iago Martínez.
 -->

### Useful links
<!-- Please include links to any documentation that you think is useful. -->

<!-- Thanks for contributing! -->


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/issues/16645
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210714/7ceb1b9e/attachment.htm>


More information about the notifications mailing list