612699
21
Verklein
Vergroot
Pagina terug
1/94
Pagina verder
21 of 94
ELM327
ELM327DSJ Elm Electronics – Circuits for the Hobbyist
www.elmelectronics.com
AT Command Descriptions (continued)
The default setting for the memory function is
determined by the voltage level at pin 5 during power
up (or system reset). If it is connected to a high level
(VDD), then the memory function will be on by default.
If pin 5 is connected to a low level, the memory saving
will be off by default.
MA [ Monitor All messages ]
This command places the ELM327 into a bus
monitoring mode, in which it continually monitors for
(and displays) all messages that it sees on the OBD
bus. It is a quiet monitor, not sending In Frame
Responses for J1850 systems, Acknowledges for CAN
systems (unless you turn silent mode off with CSM0),
or Wakeup (‘keep-alive’) messages for the ISO 9141
and ISO 14230 protocols. Monitoring will continue until
you stop it with activity on the RS232 input, or the RTS
pin.
To stop monitoring, simply send any single
character to the ELM327, then wait for it to respond
with a prompt character (‘>’), or a low level output on
the Busy pin. (Setting the RTS input to a low level will
interrupt the device as well.) Waiting for the prompt is
necessary as the response time varies depending on
what the IC was doing when it was interrupted. If for
instance it was in the middle of printing a line, it will
first complete that line and then print ‘STOPPED’,
before returning to the command state and sending a
prompt character. If it were simply waiting for input, it
would return much quicker. Note that the character
which stops the monitoring will always be discarded,
and will not affect subsequent commands.
If this command is used with CAN protocols, and if
the CAN filter and/or mask were previously set (with
CF, CM or CRA), then the MA command will be
affected by those settings. For example, if the receive
address had been set previously with CRA 4B0, then
the AT MA command would only be able to ‘see’
messages with an ID of 4B0. This may not be what is
desired - you may want to reset the masks and filters
(with AT AR or AT CRA) first.
All of the monitoring commands (MA, MR and MT)
operate by closing the current protocol (an AT PC is
executed internally), before configuring the IC for
monitoring the data. When the next OBD command is
to be transmitted, the protocol will again be initialized,
and you may see messages stating this.
‘SEARCHING...’ may also be seen, depending on
what changes were made while monitoring.
MP hhhh [ Monitor for PGN hhhh ]
The AT MA, MR and MT commands are quite
useful for when you wish to monitor for a specific byte
in the header of a typical OBD message. For the SAE
J1939 Protocol, however, it is often desirable to
monitor for the multi-byte Parameter Group Numbers
(or PGNs), which can appear in either the header, or
the data bytes. The MP command is a special J1939
only command that is used to look for responses to a
particular PGN request.
Note that this MP command provides no means to
set the first two digits of the requested PGN, and they
are always assumed to be 00. For example, the DM2
PGN has an assigned value of 00FECB (see SAE
J1939-73). To monitor for DM2 messages, you would
issue AT MP FECB, eliminating the 00, since the
MP hhhh command always assumes that the PGN is
preceded by two zeros.
This command is only available when a CAN
Protocol (A, B, or C) has been selected for SAE J1939
formatting. It returns an error if attempted under any
other conditions. Note also that this version of the
ELM327 only displays responses that match the
criteria, not the requests that are asking for the PGN
information.
MP hhhh n [ Monitor for PGN, get n messages ]
This is very similar to the above command, but
adds the ability to set the number of messages that
should be fetched before the ELM327 automatically
stops monitoring and prints a prompt character. The
value ‘n’ may be any single hex digit.
MP hhhhhh [ Monitor for PGN hhhhhh ]
This command is very similar to the MP hhhh
command, but it extends the number of bytes provided
by one, so that there is complete control over the PGN
definition (it does not make the assumption that the
Data Page bit is 0, as the MP hhhh command does).
This allows for future expansion, should additional
PGNs be defined with the Data Page bit set. Note that
only the Data Page bit is relevant in the extra byte -
the other bits are ignored.
MP hhhhhh n [ Monitor for PGN, get n messages ]
This is very similar to the previous command, but it
adds the ability to set the number of messages that
should be fetched before the ELM327 automatically
21

Hulp nodig? Stel uw vraag in het forum

Spelregels
1

Forum

Elm-327

Zoeken resetten

Misbruik melden

Gebruikershandleiding.com neemt misbruik van zijn services uitermate serieus. U kunt hieronder aangeven waarom deze vraag ongepast is. Wij controleren de vraag en zonodig wordt deze verwijderd.

Product:

Bijvoorbeeld antisemitische inhoud, racistische inhoud, of materiaal dat gewelddadige fysieke handelingen tot gevolg kan hebben.

Bijvoorbeeld een creditcardnummer, een persoonlijk identificatienummer, of een geheim adres. E-mailadressen en volledige namen worden niet als privégegevens beschouwd.

Spelregels forum

Om tot zinvolle vragen te komen hanteren wij de volgende spelregels:

Belangrijk! Als er een antwoord wordt gegeven op uw vraag, dan is het voor de gever van het antwoord nuttig om te weten als u er wel (of niet) mee geholpen bent! Wij vragen u dus ook te reageren op een antwoord.

Belangrijk! Antwoorden worden ook per e-mail naar abonnees gestuurd. Laat uw emailadres achter op deze site, zodat u op de hoogte blijft. U krijgt dan ook andere vragen en antwoorden te zien.

Abonneren

Abonneer u voor het ontvangen van emails voor uw Elm 327 bij:


U ontvangt een email met instructies om u voor één of beide opties in te schrijven.


Ontvang uw handleiding per email

Vul uw emailadres in en ontvang de handleiding van Elm 327 in de taal/talen: Engels als bijlage per email.

De handleiding is 0,23 mb groot.

 

U ontvangt de handleiding per email binnen enkele minuten. Als u geen email heeft ontvangen, dan heeft u waarschijnlijk een verkeerd emailadres ingevuld of is uw mailbox te vol. Daarnaast kan het zijn dat uw internetprovider een maximum heeft aan de grootte per email. Omdat hier een handleiding wordt meegestuurd, kan het voorkomen dat de email groter is dan toegestaan bij uw provider.

Stel vragen via chat aan uw handleiding

Stel uw vraag over deze PDF

loading

Uw handleiding is per email verstuurd. Controleer uw email

Als u niet binnen een kwartier uw email met handleiding ontvangen heeft, kan het zijn dat u een verkeerd emailadres heeft ingevuld of dat uw emailprovider een maximum grootte per email heeft ingesteld die kleiner is dan de grootte van de handleiding.

Er is een email naar u verstuurd om uw inschrijving definitief te maken.

Controleer uw email en volg de aanwijzingen op om uw inschrijving definitief te maken

U heeft geen emailadres opgegeven

Als u de handleiding per email wilt ontvangen, vul dan een geldig emailadres in.

Uw vraag is op deze pagina toegevoegd

Wilt u een email ontvangen bij een antwoord en/of nieuwe vragen? Vul dan hier uw emailadres in.



Info