kriswiner / CMWX1ZZABZ

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

Question: Is it possible to change the callback delay? #22

Closed applecrusher closed 4 years ago

applecrusher commented 4 years ago

I am working with the Grasshopper development board. I am using callbacks for uplinks using the example code in this library. This works well, but the callback delay seems to be exactly 3 seconds. I do not know if this is hardcoded somewhere, or if this is actually the time it takes to complete what is necessary to reach the gateway. I am very close to the gateway. Is it possible to shorten this callback time? I am trying to send burst messages and to shorten the time the STM32L0 and antenna are on. I do not know the best way to do so with the code and any help would be greatly appreciated! Thank you!

kriswiner commented 4 years ago

Not sure, but remember, for each Tx there are two Rx, which is part of the LoRaWAN protocol and this entire message scheme can take 3 seconds I suppose.. This has nothing to do with proximity of the gateway and would be the same if the gateway were 500 meters away. If you have a power meter you will see that the peak current of ~30 mA only lasts a few tens of ms on Tx, so any attempt to shorten the entire packet time won;t save any power.

On Mon, Nov 11, 2019 at 8:30 AM applecrusher notifications@github.com wrote:

I am working with the Grasshopper development board. I am using callbacks for uplinks using the example code in this library. This works well, but the callback delay seems to be exactly 3 seconds. I do not know if this is hardcoded somewhere, or if this is actually the time it takes to complete what is necessary to reach the gateway. I am very close to the gateway. Is it possible to shorten this callback time? I am trying to send burst messages and to shorten the time the STM32L0 and antenna are on. I do not know the best way to do so with the code and any help would be greatly appreciated! Thank you!

— 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/22?email_source=notifications&email_token=ABTDLKSK6ZTIMFPE6C5TZO3QTGCB5A5CNFSM4JLX3DXKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HYOYYUA, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTDLKVML3XMYNZS6ZOXJW3QTGCB5ANCNFSM4JLX3DXA .

applecrusher commented 4 years ago

Great! Thank you for the good answer and quick response