Download Print this page

Multi-Tech MultiConnect BT Reference Manual

Embedded serial-to-bluetooth at commands

Advertisement

Quick Links

SocketWireless
Bluetooth
Embedded Serial-to-Bluetooth Module
and
MultiConnect
BT
Serial-to-Bluetooth Adapter
AT Commands
Reference Guide

Advertisement

loading
Need help?

Need help?

Do you have a question about the MultiConnect BT and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Multi-Tech MultiConnect BT

  • Page 1   SocketWireless Bluetooth Embedded Serial-to-Bluetooth Module  MultiConnect Serial-to-Bluetooth Adapter AT Commands Reference Guide...
  • Page 2 Furthermore, Multi-Tech Systems, Inc. reserves the right to revise this publication and to make changes from time to time in the content hereof without obligation of Multi-Tech Systems, Inc. to notify any person or organization of such revisions or changes.
  • Page 3: Table Of Contents

    PARK<integer value>,<integer value> Park Mode ....................21 XPARK Exit Park Mode .............................21 SNIFF,<integer value>,<integer value>,<integer value>,<integer value>............21 SSNIFF,<integer value>,<integer value>,<integer value>,<integer value> Set Sniff.........21 CSNIFF Clear Sniff Mode ..........................21 XSNIFF Exit Sniff Mode.............................21 Multi-Tech Systems, Inc. SocketWireless Bluetooth AT Commands (S000360D)
  • Page 4 From Power Up ..............................26 Get Out of Data Mode and Check Status ......................26 Chapter 5 – Response Codes............................27 Appendix A – AT Command Summary Table ......................30 Appendix B – Glossary, Acronyms, and Abbreviations ..................32 Index....................................33 Multi-Tech Systems, Inc. SocketWireless Bluetooth AT Commands (S000360D)
  • Page 5: Chapter 1 - Introduction

    Chapter 1 – Introduction Overview This document describes the protocol used to control and configure the Multi-Tech Systems, Inc. SocketWireless Bluetooth device. The protocol is similar to the industry standard Hayes AT protocol used in telephone modems due to the fact that both types of devices are connection oriented. Appropriate AT commands have been provided to make the module perform the two core actions of a Bluetooth device, which are make/break connections and inquiry.
  • Page 6: Changing Configuration

    View from the Menu Bar and click on Refresh to update the service connection. It is recommended to use Refresh to update local discovered devices and services to eliminate any "caching" of parameters in memory. Multi-Tech Systems, Inc. SocketWireless Bluetooth AT Commands (S000360D)
  • Page 7: Chapter 2 - At Commands

    • All commands are typed exactly as shown <cr> = <0x0d carriage return> <cr_lf> = <0x0d carriage return> <0x0a line feed> • AT commands will not echo back to the terminal. Multi-Tech Systems, Inc. SocketWireless Bluetooth AT Commands (S000360D)
  • Page 8: Get/Set Socketwireless Information Commands

    Get link supervisory timeout setting (HEX) 04 (default), Integer 2-41 Examples: Type: ATSI,1<cr> Reply: <cr_lf>OK<cr_lf><cr_lf>112233445566<cr_lf> Type: ATSI,2<cr> Reply: <cr_lf>OK<cr_lf><cr_lf>SocketWireless<cr_lf> Type: ATSI,3<cr> Reply: <cr_lf>OK<cr_lf><cr_lf>1,0<cr_lf> // 1 = slave, 0 = unconnected Type: ATSI,4<cr> Reply: <cr_lf>OK<cr_lf><cr_lf>COM0<cr_lf> Type: ATSI,5<cr> Reply: <cr_lf>OK<cr_lf><cr_lf>00000000<cr_lf> Multi-Tech Systems, Inc. SocketWireless Bluetooth AT Commands (S000360D)
  • Page 9: Set Socketwireless Name

    When another Bluetooth device performs a Discovery, this will be the name that is passed to that device. Please take note, unlike the name, the SocketWireless Bluetooth address is fixed (48 bit) at the factory and is unique to every Bluetooth device manufactured. Example: Type: ATSN,MYSOCKETWIRELESS_0123456<cr> Reply: <cr_lf>OK<cr_lf> Multi-Tech Systems, Inc. SocketWireless Bluetooth AT Commands (S000360D)
  • Page 10: Write Memory Locations

    Time = N * 0.625msec, Range = 11.25msec to 2560msec, If set to 0 then page scanning is turned off Example: Type: ATSW21,4096,18,4096,18<cr> Reply: <cr_lf>OK<cr_lf> Requires a reset for the settings to go into effect. Multi-Tech Systems, Inc. SocketWireless Bluetooth AT Commands (S000360D)
  • Page 11 Factory default is ATSW24,0,0,0,0 authMode = authentication security mode {56bit encryption is automatically enabled when “1” is selected and the default PIN = ”default”} UART will reply LINK,BTaddress before the CONNECT,BTaddress. Multi-Tech Systems, Inc. SocketWireless Bluetooth AT Commands (S000360D)
  • Page 12 // definitions ATSW25,slave,data mode,allow data to pass,SPP // settings Example: Type: ATSW25,0,0,0,0<cr> //Slave connects in fast data mode Reply: <cr_lf>OK<cr_lf> Note: Requires a software or hardware reset for change to take effect. Multi-Tech Systems, Inc. SocketWireless Bluetooth AT Commands (S000360D)
  • Page 13 ATOP in the next section 0 – Normal operation this is disabled (factory default) 1 – Allow command through UART only 2 – Allow command through UART and over RF Link Example: Type: ATSW29,default,1<cr> Reply: <cr_lf>OK<cr_lf> Multi-Tech Systems, Inc. SocketWireless Bluetooth AT Commands (S000360D)
  • Page 14: Security

    Set the Bluetooth Service Name. Maximum of 16 alphanumeric characters. Factory default is COM0. ATSSN,1234567890123456 Example: Type: ATSSN,COM0<cr> Reply: <cr_lf>OK<cr_lf> Note: Requires a software or hardware reset for change to take effect. Multi-Tech Systems, Inc. SocketWireless Bluetooth AT Commands (S000360D)
  • Page 15: Read Memory Locations

    IL Repeat Last Inquiry Performed Example Master: Type: ATIL<cr> Reply: <cr_lf>OK<cr_lf> <cr_lf>00A0961F2023,00000000,SocketWireless<cr_lf>DONE<cr_lf> Reply: <cr_lf>ERROR<cr_lf> // If inquiry not previously performed. Note: ATDI command string previously used is stored in Flash Multi-Tech Systems, Inc. SocketWireless Bluetooth AT Commands (S000360D)
  • Page 16: Connect/Disconnect Commands

    UUID from the ATDM command will be used. Example: Type: ATDL<cr> Reply: <cr_lf>OK<cr_lf> <cr_lf>CONNECT,123456789012<cr_lf> or Reply: <cr_lf>?????<cr_lf> Note: Need to be in idle mode to execute the command. Multi-Tech Systems, Inc. SocketWireless Bluetooth AT Commands (S000360D)
  • Page 17: Last Display Last Connected

    Reply: <cr_lf>OK<cr_lf> <cr_lf>NO CARRIER<cr_lf> Note: If you send this command over the RF link to a remote Slave the Slave will disconnect and go into Idle mode not Slave mode by design. Multi-Tech Systems, Inc. SocketWireless Bluetooth AT Commands (S000360D)
  • Page 18: Command/Data Modes

    SocketWireless device has to be CONNECTED. If successful, an “OK” is returned or else “NO CARRIER”. A “NO CARRIER” also occurs when the connection has been lost. Example: Type: ATMD<cr> Reply: <cr_lf>OK<cr_lf> or <cr_lf>NO CARRIER<cr_lf> Multi-Tech Systems, Inc. SocketWireless Bluetooth AT Commands (S000360D)
  • Page 19: Mf Put Socketwireless Into Fast Data Mode

    Bluetooth connection. Basically, you can setup the SocketWireless so no commands are required to be sent from the embedded side of the SocketWireless UART. This will prevent any software embedded firmware development or testing for legacy systems. Multi-Tech Systems, Inc. SocketWireless Bluetooth AT Commands (S000360D)
  • Page 20: Utilities

    The READ from index locations are: 0: Location 0 Up to 16 alphanumeric characters 1: Location 1 Up to 16 alphanumeric characters Example: Type: ATREAD,0<cr> Reply: <cr_lf>OK<cr_lf> <cr_lf>1234567890123456<cr_lf> or <cr_lf>OK<cr_lf><cr_lf>OK<cr_lf> Note: Nothing stored will return blank. Multi-Tech Systems, Inc. SocketWireless Bluetooth AT Commands (S000360D)
  • Page 21: Park And Sniff (Connected Slave)

    Clear Sniff stored values above. Example: Type: ATCSNIFF<cr> Reply: <cr_lf>OK<cr_lf> XSNIFF Exit Sniff Mode Exit Sniff mode The ATXSNIFF tells the SocketWireless to exit and stop “sniffing” RF signals. Example: Type: ATXSNIFF<cr> Reply: <cr_lf>OK<cr_lf> Multi-Tech Systems, Inc. SocketWireless Bluetooth AT Commands (S000360D)
  • Page 22: Pairing

    Example: Type: ATSPF,4,+<cr> // +4dBm Reply: <cr_lf>OK<cr_lf> or if > (+15) or < (-20) <cr_lf>ERROR<cr_lf> Multi-Tech Systems, Inc. SocketWireless Bluetooth AT Commands (S000360D)
  • Page 23: Lsto, Link Supervisory Timeout

    SocketWireless to go back into Slave discoverable mode. It is important to remember a device in Idle Mode is not discoverable, which has some security advantages. The same type of benefits can be achieved by controlling the time when the SocketWireless is turned off/on again. Multi-Tech Systems, Inc. SocketWireless Bluetooth AT Commands (S000360D)
  • Page 24: Chapter 3 - Factory Default Power-Up Settings

    Power Mode = Never go into deep sleep mode Country/Region Code = North America and Europe Module Type = Multi-Tech SocketWireless Name of Device (local name) = Multi-Tech SocketWireless My SocketWireless status = 1,0 {slave disconnected} Service Name = COM0...
  • Page 25: Chapter 4 - Examples

    Sent : +++<cr> // Default escape sequence of characters Reply: <cr_lf>OK<cr_lf> Check Status, perform a Disconnect … Sent : AT<cr> Reply: <cr_lf>OK<cr_lf> Or send any AT Command example: Sent : ATSI,1<cr> Reply: <cr_lf>00A0961F2023<cr_lf> Multi-Tech Systems, Inc. SocketWireless Bluetooth AT Commands (S000360D)
  • Page 26: Example Of A Slave Command Sequence

    Slave from a Master request. Get Out of Data Mode and Check Status Delay at least 50 milliseconds. Check Status, perform a Disconnect …etc. Sent : AT<cr> Reply: <cr_lf>OK<cr_lf> Multi-Tech Systems, Inc. SocketWireless Bluetooth AT Commands (S000360D)
  • Page 27: Chapter 5 - Response Codes

    <cr_lf>OK<cr_lf> <cr_lf>34,00<cr_lf> ATSW24,1,0,1,0 <cr_lf>OK<cr_lf> <cr_lf>34,00<cr_lf> ATSW24,1,0,1,1 <cr_lf>OK<cr_lf> <cr_lf>34,00<cr_lf> ATSW24,1,1,0,0 <cr_lf>OK<cr_lf> <cr_lf>34,00<cr_lf> ATSW24,1,1,0,1 <cr_lf>OK<cr_lf> <cr_lf>34,00<cr_lf> ATSW24,1,1,1,0 <cr_lf>OK<cr_lf> <cr_lf>34,00<cr_lf> ATSW24,1,1,1,1 <cr_lf>OK<cr_lf> <cr_lf>34,00<cr_lf> ATSW25,0,0,0,0 <cr_lf>OK<cr_lf> <cr_lf>35,00<cr_lf> ATSW25,0,0,0,1 <cr_lf>OK<cr_lf> <cr_lf>35,00<cr_lf> ATSW25,0,0,1,0 <cr_lf>OK<cr_lf> <cr_lf>35,00<cr_lf> ATSW25,0,0,1,1 <cr_lf>OK<cr_lf> <cr_lf>35,00<cr_lf> Multi-Tech Systems, Inc. SocketWireless Bluetooth AT Commands (S000360D)
  • Page 28 126 ATUCL <cr_lf>OK<cr_lf> <cr_lf>51,00<cr_lf> 127 ATURST <cr_lf>OK<cr_lf> <cr_lf>50,00<cr_lf> 128 ATFRST <cr_lf>OK<cr_lf> <cr_lf>75,00<cr_lf><cr_lf>15,00<cr_lf> 129 ATDSCO <cr_lf>SCO CONNECT<cr_lf> <cr_lf>24,09<cr_lf> 130 ATDHSCO <cr_lf>SCO DISCONNECT<cr_lf> <cr_lf>24,11<cr_lf> 131 ATPARK,X,X <cr_lf>NO CARRIER<cr_lf><cr_lf>OK<cr_lf> <cr_lf>26,03<cr_lf><cr_lf>26,00<cr_lf> 132 ATXPARK <cr_lf>NO CARRIER<cr_lf><cr_lf>OK<cr_lf> <cr_lf>29,03<cr_lf><cr_lf>29,00<cr_lf> Multi-Tech Systems, Inc. SocketWireless Bluetooth AT Commands (S000360D)
  • Page 29 <cr_lf>70,00<cr_lf><cr_lf>70,address 136 ATSSNIFF <cr_lf>OK<cr_lf> 94,00<cr_lf> 137 ATCSNIFF <cr_lf>OK<cr_lf> 95,00<cr_lf> 138 ATAPAIR 139 ATSPF,15,+ <cr_lf>OK<cr_lf> <cr_lf>79,00<cr_lf> 140 ATSTORE <cr_lf>OK<cr_lf> 90,00<cr_lf> 141 ATREAD <cr_lf>OK<cr_lf> 91,<cr_lf> 142 ATLSTO <cr_lf>OK<cr_lf> 88,00<cr_lf> <cr_lf>OK<cr_lf> <cr_lf>CONNECT<cr_lf> <cr_lf>NO CARRIER<cr_lf> <cr_lf>ERROR<cr_lf> Multi-Tech Systems, Inc. SocketWireless Bluetooth AT Commands (S000360D)
  • Page 30: Appendix A - At Command Summary Table

    Dial Master ATDL Dial Last ATLAST Last Connected Device Address No / Yes-Paired ATDS Dial Slave ATDH Dial Hang-up Default Escape Characters ATSESC Set Escape Characters ATMD Data Mode ATMF Fast Data Mode Multi-Tech Systems, Inc. SocketWireless Bluetooth AT Commands (S000360D)
  • Page 31 ATXPARK Exit Park ATSNIFF Sniff ATSSNIFF Set/Store Sniff ATCSNIFF Clear Sniff ATXSNIFF Exit Sniff ATPAIR Pair Yes? ATUPAIR Un Pair ATAPAIR Last Paired Address ATSPF Set Power Factor ATLSTO Link Supervisory Timeout Multi-Tech Systems, Inc. SocketWireless Bluetooth AT Commands (S000360D)
  • Page 32: Appendix B - Glossary, Acronyms, And Abbreviations

    TTL – Transistor Transistor Logic TX – Transmit UART – Universal Asynchronous Receiver/Transmitter USB – Universal Serial Bus UUID – Universal Unique Identifier – maintained by Bluetooth SIG. VCC – Power VDD – Power Multi-Tech Systems, Inc. SocketWireless Bluetooth AT Commands (S000360D)
  • Page 33: Index

    - MF ..........19 set data mode - MD..........18 FRST – factory reset ..........20 set escape ASCII character - SESC......18 set max TX power level - SPF........22 set PIN lock code - SW29 ........13 Multi-Tech Systems, Inc. SocketWireless Bluetooth AT Commands (S000360D)
  • Page 34 SW22 - Set PIO State/Configure state of PIO ..11 XPARK – exit park mode .........21 SW23 - store parameters .........11 XSNIFF – exit sniff mode .........21 SW25 - auto connecting modes .......12 SW26 - lock user definable settings ......13 Multi-Tech Systems, Inc. SocketWireless Bluetooth AT Commands (S000360D)