1 System overall structure The
overall structure of the system is shown in Figure 1. Each temperature and humidity test control module has a network interface and is connected to the central server through a router. The central server includes the IIS information server system and the SQL database server. The former is responsible for communicating with the temperature and humidity test nodes in the online state to obtain the temperature and humidity measurement results, and then broadcasts the received temperature and humidity detection data to customers through the Internet in the form of a website, and stores the received data (test node number, temperature, humidity, measurement time, etc.) in the SOL database. At the same time, customers can send instructions to each test control module through the central server according to different permissions to change a certain temperature and humidity control parameter.
The structure of the temperature and humidity test module is shown in Figure 2. Its structure includes: main controller (MCu), temperature and humidity sensor, digital display and button, Flash memory, network transmission module, clock device, and buzzer. The test control process is: MCU measures temperature and humidity once every certain period of time. If it is connected to the central server, the result is uploaded to the central server through the network, otherwise the result and the current time are stored in the Flash on the board; then the humidity measurement value is compared with the user set value, and different processing is performed according to the comparison result. For example, when the test humidity is higher than the set value, the humidity is reduced by controlling the dehumidification material to absorb moisture. If the set humidity value is reached, the humidity in the cabinet is kept within the set range through certain feedback control. If the temperature or humidity is higher than the dangerous threshold, the system will alarm through the buzzer.
2 Temperature and humidity test control module
2.1 Selection of temperature and humidity sensor
Since the temperature and humidity measurement accuracy is the key to determine the system performance, the digital temperature and humidity sensor SHl75 produced by Swiss Scnsirion Company is selected here to realize temperature and humidity measurement. The characteristics of this device are: before leaving the factory, each sensor has been precisely calibrated in an extremely accurate humidity chamber, and the calibration coefficient is programmed into the corresponding program and stored in the calibration memory; highly integrated, with internal integration of temperature measurement, humidity measurement, signal conversion, A/D conversion and heater functions; provides two-wire digital serial interface SCK and DATA, the interface is simple, supports CRC transmission verification, and has high transmission reliability; the measurement accuracy is programmable, built-in A/D converter (resolution is 8 to 12 bits, which can be selected by programming its internal registers), high measurement accuracy, and because of the integrated temperature and humidity sensor, it can provide temperature-compensated humidity measurement values and high-quality dew point calculation functions, etc., with humidity accuracy within ±4% and temperature accuracy within ±0.4℃.
2.2 Detection data storage solution
When the temperature and humidity detection control module is not connected to the control host, the detection data needs to be saved for inspection. Therefore, the system uses SST25VF016B with a storage capacity of 16 Mb, which belongs to the NAND type non-volatile flash memory. This memory has the characteristics of fast speed, low cost and high density, and is widely used in sensor measurement systems. Its read/write operation is in bytes, while the erase operation is in blocks. Read, write and erase operations are all completed through commands; byte erasure is not possible, and a whole block needs to be erased before each rewrite operation; the number of erases for each block is limited to about 100,000 times. According to the needs of the system to store data types, the Flash is divided into two parts: one part (2 blocks, 32 kh each) stores the system information of the control block, including number, temperature correction information, humidity correction information, humidity control range, etc.; the other part (62 blocks, 32 kb each) stores real-time temperature measurement results, including measurement time, temperature, humidity, and whether the record is uploaded. The control algorithm of Fhash erasing and writing is as follows: when the system is turned on, the system reads the system information and obtains various control parameters; then finds the last storage location of the temperature and humidity record and the usage of each block, and continues to write new measurement information. After the current record block is full, the block usage record is updated in the system information, and a new block is found for writing. If the storage information reaches the system capacity, the block with the earliest information in the 62 blocks is selected for erasure and reuse. This design refers to the u-cos file management system, but because the length of the sensor measurement record is fixed, the read and write algorithm of each record is simplified.
2.3 Humidity control algorithm
For the monitoring and control of temperature and humidity, it is difficult to achieve ideal control if only simple feedback control is used (that is, when the humidity is higher than the set value, the moisture absorption device absorbs moisture, and after saturation, it will discharge moisture to the outside, and so on to achieve humidity control). The reason is that the working curves of the temperature control device and the moisture absorption device are usually nonlinear, and this nonlinearity makes the calculation of the control time uncertain. After repeated research and experiments, this paper uses the fuzzy control method in the temperature and humidity detection control system to achieve better results. That is, according to the temperature and humidity measurement values within the monitoring node over a period of time, the fuzzy estimation of the capacity of the moisture absorption device and the temperature control device is obtained (divided into 5 categories: strong, relatively strong, medium, relatively weak, and weak), and according to the difference between the humidity and the set range, the fuzzy estimation of the current humidity value is obtained (far greater than, close to, within the range, lower than, far lower than), and then the external solid-state relays are controlled according to the set fuzzy control rules to achieve good control of temperature and humidity.
2.4 Network interface implementation
The network connection between the temperature and humidity detection control module and the central server is realized through the NePort network serial port conversion module of Conextop Company. Its volume is about two standard RJ45 sockets, with a 10M/100M Ethernet interface, and can simultaneously transmit TCP/UDP packets to multiple data receiving devices, providing 1 to 2 high-speed serial ports, and the baud rate can reach 921 600 b/s. The MCU is connected to the NePort through the standard serial port, and the NePort is connected to the central server through a router. Each temperature and humidity monitoring system has a unique system code and is connected to the central server through a certain command format. The main functions include: uploading temperature and humidity measurement information every 5 seconds; synchronizing the temperature and humidity monitoring system clock and server clock every day; setting temperature and humidity correction information and humidity control information through the network, etc.
3 Design of network monitoring system
3.1 Central server
The central server is equipped with IIS information server and SQL database server, and uses ASP.net language to implement the temperature and humidity monitoring system and network service of B/S structure. The advantage of B/S structure is that any computer connected to the Internet in the system can become a monitoring client, and monitoring and management can be achieved through IE browser without installing any software. The main functions implemented are: registering and managing each temperature and humidity monitoring system; storing the temperature and humidity data of each temperature and humidity monitoring system in the database and being able to view and delete it, as well as generating historical curves and generating reports, etc.; reporting real-time temperature and humidity measurement information to Internet users through web pages; user registration and authority management, etc.
3.2 AJAX realizes asynchronous transmission of temperature and humidity data
In the traditional B/S structure, when a user needs specific information, the user sends a request to the server through the browser (for example, clicking a link), and the server sends the web page pointed to by this link to the user's browser. This process must involve the user. For the sensor network monitoring system, the sensor measurement data is updated in real time, and the server can only automatically send the new data to the browser at a fixed time, instead of using the click update method; in addition, the traditional web page transmission process is to transmit the content of a web page completely from the server to the client browser, but the sensor network monitoring page only updates part of the new measurement data each time, while the monitoring background image and the parameter information of each machine are fixed. If the traditional synchronous update method is used, a large amount of duplicate content will be transmitted, which reduces the response speed of the system. This system uses AJAX technology to overcome these problems.
AJAX technology uses an asynchronous update scheme, in which the browser is allowed to update part of the information in the web page. Only the sensor measurement information needs to be updated each time, which reduces the burden of network communication and realizes fast refresh. The working principle of AJAX is equivalent to adding an intermediate layer between the user and the server, making the user operation and the server response asynchronous. In this way, some of the previous server-loaded work is transferred to the client, which is conducive to the idle processing power of the client to handle, reducing the burden on the server and bandwidth, thereby achieving the purpose of saving bandwidth.
This system uses traditional HTML static pages to draw the monitoring background, parameters of each temperature and humidity monitoring node and other static content on the page implementing temperature and humidity monitoring. JavaScript is used in the background to create the XMLHttpRequest class to periodically send an HTTP request to the server to request the transmission of the current temperature and humidity measurement results. After receiving the request, the server obtains the measurement information of each sensor through a network service (Web Service) and returns the results to the requested page. The network transmits only the measurement data that needs to be updated, so the response speed is very fast and does not require user participation.
3.3 VML to implement temperature and humidity data display
When the browser receives the measurement data sent back by the server, it must be displayed in a clear and friendly interface. In order to reduce the burden on the server, it should be avoided to draw charts on the server side (the traditional ASP.NET chart implementation method) and should be implemented on the browser side. There are also many implementation schemes, such as ActiveX, Java applet, SVG, VML, etc. ActiveX and Java applet insert binary components on the web page to realize dynamic and interactive multimedia web pages, but the binary code is a security threat to the browser side, so the general ActiveX or Java applet needs to be digitally signed before it can be accepted by users; in addition, the version change of Microsoft operating system will also affect the support for ActiveX and Java applet. SVG and VML use specific scripting languages to realize the drawing on the browser side, and its code is open to the client, so there is no security problem. SVG requires the browser to install the corresponding plug-in to work, while VML is supported by the current mainstream browser IE and does not require any installation, so this system selects the implementation scheme of VML. VML (Vector Markup Language) is a language that describes graphics with vectors. Its graphics can be enlarged or reduced at will without losing quality. In VML, the markup uses XML extension. Combined with Javascript scripting language, VML can dynamically display graphics. VML avoids the need for a third party to provide digital signatures, and does not require the installation of new IE plug-ins. The results are shown in Figures 3 and 4. Figure 3 is a curve chart of the temperature and humidity measurements uploaded by each node. Customers can clearly understand the temperature and humidity changes of each node over a period of time. Figure 4 is a dynamic update that displays the real-time temperature and humidity measurements of multiple nodes at the same time.
4 Conclusion
This paper mainly introduces the development of a new type of network-based temperature and humidity monitoring and transmission system. Its innovative technical features are reflected in: higher measurement accuracy is achieved by adopting high-performance temperature and humidity measurement devices; fuzzy control technology is used for humidity control, which reduces the state switching of the system and has a good control effect; Flash file storage solution completes the storage and erasure of measurement data. In addition, the network monitoring solution adopts AJAX technology to realize the asynchronous transmission of sensor measurement data and improve the response speed of the system; and VML is used to realize the dynamic display of measurement data. This solution can also be promoted and applied to network monitoring systems of other sensors.
Previous article:Design of temperature and humidity monitoring and transmission system based on network
Next article:Three-phase brushless DC motor drive technology based on A4936 design
- Popular Resources
- Popular amplifiers
- Investigation of occupancy perception in autonomous driving: An information fusion perspective
- Practical Development of Automotive FlexRay Bus System (Written by Wu Baoxin, Guo Yonghong, Cao Yi, Zhao Dongyang, etc.)
- Deep Learning Computer Vision: Neural Network Architectures Using Python and Keras
- PyTorch Deep Learning
- High signal-to-noise ratio MEMS microphone drives artificial intelligence interaction
- Advantages of using a differential-to-single-ended RF amplifier in a transmit signal chain design
- ON Semiconductor CEO Appears at Munich Electronica Show and Launches Treo Platform
- ON Semiconductor Launches Industry-Leading Analog and Mixed-Signal Platform
- Analog Devices ADAQ7767-1 μModule DAQ Solution for Rapid Development of Precision Data Acquisition Systems Now Available at Mouser
- Domestic high-precision, high-speed ADC chips are on the rise
- Microcontrollers that combine Hi-Fi, intelligence and USB multi-channel features – ushering in a new era of digital audio
- Using capacitive PGA, Naxin Micro launches high-precision multi-channel 24/16-bit Δ-Σ ADC
- Fully Differential Amplifier Provides High Voltage, Low Noise Signals for Precision Data Acquisition Signal Chain
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Problems with paste layer and solder layer
- Prize-giving event: Show off your favorite electronic products
- Low-cost intelligent fire and burglar alarm system based on single chip microcomputer
- Share negative pressure power supply design
- The role and principle analysis of single chip microcomputer crystal oscillator
- Application of Finite State Machine in Embedded Software
- [Goodbye 2021, Hello 2022] Repairing the plank road in the open, crossing the Chen Cang in secret
- 4-bit flashing light based on FPGA-simple design method
- I was cheated! How much profit can I get from this USB microphone?
- Conversion between CAD, word, and excel?