carloop / carloop-library

Carloop library for the Particle platform
MIT License
126 stars 24 forks source link

Decode CAN messages from the included data dictionary #5

Open monkbroc opened 8 years ago

monkbroc commented 8 years ago

Use the data dictionary format in https://community.carloop.io/t/data-format-for-data-dictionaries-and-can-traces/74/3 to automatically decode CAN messages on the device.

paradoxewan commented 8 years ago

Hi, thanks for starting this. I think that if we work together with a common architecture then its going to be a lot faster to develop for as many vehicles as possible and take a little bit of the learning curve out of the way for new users. From my side, i think we need to nail a specification for the data dictionary, and logging data. With this in mind, i have started working on a couple of tools. 1 "CAN_PACK" this will be a GUI tool for making JSON files (or other format) for the creation of dictionary format. 2. CAN_REPLAY - the start of some replay tools for replaying log files either back onto the can network, or to generate stats or triggers for messages. This will probably be based around CANopen.pcap so that we can easily use tools like wireshark, which would seem to be on way of using the related data. Ill update here with some github links when i have crafted v1 of the tools.

alan707 commented 8 years ago

That is a fantastic idea @paradoxewan ! We can use our open source CAN Simulator as the hardware to replay the logged signals! Also, we are working towards adding SocketCAN capability - have you played around with that?

kg6hxm commented 8 years ago

I've used the Freematics Hardware adapter with success in the past. Anyone seen that? I'd be game helping with this project.

https://github.com/stanleyhuangyc/ArduinoOBD

alan707 commented 7 years ago

This looks very interesting, @kg6hxm care to share more details?

kg6hxm commented 7 years ago

I've got the UART adapter hooked into my Linkit ONE, and a 9DOF adapter. I'm mining GPS, DOF, and car data for sub-second analysis to figure out driving habits. I hope to be able to fingerprint the driver of my carpool based on how they drive. A also hope to map out roads for how people drive on them, and find more fuel efficient routes.

monkbroc commented 7 years ago

This kind of project is exactly what we had in mind when creating Carloop! Are you on the community.carloop.io forum yet? I'd like to talk more about how far along you are with the project.

kg6hxm commented 7 years ago

I am not on the community yet. I'm still trying to understand where you are all with your project. As far as I can see, you hooked up the Particle boards to the CAN bus, and did a proof of concept. Is this a valid assessment?

I'm always willing to help inspire creativity, so don't think my response is downplaying the potential of what this project could become.

I also wonder about the use of the Photon for this, since I need to powercycle my Photon to connect to wifi. Is there a way to ask it to reconnect without that manual cycle? Also, how's the connection do being hidden so far down in the car? My build was being made to be mounted on the dash for better GPS, cell, and wifi signal strengths.