mcci-catena / arduino-lmic

LoraWAN-MAC-in-C library, adapted to run under the Arduino environment
https://forum.mcci.io/c/device-software/arduino-lmic/
MIT License
638 stars 208 forks source link

Newbie question - transmitting small packets at near real time speeds #944

Open yaydogan opened 1 year ago

yaydogan commented 1 year ago

Hi,

I am new to Lora network and want to understand the feasibility of what I am trying to build. I am planning to build a sensor with a GPS and want to send location information every 500msec or less. The payload will be small - may be 12 bytes. Sensor will be always powered so I am not worried about power consumption. The sensor will not receive any data from network so there won't be any traffic on downlink. Is this possible with LMIC library?

Thanks in advance.

terrillmoore commented 1 year ago

Not possible as stated. The LMIC library waits for the RX1 window to close unconditionally. That's network specific, but at least 1 second, and 5 seconds on The Things Network.

However, if latency is not an issue, you can aggregate location readings, and transmit a large record. At SF7 or SF8, you can transmit 240 bytes. Location fixes are typically 4 bytes of data if you send in binary, so 240 bytes is 60 fixes; if you send every 30 seconds, you'll get the required data density (but there will be latency for the older readings).

simortus commented 11 months ago

Another thing is your device will violate the free band restriction, which is 1% OAT (on air time) for end-nodes.