Ezurio BISM2 Guide de l'utilisateur Page 26

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 33
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 25
3. Unsolicited Responses
The ‘AT’ Protocol is a command/response type of protocol. This means that the EZURiO device will
normally only respond to AT commands.
Under special circumstances, unsolicited responses will be sent to the host. They are described in
the following subsections.
3.1 RING
This string is sent to the host when a remote device is initiating a serial port connection.
The fully qualified string is in the form RING 012345678901 where 012345678901 is a 12
digit hexadecimal number which corresponds to the remote device’s Bluetooth address.
This response is sent to the host every 2 seconds until the host either accepts the
connection using the ATA command or rejects it using the ATH command.
3.2 PIN?
This response is sent to the host during a pairing negotiation.
The fully qualified string is PIN? 012345678901 where 012345678901 is the Bluetooth
address of the peer device. In response, the host must supply a pin code which is entered
using the AT+BTK command.
If the peer address does not supply the address in the message exchange, then the
address is specified as 000000000000 – and the paring will proceed as normal.
3.3 AUDIO ON
This response is sent to the host when a SCO channel has been established.
3.4 AUDIO OFF
This response is sent to the host when an existing SCO channel has been closed.
3.5 AUDIO FAIL
This response is sent to the host when a SCO channel setup fails.
3.6 ERROR 27
This response is sent to the host on power up if the firmware is unlicensed.
3.7 PAIR n <bd_addr>
This response is sent to the host on termination of a pairing process. If pairing was
successful then ‘n’ = 0, if a timeout occurred then ‘n’=1 and for all other unsuccessful
outcomes the value will be 2.
The parameter <bd_addr> is the address of the peer device if available.
3.8 PAIR 0 <bd_addr> MM
This response is sent to the host on termination of a successful pairing process. The
optional MM is sent only if S Register 538 is set to 1 to automatically save the link key. The
value MM indicates the result of the save operation and a value of 00 implies success,
otherwise the value corresponds to an error code.
3.9 RX<string>
This response is sent to the host when the unit is in online-command mode and S Register
531 is set to 3 and data arrives from a peer.
If the data from the string contains non-visual characters (for example ASCII 0 to 31 and
ASCII 128 to 255), then those characters are translated into a 3 character escape
sequence starting with ‘\’. For example the embedded <cr><lf> sequence would be sent
as the 6 character string \0D\0A.
If the data contains the character ‘"’ then it is sent as \22.
If the data contains the character ‘\’ then it is sent as \5C
DSH_50003_v1v3 AT Command Reference 26 of 33
Vue de la page 25
1 2 ... 21 22 23 24 25 26 27 28 29 30 31 32 33

Commentaires sur ces manuels

Pas de commentaire