Chengdu Ebyte Electronic Technology Co., Ltd.
NE2-S1/NE2-S1-TB User Manual
Copyright © 2012–2024 , Chengdu Ebyte Electronic Technology Co., Ltd.
18
The subnet mask is mainly used to determine the network number and host number of the IP
address, to indicate the number of subnets, and to determine whether the module is in the subnet.
The subnet mask must be set. Our commonly used Class C subnet mask is: 255.255.255.0. The
network number is the first 24 digits, the host number is the last 8 digits, the number of subnets is
255, and the module IP is in the 255 range. within, the module IP is considered to be in this subnet.
The gateway refers to the network number of the network where the module's current IP address
is located. If you connect to a device such as a router when connecting to the external network, the
gateway is the route .
4.1.3Domain Name Resolution ( DNS )
Domain name resolution uses a domain name resolution ( DNS ) server to convert domain
names into network-identifiable IP addresses. In this way, when the IP address of the server is a
non-fixed IP address, you can try to use the domain name resolution function. In this way, no matter
how the server IP address changes, as long as the corresponding domain name remains unchanged,
the setting parameters of NE2-S1 do not need to be changed. The domain name resolution (DNS)
server address of the serial port server supports user customization. Domain name resolution can be
implemented through a custom domain name resolution server when the router's domain name server
is abnormal. The device will report to the custom domain name resolution (DNS) server during
domain name resolution. Parse the request and return the device connection parameters (usually IP
address ) after the parsing is completed.
When the target IP is a domain name, the maximum configurable domain name length is 256
bytes. When the target server cannot be connected, the module will continue to resolve the domain
name periodically.
In DHCP mode, the domain name resolution (DNS) server address is automatically obtained
(synchronizing the router's domain name resolution address) and cannot be modified.
In static IP mode, the default address of the domain name resolution (DNS) server is:
114.114.114.114 , or the domain name resolution server can be customized .
4.2Network working mode
4.2.1TCP server mode
TCP Server is the TCP server. In TCP Server mode, the device listens to the local port, accepts