Wednesday, February 16, 2011

Do Re Mi Notes Of Canon

rumschnüffeln in serial ports and on the CAN bus

As I already mentioned the other day, I have dealt in
stagnated recently a little bit deeper into the topic
CAN bus. would


The CAN bus is a special serial data interface, which I do not
excessively detailed description
, as described on the WWW everything was already dozens of times
.


In modern vehicles are now in
Increasingly, data transfer via CAN,
is because the port in the mass
quite universally applicable. Two twisted lines across
car, and all devices are attached as simple parallel tuned
and get their data.

Each device can send and receive.
Each device listens to everything and picked out the
the data would have it, and all
chat anyway, but
confused with a system. Somehow
So like the stock market,
or in a pub kitchen,
arrived after a tour bus ...


The data is transmitted in packets,
exists as a data packet usually
from an "ID", so says a number which,
for whom the data are intended, or
the type of data it is.
Then follows an indication of size, so
the number of subsequent bytes of
Nutzdaten.Dann the data.

can look like this:
515 7 41 09 00 95 00 11 2C


If you want to decrypt the know
then you have or
find out what the header (ID)
means and what data which
byte stehen.Um there to understand anything at

need some hardware and software, which helps it
.

The biggest problem: Even when times already
can can tap,
then you can see the data yet,
who sent what, or who receives it.


I really wanted (but so far unsuccessfully) to write
data in the instrument cluster of a smart
, but there is still more than just the speedometer
......
... on the edge ..... I've discovered something funny:

The components first ask each other once
that really all there, so
this way can still do not work at all. After all, the thing already
sends some data,
so that is clear at least that the connection to the bus
works fine.

I have worried me for my attempts to produce a
LAWICEL CAN232 adapter, because I
the necessary sometimes operate mobile on the serial interface of a small
Atmega
kann.Man but must necessarily
be aware that the RS232
interface is not enough for large amounts of data to a selection or
übertragen.Für
to send individual commands that should be enough though.
Whom it on more important performance
should so be sure to take a USB version
, and eight additional fact is that
here at least a parallel connection
.


The corresponding evaluation programs
I will limit myself for now to free
program versions.

The best ever program that is working with the
LAWICEL CAN232
CANHACKER see http://www.canhack.de/

Unfortunately, the default
the adapter is not compatible with the program, because you have to first

times with a terminal program to reconfigure the adapter
some of the works
reception. You have to get on it first time
...........

The CAN232.exe of http://www.can232.com/
is rather used only the first function to test
. you can really work
so not really.
Along with my "favorite terminal"
but it helped me to solve the problem with CANHACKER
.

why I want to here a few
RS232 terminal or imagine Mithorchprogramme
I work with mostly:

Free Serial Port Monitor
An ingenious program that logged all incidents
to a serial port on the local computer
.
Ideal for mitzuhorchen, send what
any programs or received.

GA Terminal System
A free version also in the already very well equipped
program.
particular, one can order all
put together sets of commands and
can then send in a loop.
(this script function is hiding something, I'm rather
discovered by accident once,
shame, because that is the crucial advantage of this program
)
The demo version can only save a couple of scripts
, but that was time enough
and you can install the program in different directories
;-)

COM terminal
a very primitive
terminal without frills, but operated without training
immediately and intuitively.
Ideal to just sending a few letters or receive

(for example, because when I think of Hyper Terminal ..........)

and not to forget:
BINTERM, a combination of a small
circuit and an associated program.
see http://www.mmvisual.de/ under binterm
This is a small adapter that I've ever made
and it works great!
order to capture both lines or a serial connection

directions.
as opposed to Free Serial Port Monitor
need here but none of the interfaces
to sit on the local machine.
was often very helpful, and also to
program is excellent.
The developer responds even to disappear!
(since I had even a small problem or a
improvement proposal for a other function)
"must have"

screen shots etc soon .......
I have to do now with another project,
therefore a concern for now to talk any further, or
, I set the times a bit behind,
reports until someone that might interest you.

So, make comments, then come along,
if no interest, then I need also
not write



mfG
Franz

0 comments:

Post a Comment