-
Notifications
You must be signed in to change notification settings - Fork 418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SX1268 - Receive - Error State - 707 #99
Comments
Which exact Dorji module are you using? Does it have TCXO or just plain crystal? And what's the wiring? |
Thanks for your reply.
BUSY = 3
|
DRF1268T has a builtin-in TCXO, so it requires some reference voltage to be set. The default begin() method takes care of that, so if you used unmodified example code it should work. I find it strange that only receive example is returning this error code: -707 is related to SPI commands. Could you please enable debug mode by uncommenting the following lines: Lines 27 to 28 in 02ac97b
Then upload the receive example and psot the serial monitor output. |
Dear Sir, Please find the DEBUG Screen data: failed, code -707 failed, code -707 |
Could you check the pin mapping in your sketch corresponds to the hardware? Also, could you check if there's a way to disconnect the NRESET pin? |
One extra from lolin32-dev (no onboard lora, rather SX1262 chip) 17:08:04.138 -> SX1262::begin void setup() { |
@lillefyr could you double-check your pin assignment? The order is |
DISCONNECTED NRESET - A0 to arduino UNO failed, code -703 Wait for BUSY ... Wait for BUSY ... Wait for BUSY ... Wait for BUSY ... Wait for BUSY ... Wait for BUSY ... Wait for BUSY ... Wait for BUSY ... Wait for BUSY ... Wait for BUSY ... failed, code -703 |
PIN MAPPING // SX1262 has the following connections: |
Sir |
Pin assignment changed: More communication, in the end however still -707 17:51:03.782 -> SX1262::begin |
@sdey76 I've seen the issue with -707 after reset previously, it's somehow related to NRST ending up in some undefined state. When the NRST pin isn't connected to anything, it generally solves the problem. The error code you're getting now is -703, ERR_INVALID_TCXO_VOLTAGE - you probably changed TCXO voltage value to something unsupported. @lillefyr yours fails at the CalibrateImage command - please open a new issue, as these two don't seem related, thanks. |
I had tried to change the TCXO VOltage and see, but i have re edited the same to 1.6 V [SX1262] Initializing ... Wait for BUSY ... Wait for BUSY ... Wait for BUSY ... Wait for BUSY ... Wait for BUSY ... Wait for BUSY ... Wait for BUSY ... Wait for BUSY ... Wait for BUSY ... Wait for BUSY ... Wait for BUSY ... Wait for BUSY ... Wait for BUSY ... failed, code -20 |
-20 is incorrect modem - it seems like the module has FSK modem enabled, despite the fact LoRa modem was set previously. Also, for some reason it looks like it has available data (that's the 0x52 status). I'm not entirely sure what's going on here - I'd suggest reuploading the sketch a couple of times, as well as unplugging everything and then connecting it back. |
Dear Sir
success! -87.00 dBm Wait for BUSY ... Thanks a lot |
Hi Jan, Thanks for all the great work on RadioLib. Not sure though that the TCXO issue reported by @sdey76 is resolved. I'm having the same problem using either the Dorji DRF1268T or the GNICE RF sx1262/8 v1.1 chip. For example, when running Fossasat 1B if th3e TCXO_VOLTAGE is 1.6 error code -707 is received. If the voltage is set to 0, then initially error code -20 is received. Upon restart after unplug/plug in again, the error clears and the sketch runs normally. This code may be found here https://www.dropbox.com/sh/rf9vrag19rsbxk2/AAARjpAIcn9o5Y3NqD7nrgXta?dl=0 Vert Best, Bob N6RFM |
@N6RFM Could you try out different TCXO voltages? The RadioLib/src/modules/SX126x/SX126x.h Line 10 in 9758ad1
|
Hi Jan, To further investigate, I have removed the shield from a GNICE chip. It appears that there is in fact a TCXO mounted on the board, and a Semtech sx1268 chip. Pictures are here - https://www.dropbox.com/sh/nxro3em3h09j6e4/AAB-S__5HDzFrMcxblZwNh-ya?dl=0 Next, I tried the GNICE demo code (also in the dropbox folder). This code works. What I cannot tell is whether or not the GNICE code is enabling the TCXO or leaving it in the off state (0V). In the demo code version of SX1262.h, the code for the TCXO is #define DIO3_1_6V 0x00 and so on. So, I am left wondering is somehow for the GNICE chip the manner (SPI call?) in which the TCXO is enabled or voltage is changed differs from the Dorji chip. Or maybe even a setting of 0 using the RadioLib does in fact turn on the TXCO at 1.6V? Sorry, out of my depth here. :-) A copy of the demo code is also in the Dropbox folder. Maybe the GNICE demo code will reveal the root cause of the apparent difference in Dorji versus Gnice chip behavior? Happy to test further suggestions. Best and very much appreciate your help and advice. Bob N6RFM |
The GNICE demo shows they're using 3.3 V reference (line 698), however, they also have the TCXO setup timeout set to 1562.5 us (line 593) - RadioLib uses 5000 us by default. as far as I can tell, that is the only difference in regards to TCXO. You could try calling |
Sorry Jan. Not sure where/how to make this setTCXO call. In the Groundstation.ino file? found here - https://www.dropbox.com/s/zjztrdidhprgfqr/GroundStation.ino?dl=0 or some other way/place. Not sure on syntax. b. |
In the GroundStation file, on line 588 (within the the USE_SX126X block - add |
Thanks Jan! That works. BTW, the timeout value does not seem to make a difference, so went with radio.setTCXO(3.3); |
Just closing the loop here. A much closer look at the devices on the GNICE SX1262/8 v1.1 reveals an SJK 32.000. This is a SJK(SHENZHEN CRYSTAL TECH) 7E32000E12UCG, a simple quartz crystal unit. Not a TCXO. So, Jan you were correct! Just a plain XTAL. Thanks great support and patience as I waded through this. |
I just ran into the hiccup with these same modules: https://www.aliexpress.com/item/4000366551628.html
Is there somewhere this should be documented? |
@Timvrakas I use Dorji's DRF1268T modules (notice the T at the end). Be careful when picking them up though, a lot of Ebay/Aliexpress sellers have a similar design, i.e. blue PCB with shielding - same as yours - so always double-check you're actually buying Dorji stuff. As you correctly noticed, TCXO control can't be disabled once it's been enabled, you must reset the module in order to set it back to XTAL. This issue has popped up a couple times already, so I think I'm actually going to do the reset automatically, when user requests 0 V TCXO reference. I didn't want to to implement this in the past since it poses a risk of losing configuration when used out of order - but then again, it allows simpler recovery from improperly configured module. |
Damn, I just ordered a board with the NiceRF footprint! Thanks for all the help! |
We're using DRF1268T on FOSSASAT-1B and 2, output power measurement was a part of the testing campaign. We got 21.5 dBm out of them (output power set to 22 dBm, current limit at 140 mA, measured current draw 100 - 110 mA).
Unfortunately that seems to be the only was to reset the module. |
Hii
Updated the Radio Lib on 29 Dec 2019.
Thanks for your support! Am getting ERROR State 707 with LORA SX1268 - With DORJI Development Board with arduino UNO only on the Receive Example
Same error, when i tried the same with SX1268 and ESP32 WROOM Module
The error is inconsistent, on reflahsing the code, i Get Receive Packed Once then Waiting Message...
One again restarting, the error code is -707, Both on UNO as well as ESP32
Transmit Code Works Fine. Kindly help when possible.
Once again Thanks a lot
The text was updated successfully, but these errors were encountered: