CN104079658B - Environmentally friendly Internet of Things real-time control method based on pool technology under Web environment - Google Patents
Environmentally friendly Internet of Things real-time control method based on pool technology under Web environment Download PDFInfo
- Publication number
- CN104079658B CN104079658B CN201410331300.8A CN201410331300A CN104079658B CN 104079658 B CN104079658 B CN 104079658B CN 201410331300 A CN201410331300 A CN 201410331300A CN 104079658 B CN104079658 B CN 104079658B
- Authority
- CN
- China
- Prior art keywords
- control
- data
- pond
- target device
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 14
- 238000005516 engineering process Methods 0.000 title claims abstract description 11
- 238000012544 monitoring process Methods 0.000 claims abstract description 23
- 230000000977 initiatory effect Effects 0.000 claims abstract description 6
- 230000005540 biological transmission Effects 0.000 claims description 8
- 230000004044 response Effects 0.000 claims description 3
- 238000005538 encapsulation Methods 0.000 claims description 2
- 238000012217 deletion Methods 0.000 claims 1
- 230000037430 deletion Effects 0.000 claims 1
- 230000007613 environmental effect Effects 0.000 description 7
- 238000004891 communication Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 230000006872 improvement Effects 0.000 description 4
- 238000004458 analytical method Methods 0.000 description 2
- 230000002457 bidirectional effect Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000007726 management method Methods 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
- 238000001816 cooling Methods 0.000 description 1
- 235000019628 coolness Nutrition 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 239000003344 environmental pollutant Substances 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012806 monitoring device Methods 0.000 description 1
- 231100000719 pollutant Toxicity 0.000 description 1
- 230000003252 repetitive effect Effects 0.000 description 1
- 239000010865 sewage Substances 0.000 description 1
- 239000013589 supplement Substances 0.000 description 1
Landscapes
- Selective Calling Equipment (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses the environmentally friendly Internet of Things real-time control methods based on pool technology under a kind of Web environment, are suitable for the pollution source real-time monitoring system of B/S frameworks, involved pond includes:Store the connection pool of the Socket link informations such as monitor terminal, browser, storage browser end sent out to remote target device in the execution of control data control pond and etc. pond to be controlled, and the data pool of storage Various types of data, the environmentally friendly Internet of Things real-time control method, con current control of the browser end to remote equipment is realized using pool technology, and the control result of no source identification can accurately be returned to the browser for initiating control.
Description
Technical field
The present invention relates to a kind of environmentally friendly Internet of Things real-time control method based on pool technology, is mainly used under B/S frameworks,
Monitoring central server or any browser end carry out remote real_time control to field device in environmentally friendly Internet of Things.
Background technology
With the rapid development of information technology, network technology, China's Information of the Environment building-up work has also obtained very fast hair
Exhibition, using national environmental information network system as maincenter, provincial environmental information network system be backbone, City-level environmental information net
Based on network system, environmental information network system at county level be supplement level Four whole nation environmental information network system begun to take shape.
Although pollution sources automatic monitored control system passes through construction in more than 10 years, technology is increasingly advanced, and function becomes increasingly complex, and to make certainly
Dynamic monitoring system is more perfect, meets the requirement of new period environmental warning and monitoring, and also many problems are in the urgent need to address.
Control of the existing pollution sources on-line monitoring center to remote equipment, such as long-range reading real time data, remotely sampling,
The long-range current operating conditions for reading analyzer remotely close the functions such as sewage draining exit valve, and what is had can only be in central server reality
It is existing;Some installs corresponding software realization based on C/S frameworks, in client, there is certain limitation in actual use.In B/S
In the pollution sources remote monitoring system of framework, how the information on browser is rapidly sent to remote scene equipment, realized
Real-time between browser and remote supervisory and control(ling) equipment, efficient two-way communication is a problem to be solved.
Invention content
The purpose of the present invention is to solve the above problem, the environmentally friendly Internet of Things based on pool technology under a kind of Web environment are provided
Net real-time control method.
The purpose of the present invention is achieved through the following technical solutions:In environmentally friendly Internet of Things on-line monitoring platform, including three classes
Pond:When the connection pool of the Socket connections such as storage monitor terminal, browser, second is that the control pond for remote real_time control,
Third, the data pool of storage Various types of data.Control pond include execute in control pond and etc. pond to be controlled, each remote equipment some
Moment only supports the control of a browser end, if there is others be sent to the control datas of the remote equipment then enter etc. it is to be controlled
It is waited in pond processed, realizes browser end con current control remote equipment.According to the newest link information preserved in connection pool, monitoring clothes
Business device can will control pond control command in execution is accurate and ensuring escapement from confliction is sent to corresponding target device, while can set target
The standby result without source identification returned accurately feeds back to the browser for sending out request.
Further improvement of the present invention is:Connection pool realizes server and long-range number and adopts instrument, data transmission unit, clear
Look at the unified managements of all link informations between device.In real-time control, on the one hand, because number adopts instrument and monitor supervision platform
It will disconnect when Socket is connected with, so some numbers adopt instrument when countercharging realization, it is to adopt instrument by number actively to send out to monitor supervision platform
A nearest connection realize countercharge, this can influence logarithm and adopt the realization that instrument is countercharged in real time, or even can not countercharge, and be
This records all link informations, adopts instrument when number and often just safeguarded in connection pool to monitoring center transmission data by introducing connection pool
The up-to-date information of all connections, it is ensured that countercharge information can send commands to target device immediately by the connection, reduce and wait for
Time;On the other hand, connection pool maintains the Socket link informations of browser end, when control terminal equipment, the knot of return
Fruit information can rapidly be sent to the browser for initiating control by these interface channels.
Further improvement of the present invention is:On the server according to the difference for receiving data type, it is further divided into
The Bao Chi for storing different types of data packet, the new data of reception is stored directly in memory, can rapidly will be all kinds of newest
Data are shown on monitoring interface, and, into the operations such as library inquiry and reading, page load data are improved without continually carrying out
Speed.
Further improvement of the present invention is:Browser end sends out control command to remote target device, if currently should
Target device sends out control data without other browsers to it, then by the control command together with browser and server and clothes
Enter after link information encapsulation between business device and target device in executing and control pond, and corresponding control command is sent to target
Equipment;When server listens to the data that target device sends over, first check whether control pond is sent to the mesh in executing
The concerned control command of marking device, if any then as feedback data, and read execute in control pond this control command
Feedback data is returned to the browser end for sending out request, and this control command is controlled from execution by relevance linkage information
It deletes in pond.
Further improvement of the present invention is:Sometime every target device only handles the control of a browser end,
Remaining be sent to control signal of the equipment all enter server end etc. pool queue to be controlled;It is sent to this when controlling pond in execution and sets
When standby control command execution terminates or feedback delay has exceeded the maximum delay of setting, it will execute in control pond and be sent to the equipment
Control data go out pond, while from etc. activate the next control data for being sent to the equipment to enter in execution in pond to be controlled to control
Pond, and it is sent to corresponding target device.
Compared with the prior art, the present invention has the following advantages:
1, using connection pool, the unified management of all link informations can be realized, and when listening to effective data packets, from
Dynamic to safeguard connection pool, ensure in connection pool all is connected as effectively connecting.It, directly will service by the connection pool of real-time update
Related data issues target device or browser on device, reduce server end can only passively wait for connection transmission data when
Prolong, improves real-time.
2, using connection pool and control pond, monitor supervision platform can realize the control data for sending out browser end accurately nothing
It is sent to conflict corresponding target device, while the result without source identification that target device returns can accurately be fed back to phase
Browser is answered, a kind of effective real-time control method in real-time control platform is given.
3, by controlling pond in execution and waiting pond to be controlled, the con current control of target device is realized, i.e. some equipment
A moment only allows a browser end to be controlled, avoid multiple terminals and meanwhile control initiation field device repetitive operation,
The problems such as maloperation, solves the demand of browser end con current control terminal device.
Description of the drawings
Fig. 1 is the pollution sources on-line monitoring system assumption diagram based on B/S frameworks;
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 browser BC Server monitorings and process chart;
Fig. 5 is that number adopts instrument DAQ Server monitorings and process chart.
Specific implementation mode
In order to deepen the understanding of the present invention, below in conjunction with embodiment and attached drawing, the invention will be further described, should
Embodiment is only used for explaining the present invention, is not intended to limit the scope of the present invention..
Pollution sources on-line monitoring architecture based on B/S frameworks is as shown in Figure 1.Server and Web are monitored in order to realize
Bidirectional real-time between browser uses Flash XML Socket communication modes.The web access mechanism of standard uses
Http protocol only allows browser end actively to initiate request, and server is not allow server to be sent out to browser by dynamic response
Go out a connection request, that is to say, that do not provide design to browser propelling data for server and realize.In contrast,
XMLSocket solutions keep connecting with the open of server, this connection allows server to send incoming message immediately,
Request is sent out without client, ensure that real-time.As the Flash Server in Fig. 2 are responsible for realizing server end and browsing
Device end XMLSocket establishment of connections can realize pair of server end and browser end by BC Server after successful connection
To real-time Communication for Power.
The control data that Web browser end is submitted according to user from interface, such as target device, command type, pollutant
The information such as number are packaged into data packet by information such as addition check code, packet length according to our customized transport protocols, will
Control command is sent to server end from browser end.
According to the difference of the task of monitoring, server end is made of multiple monitoring servers, as shown in Figure 2.Wherein BC
Server is responsible for receiving the control data sent out from browser end and sends control result to browser, receives control data
Bao Hou carries out legitimacy parsing according to self-defined transport protocol to data packet, such as parses correctly, further analysis and Control order
Type.Although country's logarithm adopts transmission standard of instrument etc. and carried out specification at present, remote control is also supported, each producer is specific
There is also differences when realization, can not support all Control Coolings completely, so according to the demand of actual use, ours
In Framework design, some numbers adopt what instrument was not supported, we directly can directly be carried out by data transmission unit DTU remotely
Control so that our pollution sources on-line control system has the flexibility of height.
By the analysis to control command type, we can select to be to adopt instrument to number, or send control life to DTU
It enables.If adopting instrument to number to send, the control data bag received is parsed and extracts data by server, then encapsulates data into symbol
The control command format for closing national standard HJ/T212-2005 is sent out data by server end DAQ Server as shown in Figure 2
Instrument is adopted toward corresponding number.If sent to DTU, according to the protocol type that field device is supported, such as Panasonic's agreement, data are sealed
Data are sent to corresponding DTU by the control command for dressing up Panasonic's protocol format by DTU Server.It is several to adopt instrument or DTU and show
By serial communication between monitoring device, control command is sent to field monitoring equipment, such as valve opening, close valve, over-standard sample retention,
Obtain instantaneous value, obtain detection meter status information etc..Field monitoring equipment executes order, and the result of feedback is adopted instrument by number
Or DTU returns to monitoring server, and feedback result is transferred to Web browser end by XML Socket by BC Server.
As shown in Fig. 2, monitor on server other than being responsible for monitoring four kinds of terminals of different task, also different ponds,
Include the connection pool ConnectionPool for recording link information, for controlling pond in handling the execution of control information
ControllingPool and control wait for pond ControlWaitingPool, and the data for storing all kinds of reception data
Pond.The latest data of reception is stored directly in memory, the operations such as frequent inquiry, the reading to database is avoided, improves
The speed of page load data.
Since the feedback data of terminal device responsing control command can not be distinguished with general data, control can not be also tracked
The promoter for making order, in order to realize real-time control of the browser end to remote equipment, such as long-range sampling, long-range valve opening, far
Journey closes valve etc., we arrange, and a number of units adopts instrument or the DTU a certain moment only handles a remote control command.Fig. 3 gives environmental protection
Technique of real-time control based on pond in Internet of Things.After browser end sends out control data, server end first checks to be controlled in execution
Whether there is or not the control commands for being sent to the number and adopting instrument or DTU to be carrying out in pond ControllingPool processed, if it is not, by new
Control command ControllingPool is added, the pond ControlWaitingPool to be controlled such as be otherwise added into.When a certain
Control command has executed, and number adopts instrument or DTU uploads onto the server implementing result, will be returned the result into corresponding number on server
According to pond, instrument or the control information of DTU are adopted according to the number is sent in ControllingPool, implementing result is returned to send out and is asked
The browser asked, and the control information is deleted from ControllingPool, while being obtained from ControlWaitingPool
Take and be sent to the number and adopt instrument or the next control command of DTU, if there is such order, by its from
ControlWaitingPool is transferred to ControllingPool and executes, i.e., will control accordingly information according to
Link information in ConnectionPool is sent to corresponding number and adopts instrument or DTU, executes next control command.
In order to realize real-time control of the browser end to field device, it is two-way that we are based on Flash XML Socket realizations
Real-time Communication for Power.Flash Server are responsible for establishing server end on server connects with the XML Socket of browser end, connects
After foundation, bidirectional real-time is carried out based on BC Server and browser end on server, browser end general information it is clear
It lookes at, inquire etc. and being still based on http protocol.
Fig. 4 gives monitorings and process flow of the BC Server for browser on server.Browser end is sent out
Control data is parsed, if the Packet analyzing to reception is correct, in conjunction with the link information between browser and server, and
Link information between server and target device, the control data that control data is encapsulated as to specific format enter in execution to control
Pond ControllingPool is that number adopts instrument or DTU according to target device, selects DAQ Server or DTU Server that will control
Data processed are sent to specified target device.
Fig. 5, which gives DAQ Server on server and adopts the specific of instrument for number, to be monitored and process flow, DTU on server
Server is similar with process flow with its for the monitoring of DTU.DAQ Server are responsible for monitoring the data that number adopts instrument upload, pass through
It uploads number in data and adopts the information of instrument equipment, then go in control pond ControllingPool to search whether that the number adopts the phase of instrument
Control command is answered to carry out, number at this time, which is adopted the result that the data that instrument uploads control in response, if having returns to browser
Otherwise end is handled as the general data that upload.
Claims (1)
1. the environmentally friendly Internet of Things real-time control method based on pool technology under a kind of Web environment, including three classes pond:First, storage monitoring
The connection pool of terminal, browser end Socket link informations, second is that the control pond for remote real_time control, third, storage is all kinds of
The data pool of data, it is characterised in that:Using connection pool and control pond, browser end can realize con current control target device,
I.e. live number adopts instrument or data transmission unit, while can accurately turn the result data without source identification that target device returns
The browser end for initiating control is issued, the connection pool realizes server end and adopts instrument, data transmission unit, browsing with long-range number
The unified management of all link informations between device end supports pond, goes out pond, the link information from acquisition connecting object, pond in pond
Real-time servicing operates, and in real-time control, introduces connection pool and records all link informations, when monitoring center often receive one it is new
Corresponding link information in connection pool is just safeguarded when effective data packets automatically, so that it is guaranteed that being newest connection letter in connection pool
Breath;On the one hand, when browser end remote control target device, the newest of the target device can be taken out from connection pool rapidly
Control command is sent to target device by link information;On the other hand, connection pool maintains the Socket connections letter of browser end
Breath, the result information returned from target device can rapidly be sent to the browser for initiating control by these interface channels
End, the data pool, according to the difference for receiving data type, are further divided into all data packets of storage on server end
The number that instrument upload data are adopted in data packet pond, storage number adopts instrument data pool, the live number of storage adopts instrument or data transmission unit upload number
According to data pool, storage browser end send out control data browser end data pool and store invalid data invalid number
According to pond, the data pool of received Various types of data is directly established, can include rapidly the nothing on monitoring interface by Various types of data
It need to continually carry out improving the speed of page load data into library inquiry and read operation;The control pond realizes service
The management that target device controls information is sent to browser end on device end, in order to realize con current control target device, and ensures to set
The standby data without source identification returned accurately feed back to the browser end for initiating control, and control pond is further divided into execution
Middle control pond and etc. pond to be controlled, ensure every target device can only sometime be controlled by a browser end;In execution
Control pond, browser end sends out control command to target device, if the current target device without other browser ends to its
Control data is sent out, then by the control command together between browser end and server end and server end and target device
Enter after link information encapsulation in executing and control pond, and corresponding control command is sent to target device;When server end is monitored
When the data sended over to target device, first check whether control pond has the relevant control life for being sent to the target device in executing
Enable, if any then as feedback data, and read execute in control the relevance linkage information of pond this control command, will feed back
Data return to the browser end for sending out request, and this control command is controlled to pond deletion from execution;It is described etc. to be controlled
Pond processed, for a target device at a time only in response to the control command of a browser end, remaining is sent to the control of target device
System order all enter server end etc. pool queue to be controlled;When control pond is sent to the control command execution of target device in execution
When end or feedback delay have exceeded the maximum delay of setting, the control data that target device is sent in execution control pond are gone out
Pond, meanwhile, from etc. choose the next control data for being sent to the target device in pond to be controlled, be transferred in execution and control pond, and
It is sent 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 CN104079658A (en) | 2014-10-01 |
CN104079658B true 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) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105245509B (en) * | 2015-09-24 | 2019-01-22 | 暴风集团股份有限公司 | The method for building up in the bidirectional data transfers channel based on Flash platform |
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 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7499885B2 (en) * | 2000-12-01 | 2009-03-03 | John Danpour | Direct online mortgage auction network |
-
2014
- 2014-07-14 CN CN201410331300.8A patent/CN104079658B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Also Published As
Publication number | Publication date |
---|---|
CN104079658A (en) | 2014-10-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102489203B1 (en) | Method and device for transmitting data in Internet of Things system, gateway device and its storage medium | |
CN111031034A (en) | Multi-protocol convergence edge computing gateway | |
CN110995859A (en) | Intelligent transformer substation supporting platform system based on ubiquitous Internet of things | |
US11330035B2 (en) | Method and server for HTTP protocol-based data request | |
CN113467771B (en) | Model-based industrial edge cloud collaboration system and method | |
CN104079658B (en) | Environmentally friendly Internet of Things real-time control method based on pool technology under Web environment | |
CN112685248A (en) | Intelligent network card monitoring log obtaining method and device, electronic equipment and storage medium | |
CN112187922A (en) | Intelligent Internet of things shutdown machine based on MQTT communication protocol | |
CN114827293B (en) | Edge intelligent gateway management method and edge intelligent gateway | |
US20220311644A1 (en) | Data transmission method and device, electronic apparatus and storage medium | |
CN106292518A (en) | Remote PLC monitoring and debugging system and method | |
CN103581338A (en) | On-line pollution source monitoring data monitoring system | |
CN111464368A (en) | Device and method for quickly realizing signaling tracking in network management system | |
CN118158299A (en) | Data conversion method, device, equipment and medium | |
CN105407150A (en) | Remote control method of application program | |
CN102148702A (en) | Method for managing network by utilizing network configuration protocol | |
CN109120742B (en) | UDP-based power distribution network terminal data acquisition method and device | |
CN103595796A (en) | Dynamic monitoring method and system based on network | |
CN116647490A (en) | Aviation AFDX network data detection system | |
CN112637370B (en) | Data processing method, device, equipment and storage medium | |
CN110134086B (en) | Data acquisition and control device for realizing middleware function in digital workshop | |
CN204836205U (en) | Network monitoring system based on cloud calculates | |
EP3725107A1 (en) | Communications with constrained devices | |
CN104516883A (en) | Webpage sharing method, device and system | |
CN209088989U (en) | A kind of data acquisition gateway |
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 |
Granted publication date: 20180814 |
|
CF01 | Termination of patent right due to non-payment of annual fee |