[Ovmsdev] Adaptive Reporting

Mark Webb-Johnson mark at webb-johnson.net
Tue Sep 18 08:09:54 HKT 2012


Interestingly, we can pick that up directly from the GSM status. We get a different status for 'roaming' vs 'home' networks.

On 17 Sep, 2012, at 11:01 PM, Dominik Westner wrote:

> it also would be great to have a 'roaming' mode, which should limit data as much as possible. Potentially to be switched off for people having a true M2M multi country SIM card.
> 
> So this would be
> 
> If one or more apps are connected,
>  then incrementally report changes every 1 minute
>  else if charging or driving and NOT ROAMING
>    then incrementally report changes every 10 minutes
>    else incrementally report changes every 1 hour.
> 
> Just a thought
> 
> Dominik
> 
> On Sep 17, 2012, at 2:00 PM, Mark Webb-Johnson <mark at webb-johnson.net> wrote:
> 
>> 
>> I've raised a bunch of github issues, to track implementation of adaptive reporting:
>> 
>> https://github.com/markwj/Open-Vehicle-Monitoring-System/issues/82
>> https://github.com/markwj/Open-Vehicle-Monitoring-System/issues/83
>> https://github.com/markwj/Open-Vehicle-Android/issues/7
>> https://github.com/markwj/Open-Vehicle-iOS/issues/3
>> 
>> The current approach to GPRS reporting is:
>> If one or more apps are connected,
>>  then report everything every 1 minute
>>  else report everything every 10 minutes
>> 
>> The new approach will be:
>> If one or more apps are connected,
>>  then incrementally report changes every 1 minute
>>  else if charging or driving
>>    then incrementally report changes every 10 minutes
>>    else incrementally report changes every 1 hour.
>> 
>> The incremental part of the reporting will be done by CRC checksums on the data messages.
>> 
>> The change means that if you are charging, driving or an app is connected, there is no effective difference - if something changes that it will be reported. But, if the car is just sitting there switched off and not charging, with no app connected, then it will further back off to just report in changes once an hour.
>> 
>> The effect should be about 1/5th (estimated) the data usage if things are changing, and perhaps 1/10th (estimated) the data usage if things are not. Perhaps 2MB/month down to 200-400KB/month. Of course, the mobile providers round up connections, so that is going to reduce the actual billing impact.
>> 
>> I still want to report in, periodically, because if the car disconnects then at least we have the data as of worst case 1 hour before it disconnected (or 10 minutes if it was charging / driving).
>> 
>> Note that this doesn't affect 'keepalive'. We still have tiny OVMS protocol-level keepalives every 15 minutes, and even tinier TCP/IP keepalives every 4 minutes.
>> 
>> Regards, Mark.
>> 
>> _______________________________________________
>> OvmsDev mailing list
>> OvmsDev at lists.teslaclub.hk
>> http://lists.teslaclub.hk/mailman/listinfo/ovmsdev
> 
> _______________________________________________
> OvmsDev mailing list
> OvmsDev at lists.teslaclub.hk
> http://lists.teslaclub.hk/mailman/listinfo/ovmsdev




More information about the OvmsDev mailing list