Embedded Artists Android Open Accessory Application (AOAA) Kit EA-APP-001 EA-APP-001 Hoja De Datos
Los códigos de productos
EA-APP-001
AOAA Kit – Software User’s Guide
Page 44
Copyright 2012 © Embedded Artists AB
7.10 Publish Message
A Publish message is normally sent as a response to a Discover message in order to publish its
presence and capabilities. It is also possible for a Node to broadcast the Publish message onto the
network, for example, when it is first attached and doesn’t know about the Controller address.
Dest Addr: Normally the Controller address as received in the Discover message. This could
also be set to 0x01 (Discover) and will then be broadcasted as a Discover with Publish data.
Src Addr: Address of the node sending the Publish message.
Flags: There are no flags for this message.
Msg ID:
0x07
Capabilities: A list with capability IDs. Each ID is at most 4 bits long and two IDs are packed
in one byte (see section 7.11 for a description of the defined capabilities). This means that at
in one byte (see section 7.11 for a description of the defined capabilities). This means that at
most 12 capabilities can be published.
7.11 Capabilities
Below is a list of defined capabilities/peripherals. Each capability has a unique (4-bit) ID which means
that a total of 16 capabilities can be defined. There is, however, a limitation in the Publish message
that allows at most 12 capabilities to be published.
that allows at most 12 capabilities to be published.
Capability
Value (Cap ID)
Temperature sensor
0x1
Light sensor
0x2
Button
0x3
RGB LED
0x4
LED
0x5
Dest Addr
Src Addr
Flags Msg ID
Capabilities
1 byte
0x7
0-6 bytes
11 bits
0x0