Multi-Tech Systems 92U10E06831 ユーザーズマニュアル

ページ / 177
PART 4 – Embedded Device Servers 
Chapter 12 – SocketWireless Bluetooth (MTS2BTSMI) 
Multi-Tech Systems, Inc. Universal Socket Hardware Guide for Developers (S000342M) 
174 
 
Example of a Master Discovery/Connection 
Sequence 
From Power Up and No Connection 
1. 
Verify local device is Master in Data Mode. 
 Sent:    ATSi,7 <cr>    
 
 
 
 Reply: 
 
<cr_lf>1,1,0,0<cr_lf> 
2. 
If not Master, set to Master and Data Mode. 
Sent:    ATSW25,1,1,0,0 <cr>   
 
 
 
 
Reply:   <cr_lf>OK<cr_lf> 
3. 
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,Socket 
Wireless<cr_lf> 
 <cr_lf>DONE<cr_lf> 
4. 
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 
5. 
Place radio into Fast Data Mode. 
 Sent: 
 
ATMF<cr> 
// Places radio in Fast Data Mode 
 Reply: 
<cr_lf>OK<cr_lf> 
6. 
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.    
 
To 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>SocketWireless AT<cr_lf>  
 
Example of a Slave Command Sequence 
From Power Up: 
1. 
Check and verify Communication to Slave. 
Sent:   AT<cr> 
Reply:   
<cr_lf>OK<cr_lf> 
2. 
Get information on Slave Bluetooth address. 
Sent:   ATSi,1<cr> 
Reply:  
12-digit address   
 
<cr_lf>OK<cr_lf> 
3. 
Set Slave to automatically connect in Fast Data Mode on Bluetooth connection. 
Sent:   ATSW25,0,0,0,0 <cr>   
 
 
 
 
Reply:   <cr_lf>OK<cr_lf> 
4. 
Either cycle power or send ATURST. 
Note: This command sequence assumes the radio is in factory default in which it automatically comes up and is 
connectable as a Slave from a Master request.   
 
 
Preliminary  
Confidential