<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Greg,<div class=""><br class=""></div><div class="">All good now.</div><div class=""><br class=""></div><div class="">I wanted to support another format (binary) in the hopes that speed could improve (CRTD involves a lot of conversion), but really not impressed with the PCAP format - takes 24 bytes to store 1 CAN frame (which is almost the same as CRTD in a textually readable format. Haven’t done any speed tests yet.</div><div class=""><br class=""></div><div class="">Are there any other standard CAN dump/log formats in popular use out there? I seem to remember some Nissan Leaf dumps out in the wild in some binary format, but never found out how to read them.</div><div class=""><br class=""></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div class="">Is this can-do?</div><div class=""><a href="http://www.mynissanleaf.com/viewtopic.php?t=6088" class="">http://www.mynissanleaf.com/viewtopic.php?t=6088</a></div><div class=""><br class=""></div><div class="">But it seems a weirdly over-complex format, with no support for extended IDs (or at least as documented there)?</div></blockquote><div class=""><br class=""></div><div class="">Regards, Mark</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 28 Apr 2018, at 1:02 AM, Greg D. <<a href="mailto:gregd2350@gmail.com" class="">gregd2350@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" class="">
<div text="#000000" bgcolor="#FFFFFF" class="">
Hi Mark,<br class="">
<br class="">
Sorry, I missed last night's request for this. I have a number of
Wireshark traces during my development of the OBDII ECU code, taken
on a Raspberry Pi with a PICAN-2 interface attached. They're saved
in PCAPNG format, but I can load and resave them as needed, or take
new ones if there's something in particular to capture.<br class="">
<br class="">
Any need at this point?<br class="">
<br class="">
Greg<br class="">
<br class="">
<br class="">
<div class="moz-cite-prefix">Mark Webb-Johnson wrote:<br class="">
</div>
<blockquote type="cite" cite="mid:DF393CEB-F06E-4A48-8C05-8A9CBAFA0F6A@webb-johnson.net" class="">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" class="">
Tom,
<div class=""><br class="">
</div>
<div class="">PCAP support is now in (for RE).</div>
<div class=""><br class="">
</div>
<blockquote style="margin: 0 0 0 40px; border: none; padding:
0px;" class="">
<div class=""><font class="" face="Andale Mono"><span style="font-size: 14px;" class="">OVMS# re start</span></font></div>
<div class=""><font class="" face="Andale Mono"><span style="font-size: 14px;" class="">OVMS# re serve format
cap</span></font></div>
<div class=""><font class="" face="Andale Mono"><span style="font-size: 14px;" class="">OVMS# re serve mode
simulate</span></font></div>
<div class=""><font class="" face="Andale Mono"><span style="font-size: 14px;" class=""><br class="">
</span></font></div>
<div class=""><font class="" face="Andale Mono"><span style="font-size: 14px;" class=""># Capture over Wifi to
pcap</span></font></div>
<div class=""><font class="" face="Andale Mono"><span style="font-size: 14px;" class="">$ nc OVMS.local 3000
>my.pcap</span></font></div>
<div class=""><font class="" face="Andale Mono"><span style="font-size: 14px;" class=""><br class="">
</span></font></div>
<div class=""><font class="" face="Andale Mono"><span style="font-size: 14px;" class=""># Replay pcap over Wifi</span></font></div>
<div class=""><font class="" face="Andale Mono"><span style="font-size: 14px;" class="">$ nc OVMS.local 3000
<my.pcap >/dev/null</span></font></div>
</blockquote>
<div class=""><br class="">
</div>
<div class="">Seems to work ok, but I only support big endian
micro-second resolution pcaps (at the moment). You’d need to fix
byte ordering in the pcap header record to be able to replay
your existing pcaps into it.</div>
<div class=""><br class="">
</div>
<div class="">I’ve tested some simulated captures, into Wireshark,
and it seems fine for me. Will try in a real car tomorrow.
Thanks for your help with the captures. Very helpful to see what
is going on with a real example.</div>
<div class=""><br class="">
</div>
<div class="">Regards, Mark.</div>
<div class=""><br class="">
<div class="">
<blockquote type="cite" class="">
<div class="">On 27 Apr 2018, at 1:58 PM, Tom Parker <<a href="mailto:tom@carrott.org" class="" moz-do-not-send="true">tom@carrott.org</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class=""><a href="https://carrott.org/pcaps/" class="" moz-do-not-send="true">https://carrott.org/pcaps/</a><br class="">
<br class="">
These were captured with tcpdump and an USB can
interface with slcan driver. I post processed them to
byte swap the can ID with
<a class="moz-txt-link-freetext" href="https://carrott.org/git/leaf-can-dissector.git/blob/HEAD:/pcap-canid-endian-swap.py">https://carrott.org/git/leaf-can-dissector.git/blob/HEAD:/pcap-canid-endian-swap.py</a><br class="">
<br class="">
I don't know why tcpdump and wireshark disagree on the
byte order of the can id.<br class="">
On Apr 27, 2018 5:24 PM, Mark Webb-Johnson
<a class="moz-txt-link-rfc2396E" href="mailto:mark@webb-johnson.net"><mark@webb-johnson.net></a> wrote:<br class="">
<blockquote type="cite" class=""><br class="">
<br class="">
Has anybody got an example of a PCAP format canbus
dump file? Some dump from a car in a suitable format
for loading into wireshark (pcap not pcapng).<br class="">
<br class="">
If so, please eMail to me (<a class="moz-txt-link-abbreviated" href="mailto:mark@webb-johnson.net">mark@webb-johnson.net</a>) or
give me a link to where I can download from.<br class="">
<br class="">
I need it to verify that OVMS can read/write to that
format.<br class="">
<br class="">
Thanks, Mark.<br class="">
<br class="">
</blockquote>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
<br class="">
<fieldset class="mimeAttachmentHeader"></fieldset>
<br class="">
<pre wrap="" class="">_______________________________________________
OvmsDev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OvmsDev@lists.openvehicles.com">OvmsDev@lists.openvehicles.com</a>
<a class="moz-txt-link-freetext" href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a>
</pre>
</blockquote>
<br class="">
</div>
_______________________________________________<br class="">OvmsDev mailing list<br class=""><a href="mailto:OvmsDev@lists.openvehicles.com" class="">OvmsDev@lists.openvehicles.com</a><br class="">http://lists.openvehicles.com/mailman/listinfo/ovmsdev<br class=""></div></blockquote></div><br class=""></div></body></html>