Multitech MTS2BTA-R Manual de usuario Pagina 59

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 88
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 58
Chapter 4 – Examples
Multi-Tech Systems, Inc. SocketWireless Bluetooth AT Commands (S000360H) 59
Chapter 4 – Examples
Example of a Master Discovery / Connection Sequence
From Power Up and No Connection:
1. Perform an Inquiry to obtain BT Address (unless it is already known).
Sent : ATUCL<cr> // Clears radio state and places in Idle Mode
Reply: <cr_lf>OK<cr_lf>
Sent : ATDI,1,00000000 {Class of Device}<cr> // Looks for only one Bluetooth device
Reply: <cr_lf>00A0961F2023,00000104,SocketWireless<cr_lf>
<cr_lf>DONE<cr_lf>
2. Perform a Master Connect over SPP using the BT Address.
Sent : ATDM, 00A0961F2023,1101<cr> // SPP connection
Reply: <cr_lf>CONNECT,00A0961F008F <cr_lf> // Returns Slave BT address radios is in Data
Mode
3. Place radio into Fast Data Mode.
Sent : ATMF<cr> // Places radio in Fast Data Mode
Reply:<cr_lf>OK<cr_lf>
4. Send Data.
Note: When sending commands from the Slave when the Slave connects in Fast Data Mode (ATSW25/or
issuing ATMF). All valid AT commands are sent through the Slaves UART will be interpreted and responded
by the Master radio as if it was the local Slave radio. Basically in this configuration from the Slave end you
can obtain status and configure from the remote Master radio. This is a unique feature that may be useful in
some applications but can confuse the user if you think you are talking to the local Slave UART.
Get Out of Data Mode and Check Status:
1. Delay at least 50 milliseconds; this could be less or more.
2. Get into Command Mode.
Sent : +++<cr> // Default escape sequence of characters
Reply:<cr_lf>OK<cr_lf>
3. Check Status
Sent : AT<cr>
Reply:<cr_lf>OK<cr_lf>
4. Or send any AT Command example:
Sent : ATSI,0<cr>
Reply:<cr_lf>MULTITECH<cr_lf>
Vista de pagina 58
1 2 ... 54 55 56 57 58 59 60 61 62 63 64 ... 87 88

Comentarios a estos manuales

Sin comentarios