Chapter 3 – AT Commands,
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 <cr_lf>OK<cr_lf>
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 <cr_lf>
Reply: OK<cr_lf>
•Or how to set to Slave, Fast Data Mode and SPP. Sent : ATSW25,0,0,0,0 <cr_lf>
Reply: OK<cr_lf>
•Reset slave Bluetooth device.
Sent : ATURST <cr_lf> | // Resets radio, wait 5 seconds |
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 <cr_lf>
Reply: OK<cr_lf>
•Or how to set to Master, Fast Data Mode and SPP. Sent : ATSW25,1,0,0,0 <cr_lf>
Reply: OK<cr_lf>
•Perform an Inquiry to detect BT_Address (unless it is already known) of slave Bluetooth device.
Sent | : ATURST <cr_lf> | // Resets radio, wait 5 seconds |
Reply: OK<cr_lf> |
| |
Sent | : ATDI,1,00000000 {Class of Device} <cr_lf> | // Looks for only one Bluetooth device |
Reply: OK<cr_lf> | // Search completed when DONE appears |
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, 00A0961F2023,1101<cr_lf> | // SPP connection |
Reply: OK<cr_lf> |
|
Reply:<cr_lf>CONNECT,00A0961F008F <cr_lf> | // Returns Slave BT address radios is in data |
| mode |
•Or perform a Master Connect over DUN using the BT_Address.
Sent : ATDM, 00A0961F2023,1103<cr_lf> | // DUN connection |
Reply: OK<cr_lf> |
|
Reply:<cr_lf>CONNECT,00A0961F008F <cr_lf> | // Returns Slave BT address radios is in |
| data mode |
•Send and receive Data by transferring file or holding down key on keyboard.
13 |