
Chapter 4 – Examples
Multi-Tech Systems, Inc. SocketWireless Bluetooth AT Commands (S000360H) 67
Issue these AT commands at the master device to connect with the repeater which in turn connects with the
slave device.
- Verify local device is Master in Data Mode.
Sent: ATSI,7 <cr>
Reply: OK<cr_lf>
Reply: <cr_lf>1,1,0,0 <cr_lf>
- If not Master, set to Master in Data Mode and reset unit.
Sent: ATSW25,1,1,0,0 <cr>
Reply: OK<cr_lf>
Sent: ATURST <cr>
Reply: OK<cr_lf>
- Perform an Inquiry to detect BT_Addresses (unless it is already known).
Sent: ATDI,2,00000000 {Class of Device} <cr> // Looks for two Bluetooth devices
Reply: OK<cr_lf> // Search completed when DONE appears
Reply: <cr_lf>BT_Slave1_Address,00000000,SOCKETWIRELESS<cr_lf>
Reply: <cr_lf> BT_Repeater_Address,00000000,SOCKETWIRELESS<cr_lf>
Reply: <cr_lf>DONE<cr_lf>
- Perform a Master Connection over SPP to the Bluetooth repeater device.
Sent: ATDM, BT_Repeater_Address,1101<cr> // SPP connection
Reply: OK<cr_lf>
Reply: <cr_lf>CONNECT,00,BT_Repeater_Address <cr_lf> // Returns Repeater BT address
radio is in data mode
Once Master connects to repeater the repeater will reply with CONNECT,00,BT_Master_Address and then
repeater will automatically connect to slave and reply with CONNECT,01,BT_Slave_Address. Several NO
ANSWER responses may display before connection to slave is completed.
Now the master and slave Bluetooth devices can send and receive data between each other through the
repeater Bluetooth device. Data entered at the repeater workstation will be sent to both the master and slave
units.
Comentarios a estos manuales