Closed CONSULitAS closed 1 year ago
- send no more than every 5 seconds
from API description
The desired data rate is one point every 5 seconds, but slower rates are accepted. Less than one every 30 seconds is recommended against.
So I would suggest:
If the car is offline, the send interval should not be changed.
Perhaps here is a way to detect?
https://stackoverflow.com/questions/23084389/how-to-detect-device-status-offline-online-in-android
If the car is offline, the send interval should not be changed.
I've now limited timeout increases to only occure on timeout exceptions. All other connection errors do not increase the interval.
Errors like this could point to congestion at ABRP which should be gracefully avoided:
Solution: adapt send interval dynamically, but