CN104079658A - Environment-friendly internet of things real-time control method under Web environment and based on pool technology - Google Patents
Environment-friendly internet of things real-time control method under Web environment and based on pool technology Download PDFInfo
- Publication number
- CN104079658A CN104079658A CN201410331300.8A CN201410331300A CN104079658A CN 104079658 A CN104079658 A CN 104079658A CN 201410331300 A CN201410331300 A CN 201410331300A CN 104079658 A CN104079658 A CN 104079658A
- Authority
- CN
- China
- Prior art keywords
- control
- data
- pool
- pond
- browser
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 21
- 238000005516 engineering process Methods 0.000 title claims abstract description 16
- 238000012544 monitoring process Methods 0.000 claims abstract description 24
- 230000007613 environmental effect Effects 0.000 claims description 18
- 230000005540 biological transmission Effects 0.000 claims description 8
- 230000000977 initiatory effect Effects 0.000 claims description 6
- 238000005538 encapsulation Methods 0.000 claims description 2
- 238000000151 deposition Methods 0.000 claims 1
- 239000003344 environmental pollutant Substances 0.000 description 7
- 231100000719 pollutant Toxicity 0.000 description 7
- 230000008569 process Effects 0.000 description 6
- 230000002457 bidirectional effect Effects 0.000 description 4
- 230000006872 improvement Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 238000013461 design Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 238000005070 sampling Methods 0.000 description 2
- 241001269238 Data Species 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000008676 import Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000003252 repetitive effect Effects 0.000 description 1
- 239000010865 sewage Substances 0.000 description 1
Landscapes
- Selective Calling Equipment (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses an environment-friendly internet of things real-time control method under the Web environment and based on the pool technology. The method is suitable for a pollution source real-time monitoring system with the B/S architecture. Referred pools comprises the connection pool, the controlling pool, the control waiting pool and the data pool, wherein the connection pool is used for storing Socket connection information of a monitoring terminal, a browser and the like, the controlling pool and the control waiting pool are used for storing control commands sent to a remote target device from a browser side, and the data pool is used for storing various kinds of data. According to the environment-friendly internet of things real-time control method, concurrency control over remote devices from the browser side is achieved based on the pool technology, and the control result without source identification can be accurately returned to the browser which initiates control.
Description
Technical field
The present invention relates to a kind of environmental protection Internet of Things real-time control method based on pool technology, be mainly used under B/S framework, in environmental protection Internet of Things, monitoring central server or any browser end carry out remote real_time control to field apparatus.
Background technology
Develop rapidly along with information technology, network technology, China's Information of the Environment building-up work has also obtained very fast development, take national environmental information network system as maincenter, provincial environmental information network system as key, City-level environmental information network system as basis, environmental information network system at county level begins to take shape as supplementary level Four whole nation environmental information network system.Although pollutant sources automatic monitored control system was through the construction of more than 10 years, technology is more and more advanced, and function becomes increasingly complex, and make the requirement that automatic monitored control system is more perfect, meet new period environmental warning and monitoring, also has a lot of problems in the urgent need to address.
The control of existing pollutant sources on-line monitoring center to remote equipment, reads real time data, long-range sampling, the long-range current running status of analyzer, the long-range functions such as sewage draining exit valve of closing of reading as long-range, what have can only realize at central server; Have based on C/S framework, in client, corresponding software is installed and is realized, in actual use, have certain limitation.In the pollutant sources long distance control system of B/S framework, how the information on browser is sent to remote scene equipment rapidly, realizing real-time, efficient two-way communication between browser and remote supervisory and control(ling) equipment is problem demanding prompt solution.
Summary of the invention
To the object of the invention is in order addressing the above problem, the environmental protection Internet of Things real-time control method based on pool technology under a kind of Web environment to be provided.
Object of the present invention is achieved through the following technical solutions: on environmental protection Internet of Things on-line monitoring platform, comprise three class ponds: the one, the connection pool that the Socket such as storage monitor terminal, browser connect, the 2nd, for the control pond of remote real_time control, the 3rd, the data pool of storage Various types of data.Controlling pond comprises and in execution, controls the ponds to be controlled such as Chi He, each remote equipment is only supported the control of a browser end sometime, if there is other the control request of mailing to this remote equipment, enter etc. in pond to be controlled and wait for, realize the concurrent control remote equipment of browser end.According to the up-to-date link information of preserving in connection pool, monitoring server can be by the control command of controlling pond in carrying out accurately and ensuring escapement from confliction mails to corresponding target device, and the result without source sign that target device can be returned feeds back to the browser of the request of sending exactly.
Further improvement of the present invention is: connection pool has been realized the unified management that server and long-range number are adopted all link informations between instrument, data transmission unit, browser.In controlling in real time, on the one hand, because adopting instrument, number is connected disconnection sometimes with the Socket of monitor supervision platform, so some number is adopted instrument when countercharge realizes, by number, to adopt instrument initiatively to a nearest connection of monitor supervision platform initiation, to realize countercharge, this can affect logarithm and adopt the instrument realization of countercharge in real time, even cannot countercharge, for this reason by introducing connection pool, record all link informations, when several Cai Yimeixiang Surveillance center sends the up-to-date information that data are just safeguarded all connections in connection pool, guarantee that countercharge information can send order to target device by this connection is instant, reduce the stand-by period, on the other hand, connection pool has been safeguarded the Socket link information of browser end, and when control terminal, the object information returning can send to the browser of initiating control rapidly by these interface channels.
Further improvement of the present invention is: on server according to the difference that receives data type, Further Division is the Bao Chi of storage different types of data bag, the new data of reception is directly stored in internal memory, can rapidly all kinds of latest datas be presented on monitoring interface, without entering continually library inquiry and reading and wait operation, improved the speed of page loading data.
Further improvement of the present invention is: browser end sends control command to remote object equipment, if current this target device does not have other browsers to send to it request of control, this control command is entered after together with the link information encapsulation between browser and server and server and target device and in execution, control pond, and corresponding control command is mail to target device; When server listens to the data that target device sends over, first check whether in execution, control pond has the relevant control order of mailing to this target device, if any using it as feedback data, and read the relevant connection information of controlling this control command of pond in execution, feedback data is returned to the browser end of the request of sending, and this control command is controlled from carry out to pond and deleted.
Further improvement of the present invention is: every target device is only processed the control of a browser end sometime, all the other control signals that mail to this equipment all enter server end etc. pool queue to be controlled; In carrying out, controlling pond mails to when the control command execution of this equipment finishes or feedback delay has exceeded the maximum delay arranging, the control data that mail to this equipment in execution control pond are gone out to pond, simultaneously from etc. activate next control data that mail to this equipment pond to be controlled and enter and in execution, control pond, and mail to corresponding target device.
The present invention compared with prior art has the following advantages:
1, utilize connection pool, can realize the unified management of all link informations, and when listening to effective data packets, automatically safeguard connection pool, guarantee that all in connection pool are connected to effective connection.By the connection pool of real-time update, directly related data on server is issued to target device or browser, reduced server end can only be passive etc. the time delay of transmission data to be connected, improved real-time.
2, utilize connection pool and control pond, monitor supervision platform can be realized control request that browser end is sent accurately and ensuring escapement from confliction mails to corresponding target device, the result without source sign that target device can be returned feeds back to corresponding browser exactly, has provided a kind of effective real-time control method in real-time control platform.
3, in carrying out, control the ponds to be controlled such as Chi He, realized the concurrent control of target device, be that certain equipment only allows a browser end to control sometime, avoid multiple terminals to control the problems such as the field apparatus repetitive operation of initiation, misoperation simultaneously, solved the demand of the concurrent control terminal of browser end.
Accompanying drawing explanation
Fig. 1 is the pollutant sources on-line monitoring system assumption diagram based on B/S framework;
Fig. 2 is that the multitask based on pond is monitored;
Fig. 3 is the real-time control flow based on pond;
Fig. 4 is that browser BC Server monitors and process chart;
Fig. 5 is that number is adopted instrument DAQ Server monitoring and process chart.
Embodiment
In order to deepen the understanding of the present invention, below in conjunction with embodiment and accompanying drawing, the invention will be further described, and this embodiment only, for explaining the present invention, does not form limiting the scope of the present invention.
Pollutant sources on-line monitoring architecture based on B/S framework as shown in Figure 1.In order to realize bidirectional real-time between monitoring service device and Web browser, adopted Flash XML Socket communication mode.The web access mechanism of standard adopts http protocol, only allow browser end initiatively to initiate request, and server is passive response, do not allow server to send a connection request to browser, that is to say not for server provides design to realize to browser propelling data.In contrast, XMLSocket solution keeps being connected with the open of server, the message that this connection allows the instant transmission of server to import into, and send request without client, guaranteed real-time.As the Flash Server in Fig. 2 is responsible for realizing server end and browser end XMLSocket establishment of connection, after successful connection, can realize by BC Server the bidirectional real-time of server end and browser end.
The control request that Web browser end is submitted to from interface according to user, as information such as target device, command type, pollutant numberings, by adding the information such as check code, bag length, according to our self-defining host-host protocol, be packaged into packet, control command is sent to server end from browser end.
According to the difference of the task of monitoring, server end is comprised of a plurality of monitoring service devices, as shown in Figure 2.Wherein BC Server is responsible for receiving the control request of sending from browser end and sends and control result to browser, receive and control after packet, packet is carried out to legitimacy parsing according to self-defined host-host protocol, as resolve correctly, further the type of analysis and Control order.Although adopting transmission standard of instrument etc., current national logarithm carried out standard, also support Long-distance Control, Dan Ge producer also there are differences when specific implementation, can not support all control types completely, so the demand of using according to reality, in our Framework design, some number adopts that instrument do not support, we can directly directly carry out Long-distance Control by data transmission unit DTU, make our pollutant sources on-line control system have flexibility highly.
By the analysis to control command type, we can select is to adopt instrument to number, or sends control command to DTU.If adopting instrument to number sends, data are resolved and extracted to server by the control packet receiving, encapsulate data into again the control command form that meets GB HJ/T212-2005, by server end DAQ Server as shown in Figure 2, data are mail to corresponding number and adopt instrument.If sent to DTU, the protocol type of supporting according to field apparatus, such as Panasonic's agreement, encapsulates data into the control command of Panasonic's protocol format, by DTU Server, data is mail to corresponding DTU.Number is adopted between instrument or DTU and field monitoring equipment by serial communication, and control command is sent to field monitoring equipment, as drive valve, pass valve, exceeding standard keeps sample, obtains instantaneous value, obtains detecting instrument state information etc.Field monitoring equipment fill order, adopts instrument by the result of feedback by number or DTU returns to monitoring service device, by BC Server, by XML Socket, feedback result is transferred to Web browser end.
As shown in Figure 2, on monitoring service device except be responsible for monitoring four kinds of terminals of different task, also has different ponds, comprise for recording the connection pool ConnectionPool of link information, in execution for the treatment of control information, control pond ControllingPool and control and wait for pond ControlWaitingPool, and for storing the data pool of all kinds of reception data.The latest data of reception is directly stored in internal memory, and the operation such as avoided frequent inquiry to database, read, has improved the speed that the page loads data.
Because the feedback data of terminal equipment responsing control command cannot be distinguished with general data, also promoter that cannot Tracing Control order, in order to realize the real-time control of browser end to remote equipment, such as long-range sampling, long-range valve, the long-range pass valve etc. opened, we arrange, and a number of units is adopted instrument or a certain moment of DTU is only processed a remote control command.Fig. 3 has provided the technique of real-time control based on pond in environmental protection Internet of Things.When browser end sends after the request of control, server end first checks in execution, to control to have or not in the ControllingPool of pond and mails to this number and adopt the control command of instrument or DTU and carry out, if do not had, new control command is added to ControllingPool, otherwise the pond ControlWaitingPool to be controlled such as added.When a certain control command executes, number adopts instrument or DTU uploads onto the server execution result, on server, will return results into corresponding data pool, according to the control information of mailing to this number in ControllingPool and adopting instrument or DTU, execution result is returned to the browser of the request of sending, and this control information is deleted from ControllingPool, from ControlWaitingPool, obtain and mail to next control command that this number is adopted instrument or DTU simultaneously, if there is such order, it is transferred to ControllingPool and carry out from ControlWaitingPool, being about to corresponding control information mails to corresponding number according to the link information in ConnectionPool and adopts instrument or DTU, carry out next control command.
In order to realize the real-time control of browser end to field apparatus, we realize bidirectional real-time based on Flash XML Socket.The XML Socket that on server, Flash Server is responsible for setting up server end and browser end is connected, connect after foundation, on server, based on BC Server and browser end, carry out bidirectional real-time, the browsing of browser end general information, inquiry etc. are still based on http protocol.
Fig. 4 has provided on server BC Server for monitoring and the handling process of browser.The control request that browser end is sent is resolved, if the bag receiving is resolved correct, in conjunction with the link information between browser and server, and the link information between server and target device, the control data that the request of controlling are encapsulated as to specific format enter in execution to control pond ControllingPool, according to target device, be that number is adopted instrument or DTU, select DAQ Server or DTU Server control data to be sent to the target device of appointment.
Fig. 5 has provided concrete monitoring and handling process that on server, DAQ Server adopts instrument for number, and on server, DTU Server is similar with it for monitoring and the handling process of DTU.DAQ Server is responsible for monitoring number and adopts the data that instrument is uploaded, the information of adopting instrument equipment by number in uploading data, go again to control and in the ControllingPool of pond, search the corresponding control command that whether has this number to adopt instrument and carry out, if have, number is now adopted to the result that data that instrument uploads control as response and return to browser end, otherwise process as general uploading data.
Claims (6)
1. the environmental protection Internet of Things real-time control method based on pool technology under a Web environment, comprise three class ponds: the one, the connection pool of the Socket link informations such as storage monitor terminal, browser, the 2nd, for the control pond of remote real_time control, the 3rd, the data pool of storage Various types of data, it is characterized in that: utilize connection pool and control pond, browser end can be realized concurrent control target device, be that on-the-spot number is adopted instrument or data transmission unit, the result data without source sign that target device can be returned is transmitted to the browser of initiating control exactly.
2. the environmental protection Internet of Things real-time control method based on pool technology under Web environment according to claim 1, it is characterized in that: described connection pool has been realized the unified management that server and long-range number are adopted all link informations between instrument, data transmission unit, browser, supports pond, goes out pond, from pond, obtains the operation such as link information real-time servicing in connecting object, pond; In controlling in real time, introduce connection pool and record all link informations, when a new effective data packets is often received by Surveillance center, just automatically safeguard corresponding link information in connection pool, thereby guarantee to be in connection pool up-to-date link information; On the one hand, when browser end Long-distance Control target device, can from connection pool, take out rapidly the up-to-date link information of this target device, control command is sent to target device; On the other hand, connection pool has been safeguarded the Socket link information of browser end, and the object information returning from target device can send to the browser of initiating control rapidly by these interface channels.
3. the environmental protection Internet of Things real-time control method based on pool technology under Web environment according to claim 1, it is characterized in that: described data pool on server according to the difference that receives data type, Further Division is the packet pond of all packets of storage, storage number is adopted the number of instrument uploading data and is adopted instrument data pool, store on-the-spot number and adopt the data pool of instrument or data transmission unit uploading data, storage browser sends the browser data pond of the request of control, and the invalid data pond of depositing invalid data, directly set up the data pool of the Various types of data receiving, can rapidly Various types of data be presented on monitoring interface, without entering continually library inquiry and the operation such as reading, improved the speed of page loading data.
4. the environmental protection Internet of Things real-time control method based on pool technology under Web environment according to claim 1, it is characterized in that: described control pond has been realized and on server, browser mail to the management of target device control information, in order to realize concurrent control terminal, and the data without source sign that the equipment that guarantees returns feed back to the browser of initiating control exactly, further control pond is divided in execution and controls the ponds to be controlled such as Chi He, guarantee that every target device can only be controlled by a browser sometime.
5. the environmental protection Internet of Things real-time control method based on pool technology under Web environment according to claim 4, it is characterized in that: in described execution, control pond, browser end sends control command to target device, if current this target device does not have other browsers to send to it request of control, this control command is entered after together with the link information encapsulation between browser and server and server and target device and in execution, control pond, and corresponding control command is mail to target device; When server listens to the data that target device sends over, first check whether in execution, control pond has the relevant control order of mailing to this target device, if any using it as feedback data, and read the relevant connection information of controlling this control command of pond in execution, feedback data is returned to the browser end of the request of sending, and this control command is controlled from carry out to pond and deleted.
6. the environmental protection Internet of Things real-time control method based on pool technology under Web environment according to claim 4, it is characterized in that: the pond to be controlled such as described, every target device is only processed the control of a browser end sometime, all the other control commands that mail to this equipment all enter server end etc. pool queue to be controlled; In carrying out, controlling pond mails to when the control command execution of this equipment finishes or feedback delay has exceeded the maximum delay arranging, the control data that mail to this equipment in execution control pond are gone out to pond, simultaneously from etc. activate next control data that mail to this equipment pond to be controlled and enter and in execution, control pond, and mail to corresponding target device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410331300.8A CN104079658B (en) | 2014-07-14 | 2014-07-14 | Environmentally friendly Internet of Things real-time control method based on pool technology under Web environment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410331300.8A CN104079658B (en) | 2014-07-14 | 2014-07-14 | Environmentally friendly Internet of Things real-time control method based on pool technology under Web environment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104079658A true CN104079658A (en) | 2014-10-01 |
CN104079658B CN104079658B (en) | 2018-08-14 |
Family
ID=51600698
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410331300.8A Expired - Fee Related CN104079658B (en) | 2014-07-14 | 2014-07-14 | Environmentally friendly Internet of Things real-time control method based on pool technology under Web environment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104079658B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105245509A (en) * | 2015-09-24 | 2016-01-13 | 北京暴风科技股份有限公司 | Method for establishing bidirectional data transmission channel based on Flash platform |
CN106936935A (en) * | 2017-04-28 | 2017-07-07 | 新华三技术有限公司 | A kind of long-range control method and device |
CN113553525A (en) * | 2021-07-20 | 2021-10-26 | 上海众源网络有限公司 | Interface control request processing method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020091629A1 (en) * | 2000-12-01 | 2002-07-11 | John Danpour | Direct online mortgage auction network |
CN101800766A (en) * | 2009-12-30 | 2010-08-11 | 上海交通大学 | Remote monitoring system of industrial sewage treatment based on Web |
CN102801799A (en) * | 2012-08-03 | 2012-11-28 | 国电南瑞科技股份有限公司 | Real-time monitoring system based on B/S architecture |
CN103581338A (en) * | 2013-11-22 | 2014-02-12 | 南通大学 | On-line pollution source monitoring data monitoring system |
CN103618623A (en) * | 2013-11-22 | 2014-03-05 | 安徽康海时代科技有限公司 | Resource control method based on network management system |
-
2014
- 2014-07-14 CN CN201410331300.8A patent/CN104079658B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020091629A1 (en) * | 2000-12-01 | 2002-07-11 | John Danpour | Direct online mortgage auction network |
CN101800766A (en) * | 2009-12-30 | 2010-08-11 | 上海交通大学 | Remote monitoring system of industrial sewage treatment based on Web |
CN102801799A (en) * | 2012-08-03 | 2012-11-28 | 国电南瑞科技股份有限公司 | Real-time monitoring system based on B/S architecture |
CN103581338A (en) * | 2013-11-22 | 2014-02-12 | 南通大学 | On-line pollution source monitoring data monitoring system |
CN103618623A (en) * | 2013-11-22 | 2014-03-05 | 安徽康海时代科技有限公司 | Resource control method based on network management system |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105245509A (en) * | 2015-09-24 | 2016-01-13 | 北京暴风科技股份有限公司 | Method for establishing bidirectional data transmission channel based on Flash platform |
CN105245509B (en) * | 2015-09-24 | 2019-01-22 | 暴风集团股份有限公司 | The method for building up in the bidirectional data transfers channel based on Flash platform |
CN106936935A (en) * | 2017-04-28 | 2017-07-07 | 新华三技术有限公司 | A kind of long-range control method and device |
CN106936935B (en) * | 2017-04-28 | 2021-02-23 | 新华三技术有限公司 | Remote control method and device |
CN113553525A (en) * | 2021-07-20 | 2021-10-26 | 上海众源网络有限公司 | Interface control request processing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN104079658B (en) | 2018-08-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104243021B (en) | A kind of electric power communication optical cable patrolling and checking management system | |
CN104301151A (en) | Movement operation and maintenance system and method of power communication network | |
CN108964264A (en) | The wireless realization of debugging method of intelligent substation site device | |
CN103427489A (en) | Intelligent substation comprehensive monitoring system | |
CN102857381A (en) | Medical device intelligent cloud management and maintenance system and method | |
CN113612820A (en) | Cloud edge device platform control architecture and method based on Superedge and edgeXFioutry | |
CN105490876A (en) | Method for automatic testing of server performance through packet sending linkage and concurrent monitoring | |
CN109921986A (en) | A kind of multi-protocol data cut-in method, device, intelligent gateway and storage medium | |
CN104079599A (en) | Real-time message synchronizing method and container wharf operation system | |
CN112187922A (en) | Intelligent Internet of things shutdown machine based on MQTT communication protocol | |
CN108255585A (en) | SDK exception controls and application program operation method, device and its equipment | |
CN104079658A (en) | Environment-friendly internet of things real-time control method under Web environment and based on pool technology | |
CN106292518B (en) | Remote PLC monitoring and debugging system and method | |
CN103581338A (en) | On-line pollution source monitoring data monitoring system | |
CN101262371A (en) | Configuration method and device of network devices | |
CN103067201A (en) | Multi-protocol communication manager | |
CN202918312U (en) | Medical equipment intelligent cloud management and maintenance system | |
KR20070052641A (en) | Robot server, content providing system and method comprising the same | |
KR102593008B1 (en) | Method and apparatus for distributed smart factory operation using opc ua | |
CN103338382A (en) | Method and device for remotely monitoring digital television terminal and digital television system | |
CN111026662A (en) | Remote debugging method, system and medium for terminal equipment of Internet of things | |
CN102768516A (en) | Historical data additional recording method of wireless measurement and control system | |
KR20180024367A (en) | Method and system for management of collecting bulk data based on hadoop | |
CN203587709U (en) | Intelligent transformer station integrated monitoring system | |
CN112637370B (en) | Data processing method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
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: 20180814 |