I'm starting to look at adding support for my Cadillac but it's not clear to me that I can use a ovms module to capture can frames? Do I need another device to do it? Craig
We have full support for CAN dumping. Two options: To an SD card can log crtd /sd/file.crtd can log off Usage: can log crtd <path> [filter1] [filter2] [filter3] Filter: <bus> / <id>[-<id>] / <bus>:<id>[-<id>] Example: 2:2a0-37f Over WiFi re start re move serve re serve format crtd|pcap Then, on workstation: nc vehicleid.local 3000 | tee file.crtd I personally use the wifi mode. You can output to crtd format (an ascii readable format), or pcap (for loading into wireshark). With wifi, you can also ‘re serve mode simulate’ and then replay CAN bus dumps back in (nc vehicleid.local 3000 <file.crtd). If you want to test transmission, you can either do it over wifi (re serve mode transmit), or use the ‘can canX tx …’ command to directly transmit a frame. Regards, Mark.
On 26 Nov 2018, at 7:39 AM, Craig Leres <leres@xse.com> wrote:
I'm starting to look at adding support for my Cadillac but it's not clear to me that I can use a ovms module to capture can frames? Do I need another device to do it?
Craig _______________________________________________ OvmsDev mailing list OvmsDev@lists.openvehicles.com http://lists.openvehicles.com/mailman/listinfo/ovmsdev
On 11/25/18 3:59 PM, Mark Webb-Johnson wrote:
We have full support for CAN dumping.
My first attempt failed, instrument cluster and driver information center went crazy when I turned the car on (and I couldn't start it) but I changed the can bus mode from CAN_MODE_ACTIVE to CAN_MODE_LISTEN, lowered the speed to CAN_SPEED_500KBPS (1000 is probably ok but will test later) and got a nice pcap file to poke at in my leisure. Thanks for the hints! Craig
You probably got the speed wrong. When in active mode, the system will actively respond to messages on the bus, and if the baud rate is wrong that messes things up. In listen mode, the system won’t write to the CAN bus at all, so is more tolerant to baud rate mismatch (you will get garbage messages instead). Regards, Mark.
On 26 Nov 2018, at 11:00 AM, Craig Leres <leres@xse.com> wrote:
On 11/25/18 3:59 PM, Mark Webb-Johnson wrote:
We have full support for CAN dumping.
My first attempt failed, instrument cluster and driver information center went crazy when I turned the car on (and I couldn't start it) but I changed the can bus mode from CAN_MODE_ACTIVE to CAN_MODE_LISTEN, lowered the speed to CAN_SPEED_500KBPS (1000 is probably ok but will test later) and got a nice pcap file to poke at in my leisure.
Thanks for the hints!
Craig
On Sun, 25 Nov 2018, Craig Leres wrote:
I'm starting to look at adding support for my Cadillac but it's not clear to me that I can use a ovms module to capture can frames? Do I need another device to do it?
I'm presuming that you connect the OVMS to the OBD-II connector with a cable made for the purpose. Do the desired CAN busses appear on the OBD-II connector? If not, you'll need to find some other connectors (or wires) where you can pick them up. And then the CAN bus pins on the car need to be wired to the right pins on the OVMS where it expects to see CAN busses (up to 3). Other than the cable(s), other devices shouldn't be required. -- Steve
participants (3)
-
Craig Leres -
Mark Webb-Johnson -
Stephen Casner