Using Waveshare SX1262 on my R Pi 4

I’ve got one of these HATs on an R Pi 4 that I bought from Core a while back.

I’m trying to make sense of the jumpers. As I want to configure, etc. through the Pi, I set the jumpers to ‘B’. I set the M0/M1 jumpers to M0 in (short), M1 out (open). This should be Configure mode but it will not talk to the Pi. The Waveshare doc seems a little ambiguous.

Sadly, the SX1262 refuses to make any sense.

Anyway got some small code snippets that you know works with Pi/SX1262?

Thanks,

Gerard

Is this what you bought ??

(providing a link would be helpful as I first thought you were referring to the Pico Hat.)

Waveshare documentation is very detailed and comprehensive, I always found what I need in their documentation, it just takes some effort and understanding of how they refers to things.

The SX1262 is a very complex product. I suggest stepping through the process Waveshare have documented, slowly ensuring each step works as you go. Over looking something minor can result is failure.

Cheers
Jim
PS I will add to this as I look through the documentation.

EDIT: I would be using Mode 0 as it is the simplest, whatever the UART receives is sent, when the LORA module receives something it is sent to the UART. Mode 1 needs a wake up, once you get Mode 0 working you could try Mode 1 if you need to send config commands.

2. Mode 0: Transmission mode, Module transmits data when users send data to the UART interface. Wireless receiving is enabled to receive data and send it to the UART interface when idle.
3. Mode 1: When it is defined to Transmit, the user needs to add wakeup codes before transmitting, receiving is the same as Mode 0.

Another thing to check, Is the serial port on the Pi actually working ??
If you type something in Mode 0 the RXD/TXD light should flash, if only briefly.

9. Indicators:

    • RXD/TXD: UART RX/TX indicator*
    • AUX: auxiliary indicator*
    • PWR: power indicator*

Waveshare also provide this sometimes confusioning interface.

10. UART selection jumpers

    • A: control the LoRa module through USB TO UART*
    • B: control the LoRa module through Raspberry Pi*
    • C: access Raspberry Pi through USB TO UART*

If you are not using the USB port then jumper B would be what you need.
To understand this interface it is necessary to examine the schematic. Most Waveshare products have this type of interface, allows for greater flexibility.

This one seems very similar, Jumper B I think it what you need.
The RXD/TXD lights are connected to the LORA module, so if it receives/sends they should flash. Jumper A and C they will only flash if USB port is used.

Thanks James,

The HAT is fitted on a R Pi 4.

HI @Gerard163258

Looking at the wiki that James mentioned in his post, you would first need to enable the Pi’s serial interface, from there you should be able test that the module is working as intended, and then should be able to configure the hat.