Ebyte ECAN-E01 User Manual Download Page 9

成都亿佰特电子科技有限公司

ECAN-E01 用户使用说明书

Copyright©2012–2022,成都亿佰特电子科技有限公司

9

4.1.1. SOCKET

ECAN-E01 can establish two sockets, namely Socket A1 and Socket B1. Among them, both channels support all
types of TCP Client, TCP Server, UDP Client, and UDP Server.
Two Sockets run at the same time. It can be connected to different networks at the same time for data transmission.

TCP Client

(1) TCP Client provides client connections for TCP network services. Actively initiate a connection request to the
server and establish a connection for realizing the interaction between CAN data and server data. According to the
relevant provisions of the TCP protocol, the TCP Client is the difference between connection and disconnection, so
as to ensure the reliable exchange of data. It is usually used for data interaction between devices and servers, and is
the most commonly used network communication method.
(2) When ECAN-E01 tries to connect to the server in TCP Client mode and the local port is 0, it will initiate a
connection with a random port every time.
(3) ECAN-E01 supports short connection function.
(4) Under the same local area network, if ECAN-E01 is set to static IP, please keep the IP of ECAN-E01 and the
gateway in the same network segment, and set the gateway IP correctly, otherwise it will not be able to
communicate normally.

TCP Server

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

establishes a connection for data communication when a connection request is sent. client device.
(2) It is usually used for communication with TCP clients in the local area network. It is suitable for scenarios
where there is no server in the local area network and there are multiple computers or mobile phones requesting
data from the server. Like TCP Client, there is a difference between connection and disconnection to ensure reliable
exchange of data.
(3) When ECAN-E01 is used as TCP Server, up to two-way Socket supports 14-way Client, and the local port
number is a fixed value and cannot be set to 0.

UDP Client

(1) UDP Client is a connectionless transmission protocol that provides transaction-oriented simple and unreliable
information transmission services. There is no connection establishment and disconnection, and data can be sent to
the other party only by specifying IP and port. It is usually used in data transmission scenarios where there is no
requirement for the packet loss rate, the data packets are small and the transmission frequency is fast, and the data
is to be transmitted to the specified IP.
(2) In UDP Client mode, ECAN-E01 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-E01.
(3) In UDP Client mode, if the target address is set to 255.255.255.255, it can achieve the effect of UDP broadcast
on the entire network segment, and can also receive broadcast data. The ECAN-E01 module supports broadcast
within the network segment, such as xxx.xxx .xxx.255 broadcast method.

Summary of Contents for ECAN-E01

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

Page 2: ...al Specifications 6 3 2 Mechanical dimension drawing and pin definition 7 4 Product function introduction 8 4 1 Basic function 8 4 1 1 SOCKET 9 4 1 2 Relay enable 10 4 1 3 CAN protocol conversion form...

Page 3: ...odes and software configuration parameters can be configured through the host computer 1 2 Features Integrate 2 CAN bus interfaces and use plug in terminal wiring mode Support CAN2 0A and CAN2 0B fram...

Page 4: ...evice IP and the default IP address of the device is 192 168 4 101 for example the computer IP address is 192 168 4 193 Open the computer s network debugging assistant set it to TCP Client set the rem...

Page 5: ...Device to peripheral communication is possible using the Network Assistant...

Page 6: ...fications Standard RJ45 support 10Mbps 3 Network protocol IP TCP UDP 4 Simple transparent transmission TCP Server TCP Client UDP Server UDP Client 5 TCP Server connection Supports up to 14 TCP connect...

Page 7: ...ECAN E01 Copyright 2012 2022 7 3 2 Mechanical dimension drawing and pin definition...

Page 8: ...ed access to the network yellow flashing 5 CAN1 ERR CAN1 data light green data error light red 6 CAN2 ERR CAN2 data light green data error light red 7 CAN2_H CAN2 channel bus high 5 08 phoenix head CA...

Page 9: ...nd establishes a connection for data communication when a connection request is sent client device 2 It is usually used for communication with TCP clients in the local area network It is suitable for...

Page 10: ...nd do not want to use TCP due to the high speed and frequency Note UDP Server cannot actively send data only after receiving data can it send data to the IP and port that have recently interacted with...

Page 11: ...ECAN E01 Copyright 2012 2022 11 to control the network utilization if it is too high data will be lost 4 1 3 CAN protocol conversion format...

Page 12: ...es received and not yet sent are encapsulated into an Ethernet packet and sent to the network port empty CANBuffer Optional empty This option is only valid in TCP working mode It determines whether to...

Page 13: ...Packet In network transparent transmission mode users can choose to let ECAN E01 send heartbeat packets Heartbeat packets can be sent to the network server The main purpose of sending to the network i...

Page 14: ...connections and no additional control means are required for screening The TCP short connection function is used in the TCP Client mode After the short connection function is enabled the information i...

Page 15: ...et mask and DNS server and does not support modifying the subnet mask and DNS server DNS Automatically follow the router to configure the DNS server to meet the needs of custom domain name resolution...

Page 16: ...ECAN E01 Copyright 2012 2022 16 Step 2 Select Device Upgrade Assistant and click Search Device...

Page 17: ...ECAN E01 Copyright 2012 2022 17 Step 3 After selecting the firmware click Upgrade to upgrade...

Page 18: ...need to press and hold the reload button for more than 5s 5 Important Notice Ebyte reserves the right of final interpretation and modification of all contents in this manual Due to the continuous imp...

Page 19: ...Maintainer 1 0 2022 06 10 First edition LM About us Sales Hotline 4000 330 990 Company Tel 028 61399028 Technical support support cdebyte com Official website www ebyte com Company Address Building B...

Reviews: