Abstract: This paper introduces the structure and principle of a new intelligent network interface chip PS2000, and applies it to realize the connection between intelligent home appliances and the Internet. PS2000 is an important member of Webchip network interface series. It can realize the gateway interface between intelligent home appliances and PC platform, making it convenient for intelligent home appliances to access the Internet through PS2000, and designing such a system does not need to be familiar with network protocols. People are now in the information age, and the Internet has become an important part of the information society. Internet technology penetrates into the electronic devices used in people's daily lives and work, enabling people to quickly and easily access and publish all kinds of information. At the same time, people also want to remotely control household appliances through the Internet. Unfortunately, PCs and existing Internet technologies are too expensive to be used. Therefore, people hope to develop a new technology that can make full use of existing Internet technologies and resources, and can be applied to various smart devices and household appliances at a low cost. It mainly consists of core control unit, UART, embedded MODEM interface module, standard MODEM interface module, RS-485 transceiver control unit, LED display control, DS2401 interface, SPI interface module and so on. 2.4 Analysis and Comparison of Feasible Solutions for MCU Application System and Internet Connection Interactive Whiteboard For Teaching Interactive Whiteboard For Teaching,Smart White Board,Interactive Smart Whiteboard,Electronic Digital Portable Whiteboard ALLIN , https://www.displayapio.com
Keywords: network interface chip Internet Webchip PS2000 MCU Gateway
Today, various types of MCUs have been widely used in household appliances. Since the embedded microcontroller MCU (or microcontroller) is embedded in the relevant device and does not have its own independent housing, it is called an embedded system. Embedded systems can provide certain services and control functions, and can acquire and utilize some information. However, how to connect these electronic devices to the Internet so that people can remotely obtain information about these electronic devices and control their operation has become today's information. The focus of the community's concerns.
At present, many manufacturers at home and abroad are developing and promoting network chips. Webchip PS2000, a Web interface chip developed by Wuhan Liyuan Electronics Co., Ltd. and with independent property rights, is a "bridge" for connecting intelligent devices and home appliances to the Internet. It can extend Internet technology to a wider range of applications. 1 Structure and principle of PS2000
The PS2000 is an important member of the Webchip network interface family, which enables MCU applications to interface with PC-based gateways such as emGatewayTM.
The schematic structure diagram of the PS2000 chip is shown in Figure 1.
The core control unit mainly implements communication and protocol conversion; the DS2401 interface is an electronic label interface for connecting the DS2401 integrated circuit to provide a unique electronic identification for the electronic device; and the SPI serial interface module can be easily connected with the MCU application system; the status display interface Can directly drive LED; there are a variety of serial communication options: external RS-232, RS-485, embedded MODEM or standard MODEM interface circuit, RF or IrDA communication can also be used. The PS2000 is a 44-pin MQFP package with a single 5V power supply. It features small size, low power consumption, and compatibility with emGatewayTM network protocols.
The PS2000 has a network protocol interpretation and network protocol compiler module. When the MCU application system exchanges information with the PC gateway, the PS2000 acts as a network protocol for interpretation and conversion, and is controlled by 17 simple instructions; When communicating, it is responsible for standardizing or interpreting the network protocol. Since the PC gateway can provide HTTP service, it can interface with a computer browser (Netscape Internet Explore, etc.), so the MCU application system is very convenient to access the Internet through the PS2000, and can realize remote data collection. Management, remote device control, online diagnostics and services, and automatic connection of electronic devices, smart instruments, household appliances, etc. to the Internet. 2 MCU application system and Internet connection
2.1 PS2000 communicates with PC-based gateways
The connection between the PS2000 and the PC is very flexible. You can use one of the RS-232, RS-485, and MODEM to communicate 1 to meet the remote/proximity, point-to-point or point-to-multipoint communication requirements, through the PS2000 communication control unit. The communication control word can be selected from RS-232, RS-485, and MODEM communication types.
2.2 Introduction to MCUNet Protocol
The PS2000 internally solidifies the MCUNet protocol, which is compatible with the emGateway and OSGi protocols. The MCUNet protocol is a software protocol for establishing contact between an MCU electronic device and a Gateway on a computer platform. The MCUNet protocol is simple in structure and powerful in function.
The MCUNet protocol first specifies a master-slave relationship, Gateway is always the calling system (Master), and the electronic device is always authorized from the system Slave.Gateway to call back the electronic device (Callback).
Second, MCUNet defines the state capability parameter table (Capabilities Table) and variable tables (Variables Table) of the electronic device system. The information exchange process between the electronic device and the Gateway is based on the MCU system state performance parameter table and the variable table.
The function of the system state performance parameter table of the electronic device is to tell the Gateway some characteristic parameters of the electronic device system, such as the number of variables in the system variable table, the number of bytes occupied by the variable table, the size of the non-volatile memory, and the characters. The expression type of the string (ASCII, UNICODE or other).
The function of the system variable table of the electronic device is to list the information that needs to be exchanged between the MCU and the Gateway, and express it through a variable table. All exchange information between the MCU and the Gateway is within the scope of this variable table. If the information in the variable table is exceeded, Gateway will not accept it.
2.3 PS2000 and MCU interface
MCU application systems are generally an application system with a single chip as the core. Taking the MCS-51 microcontroller as an example, the connection between the PS2000 and the MCS-51 microcontroller is shown in Figure 2.
The first solution is to internally cure the TCP/IP protocol through the MCU application system. The advantage of this scheme: the hardware circuit is relatively simple, and it can directly dial the Internet without the support of other intermediate links. Disadvantages: Since the MCU uses the TCP/IP protocol chip, it requires a large-capacity program memory, and requires the MCU to have a higher running speed; the application system designer must be familiar with the TCP/IP protocol and related interfaces, and the software design is complicated. The workload is large; in addition, each electronic device must apply for an IP address, and the IP address resource is limited, and the use is also paid, and the cost is high.
The second option is to use the EMIT technology developed by emWare. According to emWare's electronic device network protocol, the emNet protocol is used inside the application system's MCU, and then connected to the Internet through emGateway. The advantage of this scheme: Since the complex network protocol is implemented on the PC through emGateway, the application system MCU only uses the simple emNet protocol, so the requirements for the MCU are low. Disadvantages: The application system design engineer must be familiar with the emNet protocol and related interfaces, and the original customer application system MCU does not necessarily meet the requirements, and the workload of the software and hardware design is still large; at the same time, the application system's single-chip processing emNet protocol is occupied. Certain system resources.
The third option is that the MCU application system is connected to the Gateway through the Webchip PS2000 network chip and then enters the Internet. The PS2000 internally solidifies the MCUNet protocol, which is compatible with the emGateway and OSGi protocols. The application system designer does not have to consider any network protocol at all. It only needs to interpret and execute the commands and data transmitted by the PS2000 to connect to the Internet. The MCUNet network protocol is completed by the PS2000. The same as the UART interface chip used in the design of the UART system, the PS2000 is used to connect the electronic device to the Internet, which can save the resources of the MCU and make the design simpler.
Through the above comparative analysis, it can be known that the third scheme is simpler and more convenient, and the cost is low. 3 Application System Figure 3 is a home air conditioning control application system In this system, in order to determine that the ID number of the designed electronic device is unique, it is necessary to add an electronic tag produced by DALLAS, and distinguish the different electronic devices by this unique ID number. Then identify the variables that need remote control. Now set 4 variables that need remote control: set the switch state of the air conditioner; select the working mode of the air conditioner, such as cooling, heating, ventilation, etc.; set the room temperature; set the timing time. After the control variables are determined, a variable table of the control system needs to be established, so that the information exchange between the home air conditioner and the PS2000 can be realized by only 17 simple instruction writing programs. After the home air conditioner is conveniently connected to the Internet via the PS2000 and emGateway, the home air conditioner can be remotely controlled via the Internet.
The Webchip PS2000 chip makes it easy to remotely control and manage all kinds of smart devices and household appliances through the Internet network. Moreover, the design of the system is simpler, the designers do not need to be familiar with the network protocol, and the performance requirements of the MCU in the application system are reduced. And the hardware requirements of other peripherals, reducing application hardware costs, and low cost, and shortening the hardware and software development cycle.
:
0 times
Window._bd_share_config = { "common": { "bdSnsKey": {}, "bdText": "", "bdMini": "2", "bdMiniList": false, "bdPic": "", "bdStyle": " 0", "bdSize": "24" }, "share": {}, "image": { "viewList": ["qzone", "tsina", "tqq", "renren", "weixin"], "viewText": "Share to:", "viewSize": "16" }, "selectShare": { "bdContainerClass": null, "bdSelectMiniList": ["qzone", "tsina", "tqq", "renren" , "weixin"] } }; with (document) 0[(getElementsByTagName('head')[0] || body).appendChild(createElement('script')).src = 'http://bdimg.share. Baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=' + ~(-new Date() / 36e5)];