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