I loaded the can_sniffer example sketch from the firmware_v5 folder in the Freematics repo and plugged the device into my car with the USB serial attached to my laptop. I see no output over serial. In my own custom sketch, which is based on can_sniffer, I also see no data. I tried changing the header mask from 0xFFFFFFF0 to 0x0 (which should allow all messages) and I still see nothing. I then tried to query a PID by myself, letting the can_sniffer code sniff the result. To do this, I did:
Code: Select all
char buffer[64];
sprintf(buffer, "%02X%02X\r", obd.dataMode, PID_RPM);
link->send(buffer);