
Shanghai ZLAN Information Technology Co., Ltd Tel: +86-17321037177 http://www.zlmcu.com
66
The features of ZLAN httpd client communication include:
1) Device up-sending: support converting the serial port data into http format by means of
GET/POST, and can be directly identified by the server.
2) Web server down-sending: the Web server can also send the required data to the serial
device server through the GET/POST command, and the valid data contents can be
output from the serial port of the serial device server. When the serial server receives the
data, it can also give a specific response to the Web server, indicating that the data is
received.
3) Support the input and output data in any conversion between hexadecimal and strings,
convenient for Web server down-sending data by characters, and the serial port output in
hexadecimal data to control the serial port device.
The detailed information can be referred to the document of the "ZLAN HTTPD Client
Communication Mode".
10. Transcoding Function
The transcoding function of ZLAN serial device server can transform the different device
protocol into a unified protocol.
Table 7 Transcoding Example
Ethernet Port Instruction
Serial Port Instruction
01 02 03 04
a1 a2 a3 a4
11 12 13 14
b1 b2 b3 b4
21 22 23 24
c1 c2 c3 c4
As shown in table 7, when the Ethernet port received 01 02 03 04, the serial port will output
the instruction of a1 a2 a3 a4, and the Ethernet port actually sent 11 12 13 14 when it
received b1 b2 b3 b4. This enables the transformation of different protocols. This is just a
simple example of the "Transcoding" function, in practice can transfer more complex
protocols.