Eclipse.org Eclipse.org - Device Kit

Messages

A message is a group of bits or bytes. If the message has a header, the header often includes information about the message type. Messages might identify the target (message receiver). Messages might also include the source address (the message sender) or other message-specific data.

The data portion of the message might be encoded in a special binary format to preserve space. You can use the Units, Scaling and Shifting Transforms to convert data back into a format that the application understands.

Note:
You might need to write custom messages if your message data is nonstandard among the set of messages.

In the transport layer, messages are received from the device by the transport. After the transport translates the message into bytes, the transport sends the bytes to the connection. While the connection sends the bytes to the hardware device, the transport monitors the byte stream and parses the bytes back into messages, which are sent to registered device listeners.

In the device layer, commands encapsulate messages sent from Java code to the device. In addition, signals encapsulate messages received from the hardware device.