Interface Inc.
●
7401 East Butherus Drive, Scottsdale, Arizona 85260 USA
●
Phone 480.948.5555
●
Fax 480.948.1924
www.interfaceforce.com
●
Email:
●
ORDER TOLL-FREE 800.947.5598
26
get_mode (0x27)
get_tx_status (0x29)
get_firmware_version (0x2B)
can be used! To be able to use all of the commands, “set_mode” has to be sent.
Commands begin with the code followed by parameters.
Code
Parameter
xx
p1
p2
...
pn
Examples:
Requesting serial number 1F
Setting channel 1 to zero: 0C 01
Protocol for responding to commands
Responses are framed by a prefix 0x3B and a postfix from the sign 0x0D 0x0A (carriage
return linefeed).
The entire frame has a variable length. The number of frames still to follow is given with “n”.
The number of variable bytes is defined in the fourth and fifth Byte with the data word “len”.
The entire length of the response is (10 + len) bytes.
The command “get_value” is an exception. The response to this command takes place with a
protocol for measured values.
Prefix Code
n
len
No.
len bytes
Postfix
3B
xx
B
HB
LB
aa bb cc p1
p2 ... pn 0D
0A
Table 10: Protocol for responding to commands
Example: Releasing commands
Send:
0x26 01 62 65 72 6C 69 6E
Example: Locking commands
Send:
0x26 00 62 65 72 6C 69 6E
Example: Request serial number
Send:
0x23
Send:
0x1F
Receive
0x 3B 1F
01
00 08 30 35 30 30 38 34 34 39 30 35 30 0D 0A
Send
0x24
Result: The serial number is “08449050”.
Example: Change status(Send measured value OFF/ON)
To permanently save the value send stop or start measured value, the command