ETC ROK101008

ROK 101 008
ROK 101 008
Bluetooth Module
Key Features
•
Qualified to Bluetooth 1.0B
•
RF output power class 2
•
FCC and ETSI approved
•
460 kb/s max data rate over UART
•
UART and PCM interface
•
I2C interface
•
Internal crystal oscillator
•
HCI firmware included
•
Point to Point connection
•
Built-in shielding
Supported Bluetooth Profiles
•
Generic Access Profile
•
Service Discovery Application Profile
•
Serial Port Profiles
- Dial-up networking
Description
- Fax
ROK 101 008 is a short-range module for implementing
Bluetooth functionality into various electronic devices. The module consists of three major parts; a baseband controller, a flash
memory, and a radio that operates in the globally available 2.4–
2.5 GHz free ISM band.
Both data and voice transmission is supported by the module.
Communication between the module and the host controller is
carried out via UART and PCM interface.
ROK 101 008, which is compliant with Bluetooth version 1.0B
and critical errata, is a Class 2 Bluetooth Module (0 dBm) and is
type-approved.
- Headset
•
Generic Object Exchange Profiles
- File transfer
- Object Push
- Synchronisation
Suggested Applications
•
Computers and peripherals
•
Handheld devices and accessories
•
Access points
ROK 101 008
I2C_DATA
I2C_CLK
TXD
RXD
RTS
CTS
C4
T6
C3
Baseband
C6
B5
A5
A6
B6
Voltage
Regulation
UART
C2
VCC_IO
VCC
ON
ADDR
DATA
PCM_IN
PCM_OUT
PCM_SYNC
PCM_CLK
FLASH
Memory
A1
A2
A3
POR
Radio Module
RXBalun
Radio
ASIC
R2
GND
R5
R6
T4
T5
R4
R5
R6
T4
T5
C5
GND
GND
NC
NC
NC
NC
NC
NC
NC
NC
NC
NC
Antenna
Filter
Switch
T2
TXBalun
VCO
Tank
GND
T3
A4
Loop
Filter
GND
R1
T1
CTRL
PCM
B3
ANT
PBA 313 01/2
13MHz
Crystal
R3
Figure 1. Block Diagram
Audio
HCI
Link Manager
0
1
Baseband
2
3 cm
Radio
Figure 2. Actual size of the Bluetooth Module and also showing the HW and FW stack.
2
RESET#
ROK 101 008
Absolute Maximum Ratings
Parameter
Symbol
Min
Max
Unit
Temperature
Storage temperature
Operating temperature
TStg
TAmb
-30
0
+85
+75
°C
°C
Power Supply
VCC
VCC_IO
VCC
VCC_IO
-0.3
-0.8
+5.25
+3.6
V
V
Digital Inputs
Input low voltage
Input high voltage
VIL
VIH
-0.5
VCC_IO + 0.3
V
V
15
15
dBm
dBm
Antenna Port
Input RF power
In-band
Out of band
Recommended Operating Conditions
Parameter
Symbol
Temperature
Ambient temperature, Test
Min
Typ
Max
Unit
TAmb
+23
°C
Power Supply
Positive Supply Voltage
I/O Ports Supply Voltage
VCC
VCC_IO
+3.3
+3.3
V
V
DC Specifications
Unless otherwise noted, the specification applies for Tamb = 0 to +75°C
Parameter
Condition
Power Supply
Supply Voltage
I/O Ports Supply Voltage
Digital Inputs
Logical Input High
Logical Input Low
Logical Input High
Logical Input Low
RESET# Input Low
Digital Outputs
Logical Output High
Logical Output Low
Except ON signal
Except ON signal
ON signal only
ON signal only
RESET# signal only
Symbol
Min
Typ
Max
Unit
VCC
VCC_IO
3.175
2.7
3.3
3.3
5.25
3.6
V
V
VIH1
VIL2
VIH2
VIL2
VRESET
0.7xVCC_IO
0
2.0
0
0
VCC_IO
V
0.3xVCC_IO V
VCC
V
0.4
V
0.4
V
VOH
VOL
0.9xVCC_IO
0
VCC_IO
V
0.1xVCC_IO V
3
ROK 101 008
Current Consumption
Parameter
Condition
Symbol
Average Current Consumption ICC + ICC_IO
HW Shutdown state
See note 1
SW Standby Mode
Can only be woken up via UART
see note 3
Can be woken up via
UART and via RF
see notes 2 & 3
Idle state
After HCI - reset
After a H/W reset
Connection Mode
Master Mode
Slave Mode
VCC_IO supply
Min
Typ
Max
Unit
ISHW
ISTA1
1
250
µA
µA
ISTA2a
1.5
mA
IIDL1
IIDL2
ICS_M
ICS_S
ICC_IO
15
23
35
25
2
mA
mA
mA
mA
mA
Notes
1. Current consumption is based upon when the pin 'ON ' is
low and 'VCC_IO ' is grounded.
2. HCI basic settings have not been sent to UUT.
3. Implemented by using the Ericsson_HCI_Save_Power
command. ISTA1 is entered by sending the following
command '0123 FC01 03'. ISTA2 is entered by the
command '0123 FC01 02'.
Timing Performance
Parameter
System start-up time
from power on
RESET# signal duration
Firmware timer resolution
Condition
Symbol
Min
Typ
Sink current > 1mA
Max
Unit
1250
ms
1
6.55
ms
ms
PCM
Parameter
Condition
Symbol
PCM clock frequency See fig 3 & 4
Master mode
Slave mode
fPCM_CLK
fPCM_CLK
fPCM_SYNC
PCM sample rate sync. frequency
See fig 3 & 4
PCM clock high period
PCM clock low period
PCM_SYNC (setup) to PCM CLK (fall)
PCM_SYNC pulse length
PCM_X in (setup) to PCM_CLK (fall)
PCM_X in (hold) from PCM_CLK (fall)
PCM_X out valid from PCM_CLK (rise)
Figure 3.
4
See fig 5
See fig 5
Figure 4.
tCCH
tCCL
tPSS
tPSH
tDSL
tDSH
tPDLP
Min
Typ
Max
Unit
2048
kHz
kHz
kHz
2000
128
8
200
200
100
200
100
100
1000
460
150
Figure 5.
ns
ns
ns
ns
ns
ns
ns
ROK 101 008
RF Specifications
General
Parameter
Frequency range
Antenna load
VSWR
VSWR
Condition
Symbol
Min
Typ
2.402
Max
Unit
2.480
GHz
W
50
2:1
2:1
RX mode
TX mode, see note 4
Notes
4. During the TX mode, the VSWR specification states the limits that are acceptable before any other RF parameters are strongly
effected. i.e. frequency deviation and initial frequency error.
Receiver Performance (0.1% BER)
Parameter
Sensitivity level
Max input level
Spurious Emissions
Spurious Emissions
Condition
Symbol
Min
Typ
Max
Unit
-75
-70
-74
-60
-57
-47
dBm
dBm
dBm
dBm
-20
30MHz to 1GHz
1GHz to 12.75GHz
Transmitter Performance
Parameter
Frequency deviation
TX power
TX carrier drift
20dB bandwidth
Spurious Emissions
Condition
1 slot
3 slots
5 slots
Peak detector
30MHz - 1GHz
1GHz - 12.75GHz
1.8GHz - 1.9GHz
5.15GHz - 5.3GHz
Symbol
Min
Typ
Max
Unit
fMOD
140
-6
-25
-40
-40
155
+2
+5
+10
+15
750
170
+4
+25
+40
+40
1000
-36
-30
-47
-47
kHz
dBm
kHz
kHz
kHz
kHz
dBm
dBm
dBm
dBm
FDRIFT(1)
FDRIFT(3)
FDRIFT(5)
5
ROK 101 008
Pin Description
Pin
Pin Name
Type
Direction
Description
A1
A2
A3
A4
A5
A6
B1
B2
B3
B4
B5
B6
C1
C2
C3
C4
C5
C6
R1
R2
R3
R4
R5
R6
T1
T2
T3
T4
T5
T6
PCM_IN
PCM_OUT
PCM_SYNC
PCM_CLK
RXD
RTS
NC
NC
GND
NC
TXD
CTS
NC
ON
I2C_CLK
VCC_IO
NC
VCC
GND
GND
RESET#
NC
NC
NC
GND
ANT
GND
NC
NC
I2C_DATA
CMOS
CMOS
CMOS
CMOS
CMOS
CMOS
Power
CMOS
CMOS
Power
CMOS
Power
Power
Power
Power
CMOS
Power
RF
Power
Power
CMOS
In
Out
In/Out
In/Out
Input
Input
Power
Output
Output
Input
Output
Power
Power
Power
Power
Input
Power
In/Out
Power
Power
In/Out
PCM data, see notes 5,6
PCM data, see notes 5,6
Sets the PCM data sampling rate, see notes 5,6
PCM clock that sets the PCM data rate, see notes 5,6
RX data to the UART, see note 6
Flow control signal, Request To Send data from UART, see notes 5,6
Do not connect
Do not connect
Signal ground
Do not connect
TX data from the UART, see note 6
Flow control signal, Clear To Send data from UART, see note 6
Do not connect
When tied to VCC, the module is enabled.
I2C clock signal, see note 6
External supply rail to the Input / Output ports
Do not connect
Supply Voltage
Signal ground
Signal ground
Active low reset, see note 7
Do not connect
Do not connect
Do not connect
Signal Ground
50W Antenna connection
Signal Ground
Test point, internal voltage regulator - Do not connect
Do not connect
I2C data signal, see note 6
Notes
5. 100kW pull-up resistors to VCC_IO are incorporated on the
module. PCM signals direction is programmable.
6. CMOS buffers are low voltage TTL compatible signals.
7. RESET# signal must be fed from an open drain output.
6
ROK 101 008
Mechanical Specification
32.8
0.2
0.2
1.6
0.2
5.05
0.2
7.85
0.2
7.85
0.2
14.1
15.7
0.2
0.2
14.1
0.2
Detail A
2.95 max
without solder balls
16.8
0.2
1.6
Co-planarity 0.1 mm
0.54 0.2
approx 0.2 mm
Detail A
CBA
6
5
4
3
2
1
22.22
23.5
24.76
TR
5.72
6.98
3.12
4.39
5.66
6.93
8.2
9.47
Pad size:
35 mil = 0.889 mm
Tolerance on placement: 0.02 mm
Figure 6. Mechanical dimensions
7
ROK 101 008
Functional Description
The ROK 101 008 is a complete Bluetooth module that
has been specified and designed according to the
Bluetooth System v1.0B . Its implementation is based on
a high-performance integrated radio transceiver (PBA 313
01/2) working with a baseband controller, a flash memory
and surrounding secondary components.
2.
The baseband controller is an ARM7-Thumb based
chip that controls the operation of the radio transceiver via the UART interface. Additionally, the
baseband controller has a PCM Voice and I2C
interface. The baseband controller ROP 101 1112/C
is used.
3.
A Flash memory is used together with the baseband
controller. Please, refer also to the Firmware section.
The voltage regulation block regulates and filters the
supply voltage. VCC is typically 3.3V and two regulated voltages are produced.
4.
Block Diagram
ROK 101 008 has five major operational blocks. Figure 7
illustrates the interaction of the various blocks. The
functionality of each block is as follows:
1. Radio functionality is achieved by using the
Bluetooth Radio, PBA 313 01/ 2. Six operational
blocks are shown for the radio section and their
operation is as follows:
1a) VCO-tank is a part of the phase locked loop. The
modulation is performed directly on the VCO. To
ensure high performance the VCO-tank is laser
trimmed.
1b) Loop filter, filters the tuning voltage of the VCO-tank.
1c) RX-balun handles transformation from unbalanced to
balanced transmission.
1d) TX-balun handles biasing of the output amplifier
stage and transformation from balanced to unbalanced transmission.
1e) Antenna switch directs the power either from the
antenna filter to the receive ports or from the ASIC
output ports to the antenna filter.
1f) Antenna filter band-pass filters the radio signal.
5.
An internal clock is mounted on the module. The
clock frequency is 13MHz and is generated from a
crystal oscillator that guarantees a timing accuracy
within ± 20ppm.
Bluetooth Module stack
The Host Controller Interface (HCI) handles the communication by the transport layer through the UART interface with the host, see figure 8. The Baseband and radio
provides a secure and reliable radio link for higher layers.
The following sections describe the Bluetooth module
stack in more detail. It is implemented in accordance with
and complies with the Specification of the Bluetooth
System v1.0B .
Bluetooth Radio Interface
The Bluetooth module is a class 2 device with 4dBm
maximum output power with no power control needed.
Nominal range of the module with a typical antenna is up
to a range of 10 m (at 0 dBm). It is compliant with FCC
and ETSI regulations in the ISM band.
2
4
I2C Interface (2)
Voltage
Regulation
POWER (3)
ADDR
Baseband
UART Interface (4)
3
DATA
PCM Voice
Interface (4)
Audio
FLASH
Memory
HCI
CTRL
Link Manager
Baseband
1
Radio Module
RXBalun
Loop
Filter
Radio
ASIC
VCO
Tank
Switch
Antenna
Filter
Radio
ANT
TXBalun
PBA 313 01/2
RESET
13MHz
Crystal
5
Figure 7. Simplified Block Diagram
8
Figure 8. HW/FW parts included in the Ericsson
Buetooth module.
ROK 101 008
Baseband
By default the first unit setting up a connection is the
master of the point to point link. The master transmits in
the even timeslots and the slave transmits in the odd
timeslots.
tication and key management.
For full duplex transmission, a Time-Division Duplex
(TDD) scheme is used. Packets are sent over the air in
timeslots, with a nominal length of 625 µs. A packet can
be extended to a maximum of 5 timeslots (DM5 and DH5
packets) and is then sent by using the same RF channel
for the entire packet.
Firmware (FW)
Two types of connections are provided - Asynchronous
Connectionless Link (ACL) for data and the Synchronous
Connection Oriented Link (SCO) for voice. Only two
64kb/s voice channel are supported, HV1 and HV3.
Furthermore, there are also packages used for link control
purposes.
Link Manager (LM)
The Link Manager in each Bluetooth module can communicate with another Link Manager by using the Link
Manager Protocol (LMP) which is a peer to peer protocol.
The LMP messages have the highest priority and are used
for link-setup, security, control and power saving modes.
The receiving Link Manager filter-out the message and
does not need to acknowledge the message to the
transmitting LM due to the reliable link provided by the
Baseband and radio.
A variety of different packet types with error correction
schemes and data rates can be used over the air interface.
Also asymmetric communication is available for high
speed communication in one direction.
The Baseband provides the link-setup and control
routines for the layers above. Furthermore, the Baseband
also provides Bluetooth security like encryption, authen-
Please refer to the Specification of the Bluetooth System
v1.0B part B for in-depth information regarding the
Baseband.
The module includes firmware for the host controller
interface, HCI, and the link manager, LM.
The FW resides in the Flash and is available in object
code format.
LM to LM communication can take place without actions
taken by the host. Discovery of features at other
Bluetooth enabled devices nearby can be found and
saved for later use by the host.
Please refer to the Specification of the Bluetooth System
v1.0B part C for in-depth information regarding the LMP.
Type
User Payload
(bytes)
CRC
Symetric
Max. rate
Asymetric
Max.rate
FEC
ID
na
na
na
NULL
na
na
na
na
na
na
POLL
na
na
na
na
na
FHS
na
18
2/3
yes
na
na
There are three different types of HCI packets:
Link control packets
Type
Payload
Header
(bytes)
User
Payload
(bytes)
FEC
DM1
1
0-17
2/3
DH1
1
0-27
DM3
2
0-121
DH3
2
DM5
2
DH5
2
Host Control Interface (HCI)
The HCI provides a uniform command I/F to the
Baseband and Link Manager and also to HW status
registers.
•
HCI command packets – from host to Bluetooth
module HCI.
•
HCI event packets – from Bluetooth module HCI to
host.
•
HCI data packets – going both ways.
Asymetric
Max rate (kb/s)
CRC
Symetric
Max. rate
(kb/s)
Forward
Reverse
yes
108.8
108.8
108.8
no
yes
172.8
172.8
172.8
2/3
yes
258.1
387.2
54.4
0-183
no
yes
390.4
585.6
86.4
0-224
2/3
yes
286.7
477.8
36.3
0-339
no
yes
433.9
723.2
57.6
It is not necessary to make use of all different commands
and events for an application. If the application is aimed
ACL packets
Type
Payload header
(bytes)
User Payload
(bytes)
FEC
CRC
Symetric
Max. rate
(kb/s)
HV1
na
10
1/3
no
64.0
HV3
na
30
no
no
64.0
DV
1D
10+(0-9) D
2/3 D
Yes D
64.0+57.6 D
SCO packets
Table 1: Link Control Packets Table, ACL Packets Table,
SCO packets
LMP
LM
LC
LM
LC
RF
RF
Physical layer
Figure 9. Link manager
9
ROK 101 008
at a pre-specified profile, the capabilities of such a profile
is necessary to adjust to – see Specification of the
Bluetooth System v1.0B Profiles.
The interface for communicating with the Bluetooth
module is achieved with the HCI UART Transport Layer
on top of HCI, the module will communicate with a host
through the UART I/F. The PCM I/F is also available for
communicating voice.
Please refer to the Specification of the Bluetooth System
v1.0B part H:1-4 for in-depth information regarding the
HCI and different transport layers
I2C Interface
A master I2C I/F is available on the module. The control of
the I2C pins are performed by Ericsson specific HCI
commands available in the FW implementation – see
Appendix C.
Module HW Interfaces
RESET#
The assignment of the RESET# input is to generate a
reset signal to the complete Bluetooth module. During
power-up the reset signal is set ‘low’ automatically so
that power supply glitches are avoided. Therefore no
reset input should be required after power-up.
Antenna
The ANT pin should be connected to a 50W-antenna
interface, thereby supporting the best signal strength
performance. Ericsson Microelectronics can recommend
application specific antennas – see Appendix C.
UART Interface
The UART implemented on the module is an industry
standard 16C450 and supports the following baud rates:
300, 600, 900, 1200, 1800, 2400, 4800, 9600, 19200,
38400, 57600, 115200, 230400 and 460800 bits/s. 128
byte FIFOs are associated with the UART.
Power-up Sequence
There is no need for a power up sequence if VCC, ON and
VCC_IO are tied together.
Four signals will be provided for the UART interface. TxD
& RxD are used for data flow, and RTS & CTS is used for
flow control.
A power up sequence, if used, shall be applied accordingly: Connection of the supply rails, GND and then VCC;
then the ON signal should be applied in order to initiate
the internal regulators; and finally, the VCC_IO supply rail
can be activated.
Please refer to the Specification of the Bluetooth System
v1.0B part H:4 regarding the HCI and UART transport
layers.
PCM Voice Interface
The standard PCM interface has a sample rate of 8 kHz
(PCM_SYNC). The PCM clock is variable between 128
kHz and 2.0 MHz in the PCM slave mode. The PCM data
can be linear PCM (13-16bit), µ-Law (8bit) or A-Law
(8bit).
The PCM I/F can be either master or slave – providing or
receiving the PCM_SYNC. Redirection of PCM_OUT and
PCM_IN can be accomplished as well.
Over the air the encoding is programmable to be, CVSD
and A-Law or µ-Law.
The power-down sequence is similar to the power-up
procedure but in the reverse format. Therefore, the
disconnection of the signals shall be as follows: VCC_IO,
ON,VCC and finally GND.
Power
There are three inputs to the Voltage Management section
(VCC, VCC_IO, ON). VCC is the supply voltage that is typically
3.3V.
VCC
ON
VCC_IO
RS232
4
VCC_IO
ON
VCC
RS 232
transceiver
UART
Bluetooth
Module
4
GND
Codec
PCM
GND
Figure 10. Application block schematics. A typical UART or PCM configuration.
10
ROK 101 008
A separate power supply rail (VCC_IO) is provided for the I/
O ports, UART and PCM. VCC_IO can either be connected
to VCC or to a dedicated supply rail, which is the same as
the logical interface of the host.
Shielding / EMC Requirements
The module has its own RF shielding and is approved
according to the standards by FCC and ETSI.
If the approval number is not visible on the outside when
the module is utilized in the final product, an exterior
label must state that there is a transmitter module inside
the product.
Ground
Ground should be distributed with very low impedance as
a ground plane. Connect all GND pins to the ground
plane.
Marking
Every module is marked with the following information on
the:
a) Component designation: “ROK 101 008”.
b) Ericsson’s name and logotype.
c) Manufacturing code (place, year, week) and batch
number.
d) CE logotype
e) Type approval RTA no. See manual
Ordering Information
Part No.
ROK 101 008/2
Assembly Guidelines
Packaging
Solder Paste
The ROK 101 008 module is made for surface mounting
and the SSP connection pads have been formed after
printing eutectic Tin/Lead solder paste. The solder paste
to use is not critical as long as this is a normal eutectic
solder paste. A preferred solder paste height is 150µm.
All devices will be delivered in a package protecting them
from electrostatic discharges and mechanical shock. The
package will be marked with the following information:
Soldering Profile
It must be noted that the module should not be allowed
to be hanging upside down in the re-flow operation. This
means that the module has to be assembled on the side
of the PCB that is soldered last.
The re-flow process should be a regular surface mount
soldering profile (full convection strongly preferred); the
ramp-up should not be higher than 2oC/s and with a peak
temperature of 210-235oC during 20-60 seconds.
Pad Size
It is recommended that the pads on the PCB should have
a diameter of 0.7-0.9 mm. The surface finish on the PCB
pads should be Nickel/Gold or a flat Tin/Lead surface or
OSP (Organic Surface Protection).
Placement
The placement machine should be able to recognize odd
BGA combinations (all ball recognition preferred) and be
able to pick the component asymmetrical. The module
contains a flat pick-area of 10mm diameter minimum. The
weight of the module is typically 2.8gr.
Storage
Keep the component in its dry pack when not yet using
the reel. After removal from the dry pack ensure that the
modules are soldered onto the PCB within 48 hours.
a)
b)
c)
d)
e)
f)
Delivery address.
Purchase order-number
Type of goods and component designation.
Ericsson’s name and logotype.
Date of manufacture and batch number.
Number of components in the package.
Abbreviations
ASIC - Application Specific Integrated Circuit
BER - Bit Error Rate
CMOS - Complementary Metal Oxide
Semiconductor
C/I
- Carrier to Interference Ratio
DCE - Data Circuit terminating
Equipment
GP
- Gold Print
HCI - Host Controller Interface
ISM - Industrial Scientific and
Medical
PCB - Printed Circuit Board
PCM - Pulse Code Modulation
PDA - Personal Digital Assistant
PtP - Point to Point
Rx
- Receive
SIG - Special Interest Group
SSP - Screen Solder Print
Tx
- Transmit
UART - Universal Asynchronous
Receiver Transmitter
VCO - Voltage Controlled Oscillator
11
ROK 101 008
APPENDIX A
Setting up a Bluetooth point-to-point
connection
Getting Started
The Host Controller Interface (HCI) in the module is a
command I/F. The host presents commands to the HCI
and receives events back from the HCI of the module. The
module Link Manager provides link set up capability to
the HCI.
The ROK 101 008 Bluetooth module is easy to use when
designing a Bluetooth application. However, there is a
need for know-how in the Bluetooth System specification
v1.0B as well as the Profile specification v1.0B when
designing and end-customer product. The list below
show some parts that would make designing convenient.
• Bluetooth module
• Know-how in Bluetooth specification regarding HCI
commands
• Test board with UART/PCM or USB I/F
• Visual C++ for PC SW design
• Preferably HCIdriver, L2CAP, RFCOMM and SDP from
Ericsson
All information needed, regarding how to drive the HCI
over UART is specified in part H4 of the Bluetooth
System v1.1 further more part H1 and also Appendix IX
with message charts is relevant.
Below follow an example of how to set up an ACL link
between to Bluetooth modules by using the UART I/F
and also a schematic of how to interface the module and
control it by a host, normally a PC or microcontroller.
Principle schematic for UART interconnect
The inter-connection to the level-shifter when designing
a test-board could be according to the schematic below.
(Figure A1.)
The Bluetooth module can be connected as a DCE/DTE
and a modem/nullmodem cable could therefor be used
in-between the test-board and the PC.
RS-232
100nF
1
3
VCC
VCC_IO
ON
100nF
+
CX
-
V CC
16
V+
2
100nF
100nF
4
+
CX
5
-
BLUETOOTH
MODULE
ROK 101 008
100nF
V- 6
GND
15
B5
10
7
2 RXD
CTS B6
RXD A5
RTS A6
11
9
14
8
8 CTS
3 TXD
TXD
12
13
MAX3232E
7 RTS
9-pin D-sub
Figure A1. Bluetooth module connected as a DCE
through level shifter
12
• Host_A Bluetooth module is set in paging mode
asking for a connection to Host_B
This is accomplished by first setting up the connection
between the Host and the module and thereafter creating
the connection between the modules using HCI commands.
Host set-up via UART:
There are 4 different types of HCI-packets accepted on
the UART I/F.
HCI packet type
HCI command packet
HCI ACL data packet
HCI SCO data packet
HCI event packet
HCI packet indicator
0x01
0x02
0x03
0x04
Table A1. HCI packets
The HCI packet indicator shall be sent immediately before
the HCI packet. When the entire HCI packet has been
received a new indicator should be expected.
The default speed setting is 57.6 kb/s and can be
changed by sending a specified bit stream to the I/F - see
Appendix C on how to change the speed setting of the
UART.
V CC
The capacitor values are
chosen for a VCC from
3.2 to 3.6 V
V CC
• Host_B Bluetooth module is set in paging scan mode
– listening for a Bluetooth device asking for a new
connection
When the speed set-up for the UART is made for both
Host_ A & B, the Command Packets can be sent and
Event Packets received by the hosts. See HCI over UART
in part H:4 of the Bluetooth System v1.0B for detailed
information regarding parameters and protocol.
Soft Reset
First HCI command packet to send should be the RESET
packet.
A Command_Complete_Event with a status parameter
should be returned to the host.
ROK 101 008
Buffer information
Buffer information should be exchanged between the
module and respective host by using HCI commands.
• Read_Buffer_Size: Providing the host with information
on buffer size for ACL and SCO data packets for the
module returned with a Command_Complete_Event
packet. The host shall use this information for controlling the transmission
• Host_Buffer_Size: Providing the module with information on buffer size for ACL and SCO packets to the
host.
It is the host that manages the data buffers of the Host
Controller on the module.
Timers
It could be necessary to set important timers used by the
module for time out handling. The timers are all set by
writing to registers using HCI commands.
Furthermore the setting of authentication and encryption
should be disabled (default) by using the:
• Write_Authentication_Enable
• Write_Encryption_Mode
The basic settings for getting into scan mode could be
according to the below suggested script list.
• Read Buffer Size
• Set Event Filter
• Write Scan Enable: (Scan Enable: 0x03)
• Write Voice Setting: (Voice Channel Setting: 0x0060)
• Write Authentication Enable: (Authentication Enable:
0x00)
• Set Event Filter: (Connection Setup Filter: Connections from All Devices, Auto Accept: 0x02)
• Write Connection Accept Timeout: (Connection
Accept Timeout: 0x2000)
• Write Page Timeout: (Page Timeout: 0x3000)
The default values can be checked in Specification of the
Bluetooth System v1.0B part H:1 or by using
Read_xxx_xxx commands.
Bluetooth Address
The hosts, using the HCI command Read_BD_ADDR will
find the Bluetooth address of the module by the
Command_Complete_Event with the BD_ADDR as a
parameter.
Page mode
The Create_Connection command is used to set-up a link
to another Bluetooth device.
Command
OCF
HCI_Create_Connection 0x0005
By Remote_Name_Request, the BD_ADDR of the remote
module can also be found.
Command parameters
BD_ADDR
Packet_Type
Packet_Scan_Repetition_Mode
Packet_Scan_Mode
Clock_Offset
Allow_Role_Switch
Return
parameters
Table A3. HCI Create Connection OCF code
Inquiry
The HCI command Inquiry with the parameters LAP,
Inquiry_Length, and Num_Responses can also be used
for collecting BD_ADDR of remote Bluetooth units.
Creating a Point-to-point connection
Page Scan mode
To set a Bluetooth module in the mode for being able to
connect to (Host_B), page scan mode, there are some
settings that should be performed.
Command
Command
OCF
parameters
HCI_Write_Scan_Enable 0x001A Scan_Enable
Table A2. HCI Write Scan Enable OCF code
Return
parameters
Status
Create_Connection:
BD_ADDR: 0xYYYYYYYYYYYY,
Packet Type: 0x0008,
Page Scan Repetition Mode: 0x01,
Page Scan Mode: 0x00,
Clock Offset: 0x0000
Allow_Role_Switch: 0x00
This command will cause the Link Manager to try to
create a connection to the Bluetooth module with the
appropriate BD_ADDR. The local Bluetooth module
(Host_A) starts the paging process to set up a link to the
page-scanning remote device (Host_B).
By LMP the negotiation between the two Bluetooth
modules Link Managers (LM) the link set-up can be
completed.
13
ROK 101 008
ACL link up and running
Host_A is the master of the point-to-point piconet and
Host_B is slave. The unit starting the paging process is
by definition the master. The link set-up is completed
when the event
Connection_Complete_Event is returned to both Host_A
and Host_B with the connection handle as one of the
parameters and the status parameter 0x00 (success).
When Bluetooth link is up and running the HCI data
packets can be sent from host to host.
The host must take care of generating the packages
going from Host to Host Controller in the module over
the UART I/F, in the same way the Host must arrange the
packages received from the Host Controller.
Both sides need information on what kind of data is
received, to be able to interpret the bit flow correctly.
For extensive information on setting up a Bluetooth link
please refer to Bluetooth System v1.0B Appendix IX
Message Sequence Charts
Driving SW
HCI- API
The Bluetooth module includes all HCI command
capabilities according to Bluetooth System v1.0B.
Furthermore, there is some Ericsson specific commands
available for accessing HW registers and HW control –
see Appendix C. SW for driving the module should be
developed for the HCI interface.
There is source code SW available with Ericsson
Bluetooth Developers Kit (EBDK), see Appendix B, which
can be used for driving the module. This SW comes with
the EBDK and has an HCI-API for application development on the HCI I/F.
Higher layer-API
Software (HCIdriver, L2CAP, RFCOMM and SDP) are
available in a generic, source code format, i.e. to be
adapted to various operating systems.
• HCIdriver – implements the HCI command driver used
by the host
Adding an SCO link
When creating a voice connection using the PCM I/F, an
ACL link must be up and running between the two
devices, an SCO link can thereafter be added.
• L2CAP – handles protocol multiplexing, segmentation
and re-assembly of packets
The control of the PCM I/F (FS, PCM_IN/OUT and
PCM_CLK) is handled by Ericsson specific HCI command
– see Appendix C.
• SDP – Service Discovery Protocol provides information on the services available on a Bluetooth device
0
4
8
Connection handle
12
16
PB BC
Flag Flag
Data
Table A4. ACL data packet
14
20
24
Data total length
32
• RFCOMM – provides a serial port emulation over the
L2CAP protocol
Additional SW for the application shall be developed for
the actual application on top of the RFCOMM API. If the
application is according to a SIG predefined profile, it
should be implemented accordingly. New applications
can be the driver of the specification of new profiles
decided by the SIG – see Specification of the Bluetooth
System v1.0B Profiles.
ROK 101 008
Development tools
Bluetooth Development Kit (EBDK)
The easiest way of getting started is to use the
Bluetooth Developers Kit. It provides all parts
necessary for developing applications for the
Bluetooth module.
EBDK
Radio Board (0dBm)
Ericsson Radio
Module
USB9602
MS7540
Radio Board
• Demos using radio/baseband
Ericsson Radio
Module
• Macro capability
Monitoring pins
Available are:
• PC plug&play
• C++ v5.0 Source code for use in applications
• HCIdriver, L2CAP, SDP and RFCOMM for
applications using UART communication
Memory
Memor y
JTAG
Ericsson BaseBand
• Pins for electrical measurements
Base Band Board
• Antennas
Development can easily take place on the EBDK
platform and thereafter the implementation of
the full Bluetooth capability can be setup by
developed SW/HW and the Bluetooth module.
Software (HCIdriver, L2CAP, RFCOMM and
SDP) will be available in source code for PC.
• HCIdriver – implements the HCI command
driver used by the host
• L2CAP – handles protocol multiplexing,
segmentation and re-assembly of packets
LEDS
A udio
USB
GLUE LOGIC (XLI NX)
Address / Data / Control
APPENDIX B
Application Board
RS-232
RS-232
RS-232
I2C
Figure B1. Bluetooth Development Kit (EBDK)
EBSK
Ericsson Bluetooth
Module ROK 101 008
• RFCOMM – provides a serial port emulation
over the L2CAP protocol
• SDP – Service Discovery Protocol provides
information on the services available on a
Bluetooth device
Technical support is available from the EBDK
distributor. Please contact Ericsson Microelectronics for ordering and information regarding
the EBDK and regarding extra daughter board
with ROK 101 008 as add-on to the EBDK.
Levelshift
RS-232
Codec
USB
DC/DC
Audio
Power
Figure B2. Bluetooth Starter Kit (EBSK)
Bluetooth Starter Kit (EBSK)
A very small convenient kit, which preferably is
used in point-to-multipoint configuration
designs, based on the Bluetooth module ROK
101 008.
Please contact Ericsson Microelectronics for
ordering and information regarding the
Ericsson Bluetooth Starter Kit.
15
ROK 101 008
Modulation technique is a binary Gaussian Frequency
Shift Keying GFSK, with a BT product of 0.5. The channel
bandwidth is 1 MHz and the frequency deviation from the
carrier frequency of the RF channel is between +/-140 to
+/-175 kHz for representing a ‘1’/’0’.
APPENDIX C
Bluetooth Information
This part will be updated and new information will be
added continuously.
A rapid process is ongoing to harmonise Spanish, French
and Japanese frequency ranges with the rest of the world.
Radio
Fast Frequency hopping (1600channel hop/s) with 79(23)
channels available (2.402 to 2.480 GHz) and a symbol
rate of 1Ms/s over the air exploits the maximum channel
bandwidth in the unlicensed ISM band.
Data and parameter formats
There are exceptions in the Bluetooth system for data and
parameter formats – general rules below.
• All values are in Binary and Hexadecimal little Endian
formats
• Negative values must use 2’s complement format
• Array parameter notation is parameterA[i],
parameterB[i],…
• All parameter values are sent/received in little Endian
format. The least significant byte is sent first – unless
noted otherwise.
To sustain a high transfer rate in busy radio environment,
the frequency hopping together with advanced coding
techniques maximizes the throughput.
During Page and Inquiry the hopping frequency is risen
to 3200 hops/s to enhance the time needed for connection set-up.
Little Endian
0
4
8
12
16
OpCode
lsb
OCF
msb lsb
OpCode Command
Field
10 bits
OGF
20
24
28
Parameter
Total length
msb
Amount of parameters in bytes
OpCode Group
Field
6 bits
OGFRange (6 bits): 0x00-0x3F
0x3E: Bluetooth logo testing
0x3F: Vendor specific debug commands
OCFRange (10 bits): 0x0000-0x03FF
HCI_Inquiry_Cancel (Example):
LINK CONTROL COMMAND
OGF: 0x01
bin: 0000 0001
msb
OCF: 0x0002
bin: 0000 0000 0000 0010
lsb
msb
Real code bin: 0000 01 | 00 0000 0010
msb
lsb
0x0402
Sent to module in hex: 02 04 00
Zero parameters
Reverse byte order
Figure C1. Byte order sent to module
16
lsb
31
ROK 101 008
HCI Opcodes
The Opcodes have been changed during the ongoing
standardisation work. Below is the description on how to
send opcodes to the module.
Below is the general HCI command packet format
depicted as well as a byte order description.
UART speed setting
The baud rate is changed with an Ericsson specific HCI
command.
HCI_Ericsson_Set_Uart_Baud_Rate
The command has one parameter, baud rate - one byte
long according to the table below . The op-code for the
command is 0xfc09 - the last figure is due to a possible
change.
Sending the command should be performed accordingly:
09 fc 01 yz , where yz is the chosen baud rate from the
table.
UART speed Parameter to send
460.8
230.4
115.2
57.6
28.8
14.4
7200
3600
1800
900
kbps
kbps
kbps
kbps
kbps
kbps
bps
bps
bps
bps
00000
00001
00010
00011
00100
00101
00110
00111
01000
01001
153.6
76.8
38.4
19.2
9600
4800
2400
1200
600
300
kbps
kbps
kbps
kbps
bps
bps
bps
bps
bps
bps
10000
10001
10010
10011
10100
10101
10110
10111
11000
11001
Table C2. UART speed setting parameter
The op-code is sent in reverse byte order. 01 is the
parameter length, in this case one byte. Remember to add
the HCI packet indicator.
Observe - When changing the baud rate for the module
the host also has to change the baud rate.
Observe - Removing power to the module the baud rate
will be reset to 57.6 kbps.
Observe -Two zeros are not printed in the beginning of
the binary parameters below. The length of the parameter
is 1 byte.
Ericsson specific HCI commands
By using the Ericsson specific HCI command there are a
number of features available for the application design.
Contact Ericsson Microelectronics for a command
reference list.
Antennas
Antenna design is not specified and standardised in the
Bluetooth System v1.0B.
Many different types of antennas can and will be used.
Application specific antennas suitable for production are
expected to be a new market for antenna designs.
Ericsson Microelectronics have antennas for the EBDK
and other development kits. Contact Ericsson Microelectronics for information on antennas.
Contacting Ericsson Microelectronics
For further information regarding Bluetooth technology,
components and development tools, please contact
Ericsson Microelectronics:
Country
Frequency range
RF channels
Europe & USA
Japan
Spain
France
2400-2483.5 MHz
2471-2497 MHz
2445-2475 MHz
2446.5-2483.5 MHz
f = 2402 + k MHz
f = 2473 + k MHz
f = 2449 + k MHz
f = 2454 + k MHz
k = 0....78
k = 0....22
k = 0....22
k = 0....22
Table C1. Frequency ranges used.
17
Ericsson Microelectronics
SE-164 81 Kista, Sweden
+46 8 757 50 00
www.ericsson.com/microelectronics
For local sales contacts, please refer to our website
or call: Int + 46 8 757 47 00, Fax: +46 8 757 47 76
Data Sheet
EN/LZT 146 106 R1A
© Ericsson Microelectronics AB, September 2001