CANhack.de CAN-Interface RKS+CAN
CAN Hardware, CAN Software, CAN Protocols - CAN Bus Forum for Your CAN Bus Project.

CAN Bus Simulator

 
New Topic Reply 🔗 🖨 CANhack.de - Index » General
Author Message
mobbi1



Joined: 12/09/2016
Posts: 1
Karma: +0 / -0   Thank you, like it!


Free account, no CAN development support

Post13-03-2017, 18:07    Subject: CAN Bus Simulator Quote

Hello everyone,
I could use a little help.
I want to write a type of simulator panel in C#.

What should this panel be able to do?
- Select ID.
- Edit message.

and send all of this as a combination over the serial interface, so that a CAN interface can record the data. It's essentially a very simple simulator.

Sure, here's the translation of the text from German to English:

"It's kind of like the video you showed me. But not too complicated."
https://www.youtube.com/watch?v=c6LqRw0NHtQ


Does anyone have an idea about the easiest way to implement this?

Best regards.
mobbi


Translated on 22-07-2026, 14:58.
Back to top Profile PM
Paulius
Hacker
Hacker


Joined: 11/13/2013
Posts: 61
Karma: +7 / -0   Thank you, like it!


CAN Support

Post13-03-2017, 20:34    Subject: CAN Bus Simulator Quote

Sorry, maybe I don't understand what the problem is.

I proceeded as follows:
I choose USB HID communication.
Think about the protocol for sending data from the PC to the interface.
Write a PC application to package my data and send it to an interface.
The interface will parse the data, prepare a CAN message, and then transmit it.

Basically, the interface only parses and sends data. The PC application handles everything else.

Now I can fill in the message fields, press a button, and a CAN message will be sent. Additionally, I can integrate this functionality into a thread or timer function to send CAN messages periodically.


Translated on 22-07-2026, 15:00.
Back to top Profile PM
Furis



Joined: 11/16/2016
Posts: 1
Karma: +0 / -0   Thank you, like it!


Free account, no CAN development support

Post14-03-2017, 10:43    Subject: CAN Bus Simulator Quote

I believe his goal is to build a simulator on his own. He wants to select an ID, which will modify the message, and then send it out via RS232 (for example).


Translated on 22-07-2026, 15:01.
Back to top Profile PM
Paulius
Hacker
Hacker


Joined: 11/13/2013
Posts: 61
Karma: +7 / -0   Thank you, like it!


CAN Support

Post14-03-2017, 12:36    Subject: CAN Bus Simulator Quote

Furis wrote:
I think the point is that he wants to create a simulator on his own. Selecting an ID changes the message, and then it's sent via RS232 (for example), out.

I wrote the same thing.
PC application > prepare data > send data to interface > interface parses data package > send CAN message.


Translated on 22-07-2026, 15:02.
Back to top Profile PM
CAN-Diagnose
Administrator
Administrator
Avatar-CAN-Diagnose

Joined: 06/07/2011
Posts: 573
Karma: +29 / -0   Thank you, like it!
Location: Ländle



Post14-03-2017, 13:04    Subject: CAN Bus Simulator Quote

KCANMonitor can already do what the person who started the thread is asking for.

See the "Send and Replay" view in the video starting at 1:42.
http://www.canhack.de/en/viewtopic.php?t=2023

If it makes things easier, you can certainly write your own interface using C# and utilize the API.
http://www.canhack.de/en/viewtopic.php?t=137

Best regards, Rainer.
Dipl.-Ing. (FH) Rainer Kaufmann - Embedded Software Freelancer
System RKS+CAN: CANHack.de CAN-Bus Interface


Translated on 22-07-2026, 15:03.
Back to top Profile PM WWW
New Topic Reply 🔗 🖨 CANhack.de - Index » General
Similar articles and topics
Topic Forum
No new posts CAN Simulator: Test and Debug CAN Networks CAN Bus General
No new posts Can Simulator Engine CAN
No new posts Looking for a CAN bus simulator CAN Bus General
No new posts Antwort auf PID00 für OBD2-Simulator Diagnostic CAN
Jump to:  
You cannot post new topics in this forum.