
ROK 101 007
17
Preliminary
Host set-up via UART:
There are 4 different types of HCI-
packets accepted on the UART I/F.
•
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 impor-
tant timers used by the module for
time out handling. The timers are all
set by writing to registers using HCI
commands.
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.
By Remote_Name_Request, the
BD_ADDR of the remote module can
also be found.
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
HCI packet type
HCI packet indicator
HCI command packet
0x01
HCI ACL data packet
0x02
HCI SCO data packet
0x03
HCI event packet
0x04
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.
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.
Buffer information
Buffer information should be ex-
changed between the module and
respective host by using HCI com-
mands.
Command
Return
Command
OCF
parameters
parameters
HCI_Write_Scan_Enable 0x0005
Scan_Enable
Status
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 per-
formed.
The Write_Scan_Enable command
with correct parameter
(Scan_Enable=0x001A) will set the
module in Page scan mode if the
Command_Complete_Event is
successful.
Furthermore the setting of authenti-
cation 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)
Table A1. HCI packets
Table A2. HCI Write Scan Enable
OCF code