Replies: 4 comments 3 replies
-
|
I would start by going back to an example with minimum modifications - definitely you don't need to change pin directions, or manually reset the module, the library takes care of all of that. You are also manually initializing the SPI but not providing this instance to the Calling Finally - if transmission is not working, what is the return code returned by |
Beta Was this translation helpful? Give feedback.
-
|
Really appreciate the feedback. As a hardware engineer, whilst I can normally get by with code, I am unfortunately still struggling to understand your library with regards to the implementation of SPI. Obviously missing something really obvious somewhere. FYI My original code returned 0, for startTransmit. An advantage though is that SPI was initializing (ish). Have looked at your wiki page and trawled example code but this does not explain where to set the non-standard SPI GPIO. The ESP32-C6 does not have a default SPI interface. For this reason, I always set the SPI GPIOs in my code and never normally have any issues. Based on my interpretation of your wiki, I have updated the code but now it fails to initialize the SPI bus. In addition, I now get the below error. SPI is not working at all now? Guessing but this may relate to the RADIOLIB_NC, or GPIO fourth possible pin? Starting SX1262 setup... |
Beta Was this translation helpful? Give feedback.
-
|
PS. Not sure about the digitalMode comment as believe this is related to the Industruino environment but tried adding pinMode(rst, OUTPUT); makes no difference. Starting SX1262 setup... |
Beta Was this translation helpful? Give feedback.
-
|
Quick update. Have taken example code from #1541 and tweaked to align with my setup and GPIOs. It seems to work and the TX is sending packets. Need now to complete further tests but all good. For other users, this is the basic code. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Been investigating the E22-900MM22S connected to an ESP32-C6. Module OK and the MCU is OK.
The radio initializes OK but cannot get any TX. (Monitoring on Analyzer).
TXEN tied to DI02, just to reduce GPIO. Can see this go high when it should TX.
RXEN left low during testing.
NRST goes low as expected.
BUSY goes high when expected.
DI03 goes low when expected.
Have tried a couple of radio.begin options (as in code), and enabled and disabled setTCXO and also put XTL before radio.begin.
Have tried two different separate hardware configurations, hence header device 1/2, and one is a dead bugged version.
Can see the SPI on analyzer and messages OK.
However, despite all this, no TX RF output.
Below, WIP code. Probably something minor but would appreciate any thoughts, please.
Beta Was this translation helpful? Give feedback.
All reactions