TOOTHPIC RF Solutions, TOOTHPIC Datasheet - Page 63

MODULE, BLUETOOTH, DATA ACQUISITION

TOOTHPIC

Manufacturer Part Number
TOOTHPIC
Description
MODULE, BLUETOOTH, DATA ACQUISITION
Manufacturer
RF Solutions
Datasheet

Specifications of TOOTHPIC

Svhc
No SVHC (15-Dec-2010)
User Interface Info Commands
The command byte 0x07 is for the User Interface Info, which allows the host to read information about the
user interface which has been programmed into ToothPIC by FlexiPanel Designer. The user interface must
first be programmed from FlexiPanel Designer as described in the above section Adding a FlexiPanel User
Interface.
The byte after the command byte is the Property Byte, which specifies the User Interface Info Property being
modified. The remaining bytes represent any data associated with the command. Each general and dialog
info commands will receive one User Interface Info Response; control info commands will receive two. Note
that since the ToothPIC Slave firmware solution does not know in advance what the user interface looks like,
if you ask a meaningless question you may get a meaningless response rather than an error.
Note: The two bytes after the command byte are the Control ID. This is the value displayed in FlexiPanel
Designer under heading ID in the main controls list. Beware that this ID may change if you insert a dialog or a
control earlier in the control list. You may therefore wish to define constants in your host controller code to
simplify changes to ID values.
Get Control Data Command
The Get Control Data Command byte 0x08 retrieves the value of a control. The user interface must first be
programmed from FlexiPanel Designer as described in the above section Adding a FlexiPanel User Interface.
The FlexiPanel Server does not need to be running in order to get or set values.
The two bytes after the command byte are the Control ID. This is the value displayed in FlexiPanel Designer
under heading ID in the main controls list. Beware that this ID may change if you insert a dialog or a control
earlier in the control list. You may therefore wish to define constants in your host controller code to simplify
changes to ID values.
Each Get Control Data Command will receive at least one Control Data Response. If the storage required for
the control is greater than 16 bytes, multiple Control Data Response bytes will be received.
Set Control Props Command
The Set Control Props Command byte 0x09 sends control properties information to the client. Properties are
modified on the client only, not in the server. A client must therefore be connected for these properties to take
effect. When a new client connects, the properties will have to be sent again.
The entire command is always 12 bytes long. The two bytes after the command byte are the Control ID. This
is the value displayed in FlexiPanel Designer under heading ID in the main controls list. Beware that this ID
may change if you insert a dialog or a control earlier in the control list. You may therefore wish to define
constants in your host controller code to simplify changes to ID values.
The subsequent 4 bytes of the command specify the new properties. The following properties may be bitwise-
ORed together:
Page 63
9-Apr-06
User Interface Info Properties
Property
Byte
0x01
0x02
0x03
Get Control Data Command Examples
Get control 0x1234 (binary)
Get control 0x1234 (ASCII)
Toothpick 3.0.00007
Property
General Info
Dialog Info
Control Info
DS380-8
0x04 0x08 0x12 0x34
“04081234<CR><LF>”
© FlexiPanel Ltd
Remaining Byte(s)
None
Dialog index
Control ID
Patents apply and/or pending
www.FlexiPanel.com

Related parts for TOOTHPIC