background image

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

ECAN-E01S 用户使用说明

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

9

4.1.1. SOCKET

ECAN-E01S 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-E01S 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-E01S supports short connection function.
(4) Under the same local area network, if ECAN-E01S is set to static IP, please keep the IP of ECAN-E01S 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-E01S 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-E01S 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-E01S 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-E01S.
(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-E01S module supports broadcast
within the network segment, such as xxx.xxx .xxx.255 broadcast method.

Содержание ECAN-E01S

Страница 1: ...Chengdu Ebyte Electronic Technology Co Ltd ECAN E01S User Manual Copyright 2012 2022 Chengdu Ebyte Electronic Technology Co Ltd ECAN E01S ...

Страница 2: ...ications 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 format 11 4 1 4 CAN function 12 4 2 Special feature 13 4 2 1 Heartbeat Packet 13 4 2 2 Registration package 13 4 2 3 Short connection 14 4 2 4 Timeout restart 14 4 2 5 Clear cache 15 4 3 Reset 18 5 Related product...

Страница 3: ...nd other working modes 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 frame format in line with ISO DIS 11898 specification The baud rate of CAN bus communication can be freely programmable between 5Kbps 1Mbps Dual channel CAN transceiver support dual chan...

Страница 4: ...device 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 remote host IP to 192 168 4 101 and set the remote host port number to 8881 Connect the CAN1 of the ECAN E01S to the CAN analyzer When the ECAN E01S is connected to the CAN bus you only need to connect ...

Страница 5: ...Device to peripheral communication is possible using the Network Assistant ...

Страница 6: ...ifications 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 connections 6 How to get IP Static IP DHCP 7 DNS Support 8 User configuration Host computer configuration 10 Operating temperature 40 85 industrial grade 11 Working humidity 10 90 relative humidity non cond...

Страница 7: ...成都亿佰特电子科技有限公司 ECAN E01S 用户使用说明 书 Copyright 2012 2022 成都亿佰特电子科技有限公司 7 3 2 Mechanical dimension drawing and pin definition ...

Страница 8: ...S Power indicator red 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 CAN2_G CAN2 channel bus ground 5 08 phoenix head CAN2_L CAN2 channel bus low 5 08 phoenix head 8 Dial RES1 CAN1 channel 120 ohm resistance DIP switch Dial RES2 CAN2 channel 120 ohm re...

Страница 9: ...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...

Страница 10: ...te with the module and 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 data CAN Part 4 1 2 Relay enable The device has the function of two way CAN mutual transmission that is the relay function When the device is in relay mode the data received by CA...

Страница 11: ...成都亿佰特电子科技有限公司 ECAN E01S 用户使用说明 书 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 ...

Страница 12: ...vious All data frames 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 clear the data in the CAN port Buffer after the connection is established If not the data in the Buffer will be sent after the connection is established If clear when TCP connectio...

Страница 13: ...e 4 2 1 Heartbeat Packet In network transparent transmission mode users can choose to let ECAN E01S send heartbeat packets Heartbeat packets can be sent to the network server The main purpose of sending to the network is to maintain a connection with the server and it only takes effect in TCP Client and UDP Client modes ECAN E01S module supports custom heartbeat packet content up to 128 bytes Supp...

Страница 14: ...ections are useful 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 is sent If there is no data received from the serial port or network port within the set time the connection will be automatically disconnected The short connection function is turne...

Страница 15: ...y configure the subnet 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 Reconnect after disconnection Disconnection and reconnection The device periodically requests connection after disconnection to ensure that the connection can be reconnected in the...

Страница 16: ...成都亿佰特电子科技有限公司 ECAN E01S 用户使用说明 书 Copyright 2012 2022 成都亿佰特电子科技有限公司 16 Step 2 Select Device Upgrade Assistant and click Search Device ...

Страница 17: ...成都亿佰特电子科技有限公司 ECAN E01S 用户使用说明 书 Copyright 2012 2022 成都亿佰特电子科技有限公司 17 Step 3 After selecting the firmware click Upgrade to upgrade ...

Страница 18: ...dware to the factory settings you need to press and hold the reload button for more than 5s 5 Related products Product model product type Product features ECAN E01 CAN to Ethernet With electrical isolation ECAN 401 CAN to485 232 422 With electrical isolation ECAN S01 CAN to 485 232 422 No electrical isolation CAN U01 CAN analyzer With electrical isolation ...

Страница 19: ... and the latest version of the manual shall prevail 7 Revise History Version Revise Date Revision Notes Maintainer 1 0 2022 07 06 First edition LM 1 1 2022 09 13 Content revision XXN About us Technical support support cdebyte com Documents and RF Setting download link https www ru ebyte com Thank you for using Ebyte products Please contact us with any questions or suggestions info cdebyte com Phon...

Отзывы: