Xinyuan-LilyGO / T-Echo

MIT License
130 stars 21 forks source link

LoRaWAN support #2

Closed hkicko closed 2 years ago

hkicko commented 2 years ago

Could you please add an example using LoRaWAN? I found 2 libraries that support this radio - https://github.com/LacunaSpace/basicmac and https://github.com/ngraziano/LMICPP-Arduino BasicMac seems more promising. But if I try to use it, it fails the assert in this method in radio-ax126x.c:

// reset radio
static void radio_reset (void) {
    // drive RST pin low
    bool has_reset = hal_pin_rst(0);

    // If reset is not connected, just continue and hope for the best
    if (!has_reset)
        return;

    // wait > 100us
    hal_waitUntil(os_getTime() + ms2osticks(1));

    // configure RST pin floating
    hal_pin_rst(2);

    // wait 1ms?
    hal_waitUntil(os_getTime() + ms2osticks(1));

    // check reset value
    ASSERT( ReadReg(REG_LORASYNCWORDLSB) == 0x24 );

    // initialize state
    state.sleeping = 0;
}
FabTangi commented 2 years ago

could you also confirm this device can be used on The Things Industries / Networks ?

hkicko commented 2 years ago

Yes, that's the goal - to use it as a mapper for Helium or TTN.

LilyGO commented 2 years ago

Hello, thank you for your proposal. We are increasing the support of loRaWAN for T-Echo. If you gain anything, you are welcome to contribute to T-Echo.

wbefield commented 2 years ago

I have a T-echo and would like to use it on the Helium network Mapper

lbuque commented 2 years ago

Currently, the lora module used by t-cho is sx1262, and arduino-lmic does not support sx1262 yet.

We replaced the lora module of t-echo with sx1276, and lorawan runs normally.

This is the verification program.

https://github.com/Xinyuan-LilyGO/T-Echo/tree/main/examples/LoRaWAN

MAY4VFX commented 7 months ago

https://github.com/Xinyuan-LilyGO/T-Echo/tree/main/examples/LoRaWAN such a path does not exist, does T-echo TTN support any news?