Skip to content
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

LvglLoRaMessenger: Start Radio failed, code:-707 #5

Closed
civicbynature opened this issue Mar 4, 2024 · 3 comments
Closed

LvglLoRaMessenger: Start Radio failed, code:-707 #5

civicbynature opened this issue Mar 4, 2024 · 3 comments

Comments

@civicbynature
Copy link

Hi thank you for your great examples.

The LoRaMessenger Code Always fails to start Radio.
I have tested liligo's unitTest code and it has no issue.
but when I upload your LoRamessenger it gets the error below everytime.
any ideas what is causing it.

Output:
Arduino LoRa Messenger
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x15 (USB_UART_CHIP_RESET),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x4209f1be
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3808,len:0x44c
load:0x403c9700,len:0xbe4
load:0x403cc700,len:0x2a38
entry 0x403c98d4
Arduino LoRa Messenger
Init LILYGO Keyboard
Setup done
Start Radio failed,code:-707
Radio not online!
Radio not online!
Radio not online!
Radio not online!

@moononournation
Copy link
Owner

Please get update, it should be ok now.

@civicbynature
Copy link
Author

thanks for your update.
the error has now changed to Code: -2

output:
ESP-ROM:esp32s3-20210327
Arduino LoRa Messenger
Init LILYGO Keyboard
Setup done
Start Radio failed,code:-2
Radio not online!
Radio not online!
Radio not online!

@civicbynature
Copy link
Author

Solved it! Using your original code:
in Lora.h Ln 31

added the below.

bool setupRadio()
{
// Add mutex to allow multitasking access
xSemaphore = xSemaphoreCreateBinary();
assert(xSemaphore);
xSemaphoreGive(xSemaphore);

digitalWrite(TDECK_SDCARD_CS, HIGH); //testing Nds
digitalWrite(TDECK_RADIO_CS, HIGH);
digitalWrite(TDECK_TFT_CS, HIGH);
SPI.end();
SPI.begin(TDECK_SPI_SCK, TDECK_SPI_MISO, TDECK_SPI_MOSI); //SD

int state = radio.begin(RADIO_FREQ);
if (state == RADIOLIB_ERR_NONE)
{
Serial.println("Start Radio success!");
}
else
{
Serial.print("Start Radio failed,code:");
Serial.println(state);
Serial.println("lora.h Ln 49 Fail Code");
return false;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants