CMWX1ZZABZ icon indicating copy to clipboard operation
CMWX1ZZABZ copied to clipboard

LORAWAN_DEFAULT_PORT override

Open olivierfavre opened this issue 5 years ago • 3 comments

Evening! Thanks for the great job! Two questions (GNAT):

  1. Is it possible to override in the sketch, not the library LORAWAN_DEFAULT_PORT ?
  2. The NoMotionActivityTimer and InMotionActivityTimer cycles seem to have no effect when the GNAT is powered by USB, normal? Great device !

olivierfavre avatar Apr 27 '20 19:04 olivierfavre

Not sure about 1).

The Gnat cannot enter stop mode when USB is connected.

On Mon, Apr 27, 2020 at 12:57 PM Olivier FAVRE [email protected] wrote:

Evening! Thanks for the great job! Two questions (GNAT):

  1. Is it possible to override in the sketch, not the library LORAWAN_DEFAULT_PORT ?
  2. The NoMotionActivityTimer and InMotionActivityTimer cycles seem to have no effect when the GNAT is powered by USB, normal? Great device !

— 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/24, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTDLKVLDEQVVUPF4EV2SYDROXPRLANCNFSM4MSG4V6A .

kriswiner avatar Apr 27 '20 20:04 kriswiner

Still, not sure why the noMotion functions shouldn't work. How do you know they don't, what is the symptom?

On Mon, Apr 27, 2020 at 1:54 PM Tlera Corporation [email protected] wrote:

Not sure about 1).

The Gnat cannot enter stop mode when USB is connected.

On Mon, Apr 27, 2020 at 12:57 PM Olivier FAVRE [email protected] wrote:

Evening! Thanks for the great job! Two questions (GNAT):

  1. Is it possible to override in the sketch, not the library LORAWAN_DEFAULT_PORT ?
  2. The NoMotionActivityTimer and InMotionActivityTimer cycles seem to have no effect when the GNAT is powered by USB, normal? Great device !

— 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/24, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTDLKVLDEQVVUPF4EV2SYDROXPRLANCNFSM4MSG4V6A .

kriswiner avatar Apr 27 '20 21:04 kriswiner

Looking at the library, I see this is what "LoRaWAN.beginPacket(3);" does. If you add this to your sketch, default port becomes "3". Valid values are 1..223. Quote from Lora dev portal: The LoRaWAN specification provides a data delivery field (FRMPayload) and a Port field (FPort) to distinguish between different types of messages. FPort 0 is reserved for MAC messages. Do not use this port to transport data fields. FPort 224 is reserved for MAC compliance testing and FPorts 225-255 are reserved for future standardized application extensions1. This leaves valid port numbers between 1 and 223.

VinceICPO avatar Nov 29 '20 10:11 VinceICPO