can-message
Pack and unpack CAN bus data.
This library is designed for use with the Panda OBD-II Dongle as part of pandajs.
Installation
npm i --save can-message
or
yarn add can-message
Usage
; // parse raw buffer into can datavar messageArray = ;// messageArray is an array of { address, busTime, data, bus } // create a buffer containing a can messagevar buffer = ;
const CanMessage = ; // parse raw buffer into can datavar messageArray = CanMessage;// messageArray is an array of { address, busTime, data, bus } // create a buffer containing a can messagevar buffer = CanMessage;
Contributing
yarn run test
License
MIT @ comma.ai
Read more about how to get started hacking your car with Panda here.