CAN Hacking: Protocols

can-hacking-part-2

We’ve gone over the basics of CAN and looked into how CAN databases work. Now we will look at a few protocols that are commonly used over CAN.

In the last article we looked at CAN databases, where each bit of a message is mapped to a specific meaning. For example, bit 1 of a CAN message with ID 0×400 might represent whether the engine is currently running or not.

However, for more complex communications we need to use protocols. These can map many meanings to a single CAN ID by agreeing on a structure for sending and receiving data.

[Read more...]

Team Van Gogh uses OpenXC to create art from your drive

vangogh

In this video, [Joe Grand] takes us through [Team Van Gogh’s] entry in the OpenXC hackathon event. In what could possibly be the greatest road trip in history, [Joe Grand, Ben Krasnow, TechNinja, and Super Awesome Sylvia] all pile into a car. With them they bring a host of dev boards, wires, a CB Radio, and of course Sylvia’s WaterColorBot.

As their name implies, [Team Van Gogh] took a more artistic approach to the challenge than other teams.  OpenXC steering, gear shift, accelerator and brake data is sent through a ChipKit to an RS-232 link into [TechNinja’s] laptop. The laptop translates the data into commands for the WaterColorBot. With this system, a simple Sunday drive can become abstract art.

The team also showed the concept of what could be done if OpenXC was extended to send data back to the vehicle – something Ford doesn’t support. Their example works when a phone call comes in by using the system to lower the volume on a CB radio standing in for car’s Bluetooth system.

Most of this challenge was completed with simulated data from the OpenXC vehicle interface. The team only had a few minutes to work the bugs out in a real vehicle. However, they proved their concepts well enough to win the grand prize.

[Read more...]

Smart Brake lights and more with OpenXC

smart-brake-light

At a recent hack-a-thon event, [Al Linke] tapped into a vehicle’s OBD port with an OpenXC vehicle interface and hacked an LED screen in the rear window to display data based on events. If you haven’t heard of OpenXC, you can expect to read more about it here at Hackaday in the near future. For now, all you need to know is that OpenXC is Ford’s open source API for real-time data from your vehicle: specifically 2010 and newer model Ford vehicles (for now).

[Al] connected the OpenXC interface to his Android phone over Bluetooth, transmitting data from the OBD port to the phone in real time. From here, the Android can do some really cool stuff. It can use text to speech to announce how much your lead foot cost you, add sound effects for different car events, and even interact with additional devices. Although he managed all of those features, [Al's] primary goal was to add an LED screen that displayed messages on the vehicle’s back window.

When the phone detected a braking event from the car, it directed the LEDs to light up with a “braking” image, adding some flavor to the process of stopping. He could also change the image to a “Thank You” sign with a waving hand, or—for less courteous drivers—an “F U” image with a slightly different hand gesture. You’ll want to check your local and/or national laws before attempting to strap any additional lighting to your vehicle, but you can watch [Al's] car light up in the video below. For a more detailed look under the hood, he’s also provided an Instructables page.  If OpenXC catches on, the number of vehicle hacks such as the Remote Controlled Car may skyrocket.

[Read more...]