CN204347561U - Based on the distributed monitor-control network of RS485 communication - Google Patents

Based on the distributed monitor-control network of RS485 communication Download PDF

Info

Publication number
CN204347561U
CN204347561U CN201420138718.2U CN201420138718U CN204347561U CN 204347561 U CN204347561 U CN 204347561U CN 201420138718 U CN201420138718 U CN 201420138718U CN 204347561 U CN204347561 U CN 204347561U
Authority
CN
China
Prior art keywords
machine
module
interface chip
processor
host
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201420138718.2U
Other languages
Chinese (zh)
Inventor
李雪峰
周一兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to CN201420138718.2U priority Critical patent/CN204347561U/en
Application granted granted Critical
Publication of CN204347561U publication Critical patent/CN204347561U/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

The utility model discloses a kind of distributed network of temperature and humidity monitor, comprise host computer system and slave system, host computer system comprises host-processor, main frame RS-485 interface chip, digital host pipe display module and Keysheet module, and slave system comprises from machine RS-485 interface chip, from machine processor, DHT21 module and LCD LCD MODULE; Wherein host-processor circuit connection main frame RS-485 interface chip, numeral method module and Keysheet module respectively, main frame RS-485 interface chip by RS-485 bus series winding above from machine RS-485 interface chip, each from machine RS-485 interface chip respectively circuit connect one from machine processor, each from machine processor respectively circuit connect DHT21 module and from machine numeral method module.The beneficial effects of the utility model adopt distributed network to provide temperature and humidity monitor efficient, and save artificial.

Description

Based on the distributed monitor-control network of RS485 communication
Technical field
The utility model belongs to temperature and humidity monitor technical field, relates to the distributed monitor-control network based on RS485 communication.
Background technology
Temperature and humidity monitor is applied quite extensive in daily life and industrial circle, the temperature and humidity monitor in the places such as such as greenhouse, pond, jar fermenter, booth, power supply.And in the past temperature and humidity monitor be by manually complete and also pay little attention to, its tangible a lot of places humiture all needs monitoring in case meet accident.
Utility model content
The purpose of this utility model is to provide the distributed monitor-control network based on RS485 communication, and solving temperature and humidity monitor needs manually to table look-up, the loaded down with trivial details and problem of waste of manpower.
The technical scheme that the utility model adopts comprises host computer system and slave system, host computer system comprises host-processor, main frame RS-485 interface chip, digital host pipe display module and Keysheet module, and slave system comprises from machine RS-485 interface chip, from machine processor, DHT11 module and LCD LCD MODULE; Wherein host-processor circuit connection main frame RS-485 interface chip, numeral method module and Keysheet module respectively, main frame RS-485 interface chip by RS-485 bus series winding above from machine RS-485 interface chip, each from machine RS-485 interface chip respectively circuit connect one from machine processor, each from machine processor respectively circuit connect DHT11 module and from machine numeral method module.
Feature of the present utility model is also host-processor and describedly adopts AT89C51 single-chip microcomputer from machine processor.Main frame RS-485 interface chip and describedly adopt MAX485E model chip from machine RS-485 interface chip.
The beneficial effects of the utility model there is provided the simple distributed temperature and humidity monitor network of a kind of structure, adopt distributed network to provide temperature and humidity monitor efficient, and save artificial.
Accompanying drawing explanation
Fig. 1 is the utility model structural representation;
Fig. 2 is the utility model DHT11 modular circuit connection layout;
Fig. 3 is the utility model chip structure connection diagram;
Fig. 4 is the utility model circuit catenation principle figure.
In figure, 1. host-processor, 2. main frame RS-485 interface chip, 3. digital host pipe display module, 4. Keysheet module, 5. from machine RS-485 interface chip, 6. from machine processor, 7.DHT11 module, 8. from machine numeral method module.
Embodiment
Below in conjunction with the drawings and specific embodiments, the utility model is described in detail.
The utility model as shown in Figure 1, comprise host computer system and slave system, host computer system comprises host-processor 1, main frame RS-485 interface chip 2, digital host pipe display module 3 and Keysheet module 4, and slave system comprises from machine RS-485 interface chip 5, from machine processor 6, DHT11 module 7 and LCD LCD MODULE 8; Wherein host-processor 1 circuit connection main frame RS-485 interface chip 2, numeral method module 3 and Keysheet module 4 respectively, main frame RS-485 interface chip 2 by RS-485 bus contact more than 2 from machine RS-485 interface chip 5, each from machine RS-485 interface chip 5 respectively circuit connect one from machine processor 6, each from machine processor 6 respectively circuit connect DHT11 module 7 and from machine numeral method module 8.Host-processor 1 and describedly adopt AT89C51 single-chip microcomputer from machine processor 6.Main frame RS-485 interface chip 2 and adopt MAX485E model chip from machine RS-485 interface chip 5.
Concrete, whole system is become from mechanism with collection terminal by monitoring host computer, comprise host-processor 1, host-processor 1 respectively circuit connects main frame RS-485 interface chip 2, digital host pipe display module 3 and Keysheet module 4, primary processor 1 and digital host pipe display module 3, Keysheet module 4 is generally responsible for the humiture information displaying that collected by each collection terminal out as monitoring host computer end, see to managerial personnel intuitively, main frame RS-485 interface chip 2 by RS-485 bus contact more than 2 from machine RS-485 interface chip 5, each from machine RS-485 interface chip 5 respectively circuit connect one from machine processor 6, each from machine processor 6 difference circuit connection DHT11 module 7 with from machine numeral method module 8.Host-processor 1 and adopt AT89C51 single-chip microcomputer from machine processor 6.Main frame RS-485 interface chip 2 and adopt MAX485E model chip from machine RS-485 interface chip 5.Each from machine processor 6, DHT11 module 7 with form one group of humiture collection terminal from machine numeral method module 8, one group of acquisition terminal can be placed in each place as required.Fig. 2 is acquisition terminal DHT11 module 7 circuit connection diagram; Fig. 3 is the utility model chip structure connection diagram; Fig. 4 is the utility model circuit catenation principle figure.
For realizing the centralized control of humiture, AT89C51 single-chip microcomputer and DHT11 digital hygro sensor is utilized to form multiple distributed temperature and humidity monitor network, monitoring host computer end consults the humiture of each node by the mode of multi-computer communication, and can realize sending the bound that order regulates the warning of each node humiture, realize the functions such as overtemperature, super wet warning, manual intervention and automatic adjustment, monitoring host computer end selects digital host pipe display module 3 to show humiture numerical value, and acquisition terminal selects the humiture numerical value gathered from the display of machine numeral method module 8.
As shown in Figure 3, the TXD interface of main frame RS-485 interface chip 2 is connected from holding from the RXD of machine RS-485 interface chip 5 of machine with all by RS-485 bus, the RXD interface of main frame RS-485 interface chip 2 is connected with all TXD interfaces from machine RS-485 interface chip 5, forms master-slave communication mode like this.Host A also can be furnished with thumb-acting switch, store the address of self from machine, by the thumb-acting switch of host A select to connect from machine.When host A selects 1# from machine by thumb-acting switch, main frame communicates with from machine 1#, next from machine, the humiture data of collection are sent to host A, main frame is by 6 numeral method humiture data, from machine then by data that the charactron of 8 one (reason is that charactron is brighter than liquid crystal display, and intuitively) display gathers from machine.In like manner, when host A selects 2# key, main frame communicates with from machine 2#, sends to host A from the DHT21 image data of machine, and the data gathered from machine by same display module display 2#, all the other 2 master-slave communication modes are the same.Main frame by the information acquisition of keyboard, to the data setting bound of sending from machine.Two button SM1, SM2 are the size regulating the humiture upper limit respectively.And gone out the boundary of setting by numeral method, issue each respectively from machine by the mode of order simultaneously.System also can be provided with warning, when the data sended over from machine are greater than the mxm. boundary of setting, start hummer and send warning, and displays temperature exceed setting value on charactron.In like manner also have warning in temperature lower than during minimum setting value.Alarm module links with host scm, and as SP1 in Fig. 3 is connected with the N_BUZZER of host scm 89C52, host scm compares data and the data limit value of collection, and out-of-limit then N_BUZZER pin output low level realizes reporting to the police.
The multi-computer communication function utilizing single-chip microcomputer to have, form Master-Slave Distributive Control system, control four by a main frame and gather humiture from machine, main frame can control from machine to sending order from machine, also can receive the information fed back from machine simultaneously, between slave, realize half-duplex operation.Digital host pipe display module 3 is selected to show the humiture data sent from machine.Utilize digital temperature and humidity sensing chip DHT11 module 7 to realize gathering from machine, to select from machine numeral method module 8 as display device, the comparison directly perceived of principal and subordinate's data can be realized.
Single-chip microcomputer and RS-485 interface hardware circuitry as shown in Figure 4: system adopt AT89C51 as master chip, adopt MAX485E as RS-485 interface chip, MAX485E model chip is RS-485 low-power consumption transceiver MAX485E.The RXD of AT89C51 system connects the RO pin of MAX485E, and TXD connects the DI pin of MAX485E.The transmitting-receiving Enable Pin of the R/D signal control MAX485E exported by single-chip microcomputer: R/D signal is high level, then the transmission of MAX485E is effective, and reception is forbidden, now single-chip microcomputer can send data to RS-485 bus; R/D signal is low level, then the reception of MAX485E is effective, and transmission is forbidden, now single-chip microcomputer can receive from RS-485 bus data.At bus free, when open circuit or short circuit, the reception of receiver can be caused unstable, and the pull-up resistor R23 connecting MAX485E chip A pin and the pull down resistor R28 being connected to B pin may be used for ensureing at bus free, and during open circuit, state stablizes (similar from machine circuit connecting).In the semi-duplex communication system that RS-485 is formed, whole network any time can only have a node to be in transmission state and send data to bus, other nodes all must be in accepting state, during AT89C51 monolithic processor resetting, I/O pin exports high level, if directly I/O pin is connected with the driver Enable Pin DE of MAX485E chip, DE is made to be high level during making cpu reset, thus make this node be in transmission state, if bus there are other nodes send data, then this data transfer will be ended up in failure by interrupting, even cause the instability of whole network.Therefore consider stability and the reliability of communication, the transmission pin of control RS-485 Bus Interface Chip is designed to the antilogical of DE end in the design of each node, when namely control pin is logical one, DE end is " 0 "; When control pin is logical zero, DE end is " 1 ", therefore CPU pin is also driven DE end by photoelectrical coupler by the utility model in mainframe network, so just can control pin for high or exceptional reset makes MAX485E be in accepting state all the time, thus on hardware, effectively avoids node abnormal and impact on whole communication system.
For improving the anti-interference of system, power supply have employed the DC-DC conversion electric power module I B0505 of band isolation, for generation of the RS-485 power supply completely isolated with single chip circuit.Power module all with the VCC of single-chip microcomputer, GND is connected, and as shown in the IB0505 of Fig. 4, its output V485 gives 485 network power supplies.
DHT11 digital hygro sensor is a humiture compound sensor containing calibrating digital signal output.The digital module acquisition technique of its application specific and temperature and humidity sensing technology, guarantee that product has high reliability and remarkable long-time stability.Sensor comprises a resistance-type sense and to wet element and a NTC temperature element, and be connected with a high-performance 8 single-chip microcomputers, DHT11 chip internal is integrated with 14 A/D converters in addition, and adopts digital signal to export, and therefore antijamming capability is also high than similar chip.Adopt one wire system serial line interface, make the system integration become fast simple and easy, its Specifeca tion speeification is as the DHT11 major parameter of table 1.
Table 1
Model Measurement range Humidity measurement precision Temperature measurement accuracy Resolving power Encapsulation
DHT11 20-90%RH0-50℃ ±5%RH ±2℃ 1 The single straight cutting of 4 pin
As shown in Figure 2, adopt unibus communication mode, except power lead, a data lines DATA, DATA is only needed to be used for communication between microprocessor with DHT11 and synchronous, communication time an about 4ms, data divide fraction part and integral part, concrete form is described below, and current fraction part is used for expansion later, now reads as zero.Operating process is as follows:
Once complete data are transmitted as 40bit, and a high position first goes out.
Data layout: 8bit humidity integer data+8bit humidity fraction data+8bit temperature integer data+8bit temperature fraction data
+ 8bit School Affairs.When data transmit correct, School Affairs data equal 8, the end of " 8bit humidity integer data+8bit humidity fraction data+8bit temperature integer data+8bit temperature fraction data " acquired results.
Sensor circuit module: this module is made up of Temperature Humidity Sensor chip DHT11, fairly simple with the connection of single-chip microcomputer.The host circuit of system is except the minimum system of single-chip microcomputer, utilize toggle switch to select the slave addresses communicated with it, owing to will show humiture simultaneously, have employed two panels 8255 parallel interface chip and expand, utilize 74LS373 to realize address latch, the driving of charactron adopts 74LS245 simultaneously.
The Software for Design of system:
Want to realize the transmission of reliable data, must utilize the serial port function of single-chip microcomputer, 51 microcontroller serial port working methods 2,3 can meet the needs of system.
(1) multi-computer communication principle and communication protocol: in multi-computer communication, ensure that main frame communicates reliably with between machine, communication interface must have the recognition function from identity.SM2 position in Serial Port Control register SCON is exactly the multi-computer communication control bit arranged for meeting this requirement.Serial port realizes multi-computer communication with mode 2 or mode 3, and each frame information sending and receive is all 11, and wherein the 9th data bit is programmable bit, by the TB8 assignment 1 or 0 to SCON, is address frame or Frame with what distinguish transmission.If from the control bit SM2=1 of machine, then what receive is address frame, and data load SBUF, juxtaposition RI=1, send interrupt request to CPU; If what receive is Frame, then do not produce interrupt identification, information will be abandoned.If SM2=0, be then that address frame or Frame all produce RI=1 interrupt identification, data load SBUF.
Communication protocol mainly distinguish main frame and from machine, from machine with from the address of machine.Communication protocol will specify same communication speed equally, for realizing the interference-free communication between multimachine, and the communication protocol that system composes is following:
1, the both sides of data transmission all use the rate transmissioning data of 9600bps, use master slave communication, and main frame sends address date, and receive the feedback and temperature data that send from machine.Both sides use inquiry mode when sending data.Accept data from machine and use interrupting receive.
2, when two-shipper starts data transmission, main frame adopts broadcast mode to send address frame calling from machine.
3, from machine, be respectively all in only receipts address frame state.After receiving address frame, the address received and the machine address are compared, if address is identical, then returns to the machine address as confirmation to main frame, and start uploading data; If different, then continue to wait for.
4, main frame is waited for after transmission address frame, if the content in the response message received is identical with the content of sent out address frame, just starts wait-receiving mode data, if inconsistent, continuation is sent address frame by main frame.Still then think without response as repeatedly replied and make mistakes, this communication jumped out by main frame.
Modeled programming: adopt modular method for designing, reduces greatly by the program design complexity of system.Mainframe program have invoked 4 subroutines, is key scan and handling procedure, numeral method program, serial port data transmit-receive program, humiture off-limit alarm program respectively.Numeral method program is used for the real-time display of the data such as humiture; Key scan and handling procedure realize recognition by pressing keys, key-press input and relevant treatment; The data that humiture off-limit alarm realizes receiving compare with design temperature bound, if out-of-limit, report to the police; Serial port data transmit-receive program realizes the half-duplex operation between slave.
Comprising 5 subroutines from machine program, is humiture collection program, liquid crystal display program, the transmitting/receiving program of serial port, key scan program, temperature beyond limit alert program respectively.Humiture collection program is responsible for the on-the-spot humiture that DHT11 gathers to be read in the array of specifying; The humiture bound of ordo judiciorum to on-the-spot humiture and setting of crossing the border compares, if cross the border, then reports to the police; Key scan program is mainly used in the setting of upper temperature limit and lower limit; Serial port data transmit-receive program realizes the half-duplex operation between slave.
The advantage of utility model is can the humiture situation of each node of real time inspection by the charactron on main frame.Realize Real-time Collection and the Realtime Alerts of data.Low cost achieves distributed communication network, can drop into erection distributed network, provide the function such as Centralizing inspection and concentrated alarm with the hardware of low cost.Be applied to the Temperature and Humidity Control of green house of vegetables, environment crop, the drying of the temperature and humidity monitor in the place such as household kitchen, toilet, pond, jar fermenter, booth, power supply such as to be reduced phlegm and internal heat at the problem.

Claims (3)

1. based on the distributed monitor-control network of RS485 communication, become from mechanism with collection terminal by monitoring host computer, it is characterized in that: comprise host computer system and slave system, host computer system comprises host-processor (1), main frame RS-485 interface chip (2), digital host pipe display module (3) and Keysheet module (4), and slave system comprises from machine RS-485 interface chip (5), from machine processor (6), DHT11 module (7) and LCD LCD MODULE (8); Wherein host-processor (1) circuit connection main frame RS-485 interface chip (2), numeral method module (3) and Keysheet module (4) respectively, main frame RS-485 interface chip (2) by RS-485 bus contact more than 2 from machine RS-485 interface chip (5), each from machine RS-485 interface chip (5) respectively circuit connect one from machine processor (6), each from machine processor (6) respectively circuit connect DHT11 module (7) and from machine numeral method module (8).
2. according to described in claim 1 based on the distributed monitor-control network of RS485 communication, it is characterized in that: described host-processor (1) and described from machine processor (6) employing AT89C51 single-chip microcomputer.
3. according to described in claim 1 based on the distributed monitor-control network of RS485 communication, it is characterized in that: described main frame RS-485 interface chip (2) and described from machine RS-485 interface chip (5) employing MAX485E model chip.
CN201420138718.2U 2014-03-26 2014-03-26 Based on the distributed monitor-control network of RS485 communication Expired - Fee Related CN204347561U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201420138718.2U CN204347561U (en) 2014-03-26 2014-03-26 Based on the distributed monitor-control network of RS485 communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201420138718.2U CN204347561U (en) 2014-03-26 2014-03-26 Based on the distributed monitor-control network of RS485 communication

Publications (1)

Publication Number Publication Date
CN204347561U true CN204347561U (en) 2015-05-20

Family

ID=53230819

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201420138718.2U Expired - Fee Related CN204347561U (en) 2014-03-26 2014-03-26 Based on the distributed monitor-control network of RS485 communication

Country Status (1)

Country Link
CN (1) CN204347561U (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107124725A (en) * 2017-05-26 2017-09-01 唐高松 An a kind of key dial-up bridge-set and its control method
CN110231785A (en) * 2019-05-05 2019-09-13 广州朗国电子科技有限公司 A kind of method and device based on terminal control multiple devices
CN110267220A (en) * 2019-04-30 2019-09-20 泉州维盾电气有限公司 A kind of system and method for single host wireless device series connection networking data communication
CN114167772A (en) * 2021-11-25 2022-03-11 浙江源创智控技术有限公司 Self-identification 485 terminal resistor detection circuit based on single chip microcomputer control

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107124725A (en) * 2017-05-26 2017-09-01 唐高松 An a kind of key dial-up bridge-set and its control method
CN110267220A (en) * 2019-04-30 2019-09-20 泉州维盾电气有限公司 A kind of system and method for single host wireless device series connection networking data communication
CN110267220B (en) * 2019-04-30 2021-11-02 泉州维盾电气有限公司 System and method for serial networking data communication of single-host wireless equipment
CN110231785A (en) * 2019-05-05 2019-09-13 广州朗国电子科技有限公司 A kind of method and device based on terminal control multiple devices
CN114167772A (en) * 2021-11-25 2022-03-11 浙江源创智控技术有限公司 Self-identification 485 terminal resistor detection circuit based on single chip microcomputer control

Similar Documents

Publication Publication Date Title
CN204347561U (en) Based on the distributed monitor-control network of RS485 communication
CN102200763A (en) Grain status monitoring system based on fieldbus
CN105223939A (en) Be applicable to the multi-source heat transfer agent data acquisition and controlling integration fexible unit of agriculture Internet of Things application
CN112583824A (en) Protocol conversion configuration system and method based on OPC UA
CN104143244B (en) Automatic fire alarm system communication modes and fire alarm automatic alarm system
CN104281081A (en) Intelligent home wireless access device, system and method
CN104615103A (en) Motor control system and method using ZigBee and CAN bus
CN203657839U (en) Smart home sensing apparatus based on ZigBee communication
CN101561408A (en) Soil humidity measuring device based on wireless microcomputer control
Lihong et al. Measurement and control system of soil moisture of large greenhouse group based on double CAN bus
CN203882187U (en) Wireless household network system
CN102419572A (en) Field-bus-based granary temperature-humidity measurement and control terminal
CN103152752A (en) IEEE (Institute of Electrical and Electronic Engineers) 802.15.4g standard-based wireless monitoring communication protocol
CN203455669U (en) Embedded system-based visualization efficiency management monitoring platform for numerically-controlled machine tools
CN205103648U (en) Multisource sensing information acquisition and control integration multipurpose plant suitable for networking of agricultural thing is used
CN101482550B (en) Plant physiological monitoring system
CN211906047U (en) Wireless measurement and control centralized display device
CN201698572U (en) Bluetooth wireless measuring system for engineering machinery
CN204373699U (en) Multidrop environment gathers monitoring system
CN203104517U (en) Intelligent household monitoring system
CN101175125B (en) Front end machine device of monitoring system
CN204347494U (en) A kind of Smart Home wireless access device and system
CN202737902U (en) PROFIBUS-DP and MODBUS protocol conversion device
CN206179207U (en) Centralized management ware
CN202433041U (en) Greenhouse environment monitoring system

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150520

Termination date: 20160326