Notices
C5 General General C5 Corvette and C5 Z06 Discussion not covered in Tech

Automotive CAN Bus Emulator

Thread Tools
 
Search this Thread
 
Old Jan 13, 2017 | 01:08 PM
  #1  
bikeriderga's Avatar
bikeriderga
Thread Starter
Melting Slicks
10 Year Member
 
Joined: Aug 2011
Posts: 2,423
Likes: 200
From: Atlanta GA
Default Automotive CAN Bus Emulator

FYI,

Thought I would make this application available for those interested in Automotive CAN technologies. This application is being used for a CAN technologies class I am teaching at a fortune 100 company.

It is a relatively simple teaching CAN bus simulator. It performs these primary functions.

1. Emulates an Ignition Start Command
Once you click the Start Engine button, it will begin to display CAN message just as a real connected car would.

2. Emulates an Ignition Off Command:
This will stop CAN messages from sending, just as a connection to a real car would.

3. Emulates an Accelerator Pedal: This is not unlike a real car when the ignition is on, car is running and you press the accelerator pedal.

However, unlike a real car, I made this function available when the ignition is off for teaching purposes. I did this so that it would be easier for students to figure out what CAN messages are being sent to the bus when the accelerator and/or brake pedal are applied.

4. Emulates a Brake Pedal:
See # 3 above.

5. Search for CAN Commands:
You can search for specific CAN commands by issuing the CAN Message ID and the CAN Message length. The secret here is you need to capture the CAN message IDs from the read outs when clicking the accelerator and brake pedals, or when ignition is on, in order to get the specific CAN Message IDs, data length, etc.

For the purpose of the demo, I use C1 and 1C as valid message query ids that will return CAN messages. I will show an example below.

CAN Identifier : 96
Data Frame: FF FF FF FF C1 FF FF FF


Entering this into the Send a CAN Command to the Can Identifier and Data Frame fields, combined with clicking the Send Command, will return CAN Messages relative to the CAN query request.

Here is the link to download:
http://computer-logic.us/

Click on the Products Page and look for Can Bus Simulator. Click on the picture to download the java application and save to your computer..

Please Note: You will need Java 8 Runtime installed on your computer to use this application.

Last edited by bikeriderga; Jan 13, 2017 at 01:09 PM.
Reply
Old Jan 13, 2017 | 01:42 PM
  #2  
Fast one's Avatar
Fast one
Le Mans Master
25 Year Member
Liked
Loved
Community Favorite
 
Joined: Jan 2001
Posts: 5,022
Likes: 509
From: Hilton NY
Default

What would you use this for?
Reply
Old Jan 13, 2017 | 01:46 PM
  #3  
bikeriderga's Avatar
bikeriderga
Thread Starter
Melting Slicks
10 Year Member
 
Joined: Aug 2011
Posts: 2,423
Likes: 200
From: Atlanta GA
Default

Originally Posted by Fast one
What would you use this for?
Just for learning CAN bus technology, which is the centralized internal network and messaging for how all vehicles work and all sensors work and communicate within the vehicle.

Last edited by bikeriderga; Jan 13, 2017 at 06:35 PM.
Reply
Old Jan 13, 2017 | 01:50 PM
  #4  
Vetteman Jack's Avatar
Vetteman Jack
Administrator
Supporting Lifetime
Veteran: Navy
St. Jude 20 Year Donor
25 Year Member
Veteran: Reserves
 
Joined: Mar 2001
Posts: 368,602
Likes: 24,859
From: In a parallel universe. Currently own 2014 Stingray Coupe.
C7 of the Year - Modified Finalist 2021
MO Events Coordinator
St. Jude Co-Organizer
St. Jude Donor '03 thru '26
NCM Sinkhole Donor
CI 5, 8 & 11 Veteran
Default

Have no idea what a CAN Bus is, but for those that do, hopefully it will be a useful thing to download.
Reply
Old Jan 13, 2017 | 02:10 PM
  #5  
66dts-v's Avatar
66dts-v
Drifting
 
Joined: Jan 2012
Posts: 1,883
Likes: 76
From: Portland OR
Default

Originally Posted by Vetteman Jack
Have no idea what a CAN Bus is, but for those that do, hopefully it will be a useful thing to download.
CAN is the communication technology used in autos, the CAN "bus" is how it communicates.

A Controller Area Network (CAN bus) is a vehicle bus standard designed to allow microcontrollers and devices to communicate with each other in applications without a host computer. It is a message-based protocol, designed originally for multiplex electrical wiring within automobiles, but is also used in many other contexts.
<edit> A friend of mine designs CAN interpreters for diagnostics on his cars. He uses the signals sent to capture data for tuning purposes.

That is very cool, thanks for sharing.

