Closed chegewara closed 4 years ago
The example given and the pinouts given do work correctly on an ESP32.
None of the examples, nor the library have been checked against the ESP32-S2, maybe there is some difference in the new S2 device.
I dont have a timescale for evaluating the ESP32-S2.
As you can see there is no problem with S2. I am new to LoRa, but log outputs looking good i think. What i am having problem with is DIO1 not rising IRQ even on timeout and i have hooked up 2 modules with the same behavior. So i thought i may have missing something in settings.
Today or tomorrow i will try to connect sx1262 modules and let you know.
Thanks for support
What event you want to catch with DIO1?
setDioIrqParams(IRQ_RADIO_ALL, (IRQ_TX_DONE + IRQ_RX_TX_TIMEOUT), 0, 0);
This is part of library code when transmit or receiving, which means it TX/RX done + TIMEOUT. I even changed it to all events, but DIO1 is dead.
Thanks
EDIT i also added code to check IRQ state in loop and all the time it is returning 0
Well since the supplied example code does work on an ESP32 with the NiceRF 1280 module mentioned, this suggests something different in your setup.
Exactly which NiceRF module are you using ?
NiceRF v1.0. This is all i know. its small module with no label on top.
Can you provide a link to the actual v1.0 module you bought and are using, NiceRF have several modules that are v1.0.
I dont have link to sx1280 module, but i have working sx1262 module. DIO1 is switching and code seems to work. Now i have to connect 2nd module as receiver and test.
Thanks
I can confirm that sx1262 works with esp32 S2, both, transmit and receive examples.
Now the only problem is with sx1280.
Thanks
Can you provide a link to the actual v1.0 module you bought and are using, NiceRF have several modules that are v1.0.
I believe this is the one i have: https://www.nicerf.com/product_193_302.html
'Believe' ? You dont sound sure.
Where did the module come from are the pin labels on the back of the board (on the link) an exact match for the labels on your modules ?
Did you alter the original example program in anyway at all ?
Im sure its the one. Just label on bottom is slightly different, no 0/1 to check, on sx1280.
For first test i didnt change example code except pins. I tested all 3 begin() options and like i said example is working for sx1262, which is odd its not working for sx1280, because library code looks ok to me.
One thing that may be interesting, but it may be normal, is transceiver code printing registers 0x00-0x4F is all 0x0s.
The register print is of no consequence.
There must be some issue with your particular modules are the way they are connected.
Ok, thanks. I dont think i messed soldering both sx1280, but i ordered today different type sx1280 modules from mouser. I will let you know the results.
Thanks
Hi, i have new modules with sx1280 and it seems to work on esp32 S2 with stock examples. I only changed pins. It was issue with other modules or with my breadboards.
Thanks
Hi, i am trying to run esp32 S2 examples https://github.com/StuartsProjects/SX12XX-LoRa/tree/master/examples/SX128x_examples/ESP32/Basics
but no matter what timeout i will set DIO1 is always low (both, transceiver and receiver):
RXPacketL = LT.receive(RXBUFFER, RXBUFFER_SIZE, 6, 1);
Chip is NiceRF SX1280 and i am trying to run LoRa.
Here is log that shows SPI and LoRa should works:
Register test result:
Thanks