kriswiner / CMWX1ZZABZ

Collection of sketches using the Arduino core for Murata's CMWX1ZZABZ (STM32L082 and SX1276)
93 stars 29 forks source link

Downlink Data Location and Receive Window Time #27

Closed meakash closed 3 years ago

meakash commented 3 years ago

I am using a grasshopper board to send data to TTN whenever i press a button. The uplink and downlink packets gets incremented everytime i send an uplink packet.

I want to know what is being send as downlink, where it is stored, how to read that downlink message and i know how to use Node Red with Arduino based end nodes to send specific downlink packets, is there any way in which i can send a custom downlink?

Please bear with me as i am just starting with LoRaWAN and grasshopper board.

kriswiner commented 3 years ago

See the LoRaWAN_Callbacks.ino example:

if (LoRaWAN.parsePacket())
{
    uint32_t size;
    uint8_t data[256];

    size = LoRaWAN.read(&data[0], sizeof(data));

    if (size)
    {
        data[size] = '\0';

        Serial.print(", PORT: ");
        Serial.print(LoRaWAN.remotePort());
        Serial.print(", DATA: \"");
        Serial.print((const char*)&data[0]);
        Serial.println("\"");
    }
}

On Thu, Aug 20, 2020 at 5:11 AM Akash Rao notifications@github.com wrote:

I am using a grasshopper board to send data to TTN whenever i press a button. The uplink and downlink packets gets incremented everytime i send an uplink packet.

I want to know what is being send as downlink, where it is stored, how to read that downlink message and i know how to use Node Red with Arduino based end nodes to send specific downlink packets, is there any way in which i can send a custom downlink?

Please bear with me as i am just starting with LoRaWAN and grasshopper board.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kriswiner/CMWX1ZZABZ/issues/27, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTDLKWEYU4H6QPVJ7OELG3SBUHINANCNFSM4QF7K2QQ .

meakash commented 3 years ago

Thank you so much sir, this works for me.

meakash commented 3 years ago

int setReceiveDelay(unsigned int delay);

Sir, i would like to play with delays for a development work (although not correct to do it). RX2 delay can be increased easily, what about RX1, how to increase it?

kriswiner commented 3 years ago

No idea.

On Thu, Aug 20, 2020 at 11:58 PM Akash Rao notifications@github.com wrote:

int setReceiveDelay(unsigned int delay);

Sir, i would like to play with delays for a development work (although not correct to do it). RX2 delay can be increased easily, what about RX1, how to increase it?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/CMWX1ZZABZ/issues/27#issuecomment-678078563, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTDLKRRYJRTHKG6GNJGVYTSBYLKRANCNFSM4QF7K2QQ .

kriswiner commented 3 years ago

Check the TTN forum.

On Fri, Aug 21, 2020 at 8:28 AM Tlera Corporation tleracorp@gmail.com wrote:

No idea.

On Thu, Aug 20, 2020 at 11:58 PM Akash Rao notifications@github.com wrote:

int setReceiveDelay(unsigned int delay);

Sir, i would like to play with delays for a development work (although not correct to do it). RX2 delay can be increased easily, what about RX1, how to increase it?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/CMWX1ZZABZ/issues/27#issuecomment-678078563, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTDLKRRYJRTHKG6GNJGVYTSBYLKRANCNFSM4QF7K2QQ .

meakash commented 3 years ago

Thank you so much sir.