Last edited by 66dts-v; Jan 13, 2017 at 02:13 PM.
Reply
Old Jan 13, 2017 | 02:24 PM
  #6  
bikeriderga's Avatar
bikeriderga
Thread Starter
Melting Slicks
10 Year Member
 
Joined: Aug 2011
Posts: 2,423
Likes: 200
From: Atlanta GA
Default

Originally Posted by 66dts-v
CAN is the communication technology used in autos, the CAN "bus" is how it communicates.



<edit> A friend of mine designs CAN interpreters for diagnostics on his cars. He uses the signals sent to capture data for tuning purposes.

That is very cool, thanks for sharing.
You're welcome..

Not everyone will be interested and use it, but for those who want to know how the DIC actually works and how the signals between the various car components work and share information, should prove a useful learning tool.

BTW, thanks for explaining CAN. Could not have said it better myself!
Reply
Old Jan 13, 2017 | 03:04 PM
  #7  
Sydwayz's Avatar
Sydwayz
Drifting
Veteran: Air Force
Liked
Community Favorite
Top Answer: 1
 
Joined: Aug 2014
Posts: 1,404
Likes: 398
From: Virginia
St. Jude Donor '18
Default

My company is contracted to do Application and Penetration Testing for the major auto manufacturers, both US and International. We have a ton of hardware and software that we have built and bought, as well as bench kits that the major autos send us so we can exchange code and bug fixes back and forth.

We have "triggers" like:
-induce flat tire
-induce ABS brake failure
-induce understeer/oversteer
-induce loss of traction
-etc. etc.
...and we test that the reactions that the ECM & CanBUS provide are as programmed, and can not be compromised. It's some pretty awesome stuff when you think about it.

I don't do the hands-on stuff anymore, but am part of the spec'ing and business development aspects.

Connected cars and 'smart-cars' are awesome. But if your GPS recognizes that your automobile is approaching 1600 Pennsylvania Avenue from the West; and "decides" to turn off the brakes, accelerate (through the bollards), and gradually turn left through Lafayette Square...
...you have now turned a connected car into a terrorist weapon via what we call IOT or, Internet of Things. This is akin to literally turning a car into a "timebomb".
Don't think for a minute these things are not possible either.
No, not on a C5, but any of the modern cars that are all computer controlled with human inputs; absolutely so.

Last edited by Sydwayz; Jan 13, 2017 at 03:05 PM.
Reply
Old Jan 13, 2017 | 04:54 PM
  #8  
66dts-v's Avatar
66dts-v
Drifting
 
Joined: Jan 2012
Posts: 1,883
Likes: 76
From: Portland OR
Default

Originally Posted by bikeriderga
You're welcome..

Not everyone will be interested and use it, but for those who want to know how the DIC actually works and how the signals between the various car components work and share information, should prove a useful learning tool.

BTW, thanks for explaining CAN. Could not have said it better myself!
I used to work at BiAmp and they use CAN as a way to send uncompressed audio signals over network cabling for distributed audio systems. It works great for things like airports where you can have 1000's of feet of cable from signal generator to speaker.
Reply
Corvette Stories

The Best of Corvette for Corvette Enthusiasts

story-0

2027 Chevrolet Silverado 1500 First Look: Everything You NEED to Know!

 Michael S. Palmer
story-1

5 Best & 5 Worst Corvette Daily Drivers

 Joe Kucinski
story-2

The Headlights of Every Corvette Generation Explained

 Joe Kucinski
story-3

5 Best & 5 Most Overrated Corvette Track Packages of All Time!

 Joe Kucinski
story-4

Every 2027 Corvette Engine Explained

 Joe Kucinski
story-5

Designer Imagines A Corvette That Looks More Like a Corvette Than the Corvette

 Verdad Gallardo
story-6

10 Ugly Corvettes That We Still Kinda Love

 Joe Kucinski
story-7

Top 10 Most Expensive Corvettes Ever Sold on Bring A Trailer

 Brett Foote
story-8

10 Things Every Corvette Owner Needs (2026 Edition)

 Michael S. Palmer
story-9

8 Most "Only Corvette Owners Understand" Quirks and Problems

 Pouria Savadkouei
Old Jan 13, 2017 | 04:59 PM
  #9  
66dts-v's Avatar
66dts-v
Drifting
 
Joined: Jan 2012
Posts: 1,883
Likes: 76
From: Portland OR
Default

Originally Posted by Sydwayz
My company is contracted to do Application and Penetration Testing for the major auto manufacturers
I wish, I love pen testing, it was a hobby long before it became part of my job.

It's one of those "You are better off not knowing..." situations. Kinda like when you work in the banking industry.
Reply
Old Jan 13, 2017 | 06:32 PM
  #10  
