SYMEO Local Positioning Radar System
LPR-1DHP
Product Documentation
Protocol XP Description for TCP/IP and RS232
Copyright © Symeo GmbH 2010
Seite 39 von 40
8.2.2
Example of Distance Data
7E 00 08 03 08 02 11 00 00 10 62 00 00 00 7A E6 00 00 AF C4 7F
Figure 10 - Protocol for a single 1D measurement
This protocol shows a simple example for 1D measurement.
Distance date:
7E 00 08 03 08 02 11 00 00 10 62 00 00 00 7A E6 00 00 AF C4 7F
7E
hex
START byte
00
hex
TYPE (00: Distance Data)
08 03
hex
=
00001|0000000001|1
bin
internal service information
08 02
hex
=
00001|0000000001|0
bin
internal service information
11
hex
= 0001|0001
bin
internal service information
00 00 10 62
hex
= 4194
dec
Distance: 4194 mm
00 00 00 7A
hex
= 122
dec
Velocity: 122 mm/s
E6
hex
= 230
dec
Level: 230 – 256 = -26 dB
00
hex
Error status: 0 means no error; unequal 0 means
error (error description see see chapter 8.4)
00
hex
internal service information
AF C4
hex
cyclic redundancy check
7F
hex
END byte
8.3
Binary protocol XP over TCP/IP: Fixed Frame Protocol
If the LPR-1DHP station has a TCP/IP interface two options are available for the protocol.
Either you use the protocol as it is sent from the serial interface (with different data type
lengths, byte stuffing) or you use a fixed frame protocol.
In the first case the data symbols
0x7e
und
0x7f
(which are reserved for the START and
END field) are replaced (see chapter 8.1.2.) Byte stuffing causes a different protocol length.
For the fixed frame protocol each LPR-1DHP data packet is filled up with zero bytes to a
fixed length of bytes (i.e. 87 bytes) before the data packet is sent. Byte stuffing does not
occur. The START and the END byte are still used but not clear anymore due to not applying
byte stuffing. The fixed length of the data packets can be set on the web-interface of the
LPR-1DHP unit.
If TCP/IP is used the transmitted data have already a checksum. Therefore the checksum in
the protocol is not as important as for the serial interface.
8.3.1
Detailed description TCP Fixed-Frame Protocol
If a TCP fixed-frame protocol is used, a working TCP connection between the PC and the
LPR unit has to be guaranteed. Depending on the configuration of the LPR protocol