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

[Issue] Example OLED_LoRa_Sender do not work on T-Beam V1_2 #60

Open
redradist opened this issue Mar 7, 2024 · 6 comments
Open

[Issue] Example OLED_LoRa_Sender do not work on T-Beam V1_2 #60

redradist opened this issue Mar 7, 2024 · 6 comments

Comments

@redradist
Copy link

redradist commented Mar 7, 2024

I have tried to run the following example https://github.com/LilyGO/TTGO-T-Beam/blob/master/OLED_LoRa_Sender/OLED_LoRa_Sender.ino but on LoRa.endPacket(); program stuck ...

I have deep dive that figured out that it spinning in while loop inside endPacket method:

int LoRaClass::endPacket(bool async)
{
...
  Serial.println("endPacket after: if (!async)");
  if (!async) {
    Serial.println("endPacket before: while ((readRegister(REG_IRQ_FLAGS) & IRQ_TX_DONE_MASK) == 0)");
    // wait for TX done
    while ((readRegister(REG_IRQ_FLAGS) & IRQ_TX_DONE_MASK) == 0) {
      int reg = readRegister(REG_IRQ_FLAGS);
      yield();
    }
    Serial.println("endPacket after: while ((readRegister(REG_IRQ_FLAGS) & IRQ_TX_DONE_MASK) == 0)");
    // clear IRQ's
    writeRegister(REG_IRQ_FLAGS, IRQ_TX_DONE_MASK);
  }
  Serial.println("endPacket finish");
...
}
@redradist redradist changed the title [Issue] Exmaple OLED_LoRa_Sender do not work on T-Beam V1_2 [Issue] Example OLED_LoRa_Sender do not work on T-Beam V1_2 Mar 7, 2024
@lewisxhe
Copy link

ArduinoLoRa
Only supports SX1276/SX1278, which one are you using?

@redradist
Copy link
Author

ArduinoLoRa Only supports SX1276/SX1278, which one are you using?

@lewisxhe I am using T-Beam v1.2, Semtech SX1276, 433MHz

@bcaceres96
Copy link

bcaceres96 commented Oct 16, 2024

were you able to solve the problem?
I have the same error

@lewisxhe
Copy link

lewisxhe commented Oct 16, 2024

Sorry, I didn't reply in time. I just realized that you are not running the example https://github.com/Xinyuan-LilyGO/LilyGo-LoRa-Series/tree/master/examples/ArduinoLoRa.

https://github.com/LilyGO/TTGO-T-Beam/blob/master/OLED_LoRa_Sender/OLED_LoRa_Sender.ino
This example is no longer maintained. Please run the ArduinoLoRa in this repository.

@bcaceres96
Copy link

It didn't work for me

@lewisxhe
Copy link

@bcaceres96 https://github.com/Xinyuan-LilyGO/LilyGo-LoRa-Series/tree/master/examples/ArduinoLoRa This only supports sX1276/78, are you using this? Or SX1262?

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

3 participants