bikeriderga's Avatar
bikeriderga
Thread Starter
Melting Slicks
10 Year Member
 
Joined: Aug 2011
Posts: 2,423
Likes: 200
From: Atlanta GA
Default

Originally Posted by Sydwayz
My company is contracted to do Application and Penetration Testing for the major auto manufacturers, both US and International. We have a ton of hardware and software that we have built and bought, as well as bench kits that the major autos send us so we can exchange code and bug fixes back and forth.

We have "triggers" like:
-induce flat tire
-induce ABS brake failure
-induce understeer/oversteer
-induce loss of traction
-etc. etc.
...and we test that the reactions that the ECM & CanBUS provide are as programmed, and can not be compromised. It's some pretty awesome stuff when you think about it.

I don't do the hands-on stuff anymore, but am part of the spec'ing and business development aspects.

Connected cars and 'smart-cars' are awesome. But if your GPS recognizes that your automobile is approaching 1600 Pennsylvania Avenue from the West; and "decides" to turn off the brakes, accelerate (through the bollards), and gradually turn left through Lafayette Square...
...you have now turned a connected car into a terrorist weapon via what we call IOT or, Internet of Things. This is akin to literally turning a car into a "timebomb".
Don't think for a minute these things are not possible either.
No, not on a C5, but any of the modern cars that are all computer controlled with human inputs; absolutely so.
Totally agree with you and of course what you are describing is certainly not even remotely covered by this simple Introduction to CAN application. This app is only intended as an introductory teaching tool.

You are spot on about security concerns. OEMS are struggling to come up with better security models around CAN and at the same time comply with the current and evolving SAE/ISO standards.

As the industry moves forward in the Connected Car / IoT space, there has to be a modification of these current standards and the ability to allow OEMS to tightly provide security constraints and authentication. At the same time, aftermarket providers will need the ability to register and identify with these new security provisions. Private/Public certificates will have to be issued on a continual basis and revoked as necessary, OTA and through DLCs.

BTW, great discussion. Would not mind an off-line discussion with some of you posting here. Seems like we have a great deal of knowledge on this subject within this forum!

Last edited by bikeriderga; Jan 13, 2017 at 08:52 PM.
Reply

Get notified of new replies

To Automotive CAN Bus Emulator





All times are GMT -4. The time now is 06:35 PM.

story-0
2027 Chevrolet Silverado 1500 First Look: Everything You NEED to Know!

Slideshow: Is the 2027 Chevrolet Silverado 1500 the best Silverado yet?

By Michael S. Palmer | 2026-06-16 08:01:12


VIEW MORE
story-1
5 Best & 5 Worst Corvette Daily Drivers

Slideshow: 5 best and 5 worst Corvette daily drivers

By Joe Kucinski | 2026-06-15 10:32:13


VIEW MORE
story-2
The Headlights of Every Corvette Generation Explained

Slideshow: The headlights of every Corvette generation explained

By Joe Kucinski | 2026-06-15 10:17:14


VIEW MORE
story-3
5 Best & 5 Most Overrated Corvette Track Packages of All Time!

Slideshow: The 5 best and 5 most overrated Corvette track packages ever.

By Joe Kucinski | 2026-06-09 12:46:45


VIEW MORE
story-4
Every 2027 Corvette Engine Explained

Slideshow: Every 2027 Corvette engine explained

By Joe Kucinski | 2026-06-09 12:16:31


VIEW MORE
story-5
Designer Imagines A Corvette That Looks More Like a Corvette Than the Corvette

Slideshow: A Jaguar designer's personal project imagines what a modern front-engined Corvette might look like if Chevrolet revisited the golden age of the Stingray.

By Verdad Gallardo | 2026-06-08 19:53:43


VIEW MORE
story-6
10 Ugly Corvettes That We Still Kinda Love

Slideshow: 10 ugly Corvettes that we still kinda love.

By Joe Kucinski | 2026-06-03 10:34:17


VIEW MORE
story-7
Top 10 Most Expensive Corvettes Ever Sold on Bring A Trailer

A lot of money has changed hands at the online auction house over the years.

By Brett Foote | 2026-06-03 10:21:50


VIEW MORE
story-8
10 Things Every Corvette Owner Needs (2026 Edition)

Slideshow: 10 great gifts Corvette enthusiasts actually want for Father's Day!

By Michael S. Palmer | 2026-06-03 15:43:40


VIEW MORE
story-9
8 Most "Only Corvette Owners Understand" Quirks and Problems

Slideshow: These are the quirks, annoyances, and oddly lovable problems that every Corvette owner eventually learns to live with.

By Pouria Savadkouei | 2026-05-28 09:31:39


VIEW MORE