laitimes

A serial port to Ethernet chip Chip Internet of Things chip

author:Electronic knowledge

<h1 class="pgc-h-arrow-right" > IoT chip</h1>

The Internet of Things is considered by the industry to be the third revolution in the world's industrial technology after computers and the Internet, and its market size has reached the trillion level, and the prospects are infinitely bright. According to IDC estimates, there will be 25 billion devices connected to the Internet by 2021, and the Internet of Things chip, as the key to the Internet of Everything, is currently diversified in architecture and the market has not yet taken shape. The premise of the Internet of Everything is the connection between intelligent terminal devices and sensors, and its application scenarios and characteristics make the IoT chip biased towards low power consumption and high integration, and low power consumption enables developers to add functions to power-constrained devices while maintaining chip size and expanding application possibilities. The addition of highly integrated components can realize the plug and play of the chip, simplify application development, facilitate equipment replacement, and facilitate the rapid introduction of products to the market.

ZLAN1003 chip is such a plug-and-play Internet of Things chip It has a 10M/100M Ethernet interface (PHY function has been integrated internally), a normal rate UART, a high-speed UART and some configurable function pins. The basic function of the ZLAN1003 series is to realize the protocol conversion from UART to TCP/IP, that is, the data received by UART is transferred to the cloud/computer, and the data issued by the cloud/computer is forwarded to the UART. To achieve these functions, there is no need for user development programs, and the internal programs of ZLAN1003 are already solidified and can be used by user configuration. It can be regarded as a single-chip level serial port to network port chip, Internet of Things chip.

A serial port to Ethernet chip Chip Internet of Things chip

It already integrates various functions required for the Internet of Things (IOT), including:

1) Search and configure the parameters of ZLAN1003 through the network port;

2) Download the custom Web through the Network Port, and configure parameters such as IP address and baud rate through the Web;

3) Configurable ZLAN1003 working mode to automatically connect to 7 cloud servers;

4) ZLAN1003 can be configured with registration package and heartbeat package function;

5) Configurable as http mode, which can be directly connected with asp/php GET/POST instructions in the cloud;

6) Can be configured as "transcoding" function, can automatically send instructions from the serial port, collect instrument data and upload it in accordance with the customized format;

7) With Modbus gateway function, realize Modbus TCP to Modbus RTU;

8) Support SNMP protocol, you can convert various serial port protocols into SNMP protocols;

9) ZLAN1043N supports P2P intranet traversal communication, enabling networking through ID anytime, anywhere.

1.1. Block Diagram

A serial port to Ethernet chip Chip Internet of Things chip

Figure 2 ZLAN1003 block diagram

ZLAN1003 series internal firmware program has been cured, no need for secondary development, but can be upgraded through the network port. The external interfaces of the chip are mainly UART, Ethernet and IO interfaces. ZLAN1003 internal function module includes: the function of the chip parameter of the network configuration, the function of the serial port through similar AT instruction configuration, the function of configuration through the embedded Web, the function of IO control input and output pins, etc.

1.2. Features

1.1.1. Hardware Features

- High integration of single chip: the MAC and PHY interface of 10M/100M Fast Ethernet are integrated internally, without expanding RAM, FLASH, PHY, only external resistance capacitors are required.

- Auto Negotiation Full-duplex &amp;half duplex is supported. Supports automatic crossover line detection (MDI/MDIX)

- 3.3V operating voltage, 5V I/O signal tolerance. It can operate from dual 3.3V/1.8V supplies or from a single 3.3V supply.

- High-speed mode UART1 baud rate supports 1200~115200bps, low-speed mode UART1 supports 1200~38400bps. The data bits of UART1 support 5 to 9 bits, and the check digits can be five ways: no check, odd check, even check, mark, and space, and support hardware flow control and software flow control. UART2 supports 1200~921.6Kbps.

- 80-pin LQFP lead free package.

- Rich LED pins: TCP connection establishment indicator, network cable connection indication, data communication indication.

- Supports send control pin RS485_EN connected to RS485.

- -40°C to 85°C industrial grade chips.

1.1.2. Software Features

- Internal curing of full-featured serial port to TCP/IP software, no need for secondary development.

- Support TCP server, TCP client, UDP mode, UDP multicast. As a TCP client, tcp server-side functions are also supported. Supports 30 TCP connections as a TCP server and 7 destination IPs as a TCP client.

- Support chip connection on the sending MAC address function, convenient for cloud management devices.

- Provides a secondary development kit DLL library for computer-side search and configuration of chips.

- Support Web browser configuration, support DHCP dynamic access to IP, DNS protocol connection to the name server address.

- Support remote search of chips, configuration of chip parameters, and upgrade of chip firmware programs in the cloud.

- Support remote viewing of chip TCP connection status, serial port data transmission and reception status through software. The virtual serial port supports data monitoring function.

- Supports reading, writing, and controlling chip parameters by sending at-like AT instructions through serial ports.

1.1.3. ZLAN1043 Software Features

The following features are not supported by ZLAN 1003, only ZLAN1043/1043N:

- Support Modbus gateway function, support Modbus RTU to Modbus TCP. It can support storage-based Modbus, which can automatically collect device data and store it, and also supports modbus gateways in non-storage mode.

- Support multi-host function: Under the query mode of one question and answer, the network port side is supported to allow multiple computers to access the same serial device at the same time.

- Support custom heartbeat package and enrollment package function: can easily communicate with the cloud and device identification.

- Support TCP to establish a connection requires password authentication to ensure connection security.

- Support "transcoding" function, which can realize the translation of protocols for specific devices, so that different devices can be connected to a unified software platform.

- Supports http-mode data submission and delivery, and the cloud can directly use http GET instructions to interact with the device's serial port data.

