Test Procedures Using AT Commands
The following tesing procedures can be used with the MTS2BTA and the MTS2BTSMI.
1.
Connect serial cable from computer to DB9 connector of each MTS2BTA, then attach antenna and power.
Do this for both master and slave Bluetooth adapters.
2.
Use terminal emulator like Hyperterminal or ZOC to communicate to Bluetooth socket modem using AT
command set. Set baud rate to 9600bps. If MTS2BTA has label with different baud rate then set emulator
to match with this baud rate.
3.
If necessary, can retrieve address from Bluetooth module being tested.
Sent:
ATSI,1<cr_lf>
Reply:
OK<cr_lf>
Reply: <cr_lf>12-digit address
4.
Issue these AT commands at slave Bluetooth device to prepare for wireless connection and transfer data
between modules.
•
How to set to Slave, Fast Data Mode and DUN.
Sent : ATSW25,0,0,0,1
Reply:
OK<cr_lf>
•
Or how to set to Slave, Fast Data Mode and SPP.
Sent : ATSW25,0,0,0,0
Reply:
OK<cr_lf>
•
Reset slave Bluetooth device.
Sent : ATURST
Reply:
OK<cr_lf>
5.
Issue these AT commands at master Bluetooth device to generate a wireless connection and transfer data
between modules.
•
How to set to Master, Fast Data Mode and DUN.
Sent : ATSW25,1,0,0,1
Reply:
OK<cr_lf>
•
Or how to set to Master, Fast Data Mode and SPP.
Sent : ATSW25,1,0,0,0
Reply:
OK<cr_lf>
•
Perform an Inquiry to detect BT_Address (unless it is already known) of slave Bluetooth device.
Sent : ATURST
Reply:
OK<cr_lf>
Sent : ATDI,1,00000000 {Class of Device}
Reply:
OK<cr_lf>
Reply:
<cr_lf>00A0961F2023,00000104,SOCKETWIRELESS<cr_lf>
Reply:
<cr_lf>DONE<cr_lf>
•
Perform a Master Connect over SPP using the BT_Address.
Sent : ATDM,
Reply:
OK<cr_lf>
Reply:<cr_lf>CONNECT,00A0961F008F
•
Or perform a Master Connect over DUN using the BT_Address.
Sent : ATDM,
Reply:
OK<cr_lf>
Reply:<cr_lf>CONNECT,00A0961F008F
•
Send and receive Data by transferring file or holding down key on keyboard.
Multi-Tech Systems, Inc. Serial-to-Bluetooth Adapter User Guide (S000370A)
<cr_lf>OK<cr_lf>
<cr_lf>
<cr_lf>
<cr_lf>
// Resets radio, wait 5 seconds
<cr_lf>
<cr_lf>
<cr_lf>
00A0961F2023,1101<cr_lf>
00A0961F2023,1103<cr_lf>
Chapter 3 – AT Commands, S-Registers, and Result Codes
// Resets radio, wait 5 seconds
<cr_lf>
// Looks for only one Bluetooth device
// Search completed when DONE appears
// SPP connection
<cr_lf>
// Returns Slave BT address radios is in data
mode
// DUN connection
<cr_lf>
// Returns Slave BT address radios is in
data mode
13
Need help?
Do you have a question about the MultiConnect MTS2BTA and is the answer not in the manual?
Questions and answers