01.02.2014 Views

Bluetooth Commands - wless.ru

Bluetooth Commands - wless.ru

Bluetooth Commands - wless.ru

SHOW MORE
SHOW LESS

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 />

SW23 Write PIO Level<br />

This command sets the PIO logic level.<br />

Format: ATSW23,,,<br />

Parameters: ATSW23,,,<br />

• PIO#: 3,6,7 (6 & 7 not user controllable in MP mode, see notes above in<br />

ATSW22)<br />

• PIO State:<br />

0 = Off (0V)<br />

1 = On (+V)<br />

• Store:<br />

0 = Do Not Store<br />

1 = Store Parameters in Flash<br />

EXAMPLE:<br />

TYPE: ATSW23,6,1,1<br />

REPLY: OK<br />

OR<br />

ERROR<br />

Read Using: ATSR21<br />

SW24 Write Response, Security, Auto SCO, Filter Settings<br />

This command configures response, security, auto SCO, and filter settings.<br />

Format: ATSW24,,,,<br />

Parameters: ><br />

• Response Type (See Appendix B for more information):<br />

0 = Long Response<br />

1 = Short Response<br />

2 = No Verbose Mode (No unsolicited responses will be output)<br />

No OKs will come back, but requested information such as ATSI,<br />

ATRSW, ATRSN and ATDI responses will.<br />

The device will not output CONNECT or DISCONNECT messages.<br />

In FTP and OPP modes the radio will still output all necessary<br />

messages such as PUSH START and PUSH COMPLETE.<br />

• Security: 56-bit encryption is automatically enabled when set to 1.<br />

UART will reply PAIRED, before the CONNECT, is<br />

returned when a connection is made.<br />

0 = No Authorization<br />

1 = Authorization Required<br />

Note: If security is enabled in multipoint mode, all connected slaves will have to<br />

use the same PIN. There is no way to assign an individual PIN to each slave.<br />

• Auto SCO:<br />

0 = No Automatic SCO Connect<br />

1 = SCO Auto Connect Upon Radio Connect.<br />

• Minor Filter:<br />

0 = Disable Minor COD Filter on Inquiry<br />

1 = Enable Minor COD Filter on Inquiry<br />

Note: With the minor filter enabled, inquiry results are filtered by the lower 2<br />

bytes of the COD. If the minor filter is disabled all devices are found.<br />

Factory Default: Response Type = 0, Security = 0, Auto SCO = 0, Filter = 0<br />

EXAMPLE:<br />

TYPE: ATSW24,0,0,0,0<br />

REPLY: OK<br />

OR<br />

ERROR<br />

Read Using: ATSI,6<br />

Notes:<br />

See Appendix B for differences between short and long response mode.<br />

Requires a reset for security to go into affect.<br />

Multi-Tech Systems, Inc. SocketWireless <strong>Bluetooth</strong> AT <strong>Commands</strong> (S000360G) 29

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!