RIOTEC R8001 Users Manual

Version 1.4, 2012/10/4
Product Specification
RF Module
R8001
(RIOTEC)
Page. 1
Version 1.4, 2012/10/4
Revision History
Edition # Reason for revision Issue Date Written by
1.0 Initial Document 2009/7/20 Kevin Shen
1.1 Modify SPEC & Add Sof t ware & Operation Mode 2012/8/24 Kevin Shen
1.2 Modify PIN Define 2012/8/28 Joan Hsieh
1.3 Add FCC Interference Statement 2012/9/5 Joan Hsieh
1.4 Add SSP and iOS soft keypress description 2012/10/4 Kevin Shen
Page. 2
Version 1.4, 2012/10/4
Index
1. PRODUCT INFORMATION.................................................................................................................4
2. TECHNICAL INFORMATION.............................................................................................................5
2.1MODULE PINOUT ...................................................................................................................................5
2.2 MECHANICAL SPECIFICATION ...............................................................................................................7
2.3 BLOCK DIAGRAM..................................................................................................................................7
2.4 ELECTRICAL CHARACTERISTICS ...........................................................................................................8
2.5 RADIO CHARACTERISTICS.....................................................................................................................9
3. SOFTWARE & OPERATION MODE................................................................................................10
3.1 SCANNER ROLE ..................................................................................................................................10
3.2 CRADLE ROLE ....................................................................................................................................14
APPENDIX A: A T COMMAND ..............................................................................................................15
A.1. AT COMMAND FORMAT ....................................................................................................................15
A.2. AT COMMAND RESPONSE FORMAT...................................................................................................15
A.3. SET COMMANDS ...............................................................................................................................17
A.4. GET COMMANDS...............................................................................................................................17
A.5. ACTION COMMANDS .........................................................................................................................18
Page. 3
Version 1.4, 2012/10/4

1. Product Information

Product Name : BT-1041
Product Description: Class1 BT v2.0 Module with Antenna
Product Features:
Chips CSR BlueCore-04 External Flash 8MB Host Interface UART/USB Standard Bluetooth v2.0 RF band 2.4~2.4835GHz ISM band RF Output Power Class I (12 dBm) Sensitivity <-70dBm Antenna Chip antenna Power voltage 3.3V Dimension 13.4x25.8x2mm
Page. 4
Version 1.4, 2012/10/4

2. Technical Information

2.1Module Pinout

TOP VIEW
Pin Name Description Default
1 GND 2 SPI MOSI Programming only No Connect 3 PIO6 General Purpose I/O 4 PIO7 General Purpose I/O 5 RESET Active LOW reset Input with 1K pull-up 6 SPI_CLK Programming only No Connect 7 PCM_CLK PCM interface No Connect 8 PCM_SYNC PCM interface No Connect 9 PCM_IN PCM interface No Connect
10 PCM_OUT PCM interface No Connect
11 VDD 3.3V regulated power input 12 GND 13 UART_RX UART receive Input Input 14 UART_TX UART transmit output High level output 15 UART_RTS UART RTS, goes HIGH to disable host
transmitter
16 UART_CTS UART CTS, if set HIGH, disables
transmitter 17 USB_D+ USB port No Connect 18 USB_D- USB port No Connect
Page. 5
Low level output
Low level input
Version 1.4, 2012/10/4
19 PIO2 General Purpose I/O Output 20 PIO3 General Purpose I/O Output 21 PIO5 General Purpose I/O 22 PIO4 General Purpose I/O 23 SPI_CSB Programming only No Connect 24 SPI_MISO Programming only No Connect 25 GND 26 RF I/O Radio frequence signal Input/Output
27-29 GND
30 AIO0 31 PIO8 General Purpose I/O 32 PIO9 General Purpose I/O 33 PIO10 General Purpose I/O 34 PIO11 General Purp ose I/O 35 AIO1
Page. 6
Version 1.4, 2012/10/4

2.2 Mechanical Specification

2.3 Block Diagram

RF
Switch
PA
BALUN
Crystal
CSR BlueCore-04
External
Flash
Memory
VCC GND
PIO4 PIO5 PIO6
USB
UART
PCM
Page. 7
Version 1.4, 2012/10/4

