Applied Concepts Inc ACMI007 사용자 설명서

다운로드
페이지 72
Applied Concepts                                            011-0131-00 rev 2 
Page 56 
 
8.5  Accessories 
 
9  Communication Protocols 
Refer to the chapter on Custom Applications to Control Speed Sensors for details on 
using this protocol to control Speed Sensors. 
Configuration Protocol 
Configuration packet format 
Description 
Value 
Start ID 
0xEF 
Destination ID 
2 – 254 (0x02 – 0xFE)  For broadcast: 255 (0xFF) 
Source ID 
0x01 
Packet Type 
Reserved (use 0x00 or 0x01) 
Payload Length (LSB) 
The Payload Length is a 2-byte word which is the 
number of bytes starting with byte #7 through and 
including the last byte before the checksum bytes. 
Payload Length (MSB) 
(see above) 
Command ID 
Get method: Value = Setting ID in hex (and byte #9 = 
0x00): causes the Speed Sensor to return the current 
setting 
Change method: Value = Setting ID in hex (and byte 
#9 = 0x01): causes the Speed Sensor to select the 
next possible setting 
Set method: Value = Setting ID in hex + 0x80: 
causes the Speed Sensor to use the value in byte #9 
as the new configuration setting 
Antenna Number 
Reserved (use 0x00 or 0x01) 
Configuration Value 
Get method: Value = 0x00 
Change method: Value = 0x01 
Set method: Value = new desired value in hex (for 
multi-byte values, the LSB is first and is followed by 
the more significant bytes in low to high order) 
10   Checksum (LSB) 
The checksum should equal the 16-bit sum of pairs of 
bytes in LSB, MSB order starting with byte #1 as the 
first LSB through and including the last byte before 
the Checksum (in this case, byte #9).  In the case of 
an odd number of bytes, 0x00 is used as the last MSB 
value.  (See example below.) 
11  Checksum (MSB) 
(see above) 
 
The following is an example showing a command to set UNITS to km/h. 
 
Description 
Value 
Start ID 
0xEF 
Destination ID 
0x02 
Source ID 
0x01 
Packet Type 
0x00 
Payload Length (LSB) 
0x03  (length = 0x0003 = 3 bytes)