Kaiyi — 9.4.2 HWCONFIG─Function List

Chapter 9 Ethernet Communication Module AH10EN There are two ways to assign IP addresses. Static IP address: An IP address is manually assigned. DHCP: An IP address is assigned by a server. There must be a server existing on a local area network.  IP address An IP address is the address of a device on a network. Every device connected to a network needs an IP address. If a wrong IP address is used, the device can not connect to a network, even other devices can not connect to the network. Please contact a network administrator to get more information about assigning an IP address. The default IP address of AH10EN-5A is 192.168.0.5.

 Subnet mask A subnet mask is an important parameter for setting a subnet, and is used to judge whether the IP address of a destination device and the IP address of a local device are in the same subnet. If the IP address of a destination device and the IP address of a local device are not in the same subnet, the local device will send a packet to a gateway, and the gateway will send the packet to another subnet. If the setting is incorrect, a destination device can not communicate with AH10EN-5A normally.

Users can judge whether the IP address of a destination device and the IP address of a local device are in the same subnet by performing a bitwise AND operation between the IP address of the local device and the subnet mask, and a bitwise AND operation between the IP address of the destination device and the subnet mask. If the two values are the same, the IP address of the destination device and the IP address of the local device are in the same subnet. The default subnet mask of AH10EN-5A is 255.255.255.0.  Default gateway A gateway is a network point that acts as an entrance to another network.

For example, in order to connect a local area network and a wide area network, a gateway is needed. The IP address that a gateway uses and the IP address of AH10EN-5A must be in the same subnet. The default gateway of AH10EN-5A is 192.168.1.1.  IP filter AH10EN-5A provides a firewall service, and adopts an IP filter. To prevent errors from occurring, an IP filter is used to limit network connections. Only devices whose IP addresses are within the range set by users can connect to AH10EN-5A, and other devices whose IP addresses are not within the range can not connect to AH10EN-5A. After the IP filter function is enabled, IP addresses are filtered according to data which are set.

 TCP keepalive period The TCP keepalive period by default is set to 30 seconds. 9.4.2 HWCONFIG─Function List 9-15 Option Description Static IP address Users assign an IP address, a subnet mask, and a default gateway. DHCP A DHCP server assigns an IP address, a subnet mask, and a gateway.