2.4 Electrical Characteristics

Min Typ. Max. Unit Supply Voltage 3.0 3.3 3.6 V RX Supply Current - 35 60 mA TX Supply Current - 70 130 mA
Average power consumption
Standby/Idle (default settings) - 25 - mA Connected (normal mode - 30 - mA Connected (low power Sniff) - 8 - mA Standby/Idle (Deep sleep enabled) 250uA - - uA
Operating Conditions
Volt age Ran g e Operating Temperature Range -20 oC ~ 60 oC Storage Temperature Range -20 oC ~ 80 oC Relative Humidity (Operating) Relative Humidity (Storage)
3.3V±0.3V
90% 90%
Page. 8
Version 1.4, 2012/10/4

2.5 Radio Characteristics

Sensitivity at 0.1%BER
RF Transmit Power
Initial Carrier Frequency Tolerance
20dB bandwidth for modulated carrier - 900 1000 Drift (Five slots packet) - 15 - 40 kHz Drift Rate - 13 - 20 kHz
avgf1Δ f1140 avgΔ< “Maximum Modula
tion”
Frequency
(GHz)
2.402 - -70 -75 dBm
2.441 - -70 -75 dBm
2.480
2.402 11.0 12.0 - dBm
2.441 11.0 12.0 - dBm
2.480 11.0 12.0 -
2.402 - 5 75 kHz
2.441 - 5 75 kHz
2.480 - 5 75
2.402GHz 140 165 175 kHz
2.441GHz 140 165 175 kHz
2.480GHz 140 165 175
Min Typ Max BT Spec. Unit
70
- -70 -75
15
75
1000
dBm
dBm
kHz kHz
kHz
maxf2Δ “Minimum Modula
tion”
2.402GHz 115 190 - kHz
2.441GHz 115 190 - kHz
2.480GHz 115 190
- kHz
115
Page. 9
Version 1.4, 2012/10/4

3. Software & Operation Mode

3.1 Scanner Role

Device Name: RIOTEC-6 碼 BD_ADDR PIN Code: 1234 Baudrate: 115200, 8, n, 1 HW Flow Control: Disable
PIO Definition in SPP/HID mode
Pins Type Function Descriptions
PIO 2 (Out) Discoverable 0: Not Discoverable; 1: Discoverable PIO 3 (Out) Connected 0: Normal; 1: Connected
PIO 4 (Out) Connecting
PIO 5 (Out) Link loss
PIO 6 (In) Mode Switch
PIO 7 (In)
PIO 8 (In)
PIO 9 (Out)
PIO 10 (Out)
PIO 11 (Out)
Unplut(HID mode) / Reset baud(SPP mode) Bluetooth Disconnect (SPP mode only) NUM_LOCK (HID mode only) CAPS_LOCK (HID mode only)
Bluetooth Status LED
0: Normal; 1: Indicates that the scanner is try to connect to the cradle. 0: Normal; 1: Indicates unintended connection loss due to bad RF signal or uninformed disconnected. The signal state will change back to 0 if BT-1041 receives the AT+D=xxxxxxxxxxxx command. 0:HID; 1:SPP; Drive to proper line state to switch between operation modes. HID mode : Unplug / SPP mode : Set baud-rate 115200
0:Normal; 1: Disconnect; Drive high for at least 30mS to disconnect 0: Num Lock OFF; 1: Num Lock ON
0: Caps Lock OFF; 1: Caps Lock ON
In Connected state, the LED is always OFF. For other states, the LED pattern consists of an 100ms on and a specified period off, The period of Ready / Idle state is 6000ms The period of Inquiry / Discoverable state is 200ms The period of Connecting state is 200ms
Page. 10
Version 1.4, 2012/10/4
SPP Connection Example The following example describes simple initial, inquiring, connecting, data-sending/receiving and disconnecting process by using AT Command set in BT-1041.
Remote MCU Remote BT Local BT Local MCU
+COD:001F00
+STA:1 +COD:001F00
+SM:0
AT+SSM=3
1
Power On
Initiating Messages; Set Remote BT into
Mode 3
+STA:1
+SM:0
AT+INQ = 000000,8,10
+STA:4
+SM:0
+CD:000A3A80E51A
---
Raw data to be received / sent
Inquiring
Local BT searches all
neighboring BT
Devices
Connecting
Local BT launched
the connecting
request to the remote
BT Device.
User’s Data
+STA:2
+SM:0
+INQ:001A753850FF,001F00
+INQC
+STA:1
AT+D = 001A753850FF
+STA:3
+SM:0
+STA:4
+CD: 001A753850FF
---
Raw data to be sent / received
PIO8 (Pull High) -> Disconnect
+++
+STA:1
+++
+STA:1
Disconnecting
Local BT launches
the disconnect
request.
Page. 11
Version 1.4, 2012/10/4
HID Operation Mode
HID operation mode is dedicated for a user’s device to be emulated as a Bluetooth Keyboard. After being connected, the HID report package can be transferred through the UART interface to a remote platform, such as a PC/Laptop. In this mode, AT Commands are not allowed. Using the following PIO table, BT-1041 can operate whole activities during the HID operation mode.
HID Connection Procedures
Step1. Power On
After power on BT-1041, the paired BT-1041 is in the “Connecting mode” to continue re-connecting the existed paired remote device. If BT-1041 is un-paired with any remote device, BT-1041 will be in “Discoverable mode”.
Step2. Data Transfer
After connection is created, BT-1041 can accept HID report packages through the UART interface. While BT-1041 is in “Connected mode”, BT-1041 reports the “Link Quality” message (0x00~0xFF) every second to indicate Bluetooth connection quality. The larger value indicates the better link quality. Value 0xD5 is a recommended value to stop sending HID report packages.
Step3. Disconnected
If the connection is interrupted (either normal or abnormal), BT-1041 will still continue re-connecting the paired remote device.
Step4. Discoverable
When Unplug/re-pair button (PIO7) is pressed, BT-1041 will disconnect the existing connection and/or stop any re-connecting action to be in “Discoverable mode”.
HID Package Format
The packet format for data written into the UART is effectively a HID report with an additional
header. The protocol only checks that the packet matches the header and does not valid the HID Report. It is the responsibility of the designer to make sure that the HID Reports send to the UART match those defined in the HID Descriptor in the SDP service record. A HID device may need to send different reports depending on whether the device is in HID Boot Protocol or HID Report protocol. If this is needed, then additional signaling between the BC4 VM application and the external processor may be needed - perhaps using a PIO line.
Page. 12
Version 1.4, 2012/10/4
Byte Description
0 Length of packet in bytes (including this byte) 1 Type of packet: 0 - Forward HID Report. 2 to n The HID Report including header.
Below is an example packet for a Boot Keyboard Report: Note: For devices that requiring PIN entry to be made by pressing the keys on the keyboard. Keyboard reports must be sent using the HID Keyboard Boot Report format so that the HID library intercept these packets and extract the keycodes during pairing.
Byte Value Description
0 0x0c Length of packet (12) 1 0x00 Forward HID Report. 2 0xa1 HID Input Report Header 3 0x01 Keyboard Report ID 4 0x00 Modifier Keys (none pressed) 5 0x00 Reserved 6 0x04 Keycode 1 ('A' key pressed on USA keyboard) 7 0x00 Keycode 2 (not pressed) 8 0x00 Keycode 3 (not pressed) 9 0x00 Keycode 4 (not pressed) 10 0x00 Keycode 5 (not pressed) 11 0x00 Keycode 6 (not pressed)
Note:
To show/hide the virtual keyboard on an iOS device after connection in HID mode. Host must send the particular package composed of 0x05 0x00 0xa1 0x02 0x01 0x05 0x00 0xa1 0x02 0x00.
Page. 13
Version 1.4, 2012/10/4

3.2 Cradle Role

PIO Definition in SPP mode:
Pins Type Function Descriptions
PIO 2 (Out) CONNECTION_IND Connected : High, otherwise : Low PIO 3 (In) BTN_DISCONNECT Pulled high to disconnect SPP connection. PIO 4 (In) BTN_DISCOVERABLE High: Discoverable, Low(default): Connectable PIO 5 (Out) N/A PIO 6 (In) N/A PIO 7 (In) N/A PIO 8 (In) N/A
PIO 9 (Out) N/A PIO 10 (Out) N/A PIO 11 (Out) N/A
Page. 14
Version 1.4, 2012/10/4

Appendix A: AT Command

The modem-like AT Command set of BT-1041 is based on Command/Response handshake. The following sections describe syntax and commands used in command interface for the user to configure and control BT-1041.

A.1. AT Command Format

The AT command format is:
AT<cmd><cr> or AT<cmd>=<value><cr>
*** <cmd> represents specified command; <cr> represents \r
Format Example Example
AT+<cmd><cr> AT + GLN \r Host send Get local name command
AT+<cmd>=<value><cr> AT + PIN = 12345678 \r Host send Set pin code command

A.2. AT Command Response Format

The AT command response format is:
<cr><lf><Response Code><cr><lf>
*** <cr> represents \r; <lf> represents \n
There are two categories of Response Code:
Category 1 Response Code:
Example Meaning Condition & Notes
\r \n 1 \r \n OK
ie, A T+INQ = 000000,15,10 \r
\r \n 2 \r \n ERROR
(1 <= maxResponses <= 10) ie, A T+ ABC \r
\r \n 3 \r \n UNKNOWN
(command ABC is not available)
\r \n 4 \r \n FAILED
Category 2 Response Code:
ie, command/response successfully finished; result to be no match
Page. 15
Version 1.4, 2012/10/4
Example Meaning Condition & Notes
state:
\r \n +STA:state \r \n
\r \n +SM:scanMode \r \n
\r \n +INQ:address, classOfDevice \r \n
\r \n +INQC \r \n
\r \n +COD: classOfDevice \r \n
\r \n +LA:address \r \n
\r \n +LN:name \r \n
STATE: to indicate current status
SCANMODE: to indicate current scan mode
INQUIRY result
INQUIRYCOMPLETE
to indicate class of device (local device)
LocalAddress address: 12 hexadecimal
Local Name: Return code of get local
name command
1 : sppDevReady 2 : sppDevInquiring 3 : sppDevConnecting 4 : sppDevConnected
scanMode: 0 : hci_scan_enable_off 1 : hci_scan_enable_inq 2 : hci_scan_enable_page 3 : hci_scan_enable_inq_and_page
address: 12 hexadecimal classOfDevice: 6 hexadecimal
classOfDevice: 6 hexadecimal
User friendly name of the local device
\r \n +SCM:securityMode \r \n
\r \n +RN:address,name \r \n
\r \n +SSPP:address,result \r \n
\r \n +CD:address \r \n
\r \n --- \r \n
\r \n +++ \r \n
Sscuritymode: to indicate current
security mode
Remote Name: Return code of get
remote name command
SEARCHSPP : Return code of search
SPP profile command
CONNECTED : Indication of SPP
connection
Connected : The last result code before
entering data mode
Disconnected : The first result code after
returning to command mode
securityMode: 0 : security_off, encyption_off 1 : security_on, encyption_off 2 : security_on, encyption_on
address: 12 hexadecimal name: user friendly name of the remote device
address: 12 hexadecimal Result:
0 : SPP profile not found 1 : SPP profile found
address: 12 hexadecimal
Page. 16
Version 1.4, 2012/10/4

A.3. Set Commands

The Set commands are for the user to set the BT-1041 configuration.
SET Commands Command Set Conditions & Notes
scanMode:
Set inquiry scan and page scan mode command
Set pin code command
Set local name command
Set Baud rate command
AT + SSM = scanMode \r
AT + PIN = pinCode \r
AT + SLN = localName \r
AT + SBR = baudRate \r
0 : hci_scan_enable_off 1 : hci_scan_enable_inq 2 : hci_scan_enable_page 3 : hci_scan_enable_inq_and_page
pinCode: default: 0000 4< pincode length <16
1 <= local name length <= 16
baudRate: Default = 9k6 bps
UART Baud rate
=baudRate/0.004096 Some common values are: 9k6 baud - 39 19k2 baud - 79 38k4 baud - 157 57k6 baud - 236 115k2 baud - 472 230k4 baud - 944 460k8 baud - 1887 921k6 baud - 3775 1382k4 baud - 5662
Set class of device command
AT + SCOD = classOfDevice \r
classOfDevice:
6 hexadecimal class of device
Delete all authorized devices
AT + DA \r
command

A.4. Get Commands

GET Commands Command Set Conditions & Notes
Page. 17
Version 1.4, 2012/10/4
Get inquiry scan and
AT + GSM \r
page scan mode command Get local name command AT + GLN \r Get class of device command AT + GCOD \r Get local address command AT + GLA \r
AT + GRN =
address:
Get remote name command
address \r
Get state command AT + STA \r
12 hexadecimal Bluetooth Device Address

A.5. Action Commands

The actions commands are for the users to control the BT-1041 to do certain actions. The defined actions are: Inquiry, Connect, Reset and Search SPP profile.
ACTION Commands Command Set Conditions & Notes
classOfDevice:
AT + INQ = CLASSOFDEVICE,
Inquiry command
MAXRESPONSES, TIMEOUT \R
Connect command
AT + D = address \r
Reset command AT + RST \r Search SPP profile
AT + SSPP = address \r
command
6 hexadecimal class of device filter
set 000000 -- notified of all devices within
range regardless of their class of device.
audio/ video to be 000400 ;
headset to be 200404
maxResponses:
1 <= maxResponses <= 10
timeout:
1(1.28 seconds) <= timeout <= 48(61.44
seconds)
address:
12 hexadecimal Bluetooth Device Address
address:
12 hexadecimal Bluetooth Device Address
Page. 18
1.69 英吋
50mm
1.02 英吋
30mm
THIS DEVICE COMPLIES WITH PART 15 OF THE FCC RULES. OPERATION IS SUBJECT TO THE FOLLOWING TWO CONDITIONS: (1) THIS DEVICE MAY NOT CAUSE HARMFUL INTERFERENCE AND (2) THIS DEVICE MUST ACCEPT ANY INTERFERENCE RECEIVED, INCLUDING INTERFERENCE THAT MAY CAUSE UNDESIRED OPERATION.
Federal Communications Commission Requirements The equipment has been tested and found to comply with the limits for Class B Digital Device, pursuant to part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference in a residential installation. This equipment generates uses and can radiate radio frequency energy and, if not installed and used in accordance with the instruction, may cause harmful interference to radio communication. However, there is no guarantee that interference will not occur in a particular installation. If this equipment does cause harmful interference to radio or television reception, which can be determined by turning the equipment off and on, the user is encouraged to try to correct the interference by one or more of the following measures:
Reorient of relocate the receiving antenna.
Increase the separation between the equipment and receiver.
Connect the equipment into an outlet on a circuit different from that to which the receiver is connected.
Consult the dealer or an experienced radio/TV technician for help.
THE CHANGES OR MODIFICATIONS NOT EXPRESSLY APPROVED BY THE PARTY RESPONSIBLE FOR COMPLIANCE COULD VOID THE USER'S AUTHORITY TO OPERATE THE EQUIPMENT. This device complies with Part 15 of the FCC Rules. Operation is subject to the following two conditions: (1) This device may not cause harmful interference, and receiver. (2) This device must accept any interference received, including interference that may cause undesired operation.
FCC Radiation Exposure Statement
The equipment complies with FCC radiation exposure limits set forth for uncontrolled equipment and meets the FCC radio frequency (RF) Exposure Guidelines in Supplement C to OET65. The equipment has very low levels of RF energy that it is deemed to comply without testing of specific absorption ratio (SAR).
Modular approval RF Exposure statement This equipment must be installed and operated in accordance with provided instructions and the antenna(s) used for this transmitter must be installed to provide a separation distance of at least 20 cm from all persons and must not be co-located or operating in conjunction with any other antenna or transmitter. End-users and installers must be provide with antenna installation instructions and consider removing the no-collocation statement.
End Product Labeling This transmitter module is authorized only for use in device where the antenna may be installed such that 20cm may be maintained between the antenna and users. The final end product must be labeled in a visible area with the following: “Contains FCC ID: V3DR8001 ”.
Manual Information To the End User The OEM integrator has to be aware not to provide information to the end user regarding how to install or remove this RF module in the user’s manual of the end product which integrates this module. The end user manual shall include all required regulatory information/warming as shown in this manual.
Loading...