Appendix 7.
Communication Protocol
This communication protocol is valid for USB or fibre. The main difference
between the two is the port settings.
Ports
USB:
it emulates a serial port service with CDC, automatically negotiated rate,
8 bits, no parity,1 bit stop. The Vendor ID and Product 0x1FC9 ID 0x807B of the
USB may be used to find the port number opened by the driver.
Fibre:
230400 bps, 8 bits, no parity, 1 bit stop. The 0x0403 Vendor ID and
Product ID 0x6001 may be used to find the number of communication port
opened by the FTDI driver.
Format of commands and responses
Communication is done through the exchange of strings with the XML format.
The
SMP2
checks the frames received and rejects them if not well formed.
The XML format accepted by the
SMP2
parser is as follows:
Command:
PC
SMP2
General format of commands
<?xml version=”1.0” encoding=”ISO-8859-1”?>
<cmd>
<instruction>
[String to identify the command]
</instruction>
<params>
[Settings needed by the command]
</params>
<timeout_msec>
[optional; max time to run the command]
</timeout_msec>
<md5>
[MD5 of string from “<?xml” to the character previous to tag “<md5>”, in ASCII hex]
</md5>
</cmd>
User’s Manual
Electromagnetic Field Meter SMP2
P.
83
Содержание SMP2
Страница 2: ......
Страница 49: ...Figure 11 Installation of the program User s Manual Electromagnetic Field Meter SMP2 P 47...
Страница 79: ...Screenshot 4A Screenshot 4B User s Manual Electromagnetic Field Meter SMP2 P 77...
Страница 95: ......
Страница 96: ...www wavecontrol com...
Страница 97: ...Safety Quality Service info wavecontrol com www wavecontrol com 34 93 320 80 55...