Chengdu Ebyte Electronic Technology Co.,Ltd. E90-DTU(xxxSLxx-ETH)_V2.0 User Manual
Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co.,Ltd.
26
You need to manually configure the IP (factory default: 192.168.3.7), subnet mask (factory default:
255.255.255.0), gateway (factory default: 192.168.3.1), DNS server (factory default: 114.114.114.114) and other
parameters of the device, the configuration should ensure that the communication device is located in the same
network segment and ensure to avoid IP conflict, otherwise the device can not be normal passage and web
configuration.
4.3.2 Device port
Random ports:
TCP clients, UDP clients, HTTP clients, and MQTT clients can configure the native port to 0 (using a random
native port), and server mode cannot use a random port, otherwise the client cannot establish a connection correctly
(the device is not listening on the port correctly).
Using a random port connection can quickly re-establish the connection when the device accidentally
disconnects from the server, preventing the server from rejecting the connection due to four incomplete waves, and
it is recommended to use a random port in client mode.
The device will automatically configure random ports when configuring TCP client, HTTP client, and MQTT
client modes on the web page, and can be customized to cancel.
Static port:
Device fixed port (factory default use: 8886), TCP server mode device listens to the configured port, accepts
the client's connection request and establishes a connection for data communication, TCP client mode device fixed
port to initiate a connection request.
4.3.3 Subnet mask & gateway configuration
The subnet mask is mainly used to determine the network number and host number of the IP address,
indicating the number of subnets and a flag to determine whether the module is in the subnet.
The subnet mask must be set, we commonly use the class C subnet mask: 255.255.255.0, the network number
is the first 24 bits, the host number is the last 8 bits, the number of subnets is 255, the module IP in the range of 255,
the module IP is considered to be in this subnet.
The gateway is the network number of the network where the module's current IP address is located. If you
connect to an external network with a router or other device, the gateway is the route.
4.3.4 Domain name resolution (DNS)
Domain name resolution converts domain names into network-identified IP addresses through domain name
resolution (DNS) servers. The domain name resolution (DNS) server address of this product supports user-defined,
which can achieve domain name resolution by customizing the domain name resolution server in case of domain
name server abnormality, and the device will report the resolution request to the custom domain name resolution
(DNS) server when the domain name resolution is done, and return the device connection parameters (usually IP
address) after the resolution is completed.