beautypg.com

NavCom Sapphire Rev.J User Manual

Page 104

background image

Sapphire Technical Reference Manual Rev. J

104

UDP2 mode (a UDP “pseudo session”) may be established when the ETHVCOM task is in the
“listening” mode (remote IP is 0.0.0.0 port 0). While in this listening mode, any messages
previously scheduled to be sent to the logical port are silently discarded. Once UDP2 mode is
established in this way, any datagrams received from any other UDP IP address/port are silently
discarded. The session should be terminated by the remote client by sending an
[ETHVCOM]ON,0.0.0.0,0 command, but it can also be terminated by entering that command on
any other port (e.g., a serial COM port or a different EVCOM port). The ETHVCOM task then
terminates the current “session” and enters its “listen” mode.

1. If an ETHVCOM command is issued with no parameters, the status of all ETHVCOM

ports is displayed.

2. If the only argument entered is the ETHVCOM port number, the status of that port is

displayed.

3. If any argument is entered, but the ETHVCOM port number is not entered, the command

is assumed to be for the port the command was entered from. If this is not an
ETHVCOM port, an error message is displayed.

4. The current values are used for any parameters not entered.
5. Changing any of the EVCOM port settings causes a connected port to disconnect and

begin listening for a new connection.

Examples: [ETHVCOM] ON, 192.168.0.100, 5325, UDP2, 4361, ETH1

Instructs the unit to communicate only with a remote user whose IP address and
port number is 192.168.0.100:5325, using UDP2 mode. The local port number used
to communicate is 4361.

[ETHVCOM] ON, 0.0.0.0, 0, , , ETH2

Breaks current connection (if any) on ETH2, and enables the unit to listen for a
connection from the next remote unit that sends a packet to this unit. This is the
proper way for a remote user to terminate a UDP connection when in UDP2 mode.
It causes the unit to stop sending data and to listen for a new connection from
another user. The mode remains the same (UDP or TCP) as it was in the previous
session.

[ETHVCOM] ON,0.0.0.0,0,UDP1

Breaks the current connection (if any) and listens for a UDP1 connection. Any
scheduled messages for this logical port will be silently discarded.


[ETHVCOM] OFF

Terminates any current connection and disables new EVCOM connections on this
logical port (ETH1…ETH4).


[ETHVCOM]

[ETHVCOM] ON, 192.168.0.100, 5042, TCP1, 4361, ETH1

[ETHVCOM] ON, 0.0.0.0, 0, TCP1, 4362, ETH2

[ETHVCOM] OFF, 0.0.0.0, 0, UDP1, 4363, ETH3

[ETHVCOM] ON, 46.153.12.73, 12345, UDP2, 4364, ETH4