CANhack.de CAN-Interface RKS+CAN
Diesel technology, engine technology, vehicle diagnostics, repair & maintenance.

CAN Bus Simulator

 
New Topic 🔒 Locked 🔗 🖨 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 Translating...

[Translating...]

Hallo miteinander,
ich bräuchte mal ein wenig Hilfe.
Ich will eine Art Simulator Panel in C# schreiben.

Was soll dieses Panel können:
-ID auswählen
-Nachricht editieren

und das ganze als Kombination über die serielle Schnittstelle verschicken, so dass ein CAN Interface die Daten aufzeichnen kann. Eben ein ganz einfacher Simulator.

So in etwa wie das Video hier. Nur nicht all zu kompliziert:
https://www.youtube.com/watch?v=c6LqRw0NHtQ


Hat jemand eine Idee wie man das am einfachsten realisieren kann?

MFG
mobbi
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 Translating...

[Translating...]

sorry, maybe i dont understand correctly was is your problem.

I did in this way:
I choose USB HID communication.
though about protocol how send data from PC to interface.
Write PC application to pack my data into packet, and send this package to interface.
Interface will parse it, prepare and send CAN message.

So basicaly interface only parse and send. PC application does all rest things.

Now i can fill message fields, press button and CAN message will be sent. Also i can put this function to thread or timer function and i will send CAN message periodical.
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 Translating...

[Translating...]

I think the point is he wants to create a simulator by himself. Selecting an ID change the message and then send it via RS232 (par example) out.
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 Translating...

[Translating...]

Furis wrote:
I think the point is he wants to create a simulator by himself. Selecting an ID change the message and then send it via RS232 (par example) out.

So i wrote the same.
PC app > prepare data > send data to interface > interface parse data package > send CAN message.
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 Translating...

[Translating...]

KCANMonitor kann das was der Threadstarter anfragt sowieso schon.

Siehe "Send and Replay" View im Video ab 1:42:
http://www.canhack.de/en/viewtopic.php?t=2023

Wenn es schön macht, kannst Du natürlich Deine eigene Oberfläche mit C# schreiben und das API nutzen:
http://www.canhack.de/en/viewtopic.php?t=137

Viele Grüsse, Rainer
Dipl.-Ing. (FH) Rainer Kaufmann - Embedded Software Freelancer
System RKS+CAN: CANHack.de CAN-Bus Interface


Last edited on 14-03-2017, 13:05, edited 1 time in total.
Back to top Profile PM WWW
New Topic 🔒 Locked 🔗 🖨 CANhack.de - Index » General
Similar articles and topics
Topic Forum
No new posts CAN-Simulator CAN Bus General
No new posts Can Simulator Engine CAN
No new posts Suche 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.