Home

User Guide Bluetooth Intelligent Serial Module AT Command Set , Inc.

image

Contents

1. 91 ATSW29 default 0 cr lt lt cr_lf gt 72 00 lt cr_lf gt 92 ATSW29 default 1 gt lt 72 00 93 ATSW29 default 2 gt lt If 72 00 94 ATSW30 0 lt cr_lf gt OK lt cr_If gt lt 174 00 lt 1 95 ATSW30 1 lt cr_lf gt OK lt cr_If gt lt cr_lf gt 74 00 lt cr_lf gt 96 ATSP default lt cr_lf gt OK lt cr_If gt cr gt 39 00 lt 97 If OK cr gt lt cr_lf gt 78 00 lt cr_If gt 98 ATSC 00000000 lt cr_lf gt OK lt cr_If gt 40 00 gt 99 ATSSN COMO lt cr_If gt OK lt cr_If gt lt cr_lf gt 38 00 lt cr_If gt 100 ATSR21 2 cr If OK cr If2 cr or 1 lt cr_If gt 1244 00 or 1 cr 101 ATSR21 3 cr If OK cr If2 cr 1 lt cr_If gt 1244 00 cr or 1 cr 102 ATSR21 4 cr lt If2 cr 1 lt cr_If gt lt cr_lf gt 44 00 or 1 cr 103 ATSR21 5 cr gt lt If2 cr or 1 lt cr_If gt 1244 00 or 1 104 ATSR21 6 cr lt If2 cr 1 lt cr_If gt cr 1244 00 or 1 lt 105 ATSR21 7 cr lt If2 cr or 1 lt cr_If gt 1244 00 cr or 1 cr 106 ATDI 4 00000000 lt cr_lf gt OK lt cr_lf
2. 33 8 EXAMPLE SLAVE COMMAND SEQUENCE 34 9 EXAMPLE OF AUDIO AND DATA 34 10 EXAMPLE OF HEADSET CONNECTION TO 34 11 ACRONYMS ABBREVIATIONS dec ager gc ura eiua E Ce EAE Y VR RAE 36 APPENDIX A Verbalization Responses APPENDIX B AT Command Summary Table 7173 S Havana Street Suite 600 Englewood CO 80112 Tel 303 957 1003 info BlueRadios com www BlueRadios com C Bluetooth Page 3 of 41 BlueRadios Inc Copyright 2002 2005 Secure Versatile and Award Winning Network Radio Devices BR AT_COMMANDS 100 Rev 2 8 1 0 0 1 Revision History PIO5 pulse rate 0 9 6 8 07 2003 Initial Release R D Jones 1 0 3 10 6 2003 Incorporated PIN Encryption COD and Factory Reset M J Kramer 1 0 7 10 28 2003 Incorporated Set Master with address of specific Slave W l Tucker 1 1 0 11 3 2003 Production Release Tuned performance M J Kramer 1 1 3 12 1 2003 Fast Data Mode on BT connection 3 1 5 set service name and pass
3. 3 1 4 Security SP lt newvalue gt lt oldvalue gt Set Personal Identification Number PIN Set PIN Max alphanumeric characters 16 includes spaces Caps sensitive Factory default PIN default EXAMPLE ATSP newPIN oldPIN TYPE ATSP 1234567890123456 default lt cr gt REPLY cr lf OK cr lf Note Be careful when entering a new PIN There is no way to obtain PIN status after it is changed If the PIN is changed after two units have already authenticated and connected you will have perform a software or hardware reset for the devices to use the new PIN s if not the two units will still connect using the old stored PIN Overwrite PIN 7173 S Havana Street Suite 600 Englewood 80112 Tel 303 957 1003 info BlueRadios com www BlueRadios com Bluetooth 1 9 Secure Versatile A2 ail IOS and Award Winning Copyright 2002 2005 Network Radio Devices A Wireles Worl BR AT_COMMANDS 100 Rev 2 8 1 0 0 Set Overwrite PIN so you do not need to enter old PIN to set a new PIN Max alphanumeric characters 16 includes spaces Caps sensitive EXAMPLE TYPE ATOP 1234 lt cr gt REPLY cr lf OK cr lf Note This command is used in conjunction with ATSW29 command 3 1 5 COD Class of Device SC lt value gt Change Class of Device COD requires exactly 8 16 bit hex values 0 thru F
4. OK 00 Command is correct and has been completed CONNECT 01 Connection established RING Incoming ring detected NO CARRIER 03 No connection or lost the carrier ERROR 04 Bad command NO DIALTONE Dial tone not detected in 7 seconds BUSY Busy tone detected NO ANSWER See ATD Q SCO CONNECT 09 Audio SCO connection established SCO FAILED Audio SCO connection failed SCO 11 Audio 500 disconnected DISCONNECT DONE 12 Inquiry Complete 25 lt value gt lt value gt lt value gt Auto Connecting Modes Change power up Connect Security audio and filter modes ATSW25 connectMode dataMode unConnectUartMode set defaults on power up Service 0 Slave 0 Fast Data 0 allow data to pass 0 SPP 1 Autoconnect Master 1 Data 1 ignore UART while 1 DUN 2 Idle Mode 2 Command unconnected 2 Headset 3 Slave Undiscoverable Factory default is ATSW25 0 1 0 0 7173 S Havana Street Suite 600 Englewood CO 80112 Tel 303 957 1003 info BlueRadios com www BlueRadios com Bluetooth Jue 9 Secure Versatile Page 17 of 41 Aw Eso sed a ail IOS Bede ine and Award Winning L J A_Wireicss Worl Copyright 2002 2005 Network Radio Devices BR AT_COMMANDS 100 Rev 2 8 1 0 0 If comMode 0 Fast Data Mode in a Master unit during a manual inquiry ATDI and or connection request the radio connects in slow data mode
5. 20 3 2 1 lil 20 3 2 2 Set Master Default Bluetooth Address Profile for 21 3 2 3 Connect as Master dee eee ei debes 21 3 2 4 Connect AS S IaVe eee ette be vetuit eer e pueden eer dextre ee tes e Ee dba EHE 22 3 2 5 DISCOMNMECEY TREE ETE 23 3 8 COMMAND DATA 0 23 RR TEE 26 3 4 1 Cancel Gotmmlarid cic leti hic ee ited ee te oret en Eo CERE dade ee Aaa 26 3 4 2 5 11 21 ces ec cael 26 3 4 3 AdO SCO m arane HURTS 24 3 4 4 Park and Sniff Connected 5 statics tiia ri Ska Re rat Rh deer ESL ee dE 26 34 55 nde tede e OTI SERRE dE aen e eeu eel s eee PE Qo epa Ho eee 26 4 FUTURE BLUERADIOS ENHANCEMENTS 30 5 BLUERADIOS FACTORY DEFAULT POWER UP 31 6 COMMON PROBLEMS AND 5 5 saa dd dd dana nsa aaa 32 7 EXAMPLE OF A MASTER DISCOVERY CONNECTION 5
6. dne Bluetooth Secure Versatile BB and Award Winning A Wireless Worid Copyright 2002 2005 Network Radio Devices BR AT_COMMANDS 100 Rev 2 8 1 0 0 User Guide For Radies Bluetooth Intelligent Serial Module AT Command Set Audio Data Evaluation Board Pictured Above with Class1 Radio By Z7 Rallies Inc AT HOME AT WORK ON THE ROAD USING BLUETOOTH WIRELESS TECHNOLOGY MEANS TOTAL FREEDOM FROM THE CONSTRAINTS AND CLUTTER OF WIRES IN YOUR LIFE Subject matter contained herein is of highly sensitive nature and is confidential and proprietary to BlueRadios Incorporated and all manufacturing reproduction use and sale rights pertaining to such subject matter are expressly reserved The recipient by accepting this material agrees that this material will not be used copied or reproduced in whole or in part nor its contents revealed in any manner to any person or other company except to meet the express purpose for which it was delivered This document includes data that shall not be disclosed outside of your organization and shall not be duplicated used or disclosed in whole or in part for any purpose other than to evaluate this document B ueRadios Incorporated proprietary information is subject to change without notice 7173 S Havana Street Suite 600 Englewood CO 80112 Tel 303 957 1003 info BlueRadios com www BlueRadios com due Bluetooth Secure Versatile Page 2 of
7. 35 00 59 ATSW25 1 0 0 0 lt cr_lf gt OK lt cr_If gt lt cr_lf gt 35 00 lt cr_lf gt 60 ATSW25 1 0 0 1 lt cr_lf gt OK lt cr_If gt 35 00 61 ATSW25 1 0 1 0 lt cr_lf gt OK lt cr_If gt lt cr_lf gt 35 00 lt cr_lf gt 62 ATSW25 1 0 1 1 lt cr_lf gt OK lt cr_If gt 35 00 63 ATSW25 1 1 0 0 lt cr_lf gt OK lt cr_If gt lt cr_lf gt 35 00 lt cr_lf gt 64 ATSW25 1 1 0 1 lt cr_lf gt OK lt cr_If gt lt cr_lf gt 35 00 lt cr_lf gt 65 ATSW25 1 1 1 0 lt cr_lf gt OK lt cr_If gt lt cr_lf gt 35 00 lt cr_lf gt 66 ATSW25 1 1 1 1 lt cr_lf gt OK lt cr_If gt 35 00 67 ATSW25 0 2 0 0 lt cr_lf gt OK lt cr_If gt lt cr_lf gt 35 00 lt cr_lf gt 68 ATSW25 0 2 0 1 lt cr_lf gt OK lt cr_If gt 35 00 69 ATSW25 0 2 1 0 lt cr_lf gt OK lt cr_If gt 35 00 70 ATSW25 0 2 1 1 lt cr_lf gt OK lt cr_If gt 35 00 71 ATSW25 1 2 0 0 lt cr_lf gt OK lt cr_If gt lt cr_lf gt 35 00 lt cr_lf gt 72 ATSW25 1 2 0 1 lt cr_lf gt OK lt cr_If gt 35 00 73 ATSW25 1 2 1 0 lt cr_lf gt OK lt cr_If gt 35 00 74 ATSW25 1 2 1 1 lt cr_lf gt OK lt cr_If gt lt cr_lf gt 35 00 lt cr_lf gt 75 ATSW25 2 2 0 0 lt cr_lf gt OK lt cr_If gt 35 00 76 ATSW25 2 2 0 1 lt cr_lf gt OK lt cr_If gt 35 00 77 ATSW25 2 2 1 0 lt cr_lf gt OK l
8. Triple mode design implementation Release Automatic RING auto answering for Headset ATDL connect to last stored BT address ATLAST display last stored BT address ATSESC set escape sequence of ASCII characters ATSI 11 PIO 5 pulse rate value ATSI 12 esc character ATSI 13 Inquiry and Master timeout settings ATSI 14 TX Power factor ATSI 15 PIN lock status ATSI 16 Deep sleep status ATPARK Park mode supported ATPAIR Pair with another device ATUPAIR Un pair from last device ATAPAIR Address of last paired device ATSW20 added stop and parity UART flag settings ATSP Extended PIN length from 10 to 16 characters ATSW28 Set Inquiry and Master connect timeouts ATSW29 added 3 levels of security options ATSW30 Enable deep sleep ATSPF Sets Max Transmit power Overwrite PIN ATFRST Resets radio back to factory configuration PIO 3 Wake up input high 1msec to interrupt CPU and to wakeup from deep sleep without losing fist byte of data on UART LINK BTaddress Verbalization added on Master and Slave when security is enabled www BlueRadios com Bluetooth 1 9 Secure Versatile A2 ail ao and Award Winning L J Worta Copyright 2002 2005 Network Radio Devices BR AT_COMMANDS 100 Rev 2 8 1 0 0 Note To provide the best firmware architecture design and future profile support there is not 100 code backwards compatibility in regards to certain AT Comm
9. V Strobes 1 sec for Slave indication 6 6 0 off Ov 1 on V user definable 7 PIO 7 0 off Ov 1 on V user definable EXAMPLE TYPE ATSR21 3 lt cr gt REPLY cr lf OK cr lf cr lf 1 cr lf or cr lf 0 cr lf 3 2 Inquiry Connect Disconnect Commands 3 2 1 Inquiry This command is used to discover all Bluetooth radios within range that match the Class Of Device COD If the COD is not known it is best to use 00000000 which allows discovery of all devices You can not be in the default slave mode and perform the inquiry command Only a Master or Radios in idle mode can perform an inquiry UCL Clear Unit Recommend executing this before performing an inquiry command places the radio in idle mode See 3 4 Utilities DI number cod Inquire This command signals the radio that the numbers letters and commas that follow are all part of a radio number that it should connect to The number represents how many devices to find An OK is returned immediately following this command DONE will appear after all devices have been found or a 20 second timeout has occurred while searching for the number of devices specified Returns the following bd Address 12chars gt lt cod 8chars gt lt name up to l6chars EXAMPLE MASTER TYPE ATDI 1 00000000 lt cr gt REPLY cr lf OK cr lf cr 1f 00A0961F2023 00000000 BlueRadios ccr l1f DONE cr 1
10. based on the Bluetooth COD specification names published and maintained by the Bluetooth SIG Factory default is 00000000 undefined since this OEM device installed in is set by the user based on the final EXAMPLE TYPE ATSC 00020114 lt cr gt REPLY cr lf OK cr lf Requires a software or hardware reset for change to take affect Note 3 1 6 Set Service Name SSN value Set the Bluetooth Service Name Maximum of 16 alphanumeric characters Factory default is COMO ATSSN 1234567890123456 EXAMPLE TYPE ATSSN COM0 lt cr gt REPLY cr lf OK cr lf Note Requires a software or hardware reset for change to take affect 3 1 7 Read Memory locations SR lt n gt Read an S register The S registers refer to memory locations used for configuration 7173 S Havana Street Suite 600 Englewood 80112 Tel 303 957 1003 info BlueRadios com www BlueRadios com dne Bluetooth Secure Versatile m Page 20 of 41 Aw a ail 10S Biskaia and Award Winning VVirele A CY Voria Copyright 2002 2005 Network Radio Devices BR AT_COMMANDS 100 Rev 2 8 1 0 0 21 lt PIO gt 2 PIO 3 0 off Ov 1 on V Reserved Indicates BT connection 3 PIO 3 0 off Ov 1 on V user definable 4 4 0 off Ov 1 on V Reserved Dual Purpose 5 PIO 5 0 off Ov 1 on
11. cr 1f 2003C 003C cr 1f HEX value TYPE ATSI 14 lt cr gt REPLY cr lf OK cr lf cr lf default cr 1f or HEX value if changed TYPE ATSI 15 lt cr gt REPLY cr lf OK cr lf cr lf 00 cr lf HEX value TYPE ATSI 16 lt cr gt REPLY cr lf OK cr lf cr lf 01 cr lf HEX value 3 1 2 Set the Radio name When another Radio performs a Discovery this will be the name that is passed to that radio Please take note unlike the name the Radio s Bluetooth address is fixed 48bit at the factory and is unique to every Bluetooth device manufactured SN name Set the RADIO name Sets the Radios friendly name 16 alphanumeric characters MAX EXAMPLE TYPE ATSN MYRADIOS 0123456 cr REPLY cr lf OK cr lf 3 1 3 Write Memory locations SW lt n gt Write to an S register The S registers refer to memory locations used for configuration The S commands are used to assign values to various registers in the radio s Flash Memory that are stored in nonvolatile memory 20 lt baudrate gt lt parity gt lt stopbits gt lt store gt UART Settings Baud Rates 1200 921 6Kbps see table below 0 PARITY NONE 1 PARITY_ODD 2 PARITY_EVEN Stop Bits 0 STOP_ONE 1 STOP_TWO Store Parameters 0 Do Not Store 1 Store Parameters in Flash EXAMPLE 7173 S Havana Street Suite 600 Englewood CO 8011
12. 090909 Female DB 9 9990 3 Power Terminals for Evaluation Board Inputs on J9 amp J10 can be gt 5VDC and lt 12 0VDC Worst case power draw for the entire evaluation board is 150ma when the Bluetooth radio modem connection is established and transmitting Power consumption is much lower depending on parameter settings Hardware UART Communications Connections for Modules and Eval Board Radio module TX UART RX of the application Micro Controller Unit MCU Radio module RX UART TX of the application Micro Controller Unit MCU Radio module RTS UART CTS of the application Micro Controller Unit MCU Radio module CTS UART RTS of the application Micro Controller Unit MCU 7173 S Havana Street Suite 600 Englewood CO 80112 Tel 303 957 1003 info BlueRadios com www BlueRadios com Bluetooth g 9 Secure Versatile a ail ao and Award Winning 5 Copyright 2002 2005 Network Radio Devices BR AT_COMMANDS 100 Rev 2 8 1 0 0 Evaluation Board Block Diagram 0 3 3Vdc max directly into radio Push Button Switch PIO4 UART Not 5Vdc CPU Reset SW1 Triple Purpose Level BlueRadios PIO 6 7 not connected on shifting Bluetooth the evaluation board circuit SMT Module PIO 2 3 4 5 Reserved LEDs The RED LED next to power terminals should come on whenever the unit has power supplied The Blue LED on the PIO 2 should go on whenever the unit is connected to another Bluetooth
13. 1 Fast Data Mode The drawback to this is that once in fast data mode there is limited ways to get out of it like CPU reset power down or strobe PIO 4 on the radio The advantage of this mode is that the data being sent does not have to be evaluated or processed for AT commands and will allow for a faster effective data throughput of around 200Kbps To verify you are in fast data mode type lt cr gt it will pass directly through the UART because the AT Command parser is off Else the lt cr gt will be accepted because the AT Command parser is still on and returns OK On the previous 4Mbit legacy modules the escape characters was fixed and set to ATMO is no longer implemented 2 The different operation modes are explained in the next table below The Command Mode or Slow Data Mode will slow down the throughput when the radio looks for the AT commands One way to allow minimal overhead transmission burden is to perform all configuration commands and then place the radio into the fast data mode Put Radio into Command Mode when Bluetooth connected This sequence is used to force the radio into command mode state If the Radio has been place in Fast Data Mode this command will have no affect and the typed command will be treated as data When using this command allow at least 100ms delay before sending next AT command 7173 S Havana Street Suite 600 Englewood CO 80112 Tel 303 957 1003 in
14. 41 7 ai Award Winning L 1 A_Wireliess VWorid Copyright 2002 2005 Network Radio Devices BR AT_COMMANDS 100 Rev 2 8 1 0 0 1 5 3 2 1 4 3 AI COMMAND En eei ope Pres enge prx a WEN ve 11 3 1 GET SET RADIO 4 000000 11 3 1 1 Get Staus a aaa aa a aa a aaa E aaa a iaaa 11 3 1 2 Setthie RADIO 13 39 1 89 Write Memory locations eosin aa ete ra crea e eate pa ed lc 13 3 1 4 13 3125 COD Class of D6vlce iiit adt peu dete ec le ee 19 3 1 6 18 3 1 7 42465 lec Bac nek 19 3 2 INQUIRY CONNECT DISCONNECT 8 02000400000000
15. R D Jones BT address on connect reorganized the ATSW25 commands added 3 5 Audio SCO commands 1 1 5 12 24 Changed and modified ATSW24 amp ATSW25 commands R D Jones 1 1 6 1 16 04 ATMC executed over a remote RF link will ignore the data on the Tucker radios UART and ATMD or ATMF will enable it to pass again 1 1 7 2 1 04 ATSW26 password control locks the user definable settings Bluetooth M J Kramer connection default is now data mode on a BT connection to enable remote configuration of the radio over BT RF link connection 1 1 8 3 15 04 Added ATSI 8 ATSI 9 ATSI 10 get status information ATSW27 Set W l Tucker Firmware Structured Around 8Mbit Flash Modules 1 1 9 4 21 04 Added ATMACLR command to clear ATSMA settings M J Kramer 1 1 10 4 23 04 ATSIE1 Get Status Information Extended to include more items R D Jones 1 1 11 4 28 04 ATSW25 added 4 flag setting for 1 DUN Slave service option 1 1 14 6 1 04 Beta version for testing purposes only 1 1 15 7 1 04 Enabled ATSW21 Page Scan and Window commands Modified Verbalization short form category 1 replies See Appendix A 1 2 7 10 20 04 Added headset service for ATSW25 flag Fixed Sniff not Park up dated the doc to remove If for sending commands not required 7173 S Havana Street Suite 600 Englewood CO 80112 Tel 303 957 1003 info BlueRadios com 2 8 1 0 0 3 11 2005 Added ATSW25 3 X X X Flag for slave undiscoverable Production PIO 4
16. ail 1 725 and Award Winning VVirele Ss World Copyright 2002 2005 Network Radio Devices A BR AT_COMMANDS 100 Rev 2 8 1 0 0 DL Dials Last Connects to last successful Slave Bluetooth address connection over SPP unless ATDM command was executed then the UUID from the ATDM command will be used EXAMPLE TYPE ATDL lt cr gt REPLY cr lf OK cr lf cr l1f CONNECT 123456789012 cr lf or REPLY cr 1f cr lf Note Need to be in idle mode to execute the command LAST Displays the LAST connected Bluetooth device address EXAMPLE TYPE ATLAST lt cr gt REPLY cr lf OK cr lf cr 1 gt 000000000000 lt 1f or Nothing stored REPLY cr 1 gt 123456789012 lt lf last connected device Note Unless the device was paired the address will be lost if power cycled UUID Table The Highlighted Universal Unique Identifiers UUID s have been tested Others may be activated but the results are unknown IrMC Sync OBEX Object Push OBEX File Transfer IrMC Sy nc Command Cordless Telephon CTP Intercom nj WAP WAP_CLIENT PAN TBD HID TBD 3 2 4 Connect as Slave This command is used to connect one radio module to another Doing this will enable data transmission bi directionally When performing this command the reply is critical so as to understand wher
17. gt OK lt cr_lf gt lt cr_lf gt 0400 0400 0200 lt cr_If gt gt 24 0400 0400 0200 lt 14 ATSI 11 cr If OK cr If2 cr If204BO cr If cr 125 04 0 lt gt 15 ATSI 12 lt cr_lf gt OK lt cr_lf gt lt cr_If gt 2B lt cr_lf gt lt cr_lf gt 68 2B lt cr_lf gt 16 ATSI 13 lt cr_lf gt OK lt cr_lf gt lt cr_If gt 003C 003C lt cr_If gt gt 69 003 003 lt gt 17 ATSI 14 lt cr_lf gt OK lt cr_If gt lt cr_lf gt default lt cr_lf gt cr If271 default cr If 18 ATSI 15 lt cr_lf gt OK lt cr_lf gt lt cr_If gt 00 lt cr_If gt lt cr_lf gt 73 00 lt cr_lf gt 19 ATSI 16 cr If OK cr If2 cr If200 cr 1 f276 00 cr 14 ATSN NAME lt cr_lf gt OK lt cr_If gt 15 00 15 ATSW20 5 0 lt cr_lf gt OK lt cr_If gt cr If245 00 cr If 16 ATSW20 10 0 lt cr_lf gt OK lt cr_If gt lt cr_lf gt 45 00 lt cr_If gt 17 ATSW20 20 0 lt cr_lf gt OK lt cr_If gt cr If245 00 cr gt 18 ATSW20 39 0 lt cr_lf gt OK lt cr_If gt lt cr_lf gt 45 00 lt cr_lf gt 19 ATSW20 79 0 lt cr_lf gt OK lt cr_If gt cr If245 00 cr If 20 ATSW20 157 0 lt cr_lf gt OK lt cr_If gt lt 1245 00 lt 1 21 ATSW20 236 0 lt cr_lf gt OK lt cr_If gt lt If245 00 cr gt 22 ATSW20 472 0 lt cr_lf gt OK lt cr_If gt cr If245 00 cr If 23 ATSW20 944 0 lt cr_lf gt OK lt cr_If gt cr If245 00 cr gt 24 ATSW20 1887 0 lt cr_lf gt OK lt cr_If gt cr If245 00
18. gt addresses COD name lt cr_lf gt 12 00 lt cr_If gt addresses COD of lt 1 characters lt 12 03 lt 107 ATSMA gt 1101 cr gt lt 42 00 gt 108 ATMACLR lt cr_lf gt OK lt cr_If gt 43 00 gt 109 ATDM cr gt lt gt lt gt lt If cr If221 00 cr If2 cr If201 address 110 ATDL cr If OK cr If2 cr If connect lt If cr 77 00 lt If201 address 111 ATLAST cr If OK cr If2 cr If2address cr cr f264 00 cr gt lt If address 112 ATDS lt cr_lf gt OK lt cr_If gt lt cr_lf gt 22 00 lt cr_lf gt 113 ATDH lt cr_lf gt OK lt cr_If gt lt cr_lf gt 23 01 lt cr_lf gt lt cr_If gt 23 03 114 lt cr_lf gt OK lt cr_If gt lt cr_lf gt 32 00 lt cr_lf gt 115 ATSESC lt cr_lf gt OK lt cr_If gt If265 00 cr gt 116 ATMD lt cr_lf gt OK lt cr_If gt lt cr_lf gt 31 00 lt cr_If gt 117 ATMF lt cr_lf gt OK lt cr_If gt lt cr_lf gt 33 00 lt cr_If gt 118 ATUCL lt cr_lf gt OK lt cr_If gt lt cr_lf gt 51 00 lt cr_If gt 119 ATURST lt cr_lf gt OK lt cr_If gt lt cr_lf gt 50 00 lt cr_If gt 120 ATFRST lt cr_lf gt OK lt cr_If gt lt cr_lf gt 75 00 lt cr_lf gt lt cr_If gt 15 00 lt cr_If gt 121 ATDSCO 5 CONNECT lt cr_If gt 124 09 lt 122
19. on your client BlueRadios does not support pairing or authentication by default so these settings must be turned off on your client Some clients have these setting off by default others have them on To check and disable security From your PC desktop click My Bluetooth Places go to the Bluetooth Device configuration or Advanced Bi My Bluetooth Places My Device Configuration drop down menu click on the client vu Us Wo EE Wc lj ag applications tab Select the Bluetooth serial port po Search F Folders application name and click on the properties button m euotocth Device if secure connection or authentication encryption is checked un check it Bluetooth Serial Pert 8 Desktop 1 9 My Documents Changing the clients COM port Widcomm stack 5 4 My Computer the most common stack out there allows you to 3 Network Places 5 Dial Up Networking connect to BlueRadios using a Virtual COM port 5 Recyde Bin 2 mapper The software installs with a default E ay demanda dt port usually COM3 COM4 or COM5 To change amp My Device this setting From your PC desktop click My Bluetooth Places go to the Bluetooth Device configuration or Advanced Configuration drop down menu click on the client applications tab Select the Bluetooth serial port application name and click on the properties button then you can ch
20. you can set it to 15 Note Apply 3 3Vdc on PIO 4 for 1 sec on power up will change any of these back that are variables to the factory settings above The other option is to use the software command ATFRST lt cr gt The only exception for these two options is the name of device friendly name BlueRadios and PIN will not change back if you had changed this already Allow approximately 5 seconds for the radio to reconfigure On the BlueRadios evaluation boards we included a push button for PIO 4 factory reset which can be held down for 1 second while power is applied to the radio Misc items Over the air RF guaranteed data packet retries is set for 20 attempts before giving up 7173 S Havana Street Suite 600 Englewood CO 80112 Tel 303 957 1003 info BlueRadios com www BlueRadios com Bluetooth Blue 9 Secure Versatile Page 32 of 41 7 n a i es eire and Award Winning Wirelcss Worid Copyright 2002 2005 Network Radio Devices BR AT_COMMANDS 100 Rev 2 8 1 0 0 6 COMMON PROBLEMS and QUESTIONS During installation on Windows XP the USB device is not recognized run the Windows hardware trouble shooter and instead of Microsoft recommending the appropriate driver direct Windows to obtain the driver from the CD that was provided with the USB Bluetooth Communicator My Bluetooth client can see the B ueRadios and its serial service but can t connect This is most likely caused by a security setting
21. 1 connected 4 Get Service Nam 5 Get Class of Device COD setting is undefined from factory 6 Get ATSW24 status responseType authMode autoSCO minorFilter See page 12 for details defaults for power up only 7 Get ATSW25 status connectMode comMode unConnectedUartMode Service See page 13 for details defaults for power up only 8 Get radios UART baud rate parity and number of stop bits in HEX 0000 which is not set but defaults to 9600bps 9 Get autoConnect Masters stored Slaves Bluetooth address amp service if never used replies Not Set 10 Get Slaves scan interval and window in HEX 0400 0200 0400 0200 respectively number of time slots 11 Get PIO 5 pulse rate in HEX 04BO 1200msec 12 Get radios escape character setting in HEX 2B 13 Get Inquiry and Masters timeout in seconds HEX 003C 003C 14 Get radios maximum transmit power level Defaulted to max value in HEX OF 15dBm Recommend settings of 15dBm 12dBm 4dBm and OdBm Class 1 radio only 15 Password Lock Code Status 00 Default normal 01 UART only 02 UART and RF HEX OO 16 Get Deep Sleep Status 00 No Deep Sleep default 01 Deep Sleep enableed 01 EXAMPLE s TYPE ATSI 0 cr REPLY cr lf OK cr lf cr lf BlueRadios AT cr lf TYPE ATSI 1 lt cr gt REPLY cr lf OK cr lf cr 1 gt 112233445566 lt lf TYPE ATSI 2 lt cr gt REPLY cr lf OK cr lf cr lf Blu
22. 2 Tel 303 957 1003 info BlueRadios com www BlueRadios com Bluetooth g 9 Secure Versatile A2 ail IOS Eh de ipe and Award Winning s A_Wiireiess 7 77 15 Copyright 2002 2005 Network Radio Devices BR AT_COMMANDS 100 Rev 2 8 1 0 0 TYPE ATSW20 39 0 0 1 lt cr gt 9600 8 N 1 store in flash REPLY This unique Command does not reply with OK or ERROR because of internal UART data processing limitations and response timing Notes factory default is 9600 8 N 1 hardware flow control RTS CTS enabled You can not change the number of data bits from 8 same 0 1200 5 1 73 2400 10 1 73 4800 20 1 73 9600 39 0 82 19 2k 79 0 45 38 4k 157 0 18 57 6k 236 0 03 115 2 472 0 03 230 4k 944 0 03 460 8k 1887 0 02 921 6k 3775 0 00 Note Contact BlueRadios for calculating and setting custom baud rates not listed above 21 lt integer value gt lt integer value gt lt integer value gt lt integer value Page Scan Interval and Window for Slave device not connected in time slots N ATSW21 psinterval psWindow isInterval isWindow factory default is 1024 512 1024 512 Warning Setting these will affect the inquiry and connection time You could inadvertently set the scan interval too long and the window to short on the slave for a master connect request Unless your application is battery powered slave and power conserva
23. 39 ATSW24 0 1 0 0 lt cr_lf gt OK lt cr_If gt 40 ATSW24 0 1 0 1 lt cr_lf gt OK lt cr_If gt 41 ATSW24 0 1 1 0 lt cr_lf gt OK lt cr_If gt 42 ATSW24 0 1 1 1 lt cr_lf gt OK lt cr_If gt 43 ATSW24 1 0 0 0 lt cr_lf gt OK lt cr_If gt lt cr_lf gt 34 00 lt cr_If gt 44 ATSW24 1 0 0 1 lt cr_lf gt OK lt cr_If gt lt gt 34 00 lt gt 45 ATSW24 1 0 1 0 lt cr_lf gt OK lt cr_If gt gt 34 00 lt gt 46 ATSW24 1 0 1 1 lt cr_lf gt OK lt cr_If gt lt gt 34 00 lt gt 47 ATSW24 1 1 0 0 lt cr_lf gt OK lt cr_If gt lt gt 34 00 lt gt 48 ATSW24 1 1 0 1 lt cr_lf gt OK lt cr_If gt lt cr_lf gt 34 00 lt cr_If gt 49 ATSW24 1 1 1 0 lt cr_lf gt OK lt cr_If gt lt gt 34 00 lt gt 50 ATSW24 1 1 1 1 lt cr_lf gt OK lt cr_If gt 34 00 51 ATSW25 0 0 0 0 lt cr_lf gt OK lt cr_If gt lt cr_lf gt 35 00 lt cr_lf gt 52 ATSW25 0 0 0 1 lt cr_lf gt OK lt cr_If gt lt cr_lf gt 35 00 lt cr_lf gt 53 ATSW25 0 0 1 0 lt cr_lf gt OK lt cr_If gt lt gt 3 00 lt gt 54 ATSW25 0 0 1 1 lt cr_lf gt OK lt cr_If gt 35 00 55 ATSW25 0 1 0 0 cr lt gt 35 00 56 ATSW25 0 1 0 1 lt cr_lf gt OK lt cr_If gt 35 00 57 ATSW25 0 1 1 0 lt cr_lf gt OK lt cr_If gt 35 00 58 ATSW25 0 1 1 1 lt cr_lf gt OK lt cr_If gt
24. A max 6 Pin SPI GND J5 1 NC Optional Ground MOSI J5 2 NC Reserved for BlueRadios SPICK J5 3 NC Reserved for BlueRadios SPICS J5 4 NC Reserved for BlueRadios MISO J5 5 NC Reserved for BlueRadios PWR J5 6 NC Optional External Power J4 1 GND J1 5 44 1 Ground J4 2 RST Terminal Lug NC J4 2 Soft boots on RST radio pin IN 3 3vdc strobe gt 5msec J4 pins 3 4 5 6 NC 0 3 3Vdc only not RTS CTS RXD TXD connect directly RS 232 levels into the radio Reset Push Button SW1 Soft boots CPU on RST radio pin Switch Black IN 3 3vdc strobe gt 5msec RST Pin J5 6 Soft boots on RST radio pin IN 3 3vdc strobe gt 5msec Module has an internal 1K ohm pull down GND J8 1 J1 5 Use to stimulate PlOs GND low 3 3Vdc J8 2 Use to stimulate PIO s 3 3Vdc high Audio Jack 2 5mm NC J7 Use with audio headset 7173 S Havana Street Suite 600 Englewood CO 80112 Tel 303 957 1003 info BlueRadios com www BlueRadios com Bluetooth g 9 Secure Versatile A2 ail ao ER ne and Award Winning L J Copyright 2002 2005 Network Radio Devices BR AT_COMMANDS 100 Rev 2 8 1 0 0 Important Notes Placing 3 3Vdc into the PIO s while they are set as outputs will permanently damage the radio modules The failure mode is short across GND and VCC When experimenting with the evaluation board use a 10 series resistor when applying power to the terminal screw e Make sure to connect a common gro
25. ATDHSCO 5 DISCONNECT lt cr_If gt 124 11 lt 123 lt If2 cr If2OK ocr If7 cr 126 03 lt If2 cr If226 00 cr 124 ATXPARK cr CARRIER lt cr_ f gt lt cr_lf gt OK lt cr_If gt cr 29 03 lt If2 cr If229 00 cr 125 ATSNIFF X X X X cr If2NO gt lt If2OK ocr cr 127 03 lt If2 cr If227 00 cr 126 ATXSNIFF lt lt If2 cr If2OK ocr cr 128 03 lt If2 cr If228 00 cr 127 ATPAIR address lt cr_lf gt OK lt cr_lf gt lt cr_lf gt address cr If270 00 cr If2 cr If270 address 128 ATUPAIR lt cr_lf gt OK lt cr_If gt cr 80 00 lt 1 129 ATAPAIR 130 ATSPF 15 lt cr_lf gt OK lt cr_If gt 79 00 lt cr_lf gt OK lt cr_If gt 00 cr If CONNECT cr gt 01 CARRIER cr 03 04 7173 S Havana Street Suite 600 Englewood 80112 Tel 303 957 1003 info BlueRadios com www BlueRadios com C Bluetooth Page 40 of 41 BlueRadios Inc Copyright O 2002 2005 Secure Versatile and Award Winning Network Radio Devices BR AT COMMANDS 100 Rev 2 8 1 0 0 APPENDIX B AT Command Summary Table Preliminary BlueRadios Descript
26. If2OK cr If 4 Orsend any AT Command example Sent 1 0 lt gt Reply lt cr_lf gt BlueRadios lt gt 7173 S Havana Street Suite 600 Englewood 80112 Tel 303 957 1003 info BlueRadios com www BlueRadios com Bluetooth 1 9 Secure Versatile A2 ail IOS ie and Award Winning A Wireisss Worid Copyright 2002 2005 Network Radio Devices BR AT_COMMANDS 100 Rev 2 8 1 0 0 8 Example of a Slave Command Sequence From power up 1 Perform an inquiry and search for Slave Bluetooth device with a PC or other embedded unit 2 Send connection request from PC or embedded device to the Slave 3 Wait for a connection Reply lt cr_If gt CONNECT SLAVE ADDRESS lt 1 SPP Connected 4 Send Data Note This command sequence assumes the radio is in factory default in which it automatically comes up and is connectable as a Slave from a Master request To get out of Data Mode and check status 1 Delay at least 50 milliseconds this could be less or more 2 Check Status perform a Disconnect etc Sent AT lt cr gt Reply cr If2OK cr 1 9 Example of Audio and Data Connection From Master to Remote Slave Master Radio Sent ATSW25 1 1 0 0 lt cr gt Set ConnectMode Master amp data mode lt gt lt Perform hardware or software reset for the above changes to take effect on Master radio Sent ATDM SLAVE ADDRESS 1101 lt cr gt S
27. MANDS 100 Rev 2 8 1 0 0 Appendix A Verbalization Responses Preliminary No Command Verbalization Long Verbalization Short Response Response 1 AT lt cr_lf gt OK lt cr_If gt gt 20 00 lt gt 2 ATVER ver1 lt cr_lf gt OK lt cr_lf gt lt cr_If gt Ver 2 8 0 0 12 lt cr gt 52 00 lt gt 2 8 1 0 0 lt 1 3 ATSI 0 lt cr_lf gt OK lt cr_lf gt lt cr_lf gt BlueRadios lt gt lt cr_lf gt 16 BlueRadios AT cr gt 4 ATSI 1 lt cr_lf gt OK lt cr_lf gt lt cr_lf gt OOA09608F513 lt cr_If gt cr gt 14 004 09608 513 lt gt 5 ATSI 2 lt cr_lf gt OK lt cr_ f gt lt cr_lf gt BlueRadios lt cr_ f gt lt cr_lf gt 53 10 BlueRadios lt cr_ f gt 6 ATSI 3 lt lt If2 cr If21 0 cr gt 17 1 0 cr 7 ATSI 4 cr If OK cr If2 cr If COMO cr If7 gt 18 lt If7 8 ATSI 5 lt cr_lf gt OK lt cr_If gt lt cr_lf gt O0000000 lt cr_ f gt cr f219 00000000 cr gt 9 ATSI 6 cr If OK cr gt lt If20 0 0 0 cr If7 f220 0 0 0 0 cr 10 ATSI 7 cr If OK ocr If2 cr 1f20 1 0 0 cr If cr f221 0 1 0 0 cr 11 ATSI 8 12 ATSI 9 lt cr_lf gt OK lt cr_lf gt lt cr_If gt Not Setl cr lt cr_lf gt 23 NOT SET lt cr_If gt 13 ATSI 10 lt cr_lf
28. O minorFilter set defaults on power up 0 Long 0 no 0 no automatic 0 no minor COD Response authorization SCO connect filter 1 Short Response 1 Authorization 1 SCO connect 1 minor filter on required upon radio connect COD 7173 S Havana Street Suite 600 Englewood CO 80112 Tel 303 957 1003 info BlueRadios com www BlueRadios com due Bluetooth Secure Versatile 4 Page 16 of 41 414 7 4 1 2S and Award Winning VVirele Ss World Copyright 2002 2005 Network Radio Devices A BR AT_COMMANDS 100 Rev 2 8 1 0 0 2 No response except for events inquiry etc 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 Default filter 00000000 no filter finds all devices ATSWA2A responseType authMode autoSCO minorFilter definitions ATSW24 slave fast data mode allow data to pass settings EXAMPLE TYPE ATSW24 0 0 0 0 lt cr gt REPLY cr lf OK cr lf Note Requires a software or hardware reset for change to take affect Set AT command Response in SHORT LONG or NONE form The default is LONG FORM 0 LONG Form 1 SHORT FORM 2 NONE Verbalize Result Codes Table Reference Appendix A
29. TVER verl lt cr gt REPLY cr lf OK cr lf cr lf Ver 2 8 1 0 0 cr lf AT Commands can be upper or lower case The only exception is the radios Personal Identification alphanumeric Number PIN is caps sensitive the verl above and ATOP Command Make sure this version number matches this document version before proceeding line ends with line feeds if not the commands will not be submitted correctly Personal Identification alphanumeric Number PIN is caps sensitive ATVER verl 3 4 Get Set Radio Information 3 1 4 Get Status Information Status Information can be obtained directly from the Bluetooth Radio This information is important when managing a connection list of devices in a local area and current settings of the radio SI lt gt Information 0 BlueRadios AT Module Type 1 Asks my radio for its product ID code Bluetooth address ID 7173 S Havana Street Suite 600 Englewood 80112 Tel 303 957 1003 info BlueRadios com www BlueRadios com dne Bluetooth Secure Versatile A m Page 12 of 41 Aw zu ail 10S and Award Winning L 1 es Network Radio Devices BR AT_COMMANDS 100 Rev 2 8 1 0 0 Copyright 2002 2005 2 Asks my radio for its local friendly name 3 Get current connection status of my radio 0 master 1 slave 2 idle 0 disconnected
30. ands and responses Client s can specify any version of firmware that is under B ueRadios configuration control We also have custom versions not listed above i e repeater and multi point connection firmware options 2 Introduction Scope This AT Command Set document along with BlueRadios evaluation board was created to enable developers and integrators an opportunity to evaluate wireless networks using Bluetooth technology The goal is to make the transition to Bluetooth wireless networks as seamless and easy as possible for our clients This document will explain how to establish Bluetooth communications between two BlueRadios for both data and voice applications in a point to point network i e cable replacement slave master communications only Our technology delivers a dynamic experience that comes out of the wireless delivery mechanism and the freedom to connect others Mark J Kramer CEO of BlueRadios This document describes the hardware interface of BlueRadios Intelligent Serial Module The Module is designed to be built into an embedded device and to provide a simple and low cost Bluetooth API interface The module is designed to integrate with a wide range of applications and platforms with a simple electrical and software interface using AT commands Background The BlueRadios evaluation board is designed to accommodate the Companies Class1 or Class2 Bluetooth radio modem serial modules with 2 4GHz RF ceramic chip an
31. ange the com port My Bluetooth Places go to the Bluetooth Connecting to more than B ueRadios from the same client at the same time Bluetooth allows 7 devices at a time in a piconet Widcomm stack allows you to create multiple instances of serial port profile and connect to multiple BlueRadios at the same time To do this From your PC desktop click Device configuration or Advanced Configuration drop down menu click on the client applications tab Select the Bluetooth serial port application name and click on the ADD COM port button then you can add another Bluetooth serial port and assign it to another virtual com port such as 9 Note Microsoft Windows XP Service Pack 2 natively supports some minimum Bluetooth functionality without the need to install the Widcomm PC Bluetooth Stack Software Please contact BlueRadios if you want the up dated MS XP SP2 driver for the USB Bluetooth Dongle we supply with the evaluation kit 7173 S Havana Street Suite 600 Englewood CO 80112 Tel 303 957 1003 info BlueRadios com www BlueRadios com Bluetooth 1 9 Secure Versatile Page 33 of 41 Aw Eso sed a ai ao 2 Award Winning L J World Copyright 2002 2005 Network Radio Devices BR AT_COMMANDS 100 Rev 2 8 1 0 0 7 Example of a Master Discovery Connection Sequence From power up and no connection 1 Perform an Inquiry to obtain BT Address s unless it is already k
32. ar No Yes ATDM Dial Master N A N A ATDL Dial Last N A N A ATLAST Last Connected Device Address N A No Yes Paired ATDS Dial Slave N A N A ATDH Dial Hang up N A N A 7173 S Havana Street Suite 600 Englewood 80112 Tel 303 957 1003 info BlueRadios com www BlueRadios com C Bluetooth m Page 41 of 41 64 BlueRadios Inc L J Copyright O 2002 2005 Secure Versatile and Award Winning Network Radio Devices COMMANDS 100 Rev 2 8 1 0 0 Default Escape Characters N A ATSESC Set Escape Characters No Yes ATMD Data Mode N A ATMF Fast Data Mode N A Utilities ATUCL Unit Cancel idle mode No No ATURST Unit Reset N A N A ATFRST Factory Reset No N A ATHCITST RF Test mode TBD 2 2 5 Dial SCO N A ATDHSCO Dial Hang up SCO N A ATPARK Park No No ATXPARK Exit Park No No ATSNIFF Sniff No No ATXSNIFF Exit Sniff No ATPAIR Pair No Yes ATUPAIR Un Pair No N A ATAPAIR Last Paired Address No Yes ATSPF Set Power Factor No Yes 7173 S Havana Street Suite 600 Englewood CO 80112 Tel 303 957 1003 info BlueRadios com www BlueRadios com
33. ard coded as an output only Strobes at 1 cycle per second indicating slave or master inquiry in process 6 PIO 6 1 Output 0 Input defaults as input user definable 7 PIO 7 0 Input only gt lmsec defaults as input user definable Inputting 3 3Vdc into a PIO assigned as output will permanently damage the radio Store Parameters 0 Do not store 1 Store Parameters in Flash EXAMPLE TYPE ATSW22 3 0 1 lt cr gt REPLY cr lf OK cr lf 23 lt PIO gt lt value gt lt store gt set PIO Logic 2 2 0 off 0v 1 on V Reserved Indicates BT connection 3 3 0 off 0v 1 on V Reserved Input gt 1msec interrupt to wake up CPU out of deep sleep if enabled 4 PIO 4 0 off 0v or 1 on V Reserved Dual Purpose Resetting factory defaults on power up or dropping into command mode at anytime auto connects to last paired or last connected device 5 PIO 5 0 off 0v 1 on V Strobes 1 sec for Slave indication performing a Master inquiry 6 PIO 6 0 off 0v or 1 on V user definable 7 PIO 7 0 off 0v or 1 on V user definable Store Parameters 0 Do not store 1 Store Parameters in Flash EXAMPLE TYPE ATSW23 3 1 1 lt cr gt REPLY cr lf OK cr lf 24 value value value value Power Up Default Settings Change power up responseType security audio and filter modes ATSW24 responseType authMode autoSC
34. channel EXAMPLE TYPE ATDHSCO lt cr gt REPLY cr lf OK cr lf cr 1 gt 5 DISCONNECT cr lf 3 4 44 Park and Sniff Connected Slave PARK lt integer value integer value Park Master and Slave ATPARK maxIntval minIntval EXAMPLE TYPE ATPARK 1000 11 lt cr gt REPLY cr lf OK cr lf Allow 7 seconds for the slave to drop its average current draw from 45mA to 3mA and go into PARK Any UART traffic will cause the Slave radio go back to full operation within 5msec of the first character for 7 seconds before going back into PARK mode without subsequent data The Slave will remain connected to the Master because the BlueRadios Module only supports one connection Note Both units are required to support park Park request is sent from both Master and Slave to go into affect only during an active Bluetooth connection The order does not matter XPARK Exit Park Mode Initiated from Master to Remote Slave The ATXPARK command tells the radio to exit the park mode EXAMPLE TYPE ATXPARK lt cr gt REPLY cr lf OK cr lf Unit will immediately exit park SNIFF lt integer value gt lt integer value gt lt integer value integer value Slave Sniff for Slave device connected in time slots Time N 0 625msec ATSNIFF maxIntval miniIntval attempt timeout EXAMPLE TYPE ATSNIFF 1600 160 10 160 lt cr gt REPLY cr lf OK cr lf 7173 S Hava
35. cr If 25 ATSW20 3775 0 lt cr_lf gt OK lt cr_If gt If245 00 cr gt 26 ATSW21 X X X X lt cr_lf gt OK lt cr_If gt 47 00 27 ATSW22 2 lt cr_lf gt OK lt cr_If gt gt 48 00 lt gt 28 ATSW22 3 lt cr_lf gt OK lt cr_If gt gt 48 00 lt gt 29 ATSW22 4 lt cr_lf gt OK lt cr_If gt 1 48 00 gt 30 ATSW22 5 lt cr_lf gt OK lt cr_If gt cr gt 48 00 lt gt 31 ATSW22 6 lt cr_lf gt OK lt cr_If gt gt 48 00 lt gt 32 ATSW22 7 lt cr_lf gt OK lt cr_If gt gt 48 00 lt gt 33 ATSW23 3 1 0 lt cr_lf gt OK lt cr_If gt cr If249 00 cr If 34 ATSW23 6 1 0 lt cr_lf gt OK lt cr_If gt If249 00 cr 35 ATSW24 0 0 0 0 cr lt gt 36 ATSW24 0 0 0 1 lt cr_lf gt OK lt cr_If gt 37 ATSW24 0 0 1 0 lt cr_lf gt OK lt cr_If gt 38 ATSW24 0 0 1 1 lt cr_lf gt OK lt cr_If gt 7173 S Havana Street Suite 600 Englewood CO 80112 Tel 303 957 1003 info BlueRadios com www BlueRadios com C Bluetooth m i Page 38 of 41 BlueRadios Inc s Copyright 2002 2005 Secure Versatile and Award Winning Network Radio Devices BR AT_COMMANDS 100 Rev 2 8 1 0 0
36. device The remaining Green LED s are defined for the following PIO table Radio Module I O Class1 Radio Module BR C30 ver1 2 LED Color on Evaluation Board Class2 Radio Module BR C19 C29 PIO 2 Yes Blue BT Connection Established PIO 3 Yes Input only gt 1msec deep sleep wakeup interrupt Takes CPU 5msec to wakeup 4 Yes Restores Factory Default Settings when Green Triple Purpose held high for 1 second during initial power up 2 gt 5msec pulse after power up will place radio into command mode 3 gt 5msec pulse will connect to paired device or last connected device 5 Yes Pulses 1 for Slave mode indication and Green if processing Master inquiry requests PIO 6 Not connected on Eval Board User definable defaults as input 7 Not connected Eval Board User definable defaults as input All PIO s Max Sink Current is 4mA max Changing Configuration Parameters such as the Bluetooth Name Service Name Class of Device and Serial Port settings can be viewed and configured This can be done locally through the serial port UART or from a remote Bluetooth RF link To access configuration the B ueRadios must be in command mode and enable to except AT Commands While in command mode B ueRadios will accept ASCII bytes as commands Use a normal RS 232 pass through cable from PC passing ASCII characters through the terminal to the BlueRadios The communicat
37. e control for wireless headset applications over SCO channel The audio circuit has minimum filtering for noise etc Pico Nets For applications that require more than point to point 2 devices communicating simultaneously this is called a pico net These applications require one of the Bluetooth devices to manage all the network connections The easiest implementation is using a Personal Computer PC that manages this activity with MS Windows Bluetooth stack software and USB Bluetooth Communicator plugged into the PC see figure below Bluetooth Network Bluetooth enabled Connect to Internet z PC B File transfer LAN connechon laptop PC to laternet BR SC30A 18 DIP B ueStamp PIO 2 Blue LED 10 3 Green LED PIO 4 Green LED PIO 5 Green LED Button Blue Radios Class1 USB Bluetooth RS 232 Audio and Data Evaluation PCB BR EC30A Communicator BR C51A Communications 7173 S Havana Street Suite 600 Englewood CO 80112 Tel 303 957 1003 info BlueRadios com www BlueRadios com Bluetooth g 9 Secure Versatile a ail ao and Award Winning 5 Wroria Copyright 2002 2005 Network Radio Devices BR AT_COMMANDS 100 Rev 2 8 1 0 0 Note AT Command interface protocol is not used for the USB Bluetooth communicator The stack for this resides on the PC side not embedded in the unit like the serial SMT BlueRadios modul
38. e is still 4dBm output gain for the class2 radio if set above this This value does not include gains associated with the external antenna 2 dBm The firmware uses the highest value in the power table that is less than or equal to the requested max transmit power number above EXAMPLE TYPE ATSPF 4 lt cr gt 4dBm REPLY cr lf OK cr lf or if gt 15 or lt 20 lt er_1 gt EROOR lt cr_1f gt BlueRadios Class1 Module Power Consumptions Deep Sleep Mode 90uA Idle Mode or if in Sniff Mode will go momentarily as low as 90uA Idle Mode 1 6mA average neither Slave or Master Slave connected 25mA average or Use the command ATSNIFF 1000 100 6 100 results 2mA average slave connected when data sent Slave not connected 45mA average Factory default or ATSW21 2560 11 2560 11 settings will result in the Slave not connected 3mA average Master not connected 1 6mA However a Master radio not in use it is better to just turn off the power completely to the radio and draw zero current OmA Master inquiry 60mA for the first couple of seconds before it connects to the Slave Master Connected 25mA too difficult to measure If you perform a remote Bluetooth RF ATDH disconnect command from any Master to the BlueRadios Slave radio the Slave radio will go into idle mode You will have to either send a command to the Slave radio through its local UART or cycle power on the radios to hav
39. e it come back up in Slave mode This was designed as if you were communicating to the local UART on the Slave radio Typically a Slave never sends a commanded disconnect only the Master does In this mode you can devise some clever power saving features like leaving the 7173 S Havana Street Suite 600 Englewood 80112 Tel 303 957 1003 info BlueRadios com www BlueRadios com Bluetooth 9 Secure Versatile Page 30 of 41 Aw a ail ao gee ine and Award Winning L J Copyright 2002 2005 Network Radio Devices BR AT_COMMANDS 100 Rev 2 8 1 0 0 Slave in idle mode until another event triggers the radio 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 sort of benefits can be achieved by just controlling when the radio is turned off on again 4 Future B ueRadios Enhancements PAN Personnel Area Networking Profile client only HID Human Interface Device Profile 7173 S Havana Street Suite 600 Englewood CO 80112 Tel 303 957 1003 info BlueRadios com www BlueRadios com Bluetooth 3 due 9 Secure Versatile M Page 31 of 41 Aw 72 2 A2 ao Bee eee and Award Winning L J Copyright 2002 2005 Network Radio Devices BR AT_COMMANDS 100 Rev 2 8 1 0 0 5 BlueRadios Factory Default Power up Settings AT command Response Form Long Form Bluet
40. e the connection process is A connection can take several seconds so when making a connection if it is not already connected an OK will be sent back immediately Don t mistake this for a connection being complete A completed connection will return CONNECT some time after the command was sent lt 10 seconds typically 2 seconds 7173 S Havana Street Suite 600 Englewood CO 80112 Tel 303 957 1003 info BlueRadios com www BlueRadios com Bluetooth 1 9 Secure Versatile A2 ail IOS die die ire and Award Winning A Wireisss Worid Copyright 2002 2005 Network Radio Devices BR AT_COMMANDS 100 Rev 2 8 1 0 0 PIO 2 will go high and stay high or the Blue LED on the BlueRadios evaluation board will turn on and stay on while connected DS Dial as Slave This command places the Radio in Slave mode where it is waiting for a connection to occur from a Master EXAMPLE SLAVE TYPE ATDS lt cr gt REPLY cr lf OK cr lf or lt cr_1f gt CARRIER lt cr_1f gt or cr l1f CONNECT 00A0961F008F cr 1f 3 2 5 Disconnect DH Dial Hang up This command will issue disconnect to the radio EXAMPLE TYPE ATDH lt cr gt REPLY cr lf OK cr lf cr 1 gt CARRIER cr lf Note If you send this command over the RF link to a remote BlueRadios Slave the Slave will disconnect and go into Idle mode not Slave mode by design 3 3 Command Data Modes
41. eRadios cr 1f TYPE ATSI 3 lt cr gt 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 COMO cr lf TYPE ATSI 5 cr REPLY cr lf OK cr lf cr 1f 00000000 cr 1f TYPE ATSI 6 lt cr gt REPLY cr lf OK cr lf cr 1f5 0 0 0 0 cr 1f TYPE ATSI 7 cr REPLY cr lf OK cr lf cr 1f520 1 0 0 cr 1f 1 data command mode TYPE ATSI 8 cr REPLY cr lf OK cr lf cr 1 gt 0027 0003 0002 lt 1f Not set Still defaults to 9600bps TYPE ATSI 9 cr REPLY cr lf OK cr lf cr lf Not Set cr lf or REPLY cr lf OK cr lf cr 1f 00A09606ES8EF 1101 cr 1f TYPE ATSI 10 lt cr gt REPLY cr lf OK cr lf cr 1f 20400 0200 0400 0200 cr 1f HEX values TYPE ATSI 11 lt cr gt REPLY cr lf OK cr lf cr 1 gt 04 0 lt lf HEX value TYPE ATSI 12 lt cr gt REPLY cr lf OK cr lf cr lf 2B cr lf HEX value 7173 S Havana Street Suite 600 Englewood CO 80112 Tel 303 957 1003 info BlueRadios com www BlueRadios com due Bluetooth Secure Versatile m M Page 13 of 41 72 a ail and Award Winning VVirele A World Copyright 2002 2005 Network Radio Devices BR AT_COMMANDS 100 Rev 2 8 1 0 0 TYPE ATSI 13 lt cr gt REPLY cr lf OK cr lf
42. eated as data ways to get out of this mode it to reset power on the radio or strobe PIO 4 while connected If successful an OK is returned or nothing will be returned if already in fast data mode and connected else No Carrier if the Bluetooth RF link is not established EXAMPLE TYPE ATMF lt cr gt REPLY cr lf OK cr lf if connected Or cr lf OK cr 1f cr 1 gt CARRIER cr 1f not connected Note Byte Gaps and Data Latency The way Bluetooth is designed and operates random byte gaps of 5 msec to 20 mesec are common Packet size will vary from transmission to transmission The faster the UART speed the smaller the byte gap delay Effective data payload throughput in fast streaming mode is approximately 200Kbps and 60Kbps in regular data mode when the AT parser looks at each character for ASCII valid command scripts in the data stream The radio RX has very limited buffering so if you do not use hardware flow control and are transmitting further distances you will quickly overflow the buffer because of RF retransmissions etc 7173 S Havana Street Suite 600 Englewood CO 80112 Tel 303 957 1003 info BlueRadios com www BlueRadios com Bluetooth PHE 9 Secure Versatile d Page 25 of 41 Aw 72 a ail ao 1 Award Winning L J Copyright 2002 2005 Network Radio Devices BR AT_COMMANDS 100 Rev 2 8 1 0 0 When a Bluetooth connection is made the radio
43. erial Port Profile lt If2OK cr 1 Reply lt cr_If gt CONNECT SLAVE ADDRESS If SPP Connected You can now send data back and fourth between the two units Sent lt cr gt Default escape sequence of characters Reply cr If2OK cr 1 Sent ATDSCO cr Dial Audio SCO Reply lt cr_lf gt SCO lt 1 Audio channel connected Sent lt cr gt lt If2OK cr 1 Sent ATMD lt cr gt Place back into Data mode Reply cr If2OK cr 1 You can now send data over SPP and simultaneously talk over the SCO audio channel Sent ATDH lt cr gt Hang up Audio SCO amp SPP Reply cr If2OK cr 1 Reply lt cr_lf gt SCO DISCONNECT lt cr_If gt audio channel disconnected Reply lt cr_lf gt NO lt SPP disconnected Using ATDSCO will disconnect audio channel but you will need to type ATMD to go back into data mode to send characters 7173 S Havana Street Suite 600 Englewood 80112 Tel 303 957 1003 info BlueRadios com www BlueRadios com Bluetooth 1 9 Secure Versatile A2 ail ao and Award Winning L J Copyright 2002 2005 Network Radio Devices BR AT_COMMANDS 100 Rev 2 8 1 0 0 10 Example of Headset Connection to PC From Master to Remote Slave Setup up the PC so the Headset Service Profile is set to automatic and started the PC is now in Slave connectable state Re
44. es Making a Connection Serial Interface UART_TX UART_RX UART_RTS and UART_CTS form a conventional asynchronous serial data port The interface is designed to operate correctly when connected to other UART devices such as the 16550A The signaling levels are nominal OV and 3 3V and are inverted with respect to the signaling on an RS232 cable The interface is programmable The default condition on power up is pre assigned in the external 8Mb Flash Two way hardware flow control is implemented by UART_RTS and UART_CTS UART_RTS is an output and is active low UART_CTS is an input and is active low These signals operate according to normal industry convention BlueRadios shows up under Service discovery defaulted as Serial Port Profile SPP Service COMO on BlueRadios where COMO is the arbitrary service name BlueRadios is the local device name All of these name settings are configurable by the user To connect to B ueRadios browse for services you should see BlueRadios Serial Port as the Profile BlueRadios uses SPP as default and will be connected to a Virtual COM port on PCs Palm Pilot s PocketPCs or other clients Once connected the Bluetooth address for each device is exchanged with the message CONNECT displayed and data will flow in both directions in regular data mode as if the serial port were locally attached AT commands can be sent directly to the radios UART when not Bluetooth connected or by any remote Bl
45. f Note The request for name is a separate command string from the other two so depending if the RF link is marginal the name may come back blank 7173 S Havana Street Suite 600 Englewood CO 80112 Tel 303 957 1003 info BlueRadios com www BlueRadios com dne Bluetooth Secure Versatile m Page 21 of 41 Aw ai and Award Winning VVirele Ss World Copyright 2002 2005 Network Radio Devices A BR AT_COMMANDS 100 Rev 2 8 1 0 0 3 2 2 Set Master Default Bluetooth Address Profile for Slave SMA lt bd address gt lt profile gt Set Master This command will set a specific Bluetooth Slave address and service profile into the Master device so on power up the Master will automatically search and connect to a unique Slave device in Fast data mode The below example is for SPP profile service which is 1101 EXAMPLE MASTER ATSMA 00A0961F904F 1101 lt cr gt REPLY cr lf OK cr lf Reset module for change to take affect Execute ATSW25 1 0 0 0 Master default before using the above command if still in slave mode ATMACLR Clears stored Slave address in Master EXAMPLE TYPE ATMACLR lt cr gt REPLY cr lf OK cr lf 3 2 3 Connect as Master This command is used to connect one radio module to another Doing this will enable data transmission bi directionally When performing this command the reply is critical s
46. fo BlueRadios com www BlueRadios com dne Bluetooth Secure Versatile Page 24 of 41 Aw 72 2 43 ail 10S and Award Winning Network Radio Devices A Wireles Worl Copyright 2002 2005 BR AT_COMMANDS 100 Rev 2 8 1 0 0 If successful an OK is returned or nothing will be returned if already in data or fast data mode and connected A NO CARRIER occurs when the Bluetooth connection has been lost EXAMPLE TYPE lt cr gt REPLY cr lf OK cr lf or lt cr_1f gt NO CARRIER cr lf SESC lt nn gt Set Escape ASCII Character where nn is the ASCII decimal character 256 or non extended ascii characters EXAMPLE TYPE ATSESC 43 lt cr gt 43 2B hex ASCII character REPLY cr lf OK cr lf cr lf ERROR cr lf Do not need to perform reset and stores permanently Need to add error constraint if not an integer value MD Put Radio into Data Mode This sequence is used to force the radio into Data Mode In order for this to have an effect the Radio has to be CONNECTED If successful an OK is returned else a NO CARRIER Also a NO CARRIER occurs when the connection has been lost EXAMPLE TYPE ATMD lt cr gt REPLY cr 1 gt lt lf or cr lf NO CARRIER cr lf MF Put Radio into Fast Data Mode This sequence is used to force the radio into fast data mode Once in Fast Data Mode all commands are tr
47. gh to allow a host to make connections which are authenticated and encrypted or not The BlueRadios serial radio modems can be configured commanded and controlled through simple ASCII strings through the hardware serial UART or over a remote Bluetooth RF connection 1 All commands have the following format command cr Where represents carriage return OxOD Valid commands respond with a cr If2 OK cr lIf or lt cr lf gt ERROR lt cr If gt Where If represents linefeed Only exceptions are ATSW20 and ATURST which do not reply a Only exceptions are when setting baud rate commanding a CPU reset or Factory Reset 3 All response data after the command response have the following format 7173 S Havana Street Suite 600 Englewood CO 80112 Tel 303 957 1003 info BlueRadios com www BlueRadios com Bluetooth 3 BHIE has Secure Versatile age 50 anl na d 195 Award Winning A_Wiireless Worid Copyright 2002 2005 Network Radio Devices BR AT_COMMANDS 100 Rev 2 8 1 0 0 Applications The B ueRadios evaluation board can be used for both embedded and PC product applications It has a RS 232 DB 9 and J4 0 3 3Vdc direct UART interfaces to the module There are radio modem input output pins PIO s connected to terminal lugs for applications that require external command and control The design incorporates a 13bit mono audio codec jack and MIC volum
48. ion Requires Stores AT Command Reset Permanently Y N Y N ATVER ver1 Module Firmware Version N A Yes ATSI O Module Type N A Yes ATSI 1 Bluetooth Address ID N A Yes ATSI 2 Friendly Name N A Yes ATSI 3 Connection Status N A Yes ATSI 4 Service Name N A Yes ATSI 5 Class of Device COD N A Yes ATSI 6 ATSW24 Status N A Yes ATSI 7 ATSW25 Status N A Yes ATSI 8 UART Settings N A Yes ATSI 9 N A Yes ATSI 10 Slaves Scan Interval and Window N A Yes ATSI 11 5 Pulse Rate N A Yes ATSI 12 Escape Character Setting N A Yes ATSI 13 Inquiry and Masters Timeout N A Yes ATSI 14 Maximum Transmit Power Level N A Yes ATSI 15 Password Lock Code Status N A Yes ATSI 16 Deep Sleep Status N A Yes ATSW 20 Switch 20 UART Settings No Optional ATSW 21 Switch 21 Page Scan Interval amp Window Yes Yes ATSW 22 Switch 22 Set PIO State ATSW 23 Switch 23 Set PIO Logic No Optional ATSW 24 Switch 24 Set Power Up Default Settings No Yes ATSW 25 Switch 25 Set Auto Connecting Modes No Yes ATSW 26 Switch 26 Lock User Definable Settings No Yes ATSW 27 Switch 27 Set LED Pulse Rate on PIO 5 Yes Yes ATSW 28 Switch 28 Set Inquiry Timeouts No Yes ATSW 29 Switch 29 Set Password Lock Code No Yes ATSW 30 Switch 30 Set Deep Sleep Mode No Yes ATSC Set COD Class of Device No Yes ATSSN Set Service Name Yes Yes ATSP Set PIN Yes Yes ATOP Override Password No Yes ATSR 21 Set Register 21 2 ATDI Dial Inquiry N A N A ATSMA Set Master Address Yes Yes ATMACLR Master Address Cle
49. ions settings should match the settings used when B ueRadios connects for 7173 S Havana Street Suite 600 Englewood CO 80112 Tel 303 957 1003 info BlueRadios com www BlueRadios com Bluetooth g 9 Secure Versatile a ail ao and Award Winning 5 Wroria Copyright 2002 2005 Network Radio Devices BR AT_COMMANDS 100 Rev 2 8 1 0 0 example the default is 9600bps 8 Data Bits No Parity 1 Stop Bit and hardware flow control enabled Once you change these parameters you have the option to store them permanently in non volatile memory Run your favorite terminal emulator HyperTerminal or other program Type AT on your terminal screen and follow it with a carriage return lt cr gt You should see OK returned to you This will verify that your cable and communications settings are correct on the radios hardware UART Make sure you do not have the scroll lock enabled on the keyboard When the radio is not connected to another Bluetooth device you can type the AT commands directly into the radios UART If the radio is Bluetooth connected you will need to send lt cr gt on the local UART to take the radio out of data mode and place it in command mode You can enter any of the AT commands in the up coming sections followed by cr Commands will return for valid response and invalid ones will reply ERROR To go back to regular data mode while RF connected type ATMD to pass or rece
50. ive data from a remote connected Bluetooth device Note f changing communications parameter settings remember to change your terminal or emulator comm settings to correspond to the new parameter settings you just have made Also we have seen some strange communications effects using HyperTerminal in conjunction with a PC using the Windows BTW Bluetooth stack and virtual com ports As an example communications works only in one direction Requires closing both HyperTerminal programs and starting both HyperTerminal sessions again If you experience a com error with BTW Bluetooth stack while connecting to the serial port profile cable icon select View from the menu bar and click on Refresh to update the service connection It is recommended to use the Refresh to up date local discovered devices and services to eliminate any caching of parameters in memory WARNING Refrain from streaming ASCII or binary data into the UART when the radio does NOT have a Bluetooth RF connection established while in Command Mode This will overrun the UART Radio buffer and will not enable you to make a Bluetooth connection When the radio is in the command parser mode it is looking for valid AT commands followed by cr Either monitor PIO 2 going high wait for the connection to occur have the radio come up automatically in Fast Data Mode before you start sending data or change the power up default settings ATSW25 to ignore UART data while unconnected The
51. meric characters 16 includes spaces Caps sensitive This command enables 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 ATSW29 default l cr REPLY cr lf OK cr lf 30 lt value gt Set Deep Sleep Mode 0 Normal Operation never go into deep sleep factory default 1 Go into deep sleep whenever possible while idle Page Scan or Sniff mode EXAMPLE TYPE ATSW30 1 lt cr gt REPLY cr lf OK cr lf e On 02 the uart rx line needs to be pulled high if not active before power is applied to the radio module e If there is an active uart RF link the device will need Sniff Mode enabled to allow it to drop into sleep mode when there is no traffic e When in deep sleep the uart will miss the first character while waking up Send a preamble byte to allow it to wake up and immediately thereafter send the AT Command or data in less than 1 second or the device will go back to deep sleep again If you are using PIO 3 CPU interrupt a preamble byte is not needed e No bytes are lost if sending commands down over the remote RF link side his setting is stored in flash and does not require a reset to take affect Takes approx 1 second before the current will drop down to 90uA Allow 5msec For the CPU unit to come out of deep sleep
52. modem goes into regular data mode per the power up factory default settings This enables the user to remotely configure the radio settings via a remote RF Bluetooth connection Basically you can setup the radio so no commands are required to be sent from the embedded side of the radios UART This will prevent any software embedded firmware development or testing for legacy systems 7173 S Havana Street Suite 600 Englewood CO 80112 Tel 303 957 1003 info BlueRadios com www BlueRadios com dne Bluetooth Secure Versatile m i Page 26 of 41 Aus 7292927 ai 10S and Award Winning 5 a VV MeS CSS 3 4 Utilities 3 4 1 Cancel Command UCL Cancel Command The UCL command tells the radio to cancel inquiry or connect requests commands and then places the radio in Idle Mode This command can come in handy for a quick exit from commands like inquiry mode if there are no devices in the area and you do not want to wait 60 seconds for an automatic timeout You can not cancel a command while RF connected EXAMPLE TYPE ATUCL lt cr gt REPLY cr lf OK cr lf or lt cr_1f gt ERROR lt cr_1f gt 3 42 Reset URST Reset The RST command tells the radio to perform software reset on the CPU EXAMPLE TYPE ATURST lt cr gt REPLY This unique Command does not reply with OK or ERROR because of internal UART data processing limitations and response timing BlueRadios evaluati
53. module must be reset with terminal 5 RESET after turning on the power supply VDD Reset terminal should be high for gt 5 msec to cause a reset incase of electrical brown out or poor input supplied VDD Allow 500msec for module to fully reboot Module will not initially boot up reliably if the VDD ramp rate is in milliseconds 7173 S Havana Street Suite 600 Englewood CO 80112 Tel 303 957 1003 info BlueRadios com www BlueRadios com Bluetooth 9 Secure Versatile 11 of 41 A2 ail IOS Ete and Award Winning L J A Wireles Wort Copyright 2002 2005 Network Radio Devices BR AT_COMMANDS 100 Rev 2 8 1 0 0 3 Command Prefix AT AT The attention command prefix The prefix AT must precede every valid command The remainder of the command script contains commands for the radio The command line must end with a carriage return lt cr gt lt 0x0d carriage return gt Note If using HyperTerminal the following check box should be disabled Send EXAMPLE TYPE AT lt cr gt REPLY cr lf OK cr lf AT Commands can be upper or lower case The only exception is the radios command and ATOP All commands are typed exactly as shown cr lt 0x0d carriage return cr lf lt 0x0d carriage return 0x0a linefeed gt BlueRadios Firmware Version AT VER verl Get Radios firmware version verl is lower case EXAMPLE TYPE A
54. mote Master Radio Sent ATSW24 0 0 1 0 lt cr gt Set Audio SCO Reply cr gt lt Sent ATSW25 1 1 0 0 lt cr gt Set ConnectMode Master Reply cr gt lt 1 Perform hardware or software reset for the above commands to take effect on Master Sent ATDM SLAVE ADDRESS 1108 lt gt Headset Profile to PC Reply lt cr_If gt CONNECT Slaves Address cr cr If2AT VGSz15 cr Audio gain setting Max cr If2SCO CONNECT lt cr_If gt PC will automatically connect Remote Master Radio Disconnect Sent lt cr gt Reply cr If2OK cr Sent ATDH lt cr gt Reply lt cr_If gt OK lt cr_If cr 5 DISCONNECT lt cr_If gt Audio channel closed cr CARRIER lt cr_If gt Bluetooth connection closed Note Periodically the audio connection provided by the Widcomm Bluetooth PC stack will provide only noise on the audio SCO channel There is a software bug in their PC stack Establishing a new connection or unplugging and plugging in the USB Bluetooth communicator will fix this problem You will not experience this problem during embedded to embedded communications using the BlueRadios Bluetooth radio modules 7173 S Havana Street Suite 600 Englewood CO 80112 Tel 303 957 1003 info BlueRadios com www BlueRadios com Bluetooth 9 Secure Versatile Page 36 of 41 Aw a ai ao and Award Winning 5 Copy
55. na Street Suite 600 Englewood CO 80112 Tel 303 957 1003 info BlueRadios com www BlueRadios com Bluetooth 1 9 Secure Versatile a ail IOS acc Apu and Award Winning A_Wirciess Worl Copyright 2002 2005 Network Radio Devices BR AT_COMMANDS 100 Rev 2 8 1 0 0 Results in an always connected slave using only 2mA average current when no data is sent Not permanently stored in memory and change takes about 7 seconds before the current drops in the module to a low of 90uA XSNIFF Exit Sniff Mode The ATXSNIFF tells the radio to exit and stop sniffing RF signals EXAMPLE TYPE ATXSNIFF lt cr gt REPLY cr lf OK cr lf 3 4 5 Pairing PAIR BT Address The command tells the radio in Master mode to Pair to a specific Bluetooth address EXAMPLE TYPE ATPAIR 00A0961F008F lt cr gt REPLY cr lf OK cr lf or cr 1 gt ANSWER cr lf or cr lf PAIRED FAILED cr lf or cr lf PAIRED 123456789012 cr 1f Successful Note Paring Timeout is 30 seconds Security PINs are exchanged UPAIR Un Pair Need to be in Idle mode first The command tells the radio to Un Pair from the Bluetooth stored address EXAMPLE TYPE ATUPAIR lt cr gt REPLY cr lf OK cr lf Use the command ATLAST to view the stored address after pairing Note paring is not the same as a connection so you will not see inquiry or connect indication Can be in Ma
56. 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 In idle mode the radio is neither slave or master and draws 1 6mA of current but you can not communicate over the Bluetooth link in this state only through the TX amp RX hardware UART You can not perform an Autoconnect and set service flag to 1 DUN The service selection for ATSMA slave address UUID takes care of this for Master Headset service will auto answer on RING command from Bluetooth cell phone You will have to change the COD from 00000000 to 00200404 for Headset Warning The only way to communicate to the radio 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 1 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 ATSW25 connectMode dataMode unConnectUartMode Service definitions ATSW25 slave data mode allow data to pass SPP settings EXAMPLE TYPE ATSW25 0 0 0 0 lt cr gt Slave radio connects in fast data mode REPLY cr lf OK cr lf Note Requires a software or hardware reset for change to take affect 26 lt value gt lt value gt Lock User Definable Settings old PIN Lock or unlock Use this c
57. nown Sent ATUCL lt cr gt Clears radio state and places in Idle Mode lt If2OK cr Sent ATDI 1 00000000 Class of Device cr Looks for only one Bluetooth device Reply lt cr_lf gt 00A0961F2023 00000104 BLUERADIOS lt cr_If gt lt cr_If gt DONE lt cr_If gt 2 Perform a Master Connect over SPP using the BT_Address Sent 00 0961 2023 1101 SPP connection Reply ccr 1f5CONNECT 00A0961F008F cr gt Returns Slave BT address radios is in Data Mode 3 Place radio into Fast Data Mode Sent ATMF lt cr gt Places radio in Fast Data Mode Reply cr If2OK cr 4 Send Data Note When sending commands from the Slave when the Slave connects in Fast Data Mode ATSW25 or issuing ATMF All valid AT commands are sent through the Slaves UART will be interpreted and responded by the Master radio as if it was the local Slave radio Basically in this configuration from the Slave end you can obtain status and configure from the remote Master radio This is a unique feature that may be useful in some applications but can confuse the user if you think you are talking to the local Slave UART To get out of Data Mode and check status 1 Delay at least 50 milliseconds this could be less or more 2 Get into Command Mode Sent lt cr gt Default escape sequence of characters Reply cr If2OK cr gt 3 Check Status perform a Disconnect Sent AT lt cr gt Reply cr
58. o as to understand where the connection process is A connection can take several seconds so when making a connection if it is not already connected an OK will be sent back immediately Don t mistake this for a connection being complete A completed connection will return CONNECT 123456789012 some time after the command was sent typically 4 seconds PIO 2 will go high and stay high or the Blue LED on the B ueRadios evaluation board will turn on and stay on while a Bluetooth connection is established DM BT Address lt UUID gt or Dial as Master This command gives the Slave address and the type of profile that it will connect to with When connecting as a MASTER use valid Bluetooth Slave address and ending with a valid UUID from the table below You must be in Master mode to connect to a remote Slave device Using this command while still in Slave mode will not work EXAMPLE MASTER TYPE ATDM 112233445566 UUID lt cr gt REPLY cr lf OK cr lf cr l1f CONNECT 00A0961D9C37 cr lf example of a successful connection to a slave or cr l1f NO ANSWER cr 1f cr l1f LINK 00A0961D9C37 cr 1f if security is enabled cr l1f CONNECT 00A0961D9C37 cr 1f 7173 S Havana Street Suite 600 Englewood CO 80112 Tel 303 957 1003 info BlueRadios com www BlueRadios com due Bluetooth Secure Versatile m i Page 22 of 41 Aus 7292927
59. ommand to prevent unauthorized local amp remote changing of settings ATSW26 PIN LOCK or unlock where lock 0 unlocked 1 locked EXAMPLE TYPE ATSW26 default l cr REPLY cr lf OK cr lf Note PIN for this command is the same for authentication PIN default Factory default is unlocked user settings This will also lock the password from changing 27 value Set LED Pulse Rate on PIO 5 EXAMPLE TYPE ATSW27 1200 cr 1200 msec factory default REPLY cr lf OK cr lf Note Integer decimal value can range from 1 msec to 60 000 msec Use to indicate slave mode operation and inquiry in process Duty cycle remains 50 28 iTimeout mTimeout Inquiry Timeouts iTimeout Inquiry Time in seconds mTimeout Master connect request timeout in seconds EXAMPLE ATSW28 20 60 lt cr gt factory default REPLY cr lf OK cr lf 7173 S Havana Street Suite 600 Englewood CO 80112 Tel 303 957 1003 info BlueRadios com www BlueRadios com dne Bluetooth Secure Versatile a Page 18 of 41 7 2864 09 gee ae ine and Award Winning 5 A_Wireless Worl Copyright 2002 2005 Network Radio Devices BR AT_COMMANDS 100 Rev 2 8 1 0 0 Note Integer decimal value can range from 1 sec to 60 000 sec Does NOT require a reset for command to take affect 29 PIN value Set PIN Lock Code Maximum alphanu
60. on board has a convenient manual pushbutton software reset switch on the PCB labeled SW1 FRST Factory Reset EXAMPLE TYPE ATFRST lt cr gt REPLY This unique Command does not reply with OK or ERROR because of internal UART data processing limitations and response timing BlueRadios evaluation board has a convenient manual pushbutton software reset switch on the PCB labeled PIO 4 Resets the radio back to factory defaults Allow 5 seconds for the Radio to read and write to FLASH BlueRadios evaluation board has a convenient manual pushbutton factory reset switch on the PCB labeled 104 as well Note You can send either above reset commands though the UART or over Bluetooth RF connection 7 173 S Havana Street Suite 600 Englewood CO 80112 Tel 303 957 1003 info BlueRadios com www BlueRadios com Wort Copyright 2002 2005 Network Radio Devices BR AT_COMMANDS 100 Rev 2 8 1 0 0 dne Bluetooth Secure Versatile m Page 27 of 41 Aw da 12S ne and Award Winning L 1 A VVir 11 1 3 Wort Copyright 2002 2005 Network Radio Devices BR AT_COMMANDS 100 Rev 2 8 1 0 0 3 4 3 Audio SCO DSCO Dial SCO The DSCO tells the radio to dial and connect audio channel EXAMPLE TYPE ATDSCO lt cr gt REPLY cr lf OK cr lf cr lf SCO lt lf DHSCO Dial Hang up SCO The DHSCO tells the radio disconnect audio
61. ooth Service Profile Serial Port Profile SPP Device Role Slave Baud Rate 9600bps Data bits 8 bits Parity None Stop bits 1 bit Hardware flow control RTS CTS Enabled Power Mode Never go into deep sleep mode Country Code North America and Europe Module Type BlueRadios AT Name of Device local name BlueRadios My radio status 1 0 slave disconnected Service Name COMO Power up default ATSW24 settings 0 0 0 0 Power up default ATSW25 settings 0 1 0 0 Lock user definable settings ATSW26 False LED pulses on off ATSW27 1200msec Set password lock bit ATSW29 00 HEX Deep sleep enabled ATSW30 False Radio will go back to deep sleep if enabled after 1 second of no activity on UART or PIO 3 Major amp Minor Class Of Device COD 00000000 undefined Security PIN and Encryption Disabled Default PIN default caps sensitive Page Scan Interval 0x400 1024 time slots Page Scan Window 0x200 512 time slots Inquiry Scan Interval 0x400 1024 time slots Inquiry Scan Window 0x200 512 time slots Timeout Connection Parameters ATDI Dial Inquiry timeout 20 seconds ATDM Master Connect Request 60 seconds need to perform ATUCL to cancel last command to halt sooner or set ATSW28 to a different value Pairing timeout 30 seconds Timeout for lost of Bluetooth connection 4 seconds Class1 Radio Max transmit power 15dbm Class2 module will still have a max of 4dbm output performance even though
62. right 2002 2005 Network Radio Devices BR AT_COMMANDS 100 Rev 2 8 1 0 0 11 Acronyms Abbreviations API Application Protocol Interface AT Automatic Tone ASCII American Standard Code for Information Interchange BR BlueRadios BT Bluetooth BTW Bluetooth Windows Stack COD Class Of Device COM Communications CR Carriage Return CTS Clear To Send DSR Data Sent Receive GND Ground LF Line Feed MCU Microcontroller Unit MISO MOSI NC Not Connected PC Personal Computer PCB Printed Circuit Board RF Radio Frequency PIO Pin Input Output RST Reset RTS Ready To Send RX Receive SCO Synchronous Connection Oriented the links used by BT to send voice SMT Surface Mount Technology SPI Serial Protocol Interface SPICK SPI Clock SPICS SPI Chip Select TTL Transistor Transistor Logic TX Transmit UART Universal Asynchronous Receiver Transmitter USB Universal Serial Bus UUID Universal Unique Identifier maintain by Bluetooth SIG VCC DC Power VDD DC Power Go to www blueradios com on the left hand column to download Bluetooth Glossary of Terms PDF and other materials 7173 S Havana Street Suite 600 Englewood CO 80112 Tel 303 957 1003 info BlueRadios com www BlueRadios com C Bluetooth Page 37 of 41 BlueRadios Inc Copyright 2002 2005 Secure Versatile and Award Winning Network Radio Devices BR AT_COM
63. ster Slave or Idle mode to un pair Will need to reset or cycle power to clear paired address or pair to a new device APAIR Address of last Paired EXAMPLE TYPE ATAPAIR cr REPLY cr lf OK cr lf cr 1 gt 123456789012 lt lf or cr 1 gt 000000000000 lt 1f Blank Note The Slaves radio UART will output LINK BTaddress for every secured connection Also the BlueRadios Masters UART will output the same if security flag is enabled 7173 S Havana Street Suite 600 Englewood CO 80112 Tel 303 957 1003 info BlueRadios com www BlueRadios com Bluetooth PHE 9 Secure Versatile m 29 of 41 Aw A2 ail IOS 1 Award Winning A_Wireiess Woria Copyright 2002 2005 Network Radio Devices BR AT_COMMANDS 100 Rev 2 8 1 0 0 SPF lt value gt lt sign gt Set Max TX Power Level First value integer from 20 to 0 Second value sign or This command sets the Radios maximum transmit power in dBm 15 12 4 and 0 dBm recommended values Factory default is 15dBm max for 1 1 4 dBm for Class2 devices Class 1 Power Table Class2 Power Table 15 dBm 4 dBm 11 dBm 0 dBm 7 dBm 4 dBm 3 dBm 8 dBm 1 dBm 12 dBm 5 dBm 16 dBm 9 dBm 20 dBm 0 dBm to 20 dBm Classi 6 dBm to 4 dBm Class2 up to 0 dBm Class3 Note The default value is 4dBm in a class2 BlueRadios module the max performanc
64. t cr_If gt 35 00 78 ATSW25 2 2 1 1 lt cr_lf gt OK lt cr_If gt lt cr_lf gt 35 00 lt cr_If gt 79 ATSW25 2 0 0 0 lt cr_lf gt OK lt cr_If gt lt cr_lf gt 35 00 lt cr_If gt 80 ATSW25 2 0 0 1 lt cr_lf gt OK lt cr_If gt 35 00 81 ATSW25 2 0 1 0 lt cr_lf gt OK lt cr_If gt 35 00 82 ATSW25 2 0 1 1 lt cr_lf gt OK lt cr_If gt 35 00 83 ATSW25 2 1 0 0 lt cr_lf gt OK lt cr_If gt 35 00 84 ATSW25 2 1 0 1 lt cr_lf gt OK lt cr_If gt 35 00 85 ATSW25 2 1 1 0 lt cr_lf gt OK lt cr_If gt 35 00 86 ATSW25 2 1 1 1 lt cr_lf gt OK lt cr_If gt 35 00 87 ATSW26 default 1 gt lt 6 00 88 ATSW26 default 0 gt lt 36 00 89 ATSW27 1200 lt cr_lf gt OK lt cr_If gt lt 46 00 lt gt 90 ATSW28 60 60 cr lt gt lt cr_lf gt 67 00 lt cr_If gt 7173 S Havana Street Suite 600 Englewood 80112 Tel 303 957 1003 info BlueRadios com www BlueRadios com C Bluetooth Page 39 of 41 BlueRadios Inc Secure Versatile and Award Winning c Copyright O 2002 2005 Network Radio Devices BR AT_COMMANDS 100 Rev 2 8 1 0 0
65. tenna pictured right The BlueRadios SMT modules are Bluetooth ver1 2 compliant The evaluation board enables a stable platform environment to test serial RS 232 cable replacement and audio communications over Bluetooth RF links before going directly to an embedded printed circuit board design and layout AT Commands This document describes the protocol used to control and configure BlueRadios Bluetooth Serial Modules 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 is make break connections and Inquiry Additional AT commands are also provided to perform ancillary functions The CSR Cambridge Silicon Radio BC02 chipset in the B ueRadios modules is memory resource limited therefore it is NOT proposed that there be full implementation of the AT protocol similar to an AT modem In fact the protocol is similar enough so the existing source code written for modems can be used with very little modifications for use with this serial module Just like telephone modems the serial module powers up into an unconnected state and will respond to inquiry and connection requests Then just like controlling a modem the host or client can issue AT commands which map to various Bluetooth activities The command set is extensive enou
66. tion it is critical leave at the factory default settings The minimum Window allowed by the Bluetooth spec is 11 25msec If you set isWindow 0 the Slave device will not be discovered by any Master but you can still use the Slaves BT address and connect directly to it from a remote Master Page scan interval Range 0x0012 to 0x1000 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 affect 7173 S Havana Street Suite 600 Englewood CO 80112 Tel 303 957 1003 info BlueRadios com www BlueRadios com dne Bluetooth Secure Versatile m Page 15 of 41 Aw ail 10S ine and Award Winning VVirele Ss World Copyright 2002 2005 Network Radio Devices A BR AT_COMMANDS 100 Rev 2 8 1 0 0 22 lt PIO gt lt state gt lt store gt Set PIO State Configure state of PIO 2 PIO 2 Hard coded as output only indicates a Bluetooth connection 3 PIO 3 0 Input only gt lmsec interrupt to wake up CPU out of deep sleep mode if enabled 4 PIO 4 0 Input only This is 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 triple purpose PIO 5 PIO 5 1 Output H
67. uetooth RF device connection after typing followed by a carriage return The is the factory default escape sequence to place the radio in command mode when there is a Bluetooth RF connection The Slave radios UART will respond automatically with NO CARRIER when it is disconnected This verbalization response can be changed to short long or none if preferred using ATSW24 power up default settings BlueRadios Class1 Bluetooth device with a high power transceiver 100meters 330 feet or 10 meters 33 feet for Class2 performance however actual range may vary due to environment type of antenna board layout enclosure design or type of client device used to connect to BlueRadios We have an AT Command to control and set the maximum RF output power NOTE Only one device can make connection to B ueRadios at a time and there is a limit of 8 simultaneous communicating devices in a Bluetooth pico net network BlueRadios Evaluation Board Physical Ports 2 Generation BlueRadios RS 232 0 3 3Vdc TTL IO DIR Signal DB 9 Terminal Lugs and Name Female Connector Posts Board PWR J9 6 AC DC Jack Power IN 5 0 12 0 Vdc Board GND 5 J4 1 J5 1 J8 1 lt gt J1 Pin 1 V NC NC Not connected J1 Pin 2 TX 2 J4 2 3 3Vdc OUT 0 3 3Vdc J1 Pin 3 RX 3 J4 1 3 3Vdc IN 0 3 3Vdc Max Rated J1 Pin 4 DTR 4 NC Not connected J1 Pin 5 GND 5 J4 1 J5 1 J8 1 lt gt J1 Pin 6 DSR 6 NC O
68. und when using the external TX RX inputs on the 0 3 3Vdc terminal lug connector J4 of the evaluation board f you strobe PWR GND to the top of the terminal lug screw heads make sure the screw is tighten down or it may not connect the circuit open circuit Fora 3 wire DB 9 interface tx rx only connect short CTS to RTS J1 7 amp 8 Factory default is hardware flow control enabled CTS and RTS connected e PIO s are 0 3 3Vdc not 5 volt tolerant e Disconnect RS 232 cable if using 3 3Vdc TX amp RX input on J4 terminal lug connector The Maxim RS 232 chip senses which data input is used between J1 amp J4 and it sometimes reacts to noise on the DB 9 connector if it is still connected while using J4 e Use standard pass through RS 232 serial cable A null modem adaptor is not required e The module must be reset with terminal 5 RESET after turning on the power supply VDD Reset terminal should be high for gt 5 msec to cause a reset incase of electrical brown out or poor input supplied VDD Allow 500msec for module to fully reboot Unit will not initially boot up reliably if the VDD ramp rate is in milliseconds Tie PIO 4 Factory Reset to ground if not in use to prevent inadvertent resetting of parameters during initial module power up for you modules The remaining pins can float You can connect the RS 232 DB 9 evaluation board directly to the PC without a RS 232 pass through cable or null modem
69. utput to PC J1 Pin 7 RTS 7 Yes J4 3 3 3vdc OUT active low J1 Pin 8 CTS 8 Yes J4 4 3 3Vdc INe active low Max Rated J1 Pin 9 RING 9 or J5 6 Optional External Power 7173 S Havana Street Suite 600 Englewood 80112 Tel 303 957 1003 info BlueRadios com www BlueRadios com C Bluetooth Page 7 of 41 BlueRadios Inc Copyright O 2002 2005 Secure Versatile and Award Winning Network Radio Devices BR AT_COMMANDS 100 Rev 2 8 1 0 0 ZIN 5 0 12 0Vdc PIOZ2 J3 4 NC Yes J3 4 Bluetooth connection made OUT 3 high state Sink current is 4mA max J3 3 NC Yes J3 3 IN 3 3Vdc 1msec pulse interrupt to wakeup CPU from deep sleep without losing first byte of data on UART Takes 5msec for CPU to wakeup 1 Reset Default AT Settings Triple Purpose INe 3 3Vdc for 1 second during initial power up of module Allow 5 full seconds for change If not used tie to ground 2 Strobe gt 5msec to take radio out of Fast data into Command mode and maintain the Bluetooth RF connection If not RF connected will place radio in Command mode 3 Strobe gt 5msec will auto connect to paired or last Bluetooth connected device PIO 5 J3 1 NC Yes J3 1 Pulses 1 sec 0 3 3Vdc Sink current is 4mA max PIOZ6 J4 1 NC User definable Sink current is 4mA max PIO 7 NC User definable Sink current is 4m

Download Pdf Manuals

image

Related Search

Related Contents

F T4YF 2,4 GHz.indd  Network Camera - Security Point    WD TV Live Hub Media Center User Manual  Collège Jean de la Fontaine à Crépy-en-Valois LE SAVIEZ-VOUS  1code-of-practice-pr.. - Ministry of Mines and Energy  swıtch box user manual  King Canada KC-3105C User's Manual  基本 CMYK  LP 14  

Copyright © All rights reserved.
Failed to retrieve file