Abstract: The scheme, composition, hardware configuration, software design, working principle, function and technical performance of the home control system are discussed. The data collection through the single chip microcomputer is given, and the data is packaged into the Ethernet protocol package through the network protocol processor and sent to the Ethernet, so as to realize the remote control scheme based on the Ethernet.
1 System introduction
The development of home intelligent control system is mainly based on short message technology, automatic control technology, computer technology, digital communication technology and encryption technology. The system uses related networks, computer systems and controllers, using wireless networks and wired networks as basic control instructions and data information transmission methods to achieve wireless remote control and data transmission of mobile phones, and through a dedicated SMS control center and service center, to Provide a full range of digital services for family and community management. The home intelligent control system has the functions of mobile phone remote control, automatic alarm, calling community service, property management and so on. According to the needs of the user group, it can also be unlimitedly extended to life networking services, smart office and other directions.
In general, as long as the device is connected to the Internet / Internet, in principle, as long as the TCP / IP network protocol is implemented. TCP / IP protocol and its application is a complex system engineering. The establishment of the agreement has to go through a rigorous design process, and the implementation of the full set of agreements is relatively complicated. It is difficult to implement this protocol in an embedded system. In practical applications, if the protocol is to be fully implemented, a more reasonable solution is to directly use the integrated TCP / IP protocol chip to separate the system central control unit and the TCP / IP protocol processing unit.
On the other hand, the original TCP / IP can also be streamlined, while only retaining some protocols required by the actual application system, so that the core chip can not only realize the network data transmission task, but also complete the task monitoring. Because, simplifying the original TCP / IP protocol can greatly reduce the difficulty of system implementation, and at the same time can improve the efficiency and reliability of the system.
figure 1
2 Working principle of the system
Figure 1 shows a block diagram of a home network control system based on the E512 network protocol processor. In the figure, the three tables of data in the family are used as acquisition signals, which are processed by the sample-and-hold circuit and sent to the single-chip microcomputer. It becomes a TCP / IP protocol packet, and finally sends the data packet to the Ethernet through the RTL8019AS Ethernet controller. This system uses CPLD chip EPM7128S as the decoding and driving circuit. Since home user terminals generally do not have high requirements for the data exchange rate (below 1MB / s), general high-speed single-chip microcomputers can be used to write TCP / IP protocols, which can not only meet the functional requirements, but also reduce costs, users are also easy Accept this price.
3 TCP / IP protocol analysis chip E5122
E5122 is the Feihong series network protocol processor developed by Shanghai Exquisite Technology Company. The external crystal frequency is 22.114MHz, and the operating voltage is 5V. It can provide API interface for hardware to implement TCP / IP protocol, and can communicate with user end by I2C protocol or RS-232 interface. Its communication interface supports MPU with I2C interface, and also provides I2C driver for MPU without I2C interface. program. The interface between E5122 and the network is an Ethernet interface, which can be connected to Ethernet through the Ethernet control chip RTL8019. Its serial rate can be up to 115.2kbps, and can achieve real-time transmission.
E5122 is a dedicated chip that completes TCP / IP protocol and can be used to implement protocol conversion between Ethernet and serial ports. The device can provide a complete network communication solution for serial devices with only an external MCU. The MPU used in this system is 89C52 single-chip microcomputer, and only need to simply call the API function in the single-chip microcomputer program. Figure 2 shows the block diagram of E5122. The device can be used as a server side, that is, when connecting to the network for the first time, the client side actively requests to connect to the server side as a passive side to listen, and at the same time accepts active query access from remote clients in the LAN intranet and returns the device information to the client The device can also be used as a client to actively communicate with the host in the local area network or on the Internet. E5122 uses 32KB RAM outside the chip to buffer data for Ethernet. It uses 256 bytes (at least 256 bytes) of serial EEPROM (I2C bus interface) to store system parameters. Users can communicate with E5122 through the serial port. The function of E5122 is to complete TCP / IP protocol and serial port communication protocol, and at the same time support the interaction between ordinary serial port and user equipment, and can achieve network connection through external RTL8019AS control chip.
4 hardware circuit design
4.1 Interface circuit
In specific use, due to the limitation of the single chip microcomputer, the JP pin can be connected to a high level by a jumper in the design; and the interface of E512 and RTL8019AS is used to transmit network data.
When the system is running for the first time, E512 will initialize RTL8019AS, and set its working mode and interrupt source. When RTL8019AS receives data, it will trigger E5122 interrupt. At this time, E5122 will select the register address and memory address of RTL8019AS through A8 ~ A13 and A15 to control and realize the reading of data. When data is sent to RTL8019AS through E5122, the system will Set the corresponding register of RTL8019AS through the address line to send data. The specific interface circuit is shown in Figure 3.
4.2 I2C bus data storage
I2C bus is the abbreviation of INTER INTEGRATED CIRCUIT BUS, namely "Internal Integrated Circuit Bus". The I2C bus is a serial communication interface specification first proposed by Philips. The bus uses a serial data line? SDA? And a serial clock line? SCL? For data transmission between the master and slave devices. The interface is very simple.
The data transmission rate on the I2C bus can reach 100 kbit / s, and up to 400 kbit / s in fast mode. In I2C bus transmission, when SCL is high, SDA changes from high to low as a starting condition; and when SCL is high, SDA changes from low to high is a stopping condition. Both SDA and SCL are bidirectional transmission lines. The data on the SDA line must be stable during the period when the clock is high. Only when the clock signal on the SCL line is low can the state of the data line be changed. Each byte output to the SDA line must be 8 bits, and the bytes transferred each time are not limited, but each byte must have an answer bit.
4.3 Isolation coupling transformer
Isolation transformers of 1 to 1 should be used in the design, and at the same time, the induced voltage caused by lightning should not damage the subsequent circuit. In addition, balanced-unbalanced conversion isolation, transmission, and matching must be completed.
4.4 Reset and watchdog circuit
The watchdog circuit can reset or reset the system when the program runs or crashes, so that the system can resume normal operation. The circuit is shown in Figure 4. The circuit uses MAX813L to complete the power reset and watchdog functions.
5 Several technical issues that should be noted in application
In the actual application process, the following issues should be noted:
(1) Transmission speed
In the system, the data exchange speed between the upper PC and the lower measurement and control equipment depends on the transmission speed of the Ethernet interface module; while its transmission speed depends on the speed of the Ethernet interface chip, the processing speed of the single-chip computer, and the equipment exchange The way of data.
The measurement and control system generally transmits control commands and measurement data, and the data volume is not large? Modules and measurement and control equipment can be connected by serial ports such as RS-232, RS-485, CAN, and the communication rate is only a few tens of kilobytes / s or hundreds of kb / s. The speed of the Ethernet interface chip (10Mb / s) and the speed of the microprocessor are much greater than the serial communication speed. Therefore, the transmission rate mainly depends on the communication rate of the serial port.
When the transfer rate is very high (such as transferring images), the serial interface can no longer be used for connection between the Ethernet interface module and the measurement and control equipment, but must be connected in parallel. The transmission rate at this time depends on the processing speed of the microprocessor. It is recommended to select some high-speed microcontrollers, such as P89C52RX series or SX series.
(2) IP address
If the measurement and control equipment in the Ethernet measurement and control system enters the Ethernet through the module, it must determine its own IP address. There are two ways to obtain an IP address: one is to obtain the IP address dynamically, and the other is to assign the IP address fixedly. Because E5122 does not support the RARP reverse address resolution protocol, it is impossible to obtain a dynamic IP address, and only a fixed IP address can be used.
(3) Security control
When measuring and controlling in a small closed LAN, the security issues are generally not large. However, when performing measurement and control on a wide area network or even the Internet, security control is crucial. To this end, the 48-128-bit user password should be used to protect the safety of the measurement and control equipment, so that legitimate users can modify and set their own passwords. In this way, even if the network illegal user steals the IP address, since there is no user password, the device cannot be operated.
(4) Real-time problems
The measurement and control system must emphasize its real-time performance on many occasions, but Ethernet is not a real-time system. Its carrier sense collision detection (CSMA / CD) communication mode determines that the transmission of IP packets in Ethernet will be delayed or even lost. This is the biggest disadvantage of using Ethernet to form a distributed measurement and control system. However, the speed of Ethernet is getting faster and faster. In 100M or even Gigabit networks or some small closed LANs, when the busyness of the network is greatly reduced, there is almost no collision of IP packets, so transmission delays and packet loss It will be greatly reduced without affecting the normal work of the measurement and control system. At the same time, if the response protocol can be added on the network layer of the system, the problem of packet loss can be basically solved.
(5) Connection method
The module has two sockets: one is RJ-45 socket, which can be directly connected to Ethernet by twisted pair; the other is 25-pin socket, which contains RS-232 or RS-485 bus interface.
6 Conclusion
With the advent of the 21st century? Mankind has gradually entered the information age. The networking of home appliances will bring new demands to the already saturated home appliance consumer market. Further research in this area has caused tremendous changes in people's lifestyles, work styles, and ways of thinking, while also stimulating people's increasing demand for various data sources and network services. Therefore, the scheme introduced in this article undoubtedly has certain practical and commercial value.
Follow WeChat
Download Audiophile APP
Follow the audiophile class
related suggestion
Power regulators usually use linear voltage regulators (such as LM7805), which has the advantages of adjustable output voltage and high precision ...
The MMA7361 acceleration angle sensor is used to measure the angle. The acceleration angle sensor calculates the device by measuring the acceleration caused by gravity ...
Three-phase input voltage and current, three-phase output voltage and current, and voltage and current monitoring of multiple power semiconductors require more test input channels to achieve ...
According to the design requirements of the micro-displacement control system, first of all, the positioning accuracy of the control system should be guaranteed, and secondly, the structure should be simple, the cost is low, and the operation is simple ...
The robot control system is an important part of the robot, which is used to control the operating machine to complete specific work tasks. The driving system is the robot ...
The excitation input is not noise, but the voltage level Vin, which is injected as an input variable to start the oscillator. The direct channel consists of the transfer function H (s) ...
Modern control theory is a basic course for undergraduates and graduate students, and it is also an active field for academic researchers. Essentially, control theory is highly theoretical ...
227 automatic instrumentation and control system terms
According to a report on February 1, according to IEEE Spectrum, robot expert Jake Bruce of Simon Fraser University in Canada ...
This article mainly introduces the design of TMS320F28027 and L298N suspension motion control system. Take TMS320F28027 ...
1. Project Overview 1.1 Introduction The greenhouse is a kind of environment that can change the growth environment of plants, create the best conditions for plant growth, and avoid seasonal changes in the outside world ...
0 Introduction With the continuous development of avionics, the requirements for reliability are getting higher and higher. The display control system is applied in the avionics control system, the main ...
Stepper motor is an open-loop control element stepper motor that converts electrical pulse signal into angular displacement or linear displacement. In the case of non-overload, the motor speed, stop ...
Programmable logic controller (PLCProgrammable Logic Controller), referred to as programmable control ...
With the rapid development of the water treatment process, its control methods are becoming more and more complicated, and for large-scale ultrafiltration sewage treatment systems there will be more automatic control ...
The ability of PLC to control the switch quantity is very strong. The number of entry and exit points controlled is less than ten points, dozens of points, and more can be hundreds, thousands, or even tens of thousands of points ...
In this design, the water tank of the liquid level control system is taken as the research object, the liquid level of the water tank is the controlled quantity, and the outlet valve is selected as the actuator of the control system ...
With the development of society in our country, automated control was implemented very early. And in China, the liquid level control system has also been widely used, especially the water tank liquid level control ...
The function of the robot control system is to receive the detection signal from the sensor. According to the requirements of the operation task, the motors in the mechanical arm are driven like our ...
With the application and promotion of the Internet of Things technology in the agricultural field, our agricultural production has become more intelligent and automated, and smart agriculture will also be widely used. ...
The motion part of a rectangular coordinate industrial robot is composed of three mutually perpendicular linear movements (ie PPP), and its working space figure is rectangular ...
PID = port ID, in STP (spanning tree protocol), if the BID and path cost in the BPDU received on the port ...
Abstract: Mainly introduces the design of the hardware and software parts of the automotive air-conditioning control system based on STC12C5A60S2 single-chip ...
The DMX512 protocol was first developed by USITT (American Theatre Technology Association) into a way to control the dimmer from the console with a standard digital interface ...
The missile attitude control system is a complete set of devices that automatically stabilize and control the missile's movement around the center of mass on the missile. Its function is to ensure the stable flight of the missile, and according to the system ...
Use Saber simulation software to complete the research and analysis of the brushless DC motor control system. Respectively the position sensor, electronic commutator, ...
When discussing control systems, I / O point is the term most often heard. It refers to input / output points, I stands for INPUT, refers to input, ...
This article introduces the PMSM drive control system based on ZynqSoC. The control system is implemented using a combination of ARM and FPGA ...
The control devices have different structures and are usually perfectly configured, such as the steering wheels, acceleration and brake pedals and "gear lever" type on automatic transmission vehicles ...
DCpower generally refers to the source with the actual voltage, the others are labels (the label is connected to the source by default in some simulation software) VDD ...
At this year's CES, I'm afraid I haven't dared to compete with Amazon Alexa to say that it is a real star product. Its soul is almost at hand ...
Amazon's AmazonGo skip-the-line store attracted the attention of global media once it was launched. In addition to marveling at Amazon's amazing brain, people also ...
With the development of science and technology, the field of human research activities has expanded from land to sea floor and space. Using mobile robots for space detection and development, has ...
With the acceleration of China's modernization process, the traffic volume of various parking lots is increasing day by day, and its daily security and management work is also becoming increasingly heavy. To better match each parking ...
The flight control system collects the flight status data measured by each sensor in real time, and receives the control commands transmitted by the uplink channel of the ground measurement and control station transmitted by the radio measurement and control terminal ...
Electric power steering system is the development direction of automobile steering system. The system is directly provided by electric power steering machine, and the hydraulic power steering system is omitted ...
The auxiliary brake system includes two exhaust brake valves. The butterfly valve in the exhaust system increases the exhaust back pressure to reduce the speed of the power system. In the engine ...
This paper presents an intelligent data acquisition system based on Lonworks bus technology. In this system, each measurement and control unit is constructed with ...
The stepper motor is an open-loop control motor that converts electrical pulse signals into angular displacement or linear displacement. The total number of input pulses controls the total rotation angle of the stepper motor.
The solar cell module converts solar energy into electrical energy, which is controlled and protected by the controller, and the electrical energy is converted into chemical energy and stored in the storage battery. When using electricity ...
In the UAV, the flight control system is the main component, and the attitude stabilization control is an effective method for the UAV to successfully perform various tasks. This article takes actual ...
In response to the current situation of foreign capital monopolizing the domestic market, experts suggest that there are various ways to seek "breakthrough" and catch-up: First, we must strengthen the international robotics ...
A telephone remote control system is designed. The system is based on AT89C2051 MCU and MT8870 dual tone multi-frequency decoding integrated circuit ...
The block diagram of the 8-channel color lamp control system is shown in Figure 1. The clock generation circuit generates a clock signal with a frequency of about 1 Hz, and the output signal of the clock generation circuit ...
The Android operating system is a mobile operating platform developed by Google based on the open source Linux operating system ...
The hardware of the AC servo drive system is the basis of software design, so the main task of this article is based on the characteristics of the industrial robot servo drive system.
This paper aims at the vibration of friction and saturation caused by the nonlinear link in the low sampling rate closed-loop control system.
As people's concepts of energy use and environmental protection become stronger and stronger, there is an increasing demand for humanized and personalized products. Energy saving, environmental protection and intelligence are gradually ...
In recent years, the number of myopia has gradually increased. In order to more accurately understand the degree of myopia in myopia patients, prescribe a reasonable prescription for glasses and optometry for myopia ...
With the rapid development of e-commerce, the development of China's instrumentation industry has also never been prosperous. According to relevant data, China's instrumentation industry ...
With the development of computer technology, communication technology and control technology, field bus technology is gradually widely used in industrial control systems, also in the textile industry ...
Mentor Graphics Corporation has MontaVista automotive technology platform and Ment ...
In order to upgrade the existing elevator control system, a design of an elevator main control system with LPC2294 as the main control chip is given. Preemptive software ...
This article introduces the design of an LED intelligent lighting control system, and gives the system's hardware and software design and control process. The system uses STC12C5 ...
Under the premise of fully considering the cost and stability requirements of industrial control, this design uses PIC single-chip microcomputer as the control core, and then assists the relevant external circuit, ...
Although the current application of NFC technology is focused on electronic payment, in the future, NFC technology will be further integrated into access control solutions, thereby bringing security market ...
This paper introduces a smart car control system based on electromagnetic sensor path recognition. The system uses Freescale 16-bit microcontroller MC9S1 ...
At present, the world's largest electric vehicle charging and replacement power station with the largest service capacity and the most environmentally friendly demonstration effect is officially put into operation
Faced with various complex signals and changing application requirements, it is very important to choose a suitable control system. This article will introduce DVC in a comparative way ...
This system uses low-cost DSP-SPCE061A as the main control chip, compared with the traditional PC-based voice recognition system, ...
The high-level tapping machine is mainly used in the field of medium (thick) plate processing in the iron and steel industry, solving the problem of lower surface slippage in the production process of medium (thick) plate.
When developing instrument control systems, driver software is often overlooked. The driver software is the communication layer between the processing instrument and the application software.
When you are facing a variety of instruments connected to the bus, it may be difficult to make the most suitable choice for your application. It can be said that each bus has its own advantages ...
The intelligent vehicle-mounted instrument designed in this paper is not simply connected to the sensor, but connects the entire vehicle into a network structure through the CAN controller. Vehicle Department ...
Honeywell recently announced the launch of its tenth generation in-vehicle mobile terminal (VMC), Thor VM2. This product can be used for supply chain mobile operators ...
This paper designs the communication module in the anti-pinch window control system based on the LIN2.1 protocol. It can be seen that the module can well satisfy the user's data ...
The three-phase alternating current and leakage monitoring module UN 231-0BH22-0XA0 used in this system is a major highlight. The module exchanges ...
PMC primo控制系统是一ç§é«˜æ€§èƒ½çš„产å“系列,能够满足å„ç§è¦æ±‚,实现全自动化功能,包括完æˆå„ç§å¤...
电力线通信总线技术(PLC-BUS)是一ç§å…·æœ‰é«˜ç¨³å®šæ€§åŠè¾ƒé«˜ä»·æ ¼æ€§èƒ½æ¯”çš„åŒå‘电力线通信总线技术,它主...
在车载å«æ˜Ÿé€šä¿¡ä¸ï¼Œç”±äºŽä½Žè½®å»“车载天线具有良好的éšè”½æ€§å’Œä½¿ç”¨æ€§ï¼Œåº”用å‰æ™¯è¾ƒä¸ºå¹¿æ³›ã€‚但è¦å®žçŽ°æ€§ä»·æ¯”达到最...
2012å¹´12月03日,å°è¾¾DVCS分布å¼å›¾åƒæŽ§åˆ¶ç³»ç»Ÿä¼ æ¥æ·æŠ¥ï¼åœ¨ç”±ä¸å›½å®‰å…¨é˜²èŒƒäº§å“行业å会主办的2...
凯迪拉克XTSå°†é…备数å—化仪表盘2012-12-06 19:38:45 æ¥æºï¼šç›–世汽车网基于CU...
作为DeltaV电å布线技术的延伸,艾默生过程控制有é™å…¬å¸æŽ¨å‡ºçš„本安型特性模å—(IS CHARMs)...
1引言轮å¼ç§»åŠ¨æœºå™¨äººæ˜¯æœºå™¨äººç ”究领域的一项é‡è¦å†…容.它集机械ã€ç”µåã€æ£€æµ‹æŠ€æœ¯ä¸Žæ™ºèƒ½æŽ§åˆ¶äºŽä¸€ä½“。在å„...
NI Single-Board RIO通用逆å˜å™¨æŽ§åˆ¶å™¨(General Purpose Inver...
DCS是什么æ„æ€ï¼Ÿ DCS是计算机技术ã€æŽ§åˆ¶æŠ€æœ¯å’Œç½‘络技术高度结åˆçš„产物,是目å‰æœ€å…ˆè¿›ã€æœ€åˆç†çš„过程...
éšç€æ—¶ä»£çš„å‘展,洗衣机已æˆä¸ºäººä»¬æ—¥å¸¸ç”Ÿæ´»ä¸çš„必需å“。目å‰å…¨è‡ªåŠ¨å•ç’ã€æ»šç’洗衣机已日æ¸ç››è¡Œï¼Œä½†å…¶ç»“æž„å¤...
介ç»äº†ä¸€ç§åŸºäºŽè“牙技术的方å‘盘控制系统设计方案。利用è“ç‰™ä¼ è¾“æŠ€æœ¯å®žçŽ°æ±½è½¦æ–¹å‘盘é¢æ¿å¼€å…³ç”µå化优化设计...
身高体é‡æµ‹é‡å™¨æŽ§åˆ¶ç³»ç»Ÿç”µè·¯å›¾å¦‚下图所示:
MCU控制系统电路原ç†å›¾å¦‚下图所示:
Chemical Dilution Dispenser,Chemical Dilution Machine,Chemical Dilution Equipment,Acid Dilution Equipment
Zhijiang BSL battery technology service company , https://www.bslbatteryservice.com