Xinyuan-LilyGO / T-Deck

298 stars 54 forks source link

Lorawan #45

Closed RobbyGit closed 1 month ago

RobbyGit commented 2 months ago

Hi

Is anyone working on getting the t-deck to work with Lorawan and not lora.

lewisxhe commented 2 months ago

If you are familiar with the use of Lora, then you can see here LoRaWAN

RobbyGit commented 2 months ago

Nope this is not the right chip That example is SX1278 the T-deck used SX1262

Initialise the radio Initialise radio failed - ERR_CHIP_NOT_FOUND (-2)

lewisxhe commented 2 months ago

You are right. The link you sent is just an example of RadioLib. You need to modify it according to t-deck to the same model and pin definition as t-deck.

lewisxhe commented 2 months ago

I took the time to add a lorawan example today. https://github.com/Xinyuan-LilyGO/T-Deck/tree/master/examples/LoRaWAN_Starter

RobbyGit commented 2 months ago

ok great will have a look. I tied that and it didn't seem to find the CHIP. Perhaps I had the pins wrong. Will feedback but thank you so very much. This will open up a whole new area for the T_deck

RobbyGit commented 2 months ago

ok I was right ...Your example has the sameproblem mine does also.. Setup ... Initialise the radio Initialise radio failed - ERR_CHIP_NOT_FOUND (-2)

I think this has to do with . SX1262 radio = new Module(RADIO_CS_PIN, RADIO_DIO1_PIN, RADIO_RST_PIN, RADIO_BUSY_PIN);

I dont thinks the pins are right

lewisxhe commented 2 months ago

If so, the one you bought does not have LoRa function. Please check your motherboard and order.

RobbyGit commented 2 months ago

I have the T-Deck(ESP32S3) with the SX1262 Lora chip

lewisxhe commented 2 months ago

Please take a photo of the motherboard. It is the back, there should be a module with SX1262 on it.

RobbyGit commented 2 months ago

Can you share you platfomio.ini.. maybe mine is wrong

lewisxhe commented 2 months ago

https://github.com/Xinyuan-LilyGO/T-Deck/blob/master/platformio.ini

RobbyGit commented 2 months ago

WhatsApp Image 2024-09-19 at 09 39 02

lewisxhe commented 2 months ago

Did you use the sketch I uploaded or did you just modify the pins?

RobbyGit commented 2 months ago

No i used the uploaded scripts

lewisxhe commented 2 months ago

If you use the sketch I provided, there should be no error, because this is the sketch I have tested.

Try this sketch https://github.com/Xinyuan-LilyGO/T-Deck/tree/master/examples/UnitTest or use the binary file directly https://github.com/Xinyuan-LilyGO/T-Deck/blob/master/firmware/T-Deck_UnitTest_240913.bin

RobbyGit commented 2 months ago

Yes the T-Deck_UnitTest_240913.bin works, Weird but the Lorawan does not

RobbyGit commented 2 months ago

Oh Wait .. it works not... Ok let me come back to you Thank you

RobbyGit commented 1 month ago

Thank you Lewis, Seem when i updated the firmware to T_DDeck_UnitTest_240913.bin and then rebuilt the code after a clean ... it works... Wow!! thank you so much for the time you spent on it . I am going to build a small message app and will let you know, maybe include it in the examples. Will let you know

RobbyGit commented 1 month ago

Work perfectly. ;-)