- Supports controlling the level of 8 IO ports via arbitrary network commands.

- In addition, ZLAN1043N supports P2P mode network NAT traversal function.

1.3. Advantages

ZLAN1003 series has the following four advantages: zero software development, integrated rich IOT functions, some applications do not need external MCU, seamless docking of the original serial port program.

1.1.4. Zero software development

A serial port to Ethernet chip Chip Internet of Things chip

Figure 3 ZLAN1003 Application Diagram

ZLAN1003 series chip internal program does not require the user to develop the second time, docking the user MCU UART can directly send and receive data to the computer program on the network. The user usage steps are roughly as follows:

(1) Zhuolan provides a complete peripheral circuit diagram of ZLAN1003 chip, and the user solders ZLAN1003 to the circuit board according to this circuit diagram design.

(2) After the circuit board of ZLAN1003 is powered on, the RJ45 network port of the circuit board is connected to the network, and any computer in the network searches for devices through the network through ZLVircom or the program developed by the user himself, uses ZLVircom to view the IP and port of ZLAN1003, and configures the IP and baud rate if necessary. Connect the Socket (TCP/IP) software on your computer to the device IP and port.

(3) The relevant INDICATOR indicates whether ZLAN1003 and the computer have established TCP/IP.

(4) After the connection is established, the data sent by the Socket (TCP/IP) software to ZLAN1003 will be sent to the user's MCU through the UART, and the data of the user's MCU can also be sent to the computer Socket (TCP/IP) software through the UART.

(5) If necessary, the user MCU can also read the MAC of ZLAN1003 and modify the IP through AT-like instructions after powering up.

There is no software development work in the above steps, and even hardware development provides a complete circuit diagram. Only need to use ZLVircom to configure ZLAN1003's IP, baud rate and other parameters at one time to save it, and then it can be used, which truly achieves zero software development.

Generally speaking, the development of an Ethernet-based IoT product can be completed in 1 week. This zero software development feature provides a fast solution for the user's products to be quickly launched, and also avoids problems such as long software development time and unstable software development.

1.1.5. Integrate rich IOT functions

ZLAN1003 has integrated a lot of IOT function modules, reducing the user's workload of developing related IoT functions. Here are a few typical features:

(1) Registration package and heartbeat package function: When the IoT device and the cloud are docked, the self-ID needs to be sent to the cloud software to facilitate the cloud to identify the number of the device. The ZLAN1003/1043 has a variety of registration packages and heartbeat package methods.

(2) ZLAN1043 can be configured as http mode, which can be directly connected with the ASP/php GET/POST instructions in the cloud;

(3) ZLAN1043 can be configured as a "transcoding" function, which can automatically send instructions through serial ports, collect instrument data and upload them in accordance with customized formats; it is convenient to convert different devices into a unified cloud server format without the need for secondary development.

(4) With Modbus gateway function, Modbus TCP to Modbus RTU;

(5) ZLAN1043N supports P2P intranet traversal communication to achieve ID networking anytime and anywhere: PC monitoring of any intranet device can be realized in a cloudless environment.

1.1.6. Some applications do not require an external MCU

Since the ZLAN1003 chip does not require the MCU to be configured through serial port and SPI, the internal curing program can already achieve UART to TCP/IP, and ZLAN1043 has a powerful "transcoding" programming function, so users can omit the MCU, which can reduce the complexity of the circuit board and save costs.

Here are a few examples:

(1) Docking wireless serial port module: ZLAN1003 can be used as a gateway for data acquisition conversion into TCP/IP for some wireless modules. One end of this gateway is a wireless module, such as Bluetooth, Zigbee, Rola and other UART interface modules, and the other end is Ethernet. At this time, it is only necessary to directly connect the UART of ZLAN1003 and the UART of the wireless module, and there is no need to add an MCU.

A serial port to Ethernet chip Chip Internet of Things chip

Figure 4 Docking the wireless module

(2) Instrument acquisition: ZLAN1043 supports a powerful "transcoding" function, which has the programmable function of automatically collecting and timing the data sent in accordance with the customized format. At this time, as long as the "transcoding" configuration file is written to ZLAN1043, ZLAN1043 will send specific instructions and send them to the cloud in a fixed format, requiring an MCU to be added to the board for data acquisition and protocol conversion.

A serial port to Ethernet chip Chip Internet of Things chip

Figure 5 Instrument acquisition

(3) Serial port to network port gateway: ZLAN1003 itself is a powerful serial port server single chip, if you need to implement the serial port to network port gateway function, you need to add an MCU, and no software development is required. In addition, ZLAN1003 has RS485EN pins, which can support docking various types of 485 chips.

1.1.7. Seamless docking of the original serial port program

A serial port to Ethernet chip Chip Internet of Things chip

Figure 6 The user MCU serial port program has not been modified

Many RS232/RS485 devices originally have a UART interface in the MCU, and the MCU internal program has been developed, based on the following reasons, the user may not want to redevelop the MCU internal program:

(1) The MCU serial port program has been verified by application for many years, stable and reliable. If you redevelop an interface such as SPI, there will be stability considerations.

(2) Due to the short progress of R&D and insufficient R&D resources, if the original MCU program can be used directly, the progress will be accelerated and the R&D investment will be reduced.

(3) The original MCU program code has been lost or there is no technician in maintenance.

ZLAN1003 provides a good solution for the network upgrade of such RS485/232 devices, as long as the original part of the 232/485 chip docking with ZLAN1003 can be docked. No software development is required, only circuits need to be designed to complete the product upgrade.

In addition, ZLVircom equipped with ZLAN1003 has a virtual serial port function, if the user does not want to modify the host computer serial port software, it can also meet the requirements.