612699
51
Verklein
Vergroot
Pagina terug
1/94
Pagina verder
Using Higher RS232 Baud Rates (continued)
* the 75 msec time is adjustable
with the AT BRT hh command
The sequence begins with the PC making a
request for a new baud rate divisor, with the BRD
command. For example, to try the 57.6K rate that was
previously discussed, the controlling PC would send:
AT BRD 45
If the ELM327 firmware is a very old version, it will
not support this command and will return with the
familiar ‘?’ response. If it does support the command, it
will respond with ‘OK’, so the software knows whether
to proceed or not. No prompt character follows the
‘OK’ reply; it is followed only by a carriage return
character (and optionally, a linefeed character).
Having sent the ‘OK’, the ELM327 then switches
to the new (proposed) baud rate, and then simply
waits the time set by the BRT command (it is 75 msec
by default). This period is to allow the PC sufficient
time to change its baud rate. When the time is up, the
ELM327 then sends the ID string (currently ‘ELM327
v2.1’) to the PC at the new baud rate (followed by a
carriage return character and optionally, a linefeed
character) and waits for a response.
Knowing that it should receive the ELM327 ID
string, the PC software compares what was actually
received to what was expected. If they match, the PC
responds with a carriage return character, but if there
is a problem, the PC sends nothing. The ELM327 is
meanwhile waiting for a valid carriage return character
to arrive. If it does (within 75 msec), the proposed
baud rate is retained, and the ELM327 says ‘OK’ at
this new rate. If it does not see a carriage return in the
75 msec ‘window’, the baud rate will revert back to the
original rate. Note that the PC might correctly output
the carriage return at this new rate, but the interface
circuitry could corrupt the character, and the ELM327
might not see a valid response, so your software must
check for an ‘OK’ response before assuming that the
new rate has been accepted.
Using this method, a program can quickly try
several baud rates, and determine the most suitable
one for the connected hardware. The new baud rate
will stay in effect until reset by an AT Z, a Power
off/on, or a MCLR input. It is not affected by the AT D
(set Defaults), or AT WS (Warm Start) commands.
Request for a new
baud rate divisor:
AT BRD hh
ELM327 responds
with ‘OK’
(if it is supported)
ELM327 sends
the AT I string
Program switches to
the new baud rate,
and waits for input
ELM327 waits
up to 75 msec*
for a carriage return
If the Rx is good,
Program sends a
carriage return
ELM327 says ‘OK’
(and remains at the
new baud setting)
Baud rate reverts
to the previous
baud rate
PC ELM327
CR
received
?
yes
no
Print a prompt,
and wait for the
next command
ELM327 switches to
new baud rate and
waits for 75 msec*
ELM327
51 of 94ELM327DSJ Elm Electronics – Circuits for the Hobbyist
www.elmelectronics.com
51

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