background image

Chengdu Ebyte Electronic Technology Co.,Ltd

ECAN-W01S User

Manual

Copyright

©2012–2022, Chengdu Ebyte Electronic Technology

Co.,Ltd

4. Product Function Introduction

4.1. WiFi function

4.1.1. AP mode

Access Point is referred to as AP mode for short. It is similar to a router, allowing wireless

devices to connect and establishing TCP/IP based server, client, and UDP communications. In this
mode, four stations can be connected, and each TCP server supports up to four TCP sockets. By
default, the device is in AP mode. The SSID is ECAN-W01S-XX-XX-XX-XX (followed by the device MAC
address). The default secret key is 12345678.

4.1.2. STA mode

Station mode is called STA for short. The device in this role does not provide connection,

but can only connect to Access Points or routers. The device in the Station role supports TCP
server, TCP client, and UDP; Under the TCP server, each channel supports a maximum of four sockets.
When the device switches from other 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 networking.

4.2. Basic function

→ Ethernet part

4.2.1. SOCKET Function

ECAN-W01S can establish two sockets, namely Socket A1 and Socket B1. Both of them support

TCP Client, TCP Server, UDP Client and UDP Server.

Two sockets run simultaneously. It can be connected to different networks at the same time

for data transmission.

When the device SOCKET is a TCP Server, each SOCKET can access up to four links at the same

time, and two SOCKET can have up to eight links.

4.2.2. TCP Client Function

(1) TCP Client provides client connection for TCP network service. Initiate a connection

request to the server and establish a connection to realize the interaction between CAN data and
server data. According to the relevant provisions of the TCP protocol, the TCP client has the
difference between connection and disconnection to ensure reliable data exchange. Usually used
for data interaction between devices and servers, it is the most commonly used networking

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Отзывы: