
Chapter 2 – AT Commands
Multi-Tech Systems, Inc. SocketWireless Bluetooth AT Commands (S000360H) 28
SW25 Write Connection, Comm, Unconnected UART, Default Service Modes
This command configures connection, comm mode, unconnected UART, and default service modes.
Warning – The only way to communicate to the device after setting the radio in “Fast Data Mode” and “ignore
UART while unconnected” is to apply 3.3Vdc on PIO(4) during initial power up for >2 sec. These settings are
used if you have no control over the source of streaming data into the radio, or you do not know when the
radio has made a Bluetooth connection, and do not plan on sending any AT commands.
Format: ATSW25,<Power-Up Connection Mode>,<Comm Mode>,<Unconnected UART
Mode>, <Default Service Profile>
Parameters:
• Power-Up Connection Mode:
0 = Slave
1 = Auto-Master (Set ATSMA Command First). Auto-Connect Master always
connects using the highest available channel. If none available it will
continue to retry.
2 = Idle Mode. In idle mode the radio is neither slave nor master and draws
1.6mA of current but you can not communicate over the Bluetooth link in this
state only through the TX & RX hardware UART.
3 = Slave Undiscoverable
5 = Repeater (Set ATSMA Command First). Repeater always uses channel 00
for slave and 01 for Master. Repeater also only uses SPP with no SCO
connection.
6 = Mesh Configuration
7 = OPP Server (See FTP and OPP Modes Section for more info)
8 = FTP Server (See FTP and OPP Modes Section for more info)
• Comm Mode:
0 = Fast Data. If data mode is set to “Fast Data Mode” in a Master unit during a
manual inquiry “ATDI” and/or connection request the radio connects in slow
data mode not fast. This is because you will need the capability to issue
commands because in fast data mode the AT command parser is turned off.
1 = Data
2 = Command
• Unconnected UART Mode:
0 = Allow Data to Pass While Unconnected
1 = Ignore Data While Unconnected
• Default Service Profile:
This field no longer has any effect; it can just be set to 0. Service profile UUIDs
are now set using the ATSSNC command.
Factory Default: Connection Mode = 0, Comm Mode = 1, Unconnected UART Mode = 0,
Default Service Profile = 0
EXAMPLE:
TYPE: ATSW25,0,1,0,0<cr> //Slave radio connects in fast data mode
REPLY: <cr_lf>OK<cr_lf>
OR
<cr_lf>ERROR<cr_lf>
Read Using: ATSI,7
Notes:
• Requires a reset for the settings to go into affect.
• The comm mode parameter has no effect when operating in FTP or OPP mode.
Comentarios a estos manuales