![W&T Com-Server++ Скачать руководство пользователя страница 152](http://html1.mh-extra.com/html/wandt/com-server/com-server_manual_3083827152.webp)
152
W&T
Mode FTP client
18�1�6 Application examples
Example 1:
Opening and closing the connection
1. Send the command string to the serial port. If the com-
plete string was received, the Com-Server begins to
open the connection and process the commands.
2. If the functions can be executed one after the other,
you get the string
OK + Protocol Char.
3. Then the actual user data are sent, depending on the
command either from the serial port to the network or
the reverse.
4. In case of error the FTP server sends the error code +
Protocol Char + Protocol Char.
5. The connection is automatically closed in either case,
and you receive the end code +
Protocol Char
from the
FTP server.
Example 2:
User
egon
having the password
happy
wants to output
the file
/etc/hosts
in ASCII format. The value
003
(Ctrl C)
is entered as
Protocol Char
. The protocol would look as
follows:
Com-Server
Serial device
<-----
egon<lf>happy<lf>TYPE A<lf>RETR /etc/hosts<lf><Ctrl C>
----->
OK<Ctrl C>
----->
[Content of file]<Ctrl C>
----->
221 Goodbye<Ctrl C>
Example 3:
User
egon
having the password
happy
would like to insert
binary data to the end of the file
/usr/egon/config
. The va-
lue
003
(Ctrl C) is entered as
Protocol Char
. The protocol
would look as follows:
Содержание Com-Server++
Страница 8: ...W T...
Страница 26: ...26 W T Assigning the IP address...
Страница 27: ...27 W T Subject to error and alteration 3 Supply voltage Com Server Com Server3x Isolated...
Страница 30: ...30 W T Supply voltage...
Страница 34: ...34 W T Network interface...
Страница 35: ...35 W T Subject to error and alteration 5 The serial combi port Mode selection RS232 mode RS422 485 mode...
Страница 41: ...41 W T Subject to error and alteration 6 LED displays Power Status Error LED Network LEDs...
Страница 88: ...88 W T Packetizing serial datagrams...
Страница 94: ...94 W T Mode TCP server...
Страница 108: ...108 W T Mode TCP client...
Страница 122: ...122 W T UDP bus mode...
Страница 130: ...130 W T The Windows COM port redirector...
Страница 138: ...138 W T Box to Box mode...
Страница 154: ...154 W T Mode FTP client...
Страница 164: ...164 W T Mode Telnet Client...
Страница 182: ...182 W T OPC data transfer...
Страница 183: ...183 W T Subject to error and alteration 23 Mode InQueueCopy Distribution of serial data streams to multiple stations...
Страница 186: ...186 W T Mode InQueueCopy...
Страница 206: ...206 W T Expanded services of the Com Server...