|
Vxcomm.exe and Xserver command protocol |
[繁體中文 (Traditional
Chinese)] [简体中文 (Simplified Chinese)] |
|
Last update [2008/02/19 ] |
|
|
[Commands for Port10000] [Version Explanation][Command Line Options][New Function] |
|
|
Command set of Vxcomm.exe and Xserver (sends to 7188E/8000E) |
||||
|
Command |
Explanations |
Command |
Return |
Version |
| 00[Arg] | Stops the module executed the Vxcomm.exe or the Xserver, and return to MiniOS7 console mode. Arg: "quit" Return: (none) |
00quit | (none) | |
| 01 | Reads version information of Vxcomm.exe or Xserver. Return: vm.n.rr [mm/dd/yy]
|
01 | v2.6.14[09/04/2001] | |
| 02[Arg] | Sets BaudRate of COM ports of 7188E/8000E. (The setting isn't stored into EEPROM of 7188E/8000E) Arg: CBBBB
(1200, 2400, 4800, 9600, 19200, 57600, 115200)
|
0219600 02219200 |
OK OK |
|
| 03[Arg] | Sets data format of COM ports of 7188E/8000E. (The setting isn't stored into EEPROM of 7188E/8000E ) Arg: CDPS
(7, 8 ==>Available for COM1~ COM2) (5, 6, 7, 8 ==> Available for COM3 ~ COM8) 0, n ==> none parity 1, e ==> even parity 2, o ==> odd parity 3, m ==> mark parity (always 1) 4, s ==> space parity (always 0) (0~2 ==> Available for COM1~COM2) (0~4 ==> Available for COM3~COM8) (1 ==> Available for COM1 ~ COM2) (1, 2 ==> Available for COM3 ~ COM8)
|
0317N1 0328E1 |
OK OK |
|
| 04[Arg] | Gets system reset status[10/19/2001 Added] Arg: CC
|
0403 | 031 | |
| 05[Arg] | Sets RTS and DTR signal of COM ports of 7188E/8000E. Arg: CS[D]
|
0511 054D |
OK OK |
|
| 06[Arg] | Sets Baudrate of COM ports of 7188E/8000E. (Stores the setting into EEPROM of 7188E/8000E ) Arg: CBBBB
(1200, 2400, 4800, 9600, 19200, 57600, 115200)
|
0619600 06219200 |
OK OK |
|
| 07[Arg] | Sets data format of COM ports of 7188E/8000E. (Stores the setting into EEPROM of 7188E/8000E ) Arg: CDPS
(7, 8 ==>Available for COM1~ COM2) (5, 6, 7, 8 ==> Available for COM3 ~ COM8) 0, n ==> none parity 1, e ==> even parity 2, o ==> odd parity 3, m ==> mark parity (always 1) 4, s ==> space parity (always 0) (0~2 ==> Available for COM1~COM2) (0~4 ==> Available for COM3~COM8) (1 ==> Available for COM1 ~ COM2) (1, 2 ==> Available for COM3 ~ COM8)
|
0717N1 0728E1 |
OK OK |
|
| 08[Arg] | Sets module IP address. After setting IP successfully, the client program must reconnect to the new IP to communicate with the 7188E. Arg: iiipppIIIPPP
|
08192168255001
08192168254012 |
OK
OK |
|
| 09[Arg] | Received Timeout (Modified from Vcom3008) Arg: pttttt
If set as 'a', 'A' or -1 the ttttt is decided by system. If trigger level >1(Refer to command 32), the ttttt is (trigger level -1+3)=time of (trigger level +2 bytes) +1ms. If trigger level ==1,the ttttt is time of 1byte +1ms(Min value is 2ms).
|
093 | 30 | Modified in V3.0.08 |
| 10 | Reads module name Return: Module name (7188E1, 7188E2, ..., 7188E8,7188EX,7188EA) |
10 10 |
7188E1 7188E2 |
|
| 11[Arg] | Test command Arg: Any string (string length <=80bytes). Return:
|
11TEST | TEST | |
| 12[Arg] | Set module gateway address Arg: iiipppIIIPPP
|
12192168000001 | OK..Reconnect | |
| 13[Arg] | Reads module gateway address Arg: (none) Return:
|
13 | 192.168.0.1 | |
| 14[Arg] | Sets module IP mask address Arg: mmmMMMmmmMMM
|
14255255000000 | OK..Reconnect | |
| 15[Arg] | Reads module IP mask address Arg: (none) Return:
|
15 | 255.255.0.0 | |
| 16[Arg] | Reads COM port status Arg: C
|
162 | 9600,N,8,1 | |
| 17[Arg] | Reads Digital Input of 7188E Arg: pppp
Fault: Error |
170003 | 55 | |
| 18[Arg] | Sends data to Digital Output of 7188E Arg: ppppdd
|
1803f855 | OK | |
| 19[Arg] | Bypass command for the user function. Arg: argument for the user to define Return:
|
19(User defined) | (User defined) | |
| 20[Arg] | Enable/Disable 5DigitLed to show information Arg: C
|
201 | OK | |
| 21[Arg] | Reads module MAC Arg: (none) Return:
|
21 | 71:88:03:3b:02:c7 | |
| 22[Arg] | Reads the MiniOS7 version of the module Arg: (none) Return: vm.n.rr [mm/dd/yy]
|
22 | v1.1.0(2001/9/1) | |
| 23[Arg] | Bypass command for the user function, including socket number and data length. Arg: argument for the user to define Return:
|
23(User defined) | (User defined) | 2.6.14 |
| 24[Arg] | Sets feedback command number. Arg: m
|
240 241 |
OK 24OK |
|
| 25[Arg] | Inquires the parameter of system Arg: m
|
25M 25S |
M0 S0 |
3.0.02 established 3.0.10 modified |
| 26[Arg] | Sets the system parameter Arg: mn
Example: "26SAVE=1", "26SAVE=0" Return:
|
[in]: 26SAVE=1,M=1,B=0 [in]: 26M=1,B=0,S=300000 [in]: 26UDP=1 |
[out]: SAVE=1,M=1,B=0
[out]: M=1,B=0,S=300000 [out]: UDP=1 |
3.0.02 established 3.0.10 modified |
| 27[Arg] | Sends Break signal to COM port of 7188E/8000E Arg: CM
|
2711 2710 |
OK OK |
|
| 28[Arg] | Sets/ Inquires the CTS/RTS mode of the flow control Arg:p[mn]
'0': DISABLE '1': ENABLE. (RTS must control by user program.) '2': ENABLE, auto control by hardware. '3': ENABLE, auto control by software (LIBRARY). for CTS, mode '1' and '3' are the same. If the command does not add the mn arguments, the turn value is the settlement value of the first once.
|
28111 281 |
111 111 |
3.0.07 |
| 29[Arg] | Inquires the CST status Arg:p
|
291 292 |
CTS1=0 CTS2=1 |
3.0.07 |
| 30[Arg] | Sends the string and receives the data which is the same as the string of Sending The string include 30, no matter command number is enable or disable (240 or 241). Arg:= ssss
|
[in1]:30123456789 [in2]:30 |
[out1]:30123456789 [out2]:30 |
3.0.08 |
| 31[Arg] | Sets the trigger level of COM port of 16550
chip. (support COM3~8 only, It didn't support COM1~2) The value 1,4,8,14 could be used. (The default value is 8,if you didn't change it) Arg:=p [LL]
If the command does not add the LL arguments, the return is the settlement value of the first once.
|
[in1]:31314 [in2]:313 |
[out1]:314 (Com3,triggerlevel=14) [out2]: 38 (Com3,triggerlevel=8) |
3.0.08 |
| 32[Arg] | Sets the trigger level of COM port Buffer (bytes). It means the number of bytes from receiving matched the the number of trigger level (bytes), The DATA on the Buffer will be returned. This command is more efficient transmission for that the receiving string is the static length. It did not useful for waiting the timeout every times when receive the data. Arg:= p [nnnn]
|
[in1] :321 [in2] :3221460 |
[out1]:10 [out2]:21460 |
3.0.08 |
| 33[Arg] | Updates the file to 7188E Arg:
Items (1) and (2) run to update the files need the assistance by program.
|
[in] :33fileno a [in] :33del a |
[out]:1 99286 [out]: Delete file(s) in disk A OK. |
3.0.09 |
| 34 | Reads the library version and date of Vcomnnn.exe (include 7188el.lib & tcpipl.lib) Arg: none Return:
|
[in]:34 | [out]:7188el.lib Ver. 1.20[Nov 06 2002], tcpipL.lib Ver. 1.1[Oct 24 2002] | 3.0.10 |
| 35 | Clear the output/input buffer of COM port Arg:=ptr
|
[in]:35111 | [out]: | 3.2.0 |
| 36 | Inquires the timeticks value of the system Arg: none Return: time tick value |
[in]:36 | [out]: TIMETICKS=4219529 |
3.2.0 |
| 37 | Read the MSR (Modem status register) of COM port Arg= p
|
[in]:371 | [out]: MSR1=30 | 3.2.1 |
| Version | Explanation |
| 3.2.23 |
|
| 3.2.22 | Add DHCP function[04/11/01] |
| 3.2.21 | Enhance the function of command 25/26[04/10/20] |
| 3.2.20 |
|
| 3.2.10 |
The priority: Default < Value saved on EEPROM< vcom.ini< command line written on Autoexec.bat. [2004/7/5] (B)Added "/SCpxxxx" command to change the TCP output buffer size which is used to receive the data from COM port. [2004/7/5] |
| 3.2.00 |
Add 3 functions below. The functions will be called once the client has connected to the Xserver first. void Port9999Start(int skt) void Port502Start(int skt) void PortUserStart(int skt) |
| 3.0.09 |
For example: Port10000=54332 --> "5.4.3.3.2." |
| 3.0.08 | Added user command 30, 31 and 32. Besides, modified the command 09. [2002/08/13] |
| 3.0.07 | Added a DMA function to COM1 (Sending only, no receiving). [04/25/2002] |
| 3.0.06 | Added a break signal to the COM port [04/09/2002] |
| 3.0.05 |
|
| 3.0.04 |
|
| 3.0.03 |
|
| 3.0.02 |
|
| 3.0.01 | Supports functions to 7188E8. [11/01/2001] |
| 3.0.00 |
|
| 2.6.14 |
|
| 2.6.13 |
|
|
VcomNNNN.exe [/Option] (NNNN denotes the Vxcomm.Lib version) |
||
|
Options |
Explanations |
Notes |
| /1 |
Recognizes 7188E1 |
|
| /2 |
Recognizes 7188E2 |
|
| /3 |
Recognizes 7188E3 |
v3.0.0 and above |
| /4 |
Recognizes 7188E4 |
3.0.0 and above |
| /5 | Recognizes 7188E5 |
3.0.0 and above |
| /8 | Recognizes 7188E8 |
3.0.0 and above |
| /X | Recognizes 7188EX | 3.0.0 and above |
| /A | Recognizes 7188EA | 3.0.0 and above |
| /M0 | Multi-echo mode. Echoes data from the 7188E/8000E COM ports to each client connected to the 7188E/8000E. |
|
| /M1 | Single-echo mode. Echoes data from the 7188E/8000E COM ports to the specific client requested the service. |
v2.6.12 and above |
| /Wxxx | Sets the socket communication timeout value. If the timeout expires,
Vxcomm.exe/Xserver will release the connection. xxx: timeout Time unit: sec Default: 0 xxx=0: disables option /W |
|
| /STxxx | Sets the system timeout value between two packets sent from the network to 7188E/8000E. If the timeout expires,
Vxcomm.exe/Xserver will automatically reboot system itself. XXX: timeout Time unit: sec Default: 0 xxx=0: disable option /ST |
|
| /Txxx | Sets a timeout value for the interval between the completion of a command being sent from the 7188E/8000E to the COM ports, and the start of the data being received from the COM port If the timeout expires, Vxcomm.exe/Xserver gives up this data. Time unit: ms Default: 100 ms xxx=0: disable option /T |
Acts in M1 (Single-echo mode) |
| /FCnnnnn | Sets the CTS control mode. nnnnn depends on the setting value and represents COM1-5 respectively. n:0~3 please refer to parameters of command "28" for more details. |
v3.0.07 and above |
| /FRnnnnn | Sets the RTS control mode nnnnn depends on the setting value and represents COM1-5 respectively. n:0~3 please refer to parameters of command "28" for more details |
v3.0.07 and above |
| /Ehh | Sets the terminal character. When the last character of the receiving data matches the terminal character, the receiving data will be returnd immediately. hh is a hexadecimal value, The default value is 0 EX:0x0A is set as "/E0A" 0xFF is set as "/EFF", 0 denotes no terminal character. |
v3.0.09 and above |
| /Kxxx | Set the ACK delay time. When the other side system of a TCP connection has sent data to Vxcomm tcp/ip kernel, the kernel must return an ACK message. The delay time is used to wait whether the other data will transfer to the other side with the ACK message. Unit: ms, Default: 2ms |
Change from /A to /K Modified on [01/10/23] |
| /Cxxx | set the maximum delay time of closing socket Unit: ms, Default500. |
|
| /Pxxxxx | Changes the command port (default is 10000). If Command Port 10000 is changed to 200, the TCP/IP mapped COM port will be 201~208. | v3.0.09 [07/23/2003] or later |
| /S1 | The Command port and each TCP/IP mapped COM port only allows one TCP/IP connection, Other connection will not be accepted. | v3.0.09[10/29/2003] or later |
| /L0 | Adds the "/L0" command to the command line,allowing LED5 to be disabled/enabled.. It economizes the running time for no 5DigitLed modules |
v3.0.09 or later |
| /Zxxx | This command is used to set ACK delay time of waiting for ACK reply from the other side system of a TCP/IP connection. (It's different with the /K)
[2004/04/19] Defalut:1000 ms |
3.2.0[03/24/2004] or later |
| "/SIpnnn" | Change the Input buffer size of COM PORT (Max: 32767) p:COM1~COM8 |
3.2.0 [2004/07/05] or later |
| "/SOpnnn" | Change the Output buffer size of COM PORT (Max 32767) p:COM1~COM8 |
3.2.0 [2004/07/05] or later |
| "/SCpnnn" | Change the TCP output buffer size which is used to receive the data from COM port (Max 32767) | 3.2.0 [2004/07/05] or later |
| "/Bn" | n='0': Doesn't allow to receive the broadcast packages. It's more efficiency for the TCP communication but doesn't support to search the 7188E series by UDP broadcast. n='1': Allow to receive the broadcast packages. |
3.2.0 [2004/07/05] or later |
| "/Un" | n='0': Doesn't support UDP function. n='1': Support UDP function. When set to "/U1", allow to use the broadcast to search the I7188E with the Vcom320/Vcom310 firmware inside in the same local Ethernet network, and allow to change IP/MASK/GATEWAY address of I7188E by UDP protocol. |
3.2.0 [2004/07/05] or later |
| "/Dpnnn" | Set the waiting time for COM PORT INPUT. The data input from COM port will be put on the buffer, and turn on the timer to monitor whether no data come in. If the setting time expires, the total data existed on the buffer will be send out via Ethernet. nnn: 0~99999, unit ms. if set as 'a', 'A' or -1 the ttttt is decided by system Default value depends on COM PORT baud rate and UART fifo trigger level. The command is similar to the command set '09' p:COM1~COM8 |
3.2.0 [2004/07/05] or later |
| "COMp=nnn-n-P-n" | Sets COM PORT's baud rate, data bits, parity,stop bits。 nnn :baud rate 8, 12, 96, 192, 1152 n: stop bits '1' or '2' n: data bits '5', '6', '7' or '8' P: Parity
|
3.2.0 [2004/8/20] or later |
| "/Nxxx" | Sets X-board name and can be recognized by the
Vxcomm. "xxx" will be saved to the variable, xBoardName defined in the Vxcomm. |
3.2.0 [2004/07/05] or later |
| "/Y" | The command is used to set 8KE4/8KE8 module. | 3.2.0[2004/04/19] or later |
| "/DHCP=x" | Set DHCP function /DHCP=0 (Disable), /DHCP=1 (Enable) | 3.2.23[2005/04/13] or later |
| "/PING=nnn" | Set the PING function. /PING=nnn, the variable "nnn" is the frequency of pinging, and the recommended frequency would be more than 2 times. | 3.2.23[2006/04/28] or later |
| "/P23=n" | Set Telnet function. /P23=0 (Disable), /P23=1 (Enable) | 3.2.23[2006/08/22] or later |
| "/HTTP=n" | Set web server function. /HTTP=0 (Disable), /HTTP=1 (Enable) | 3.2.23[2006/08/22] or later |
|
Notes: The options above are case sensitive. |
||
|
VXCOMM.EXE 5DigitLED/Led |
The important information shown on the five 7-Seg Led can be divided as follows: The IP-information format of 7188E series is as follows: 1. xxx 2. xxx 3. xxx 4. xxx 1. 1152 (115200 bps) 2. 96 (9600 bps) 3. 384 (38400 bps) 4. 192 (19200 bps) 1. 801 2. 801 3. 811 4. 701 The total reset number is 419. This value is saved to the 7188E/8000E EEPROM. This value will increase by 1 each time the 7188E is powered on or reset , etc. |
[Commands for Port10000] [Version Explanation][Command Line Options][New Function]
[繁體中文 (Traditional Chinese)] [简体中文 (Simplified Chinese)]
2008/02/19 13:10:43 +0800