User's Manual

Enhanced Class 1 Bluetooth v2.1 Module
User’s Guide
Americas: +1-800-492-2320 Option 2
Europe: +44-1628-858-940
Hong Kong: +852-2923-0610
www.lairdtech.com/wireless
116
CONN-GUIDE-BT740_v0.2
8.17.12 Set Date and Time
This command is valid for manager role only and updates the date and time in the associated agent
identified by the handle. When any HDP manager sends a time update to an agent, it results in an
EVT_HDP_UPDATE event to the host of that agent.
Command Packet
Offset
Field
Value
Comments
0
LENGTH
14
Fixed
1
CHANNEL
0
Fixed
2
COMMAND
[CMD_HDP_SET_TIME]
3
FLOW_IN
??
Runtime value
4..5
HANDLE[2]
[4]=msb,[5]=lsb
Handle identifying an
instance of data
specialization agent/manager
combination
6..13
DATETIME[8]
Ccyymmddhhssnnxx
See Note 1
Response Packet
Offset
Field
Value
Comments
0
LENGTH
14
Fixed
1
CHANNEL
0
Fixed
2
COMMAND
[CMD_HDP_SET_TIME]
3
FLOW_OUT
??
Runtime value
4
STATUS
As appropriate
1. This command supplies the date/time information as a string of 8 bytes “ccyymmddhhssnnxx” where each byte is as
follows:
CC Century e.g for 2011 the value shall be 0x14
YY Year e.g for 2011 the value shall be 0x0B
MM Month e.g for January the value shall be 0x01 and for say December 0x0C
DD Day e.g for 31 the value shall be 0x1F (0 is illegal value)
HH Hour e.g for 6:45pm the value shall be 0x12
NN Minutes e.g for 6:45pm the value shall be 0x2D
XX fraction This is a fraction of a seconds in hundredths of unit. Valid 00..0x63 (99
For example the date and time “2 Feb 2011, 16:43:33.78” sends at the string “150C020C102D214E
The host waits until the response receives before submitting further commands.