Closed safe-power closed 1 year ago
Since the initialization failed after image calibration (command 0x98), that would suggest either bad frequency or TCXO vs XTAL issues. 434 MHz should be fine for all SX126x devices, so the next suspect is the crystal. You set your TCXO reference voltage to 1.6V - are you sure that is correct? And does your device really have a TCXO, or just plain XTAL?
And does your device really have a TCXO, or just plain XTAL?
I'm not sure how to find this out. It's a new Aliexpress module. I will connect the LLCC68 now to another Arduino to see if it fails at the same point as the SX1268.
The second radio.begin line is copied from the API example.
I would like to try out a few other settings for XTAL. Could you post an example or point me towards example radio.begin statements ?
int state = radio.begin(); -tried failed, code -707 int state = radio.begin(434.0, 125.0, 9, 7, 0x12, 10, 8, 1.6, false); code -707
I'm not sure how to find this out
Step 1 is to check the documentation of the module, if there is any. If not, then trial and error - set the TCXO reference voltage to 0 and reset/power cycle the module.
int state = radio.begin(434.0, 125.0, 9, 7, 0x12, 10, 8, 0, false);
Also, begin()
without arguments expands to begin(434.0, 125.0, 9, 7, 0x12, 10, 8, 1.6, false)
since those are the default values.
Thank you so much. Fixed!
int state = radio.begin(434.0, 125.0, 9, 7, 0x12, 10, 8, 0, false);
did the trick.
Both SX1268 and LLCC68
work with this setting.
2 days of my life gone, but you fixed it within 1 hour.
Glad you got it working - don't hesitate to ask sooner than after two days ;)
I'm having trouble to initialize new modules. 2 modules SX1268 and 1 module LLCC68 have been tried and give error 707 Other libraries such as Arduino-LoRa-Ra01S and from Stuarts projects give similar init issues.
I've found the other reports here with error 707 but I do not understand the solutions. Any suggestions what to try next would be great.
The module is connected and connections have been triple checked as: TXEN 5, RXEN 4, MOSI 11, MISO 12, SCK 13 NSS pin: 10 DIO1 pin: 2 NRST pin: 3 BUSY pin: 9
release: 5.6.0 Arduino 1.8.19 SX1268 Ai-thinker Ra-01S module Arduino Pro-Mini- M 328, 16MHz, running on 3.3V The module fails to initialize with failed, code -707
RadioLib SX126x Transmit Example https://github.com/jgromes/RadioLib/tree/master/examples/SX126x/SX126x_Transmit
Sketch that is causing the module fail
... sketch truncated
--------------------------------- debug output-------------------