Ebyte ECAN-W01S User Manual Download Page 9

Chengdu Ebyte Electronic Technology Co.,Ltd

ECAN-W01S User

Manual

Copyright

©2012–2022, Chengdu Ebyte Electronic Technology

Co.,Ltd

communication mode.

(2) When ECAN-W01S attempts to connect to the server in TCP Client mode and the local port

is 0, it initiates a connection with a random port each time.

(3) In the same LAN, if ECAN-W01S is set as a static IP, please keep the IP and gateway of

ECAN-W01S in the same network segment, and set the gateway IP correctly, otherwise normal
communication will not be possible.

4.2.3. TCP Server Functions

(1) TCP Server is the TCP server. In TCP Server mode, ECAN-W01S listens to the local port,

accepts and establishes a connection for data communication when a connection request is sent,
and sends the data to all client devices that establish a connection with ECAN-W01S at the same
time after receiving the data.

(2) It is usually used for communication with TCP clients in the LAN. It is suitable for

scenarios where there is no server in the LAN and multiple computers or mobile phones request
data from the server. Like TCP Client, it has the difference between connection and disconnection
to ensure reliable data exchange.

(3) When ECAN-W01S is used as a TCP server, up to 8 clients can be supported in a dual socket,

and up to 4 clients can be supported in a single socket. The local port number is a fixed value
and cannot be set to 0.

4.2.4. UDP Client Functions

(1) UDP Client is a connectionless transmission protocol that provides simple and unreliable

transaction oriented information transmission services. Without connection establishment and
disconnection, you only need to specify an IP and port to send data to the other party. It is
usually used in data transmission scenarios where there is no requirement for packet loss rate,
the data packet is small, the transmission frequency is fast, and the data is to be transmitted
to the specified IP.

(2) In UDP Client mode, ECAN-W01S will only communicate with the target port of the target

IP. If the data does not come from this channel, the data will not be received by ECAN-W01S.

(3) In UDP Client mode, if the target address is set to 255.255.255.255, the effect of UDP

full network segment broadcast can be achieved, and broadcast data can also be received. ECAN-W01S
module supports broadcast within the network segment, such as the broadcast mode of xxx. xxx.
xxx. 255.

4.2.5. UDP Server Features

(1)

UDP Server does not verify the source IP address on the basis of ordinary UDP. After receiving

a UDP packet, it changes the target IP address to the data source IP address and port number.
When sending data, it sends the IP address and port number of the latest communication.

Summary of Contents for ECAN-W01S

Page 1: ...Chengdu Ebyte Electronic Technology Co Ltd ECAN W01S User Manual Copyright 2012 2022 Chengdu Ebyte Electronic Technology Co Ltd ECAN W01S...

Page 2: ...1 SOCKET Function 8 4 2 2 TCP Client Function 8 4 2 3 TCP Server Functions 9 4 2 4 UDP Client Functions 9 4 2 5 UDP Server Features 9 4 2 6 CAN function 10 4 2 7 CAN protocol conversion format 13 4 3...

Page 3: ...supports fixed common CAN baud rate and user defined CAN baud rate with the highest baud rate of 1Mbps At the same time the device has multiple working modes such as TCP Server TCP Client UDP etc 1 2...

Page 4: ...rch the device WiFi through the PC as shown in the following figure Click Connect to connect to the device s WiFi 2 Open the network debugging assistant of the computer set it as TCP Client set the re...

Page 5: ...cations IEEE802 11a b g standard 4 Network Protocol IP TCP UDP WiFi 5 Simple transparent transmission mode TCP Server TCP Client UDP Server UDP Client 6 TCP Server Connection A maximum of four TCP con...

Page 6: ...Chengdu Ebyte Electronic Technology Co Ltd ECAN W01S User Manual Copyright 2012 2022 Chengdu Ebyte Electronic Technology Co Ltd 3 2 Mechanical dimension drawing and pin definition...

Page 7: ...button press and hold for more than 5s to restore the factory 5 CAN2_ H CAN2 channel bus high 5 08 phoenix head CAN2_ G CAN2 channel bus ground 5 08 phoenix head CAN2_ L CAN2 channel bus low 5 08 pho...

Page 8: ...r working roles to STA mode the device can enable DHCP to obtain IP addresses and automatically configure the gateway subnet mask and DNS domain name server It can also set a static IP address for net...

Page 9: ...pported in a dual socket and up to 4 clients can be supported in a single socket The local port number is a fixed value and cannot be set to 0 4 2 4 UDP Client Functions 1 UDP Client is a connectionle...

Page 10: ...eceived CAN frame Number of subcontractin g frames 50 The value that can be filled in is 1 50 When the CAN port continuously receives data the interval is less than the packet time interval and the nu...

Page 11: ...ved and have not been sent before will be packaged into an Ethernet packet and sent to the network port category name default explain CAN configurat ion Standard frame upper limit 7FF HEX The upper li...

Page 12: ...than that of CAN transmission if the amount of data received by Ethernet is too large CAN needs to buffer transmission which can ensure no frame loss but such a large buffer may lead to poor real time...

Page 13: ...Chengdu Ebyte Electronic Technology Co Ltd ECAN W01S User Manual Copyright 2012 2022 Chengdu Ebyte Electronic Technology Co Ltd 4 2 7 CAN protocol conversion format...

Page 14: ...group can be enabled or disabled In the masked bit mode the two registers are respectively the identifier register and the masked register which need to be used together Each bit of the identifier re...

Page 15: ...register n CAN_ FxR1 31 24 CAN_ FxR1 23 16 Identifier register n 1 CAN_ FxR2 15 8 CAN_ FxR2 7 0 Mask bit register n 1 CAN_ FxR2 31 24 CAN_ FxR2 23 16 mapping STID 10 3 STID 2 0 RTR IDE EXID 17 15 Whe...

Page 16: ...ode without entering the configuration software The command format is as follows instructions CAN baud rate 3F 00 FF 00 00 00 00 FF 00 00 00 00 FF 1000K 3F 01 FF 00 00 00 00 FF 00 00 00 00 FF 800K 3F...

Page 17: ...ion In the network transparent transmission mode the user can choose to let the DTU send the registration package to the server The registration package is used to enable the server to identify the da...

Page 18: ...4 Support DHCP and domain name resolution 4 4 1 DHCP The device can automatically obtain the IP address through the router and automatically configure the gateway subnet mask and DNS server It does no...

Page 19: ...cally after disconnection to ensure that the connection can be restored in case of accidental disconnection note that the device is not restarted 4 6 Network interface upgrade Firmware can be upgraded...

Page 20: ...Chengdu Ebyte Electronic Technology Co Ltd ECAN W01S User Manual Copyright 2012 2022 Chengdu Ebyte Electronic Technology Co Ltd Step 3 After selecting the firmware click Upgrade to upgrade...

Page 21: ...nual 2 Due to the continuous improvement of the hardware and software of the product this manual may be changed without further notice and the latest version of the manual shall prevail 3 Everyone is...

Page 22: ...h one by one Please understand 6 Revision History edition Revision Date Revision description Maintainer 1 0 2022 06 10 First edition LM 7 About us Sales hotline 4000 330 990 Company telephone 028 6139...

Reviews: