SUMMERY OF THE UTILITY MODEL
In view of this, the utility model discloses to the disappearance that prior art exists, its main objective provides a dispersed collection execution centralized display control wireless transmission control system, and centralized monitoring uses manpower sparingly resource, and scientific management and control has stopped the waste simultaneously, need not to establish control scheme and practices thrift the cost and maintain into the cost, and in good time accurate operation has improved environmental quality and energy-conserving effect is showing simultaneously.
In order to achieve the above purpose, the utility model adopts the following technical scheme:
a wireless transmission control system for decentralized acquisition, execution, centralized display and monitoring comprises
The upper computer is a computer provided with control software, and is matched and connected with a computer display;
the master station comprises a master station STC single chip microcomputer and a master station wireless module, wherein the master station STC single chip microcomputer is provided with a full-duplex serial communication port, the full-duplex serial communication port is connected with a computer for data communication through a USB port of the computer to an RS232 serial port, the master station wireless communication module is connected with the STC single chip microcomputer on the basis of an SPI interface mode, the master station wireless module is responsible for data exchange and transmission between the master station and each substation, and an XL4432-D01 model module is selected;
each substation comprises a substation STC single chip microcomputer, a substation wireless module, a digital temperature sensor and an optical coupling isolation drive circuit; the substation STC single chip microcomputer serves as a logic actuator and is used for controlling each terminal device; the digital temperature sensor is used for acquiring the environmental temperature of a terminal equipment area and is connected with an I/O port P0.7 of the substation STC single chip microcomputer; the I/O port of the substation STC single chip microcomputer is connected with terminal equipment through an optical coupling isolation driving circuit of a field driving board to control the multistage-speed operation of the terminal equipment; the substation wireless module is connected with the substation STC single chip microcomputer, an XL4432-D01 module is selected, and the XL4432-D01 substation wireless module receives a command of the master station in a wireless communication mode and uploads field data and an operation state to the master station.
Compared with the prior art, the utility model obvious advantage and beneficial effect have, particularly, can know by above-mentioned technical scheme, adopt the STC singlechip as the treater of main website and each substation, main website and upper computer connection, upper computer (computer) for the picture VB compile and present the state and the temperature of each substation with the animation. The wireless transmitting module is adopted between the master station and each substation to transmit data and control commands, and the control picture of the master station (computer) can be manually/automatically switched to control each substation. The control method does not need to lay a control line except a power line, a temperature sensor (of each substation controller) is arranged at an air return inlet of a site or an air conditioning processor, the site temperature is accurately acquired in real time, temperature data and an operation state are transmitted to an upper computer once every minute, the upper computer gives a control command according to the data acquired and transmitted by each substation and the environment temperature required by the site, and each substation executes an operation mode according to the control command sent by the upper computer. The control mode is suitable for controlling terminal air conditioners and fresh air exchange processing equipment in public areas of large-scale complexes, large-scale shopping malls and large-scale office buildings, and is useful for saving energy and resources.
To illustrate the structural features and functions of the present invention more clearly, the present invention will be described in detail with reference to the accompanying drawings and specific embodiments.
Detailed Description
Referring to fig. 1, a specific structure of a preferred embodiment of the present invention is shown, which is a wireless transmission control system for decentralized acquisition, execution, centralized display, and monitoring, and includes an upper computer 10, a master station 20, and a plurality of substations 30.
The upper computer 10 is a computer with control software, and the computer is connected with a computer display 11 in a matching way.
The master station 20 comprises a master station STC single-chip microcomputer 21 and a master station wireless module 22, the master station STC single-chip microcomputer 21 is provided with a full-duplex serial communication port, the full-duplex serial communication port is connected with a computer through a USB port of the computer to an RS232 serial port for data communication, the master station wireless module is connected with the STC single-chip microcomputer on the basis of an SPI interface mode, and the master station wireless module 22 is responsible for data exchange and transmission between the master station 20 and each substation 30 and selects a module of XL4432-D01 type.
Each substation 30 comprises a substation STC single chip microcomputer 31, a substation wireless module 32, a digital temperature sensor 33 and an optical coupling isolation drive circuit 34; the substation STC single-chip microcomputer 31 serves as a logic actuator and is used for controlling each terminal device 40; the digital temperature sensor 33 is used for acquiring the environmental temperature of the area of the terminal equipment 40 and is connected with an I/O port P0.7 of the substation STC single chip microcomputer 31; the I/O port of the substation STC single chip microcomputer is connected with a terminal device 40 through an optical coupling isolation driving circuit 34 of a field driving board, and the multistage-speed operation of the terminal device 40 is controlled; the substation wireless module 32 is connected with the substation STC single-chip microcomputer 31, an XL4432-D01 model module is selected, and the XL4432-D01 substation wireless module 32 receives a command of the main station 20 in a wireless communication mode and uploads field data and an operation state to the main station 20.
The utility model discloses a STC singlechip is as the treater of main website 20 and each substation 30, and main website 20 is connected with host computer 10, host computer 10 (computer) for the picture VB compile and show each substation 30's state and temperature with the animation. The master station 20 and the substations 30 transmit data and control commands by using wireless transceiver modules, and the control picture of the upper computer 10 (computer) can be manually/automatically switched to control the substations 30. The control method does not need to lay a control line except a power line, a temperature sensor (controller of each substation 30) is arranged at an air return inlet of a site or an air conditioning processor, the site temperature is accurately acquired in real time, temperature data and an operation state are transmitted to the upper computer 10 once every minute, the upper computer 10 gives a control command according to the data acquired and transmitted by each substation 30 and the environment temperature required by the site, and each substation 30 executes an operation mode according to the control command sent by the upper computer 10. The control mode is suitable for controlling terminal air conditioners and fresh air exchange processing equipment in public areas of large-scale complexes, large-scale shopping malls and large-scale office buildings, and is useful for saving energy and resources.
More specifically, the interface of the computer display 11 of the upper computer 10 is shown in fig. 2, and the screen of the upper computer 10 (computer) is software written by VB (control). It is responsible for displaying the conversation with man-machine, and communicates with the lower computer main station 20 through usb port of the computer to RS232 serial port. In one application, a centralized display interface for each air conditioner in a certain hospital is shown in FIG. 2.
As shown in fig. 3 and 6, the master station STC single-chip microcomputer 21 and the substation STC single-chip microcomputer 31 are the same, and have models of STC-89C52RC and 40-I-PIT. The single chip microcomputer is a core component of the control system, is responsible for processing the program logic relationship between the master station 20 and the substation 30, and writes a logic program by using c language. The master station STC single chip microcomputer 21 is connected with the upper computer 10 through a serial port for data communication, and simultaneously performs data acquisition input and logic output control through a port.
The substation STC single chip microcomputer 31 is used as a logic actuator, and a logic program is compiled by using c language and used for controlling the central air-conditioning terminal equipment 40 and the frequency converter. And an I/O port of the processor is connected with the frequency converter equipment through optical coupling isolation of a field drive board to control 7-section speed operation of the frequency converter. And the XL4432-D01 wireless transceiver module is used for receiving commands of the master station 20 and simultaneously uploading field data and operation states to the master station 20.
The basic working condition pins of the single chip microcomputer comprise a power supply pin, a reset pin and a clock pin, and the single chip microcomputer can start to work only if the basic working condition pins are met. It includes a power pin, a reset pin, a clock pin, and an input/output pin.
Wherein, 1) power pin: a40 pin of the STC single chip microcomputer is a power supply positive electrode pin (VCC), a 20 pin of the STC single chip microcomputer is a power supply negative electrode pin (VSS), the power supply positive electrode pin is generally connected with a 5V power supply, and the power supply negative electrode pin is grounded.
2) Resetting a pin: and a pin 9 of the STC singlechip is a reset pin (RST/VPD). After the single chip microcomputer is powered on, in order to enable the internal circuit to work normally, the reset circuit is required to provide a reset signal for the internal circuit, so that the internal circuit enters an initial state and then starts to work. The MCS-51 series single chip microcomputer is reset at a high level, namely, after an external reset circuit sends a high level signal to a reset pin, the internal circuit of the single chip microcomputer can be reset.
The 9 pins also have a power-down holding function, in order to prevent the power-down from causing the data in the RAM inside the single chip microcomputer to be lost, the pins can be connected with a standby power supply, when the power-down is carried out, the standby power supply provides 4.5-5.5V voltage for the pins, and the data in the RAM can be kept from being lost.
3) A clock pin: pins 18 and 19 of the STC singlechip are clock pins (XTAL 2 and XTAL 1).
A large number of digital circuits are arranged in the single chip microcomputer, and the digital circuits need to be controlled by clock signals when working, so that the digital circuits can work in sequence and with beats. A clock oscillator inside the singlechip and a timing circuit externally connected with a clock pin form a clock oscillation circuit, and a clock signal is generated and supplied to an internal circuit; in addition, an external oscillator can generate a clock signal, and the clock signal is sent to the singlechip through a clock pin and supplied to an internal circuit.
4) Input/output pins: the STC singlechip has 4 groups of I/O interfaces including P0, P1, P2 and P3, and each group of interfaces has 8 pins: p0 port pins P0.0-P0.7, P1 port pins P1.0-P1.7, P2 port pins P2.0-P2.7, P3 port pins P3.0-P3.7. The 4 groups of interfaces can be used as input ports for inputting external signals into the single chip microcomputer, and can also be used as output ports for outputting signals from the single chip microcomputer. In addition, these interfaces also have some other functions, as described in detail below.
The P0 ports (32-39 pins) have the functions of: 8-way signals are input, 8-way signals are output, and the bus is used as an 8-bit data bus or used as a lower 8-bit address bus in a 16-bit address bus.
The P1 ports (1-8 pins) have the following functions: 8 paths of signals are input, and 8 paths of signals are output.
The P2 ports (21-28 pins) have the following functions: 8-path signals are input, 8-path signals are output and are used as an upper 8-bit address bus in a 16-bit address bus.
The P3 ports (10-17 pins) have the following functions: 8 paths of signals are input, and 8 paths of signals are output. The 8 pins of the P3 port also have other functions, as described in detail below.
P3.0: used as a serial data input (RXD).
P3.1: used as serial data output (TXD).
P3.2: serving as an external interrupt 0 request signal input (INT 0).
P3.3: serving as an external interrupt 1 request signal input (INT 1).
P3.4: serving as the external pulse signal input (T0) to the timer/counter T0.
P3.5: serving as the external pulse signal input (T1) to the timer/counter T1.
P3.6: this terminal outputs a write control signal (WR) when writing to the off-chip RAM.
P3.7: when the terminal is reading the off-chip RAM, it outputs a read control signal (R D).
The P0, P1, P2 and P3 ports have multiple functions, and the specific application of any function is determined by a program in the single chip microcomputer. It should be noted that at a certain time, a certain pin of a port can only serve one function.
As shown in fig. 3, the master station STC single-chip microcomputer 21 has a MAX202 digital interface circuit for converting a USB port to an RS232 serial port. Serial line (USB to RS 232): the main station 20 is responsible for controlling the system to carry out data transmission and communication with the upper computer 10. The single chip microcomputer is provided with a full-duplex serial communication port, so that serial communication can be conveniently carried out between the single chip microcomputer and a computer. When serial port communication is carried out, certain conditions are met, a serial port of a computer is RS232 level, a serial port of a single chip microcomputer is TTL level, a level conversion circuit is required to be arranged between the serial port of the computer and the serial port of the single chip microcomputer, a special chip MAX202 is adopted for conversion, and the special chip is simpler and more reliable than triode analog conversion.
As shown in fig. 4 and 6, the master station radio module 22 and the substation radio module 32 both employ XL4432-D01 modules. The radio module is responsible for controlling the data exchange transmission between the master station 20 and each substation 30 of the system. XL4432-D01 is a high-performance 433M wireless transceiver module designed by adopting a wireless transceiver IC SI4432 of a silicon Lab company, has multiple modulation modes, works in 433.92M international universal ISM frequency band, and has the highest modulation rate reaching 128 KBPS. Based on the SPI interface mode, various MCU connections are facilitated. The double-row pin interface with the module size of 46 x 18.5mm and the spacing of 254mm uses the external antenna design, and the test distance of receiving and transmitting 10 bytes of data can be as far as 2500 meters at the open ground speed of 1.2 k.
As shown in fig. 1, the digital temperature sensor 33 is used for collecting the ambient temperature of the terminal area, and is connected to the I/O port P0.7 of the processor of each substation 30. It employs a one-wire bus interface temperature sensor, model DS18B20, of the type offered by DALLAS semiconductor corporation. Compared with the traditional temperature measuring elements such as a thermistor and the like, the digital temperature sensor is a novel digital temperature sensor which is small in size, wide in applicable voltage and simple in interface with a microprocessor. The one-line bus structure has the characteristics of simplicity and economy, and a user can easily establish a sensor network, so that a brand new concept is introduced for the construction of a measuring system.
The DS18B20 digital temperature sensor 33 has the following features:
1) the measurement temperature range is-55 to +125 ℃.
2) The precision is +/-0.5 ℃ within the range of minus 10 to plus 85 ℃.
3) The resolution of 9-12 bits can be programmed.
4) The working voltage range of 3.0-5.5V.
5) The self-contained EEPROM can be used for storing set resolution and alarm temperature set by a user.
6) The conversion to digital output takes 750ms (max) once.
7) Data lines (DQ) may also be used to supply power (parasitic power, see datasheet for implementation.)
The digital temperature sensor 33 is directly transmitted in a digital mode of a one-line bus, so that the anti-interference performance of the system is greatly improved. The temperature sensor can directly read the measured temperature, and can realize a digital value reading mode of 9-l 2 bits through simple programming according to actual requirements. And various packaging forms are adopted, so that the system is flexible and convenient to design.
Furthermore, the master station 20 and the substation 30 are respectively provided with LCD display screens, namely a master station LCE display screen 23 and a substation LCD display screen 35, wherein the master station LCE display screen 23 is connected to the master station STC single chip microcomputer, and the substation LCD display screen 35 is connected to the substation STC single chip microcomputer. The zone temperature and the operating state of each substation 30 site are displayed on the LCD screen and also uploaded to the host computer 10 and shown on the computer display 11.
Fig. 6 shows the circuit of the substation of the present invention, which is basically the same as the master station in circuit design, and is not described herein again for its function and model application.
To sum up, the design of the utility model is characterized in that the host computer 10 (computer) of the control system is connected with the serial port of the master station 20 of the system through the USB port, and the data transmission between the master station 20 and each substation 30 is carried out through the XL4432-D01 wireless transmitting module. The temperature sensors DS18B20 of the substations 30 collect the field temperature data of the substations for logic comparison execution, and simultaneously transmit the temperature data and the operation state to the master station 20, the master station 20 displays the temperature and the operation state of the substations on the screen of the upper computer 10 (computer) (the temperature data is displayed on the LCD of the substations 30 and the LCD of the master station 20 at the same time). The virtual buttons written by VB controls on the picture of the upper computer 10 can be manually and automatically switched and controlled, the operation in the automatic state can be randomly and automatically operated according to the set time and logic relationship and the timely environment quality, and when the operation is switched to the manual state, the corresponding substation 30 terminal equipment 40 can be started and stopped on the computer picture by a manual mouse.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the technical scope of the present invention, so that any slight modifications, equivalent changes and modifications made by the technical spirit of the present invention to the above embodiments are all within the scope of the technical solution of the present invention.