Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Movement as trigger for uplink #7

Open
Emacee opened this issue May 3, 2021 · 0 comments
Open

Movement as trigger for uplink #7

Emacee opened this issue May 3, 2021 · 0 comments

Comments

@Emacee
Copy link

Emacee commented May 3, 2021

Hi,

First I would like to thank you for sharing this project, I've been using it for quite some time and I think it's a nice integration of CayenneLPP with the T-Beam.
In my testing I've discovered that the short TX_Interval is only triggered if movement is detected during an uplink tranmission.
nextPacketTime = (kmph > MOVING_KMPH ? SHORT_TX_INTERVAL : TX_INTERVAL); // depend on current GPS speed

I would like to adjust the code so that the interval for regular uplinks can be very low to save LoraWAN airtime and that the transmission interval can be very high during movement so that I can have an accurate tracking device. However, I would like the GPS movement to trigger the short interval and not the succesful transmission.

Currently, if the car I'm tracking is in stop & go traffic at exactly the regular time interval, the movement in between the regular intervals is not detected. It would be nice to do some GPS polling on the device and have any observed movement (above the speed treshold) trigger the high interval. This GPS polling interval can be higher than the regular TX_Interval as to save LoraWAN airtime without losing tracking accuracy.

I'm looking into examples that use this type of GPS polling to see if I can integrate it in this project. I'm no coding expert so coding this completly myself is a bit too far fetched I'm afraid. Thought you might think this is relevant as well, let me know what you think about this idea!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant