User`s manual
http://www.adtechcn.com 104
) 5. Network connection and troubleshooting
5.1 Initialization of application
In the start-up process of the host’s application, the function “DeviceAddr_init()”must be used to
initialize the interfaces of the devices, which number 63 maximally. When initialization is
completed, the function “Close_all()”should be used to close the application and release all
connections and resources.
5.2 Connection of control card
In preparing the connection of the control card, the application of the host must
provide the two parameters, namely, the IP address of the control card and the MAC
address, to the function “TCP Conn” (char *ip_addr, char *mac_addr, int *err). If the
connection is successful, “TCP_Conn()”will return a device number (0-63). If not, it
returns “-1”. “int *err” is used to receive the returned results of some continuous
operations. The function “TCP_Conn()” binds the device’s IP address and MAC
together so as to improve the anti-virus performance of the system.
5.3 Network topology
■ Point-to-point interconnection
The host of the control card and the device are connected to each other through
standard 568B crossover cable.
Controlling host Device 1