612699
45
Zoom out
Zoom in
Vorherige Seite
1/94
Nächste Seite
45 of 94
ELM327
ELM327DSJ Elm Electronics – Circuits for the Hobbyist
www.elmelectronics.com
Multiple PID Requests
The SAE J1979 (ISO 15031-5) standard allows
requesting multiple PIDs with one message, but only if
you connect to the vehicle with CAN (ISO 15765-4).
Up to six parameters may be requested at once, and
the reply is one message that contains all of the
responses.
For example, let us say that you need to know
engine load (04), engine coolant temperature (05),
manifold pressure (0B), and engine rpm (0C) on a
regular basis. You could send four separate requests
for them (01 04, then 01 05, then 01 0B, etc.) or you
could put them all into one message like this:
>01 04 05 0B 0C
to which, a typical reply might be:
00A
0: 41 04 3F 05 44 0B
1: 21 0C 17 B8 00 00 00
The reply is a multiline one, as was discussed in a
previous section. Looking at the reply in detail, the first
line tells us that it is 00A (decimal 10) bytes long, so
we only pay attention to the first ten bytes of the
following lines (and ignore the final three 00’s on the
last line). The first byte is 41, which tells us that the
message is a response to an 01 request.
Following the 41 is the actual information, with the
PID numbers followed by their data bytes. You will
need to know how many data bytes to expect in order
to make sense of it in most cases.
The order in which you ask for the PIDs should not
matter. For example, the previous request might have
been sent as:
>01 0B 04 0C 05
00A
0: 41 0B 21 04 3F 0C
1: 17 B8 05 44 00 00 00
in which case, the responses might be as shown
above (but the order in which the PIDs appear in the
response does not have to match the order in which
they were requested).
Using this technique, you can make more efficient
use of the data bus. The cost is the extra work that you
must do in creating the requests, and in parsing each
response. If you are writing software to do this, the
time initially taken may well be worth it, but if you are
typing requests at a terminal screen, it is very unlikely
that this will be of benefit to you.
Response Pending Messages
The ELM327 has always been a protocol
converter device, receiving data using one protocol,
and sending it with another. Unless the data was
meant to control the ELM327, it was always passed on
without regard to the content of the data. Beginning
with v2.1, that is changing.
The ELM327 now checks each reply to see if it is
a special ‘Response Pending’ message, which may be
used by the ECU to say “Wait, I’m busy.” According to
the SAE J1979 standard, the scan tool should then
wait up to 5 seconds for the requested information to
arrive (and if another ‘Response Pending’ arrives, the
5 second timer should be reset so that the timing starts
over).
The Response Pending reply will always be of the
form:
7F xx 78
where the xx represents the Mode (or SID) that was
being requested. There is no feedback as to the PID
requested.
If bit 2 of PP 2A is set (it is by default), the
ELM327 will support this part of J1979, changing the
timeout to 5 seconds for you if it sees a Response
Pending message. This will only occur for the CAN
and ISO14230 (KWP) protocols as per the standard.
The CAN protocol is not normally limited to only
ISO15765, but may be if you set PP 2A b0 to ‘1’.
Note that the current implementation of this
feature does not keep track of multiple ECUs, some of
which may reply immediately, and some that may reply
with response pending messages. For this reason,
there may conceivably be circumstances when you
may need to filter for only one ECU address when
receiving a Response Pending reply.
45

Brauchen Sie Hilfe? Stellen Sie Ihre Frage.

Forenregeln

Missbrauch melden von Frage und/oder Antwort

Libble nimmt den Missbrauch seiner Dienste sehr ernst. Wir setzen uns dafür ein, derartige Missbrauchsfälle gemäß den Gesetzen Ihres Heimatlandes zu behandeln. Wenn Sie eine Meldung übermitteln, überprüfen wir Ihre Informationen und ergreifen entsprechende Maßnahmen. Wir melden uns nur dann wieder bei Ihnen, wenn wir weitere Einzelheiten wissen müssen oder weitere Informationen für Sie haben.

Art des Missbrauchs:

Zum Beispiel antisemitische Inhalte, rassistische Inhalte oder Material, das zu einer Gewalttat führen könnte.

Beispielsweise eine Kreditkartennummer, persönliche Identifikationsnummer oder unveröffentlichte Privatadresse. Beachten Sie, dass E-Mail-Adressen und der vollständige Name nicht als private Informationen angesehen werden.

Forenregeln

Um zu sinnvolle Fragen zu kommen halten Sie sich bitte an folgende Spielregeln:

Neu registrieren

Registrieren auf E - Mails für Elm 327 wenn:


Sie erhalten eine E-Mail, um sich für eine oder beide Optionen anzumelden.


Das Handbuch wird per E-Mail gesendet. Überprüfen Sie ihre E-Mail.

Wenn Sie innerhalb von 15 Minuten keine E-Mail mit dem Handbuch erhalten haben, kann es sein, dass Sie eine falsche E-Mail-Adresse eingegeben haben oder dass Ihr ISP eine maximale Größe eingestellt hat, um E-Mails zu erhalten, die kleiner als die Größe des Handbuchs sind.

Ihre Frage wurde zu diesem Forum hinzugefügt

Möchten Sie eine E-Mail erhalten, wenn neue Antworten und Fragen veröffentlicht werden? Geben Sie bitte Ihre Email-Adresse ein.



Info