
Chapter 2 – AT Commands
Multi-Tech Systems, Inc. SocketWireless Bluetooth AT Commands (S000360H) 26
SW22 Write PIO Direction
This command configures the direction of the PIOs.
Caution: This has to be done before using PIOs as outputs. Inputting 3.3Vdc into a PIO
assigned as output will permanently damage the module.
Format: ATSW22,<PIO#>,<PIO State>,<Store>
Parameters:
• PIO#: 3,6,7 (6 & 7 not user definable in MP mode, see notes below)
• PIO State:
0 = Input
1 = Output
• Store:
0 = Do Not Store
1 = Store Parameters in Flash
EXAMPLE:
TYPE: ATSW22,6,0,1<cr>
REPLY: <cr_lf>OK<cr_lf>
OR
<cr_lf>ERROR<cr_lf>
Notes:
Point-to-Point PIO Functionality
• PIO(2) Hard coded as output only. Indicates Bluetooth connection on Ch00.
• PIO(3) Hard coded as input only. High signal of > 1ms will interrupt to wake-up
CPU out of deep sleep mode if enabled.
• PIO(4) Hard coded as input only. Triple Purpose PIO. Used for resetting factory
defaults on power up and breaking out of Fast Data mode while Bluetooth
connected. Also, if strobed, will auto connect to last paired or last connected
device.
• PIO(5) Hard coded as output only. Strobes to indicate slave or master inquiry in
process.
• PIO(6) User Definable. Defaults as input.
• PIO(7) User Definable. Defaults as input. Can be used for flow control.
Multi-Point PIO Functionality
• PIO(2) Hard coded as output only. Indicates Bluetooth connection on Ch00.
• PIO(3) Hard coded as input only. Defaults as input, high signal of > 1ms will
interrupt to wake-up CPU out of deep sleep mode if enabled.
• PIO(4) Hard coded as input only. Triple Purpose PIO. Used for resetting factory
defaults on power up and breaking out of Fast Data mode while Bluetooth
connected. Also, if strobed, will auto connect to last paired or last connected
device.
• PIO(5) Hard coded as output only. Indicates Bluetooth connection on Ch01.
• PIO(6) User definable if no connection on Channel 2. Indicates Bluetooth
connection on Ch02.
• PIO(7) User definable if no connection on Channel 3. Indicates Bluetooth
connection on Ch03.
Comentarios a estos manuales