CongducPham / LowCostLoRaGw

Low-cost LoRa IoT & gateway with SX12XX (SX1261/62/68; SX1272/76/77/78/79; SX1280/81), RaspberryPI and Arduino boards
698 stars 352 forks source link

Async downlink #134

Open ShiawasenaHoshi opened 7 years ago

ShiawasenaHoshi commented 7 years ago

Hi, guys! There is one line in this readme https://github.com/CongducPham/LowCostLoRaGw/blob/master/gw_full_latest/README-downlink.md : "the lora_gateway.cpp program will check for a downlink.txt file after each LoRa packet reception. This behavior can be disable with --ndl option" but I'd like to check downlink independent of packet reception. Is there any ready-made solution or I need to make it by myself? Or at least send downlink after 100-1000ms gateway receive packet.

CongducPham commented 7 years ago

There are 2 levels for downlink, the post-processing level and the low-level gateway (i.e. lora_gateway.cpp). At post-processing, it is as you said asynchronous. At the lora_gateway level, it is triggered by packet reception. You can change this latter behavior by implementing it in lora_gateway.cpp but it has little interest as end-device may be sleeping most of the time.

regards,

Le 12/08/2017 à 15:57, ShiawasenaHoshi a écrit :

Hi, guys! There is one line in this readme https://github.com/CongducPham/LowCostLoRaGw/blob/master/gw_full_latest/README-downlink.md : "the lora_gateway.cpp program will check for a downlink.txt file after each LoRa packet reception. This behavior can be disable with --ndl option" but I'd like to check downlink independent of packet reception => asynchronious handling. Is there any ready-made solution or I need to make it by myself?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/CongducPham/LowCostLoRaGw/issues/134, or mute the thread https://github.com/notifications/unsubscribe-auth/ABNEN9dYHGahaH1UsKezDARWw2ONZqnVks5sXa84gaJpZM4O1a6k.

C. Pham.

-- ------------ Congduc PHAM - Professor -------------------------- LIUPPA - Equipe T2I U.P.P.A. Pau http://liuppa.univ-pau.fr/ http://www.univ-pau.fr
UPPA, LIUPPA laboratory, UFR Sciences et Techniques
Avenue de l'Université - BP 1155
64013 PAU CEDEX, FRANCE
phone: [33] (0) 5 59 40 75 94
fax: [33] (0) 5 59 40 76 54
Congduc.Pham@univ-pau.fr http://www.univ-pau.fr/~cpham
----------------------------------------------------------------