[Ovmsdev] Getting Log Data From v2.5.2 Firmware
mark at webb-johnson.net
Mon Sep 9 08:46:10 HKT 2013
I can't see anything obviously wrong. The settings you have look correct and the units should not affect the charge logging. But, the charge wasn't logged.
I re-checked my car logging, just now, and it is still fine - so I don't think this is a regression problem.
But, I do see a bug in the code - if the logging was disabled and you had a bunch of drives/charges, the logging table would be filled-up but never sent to the server. Even if you then enabled logging, it still wouldn't work. To see if this is the case, can you try to unplug, wait ten seconds, then replug in the module? Then, go for a drive/charge and see if that fixes it.
P.S. I'll fix the bug tonight - it is just to add a check for logging enabled before reserving a logging slot.
On 9 Sep, 2013, at 6:20 AM, Tom Saxton <tom at idleloop.com> wrote:
> On 8/15/13 6:55 AM, "Mark Webb-Johnson" <mark at webb-johnson.net> wrote:
>> The [drive and charge logging] records themselves can be downloaded as
>> historical data using either the HTTP or OVMS protocol APIs.
> I'm trying to do this but I'm not seeing the records I expected to see.
> I received my V2 hardware, did a V2_TR_PRODUCTION build, downloaded the
> firmware, and configured the module. SMS and the iPhone app are working.
> The version being reported by the device is 2.5.2/TR/V2.
> Yesterday evening, I did a "FEATURE 13 255" to enable the logging and ACC
> goodness. Last night, the car charged.
> To get the log data, I used the HTTP API historical/ and got this result:
> 'first' => '2013-08-10 15:37:09',
> 'distinctrecs' => '1',
> 'totalsize' => '1511',
> 'last' => '2013-09-07 21:39:21',
> 'totalrecs' => '24',
> 'h_recordtype' => '*-OVM-DebugCrash'
> 'first' => '2013-02-22 00:00:00',
> 'distinctrecs' => '4',
> 'totalsize' => '36920',
> 'last' => '2013-09-08 00:00:00',
> 'totalrecs' => '792',
> 'h_recordtype' => '*-OVM-Utilisation'
> From looking at the vehicle firmware, it looks like I should be getting
> *-Log-Drive and *-Log-Charge records.
> Am I doing something wrong?
> I did get the units param messed up at some point, which I fixed this
> morning. Would that mess up logging?
> OvmsDev mailing list
> OvmsDev at lists.teslaclub.hk
More information about the OvmsDev