Lora transmit and receive

I try to interface SX1262MB2CAS Lora module with Arduino UNO board ,but not work.
I need to know the example code for transmit and receive function.
kindly support us for software side.

Do you have a budget?

If yes, send a PM.

There is a library that supports, SX126x, SX127X and SX128X LoRa devices and uses the same sketch style for the different modules.

There is a large range of practical working examples.

In case you do not realise the SX126X uses a different type of software interface versus the more common SX127X, so a standard LoRa library written for SX127X will not work on the SX126X.

1 Like

could you give a link to the actual LoRa module you are using?
also upload a schematic of the wiring?
the majority of LoRa modules use 3.3V logic the UNO uses 5V logic - you will require level shifters or potential dividers to convert 5V UNO signals to 3.3V for the LoRa module

Edit: are you inpmenting LoRa point-to-point or LORaWAN communications?

1 Like

The Lora module link I used is attached below,

I implement Lora point to point and Point to Multiple.

Thanks for your response,

That mentioned code only work for transmit function ,not work in receive function in sx1262.
I want to working library of SX1262.

Take another look, of course there are receive functions.

I posted a link to a fully working library.

note that the library referenced by @srnet in post 3 states
The base Semtech devices that this library supports are all 3.3V logic level devices and most available modules do not include logic level conversion circuits. So do not use modules directly with 5V logic level Arduinos unless some form of logic level conversion is implemented.
have you used level converters when connecting the SX1262MB2CAS Lora module with Arduino UNO board? upload a schematic of your wiring?


Above is attached my current transmit and receive serial monitor output.
The serial monitor shows that transmit is working fine but not received.
Now what do I do?

NSS -10
DIO1 -3
BUSY -7
ANT_SW-5
MOSI -11
MISO-12
SCK-13
SX_NRESET-9
VCC-3.3V
GND.
The pin outs that connect to my wiring mentioned above.

You provide a schematic of how its all connected and a link to the exact SX1262 module that you are using.

Just noticed that you appear to be using one of the Semtech development boards, did you notice the comment in the SX126X readme for the linked to library ?

"The Library has not been tested on the Semtech SX1261MB2BAS or similar development boards, so consider them unsupported. These development modules are not low cost and are not in a form (and too big) to be of practical use to the author of this library. "

Do you have a working library for sx1262?

There was one linked to above.

Presumably your SX1262 development board needs some specific setup or configuration or its not wired correctly but you have not shown us the wiring.

Not all SX126X modules are the same, some need specific setups or IO pin connections.

Semtech should have a development environment for their board ?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.