[Ovmsdev] can log

Mark Webb-Johnson mark at webb-johnson.net
Wed Jun 19 16:59:58 HKT 2019


25% is better than 81.2% :-)

Sounds like the SD CARD just can’t keep up with logging volume. You could try to use RETOOLS ’serve’ mode to log over wifi. Alternatively, the new code I just committed can log in pcap mode, which may be less cpu intensive (as crtd is a textual format), but won’t do anything for SD speed.

Regards, Mark.

> On 19 Jun 2019, at 12:23 PM, Tamás Kovács <kommykt at gmail.com> wrote:
> 
> Now set 20000, and now the dropped package about 25%.
> 
> Mark Webb-Johnson <mark at webb-johnson.net <mailto:mark at webb-johnson.net>> ezt írta (időpont: 2019. jún. 18., K, 7:14):
> The Mac processor and I/O is a little bit faster than the little esp32.
> 
> You can try to set to 20000 then reboot. Should be about 5 times faster than default. But if running old hardware without 5v usb connected, then may crash. Recent modules, or when you have USB connected, can operate at high speed.
> 
> Regards, Mark
> 
>> On 18 Jun 2019, at 11:56 AM, Tamás Kovács <kommykt at gmail.com <mailto:kommykt at gmail.com>> wrote:
>> 
>> Now i remove the SD card in my Mac the speed is 10MB/s / 80MB /s (W/R).
>> I have a 1.5 year old modell with the following numbers (2018020219PTWU)
>> If run ‘config list sdcard’ only show 'sdcard (readable writeable)'
>> if i run 'config set sdcard maxfreq.khz 16000' now show this value for ‘config list sdcard’.
>> 
>> For download, if i copy the log to another folder than sd root, i can browse the folder tree, and download directly. 
>> 
>> Mark Webb-Johnson <mark at webb-johnson.net <mailto:mark at webb-johnson.net>> ezt írta (időpont: 2019. jún. 18., K, 2:14):
>> Tamás,
>> 
>> Yes, it seems SD CARD is too slow.
>> 
>> Can you check ‘config list sdcard’ and see if you have a ‘maxfreq.khz’ value set? The default is 16000.
>> 
>> If you have a reasonably modern OVMS module, or are running from USB power (even if 12v is connected as well), you can set:
>> 
>> config set sdcard maxfreq.khz 20000
>> 
>> and reboot, to improve the SD CARD write speed.
>> 
>> The 1R11 means reception of a 11bit (standard) CAN message on CAN1 bus. A 1T11 would mean transmission. I think you should be able to download via the browser - personally, I just scp the files off the module over wifi.
>> 
>> Regards, Mark.
>> 
>>> On 15 Jun 2019, at 1:58 AM, Tamás Kovács <kommykt at gmail.com <mailto:kommykt at gmail.com>> wrote:
>>> 
>>> I want to create log file from can messages while Lexia connected to obd, but many message has dropped. My sd card is too slow to write all data?
>>> 
>>> I start logging with can log crtd /sd/lexia.crtd command
>>> 
>>> Closing log: Type:crtd; Path:'/sd/lexia.crtd'; Filter:off; Vehicle:MI;
>>> Statistics: total messages: 3334194, dropped: 2707476 = 81.2%
>>> 
>>> 
>>> In can log i can see the incoming messages?
>>> This is a RX message:
>>> 175594.785 1R11 346 27 10 40 00 00 00 00 42
>>> if 1R11 is 1T11 this is a TX message on CAN1?
>>> How can i download the log file, the easiest way, because if i use browser and add the file url (ip/lexia.crtd) the browser load its content.
>>> 
>>> 
>>> 
>>> 
>>> _______________________________________________
>>> OvmsDev mailing list
>>> OvmsDev at lists.openvehicles.com <mailto:OvmsDev at lists.openvehicles.com>
>>> http://lists.openvehicles.com/mailman/listinfo/ovmsdev <http://lists.openvehicles.com/mailman/listinfo/ovmsdev>
>> 
>> _______________________________________________
>> OvmsDev mailing list
>> OvmsDev at lists.openvehicles.com <mailto:OvmsDev at lists.openvehicles.com>
>> http://lists.openvehicles.com/mailman/listinfo/ovmsdev <http://lists.openvehicles.com/mailman/listinfo/ovmsdev>
>> 
>> 
>> -- 
>> Üdvözlettel:
>> Kovács Tamás
>> 
>> _______________________________________________
>> OvmsDev mailing list
>> OvmsDev at lists.openvehicles.com <mailto:OvmsDev at lists.openvehicles.com>
>> http://lists.openvehicles.com/mailman/listinfo/ovmsdev <http://lists.openvehicles.com/mailman/listinfo/ovmsdev>
> 
> _______________________________________________
> OvmsDev mailing list
> OvmsDev at lists.openvehicles.com <mailto:OvmsDev at lists.openvehicles.com>
> http://lists.openvehicles.com/mailman/listinfo/ovmsdev <http://lists.openvehicles.com/mailman/listinfo/ovmsdev>
> 
> 
> -- 
> Üdvözlettel:
> Kovács Tamás
> 
> _______________________________________________
> OvmsDev mailing list
> OvmsDev at lists.openvehicles.com
> http://lists.openvehicles.com/mailman/listinfo/ovmsdev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvehicles.com/pipermail/ovmsdev/attachments/20190619/c458901a/attachment.htm>


More information about the OvmsDev mailing list