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 PDF

Info

Publication number
CN104079658A
CN104079658A CN 201410331300 CN201410331300A CN104079658A CN 104079658 A CN104079658 A CN 104079658A CN 201410331300 CN201410331300 CN 201410331300 CN 201410331300 A CN201410331300 A CN 201410331300A CN 104079658 A CN104079658 A CN 104079658A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
control
pool
data
browser
connection
Prior art date
Application number
CN 201410331300
Other languages
Chinese (zh)
Other versions
CN104079658B (en )
Inventor
丁浩
管致锦
程学云
李跃华
陈森博
朱鹏程
张义清
梁惺彦
Original Assignee
南通大学
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

Links

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

Web环境下基于池技术的环保物联网实时控制方法 Real-time control method based networking technology, environmental protection pool was under Web Environment

技术领域 FIELD

[0001] 本发明涉及一种基于池技术的环保物联网实时控制方法,主要应用于B/S架构下,环保物联网中监控中心服务器或任何浏览器端对现场设备进行远程实时控制。 [0001] The present invention relates to an environmental cell technology based on real-time control method things, mainly used in the B / S structure, environmental monitoring center server IoT or any browser on the remote real-time control of field devices.

背景技术 Background technique

[0002] 随着信息技术、网络技术的飞速发展,我国环境信息化建设工作也得到了较快发展,以国家级环境信息网络系统为中枢、省级环境信息网络系统为骨干、城市级环境信息网络系统为基础、县级环境信息网络系统为补充的四级全国环境信息网络系统已初具规模。 [0002] With the rapid development of information technology, network technology, information technology environment of the construction work has also been rapid development, with a national environmental information network system for the central, provincial environmental information network system as the backbone, city-level environmental information network-based system, the county environmental information network system to complement the four national environmental information network system has taken shape. 虽然污染源自动监控系统经过10多年的建设,技术越来越先进,功能越来越复杂,但要使自动监控系统更完善、满足新时期环境预警与监控的要求,还有很多问题迫切需要解决。 Although the sources of pollution automatic monitoring system after 10 years of construction, technology becomes more advanced, more complex functions, but to make automatic monitoring system better meet the requirements of environmental early warning and monitoring of the new era, there are many problems to be solved urgently.

[0003] 现有的污染源在线监控中心对远程设备的控制,如远程读取实时数据、远程采样、远程读取分析仪的当前运行状态、远程关闭排污口阀门等功能,有的只能在中心服务器实现;有的基于C/S架构,在客户端安装相应的软件实现,实际使用中有一定的局限性。 [0003] a conventional pollution-line monitoring of the remote central control device, such as remote reading real-time data, the remote sample, the remote read current operating status of the analyzer, the remote close the drain outlet valve and other functions, only some of the central server implementation; some based on C / S structure, install the appropriate client software, practical use has certain limitations. 在B/S架构的污染源远程监控系统中,如何将浏览器上的信息快速地发送到远程现场设备,实现浏览器与远程监控设备之间实时、高效的双向通信是亟待解决的问题。 In the remote monitoring system pollution B / S architecture, the information on how the browser quickly sent to the remote field devices, real-time between the browser and the remote monitoring equipment and efficient two-way communication is a serious problem.

发明内容 SUMMARY

[0004] 本发明的目的是为了解决上述问题,提供一种Web环境下基于池技术的环保物联网实时控制方法。 [0004] The object of the present invention to solve the above problems and to provide real-time control based on the environmental cell technology for Web environment under things.

[0005] 本发明的目的通过以下技术方案来实现:环保物联网在线监控平台上,包括三类池:一是存储监控终端、浏览器等Socket连接的连接池,二是用于远程实时控制的控制池,三是存储各类数据的数据池。 [0005] The object of the present invention is achieved by the following technical solutions: Environmental things online monitoring platform, comprising three pools: One connection pool storage monitoring terminal, connected Socket browser or the like, for two remote real-time control control pool, the three kinds of data are stored in the data pool. 控制池包括执行中控制池和等待控制池,每个远程设备某个时刻只支持一个浏览器端的控制,如果有其他的发往该远程设备的控制请求则进入等待控制池中等待,实现浏览器端并发控制远程设备。 Control pool includes execution control pool and pool waiting for control, each remote control device at some point only supports a browser, and if there are other control request sent to the remote control device is waiting to enter the pool waiting to realize the browser end of concurrency control remote devices. 根据连接池中保存的最新连接信息,监控服务器可将执行中控制池的控制命令准确而无冲突地发往相应的目标设备,同时能将目标设备返回的无来源标识的结果准确地反馈给发出请求的浏览器。 According to the latest connection information stored in the connection pool, the monitoring may be performed in the control server pool without conflict to accurately control command sent to the respective target device, the target device returns at the same time can result in no source identified and accurate feedback to issue requesting browser.

[0006] 本发明的进一步改进在于:连接池实现了服务器与远程数采仪、数据传输单元、浏览器之间所有连接信息的统一管理。 Further improve [0006] the present invention: connection pool implements all unified management of the connection information between the server and a remote data acquisition device, the data transmission unit, the browser. 在实时控制中,一方面,因为数采仪与监控平台的Socket连接有时会断开,所以有些数采仪在反控实现时,是借助数采仪主动向监控平台发起的最近的一条连接来实现反控的,这会影响对数采仪实时反控的实现,甚至无法反控,为此通过引入连接池,记录所有连接信息,当数采仪每向监控中心发送数据就维护连接池中所有连接的最新信息,确保反控信息能够借助该连接即时发送命令给目标设备,减少等待时间;另一方面,连接池维护了浏览器端的Socket连接信息,当控制终端设备时,返回的结果信息可以通过这些连接通道快速地发送给发起控制的浏览器。 In real-time control, on the one hand, because Socket data acquisition device and monitoring platform connection sometimes disconnected, so some data acquisition device at the time of recrimination achieved by means of a data acquisition device recently launched initiative to connect to the monitoring platform implement anti-control, which may affect the realization of real-time data acquisition instrument of recrimination, not even recrimination, to this end by introducing the connection pool, to record all the connection information, when each data acquisition device to send data to the monitoring center to maintain the connection pool all the latest information about the connection, make sure that anti-control information can be connected by means of the instant send commands to the target device to reduce the waiting time; on the other hand, the connection pool maintains Socket connection information the browser side, when the control terminal equipment, the returned result information may be sent to the originating control the browser via the connection passage quickly.

[0007] 本发明的进一步改进在于:在服务器上根据接收数据类型的不同,进一步划分为存储不同类型数据包的包池,将接收的新数据直接存储在内存中,可以快速地将各类最新数据显示在监控界面上,无需频繁地进行入库查询和读取等操作,提高了页面加载数据的速度。 [0007] The present invention is further improved: the server depending on the type of data received, the packet pool memory further divided into different types of data packet, in the memory, can quickly store all the latest new data received directly data is displayed on the monitor screen, without the need for warehousing operations such as query and read frequently, increasing the speed of page loading data.

[0008] 本发明的进一步改进在于:浏览器端向远程目标设备发出控制命令,如果当前该目标设备没有其他浏览器向其发出控制请求,则将该控制命令连同浏览器和服务器以及服务器和目标设备之间的连接信息封装后进入执行中控制池,并将相应的控制命令发往目标设备;当服务器监听到目标设备发送过来的数据时,先检查执行中控制池是否有发往该目标设备的相关控制命令,如有则将其作为反馈数据,并读取执行中控制池该条控制命令的相关连接信息,将反馈数据返回给发出请求的浏览器端,并将该条控制命令从执行中控制池删除。 [0008] The present invention is further improved: the browser sends a control command to the remote target device, the target device if no other current browser to issue a control request, then the control command along with the browser and the server and the server and the target package connection information between devices in execution, the control pool, and the corresponding control commands sent to the target device; when the server to monitor the data sent from the target device, check whether there is executed a control cell sent to the target device the relevant control command, will be as if feedback data, control command and the control strip reading pool execution related connection information, feedback data returned to the requesting browser, and execute commands from the control strip control pool deleted.

[0009] 本发明的进一步改进在于:某个时刻每台目标设备只处理一个浏览器端的控制,其余发往该设备的控制信号都进入服务器端的等待控制池队列;当执行中控制池发往该设备的控制命令执行结束或反馈时延超出了设置的最大时延时,将执行控制池中发往该设备的控制数据出池,同时从等待控制池中激活下一条发往该设备的控制数据进入执行中控制池,并发往相应的目标设备。 [0009] Further improvements of the present invention is: a certain time each target device processes only control a browser, and the rest sent to a control signal of the device have entered the server waits for a control pool queue; when performed in the control cell sent to the control command execution end or feedback device exceeds the maximum delay time of the delay setting, the control data to execute the device control pool to the pool, the control pool while waiting for activation from the control data destined for a device into the execution control pool, and sent to the respective target device.

[0010] 本发明与现有技术相比具有以下优点: [0010] The present invention and the prior art has the following advantages:

1、利用连接池,能够实现所有连接信息的统一管理,并在监听到有效数据包时,自动维护连接池,保证连接池中的所有连接为有效连接。 1, the use of connection pooling, to achieve unified management of all the connection information, and listening to a valid data packet, automatically maintain the connection pool, the connection pool to ensure that all connections to be valid connection. 借助实时更新的连接池,直接将服务器上相关数据发给目标设备或浏览器,降低了服务器端只能被动等待连接发送数据的时延,提高了实时性。 With real-time updates of the connection pool, directly on the server-related data to the target device or browser, reducing the server side can only passively waiting time connection to send data, improved real-time.

[0011] 2、利用连接池和控制池,监控平台能够实现将浏览器端发出的控制请求准确而无冲突地发往相应的目标设备,同时能将目标设备返回的无来源标识的结果准确地反馈给相应浏览器,给出了实时控制平台中一种有效的实时控制方法。 [0011] 2, by the connection pool and the pool control, monitoring platform enables the control request sent by the browser to accurately sent without conflict respective target device, the target device returns at the same time can result in no source identified accurately feedback corresponding to the browser, given an effective real-time control platform real-time control method.

[0012] 3、通过执行中控制池和等待控制池,实现了目标设备的并发控制,即某个设备某个时刻只允许一个浏览器端进行控制,避免了多终端同时控制引发的现场设备重复操作、误操作等问题,解决了浏览器端并发控制终端设备的需求。 [0012] 3, by executing the control control pools and the waiting pool, the concurrency control to achieve the target device, i.e. a device that allows only a certain time the browser control, to avoid the simultaneous multi-terminal control apparatus repeats field induced operation, misuse and other problems solved browser concurrency control terminal equipment needs.

附图说明 BRIEF DESCRIPTION

[0013] 图1是基于B/S架构的污染源在线监控体系结构图; [0013] FIG. 1 is a configuration diagram of pollution-line monitoring system B / S-based architecture;

图2是基于池的多任务监听; Figure 2 is based on the multi-tasking pool listening;

图3是基于池的实时控制流程; FIG 3 is based on real-time control flow cell;

图4是浏览器BC Server监听和处理流程图; FIG 4 is a browser and BC Server listener process flow diagram;

图5是数采仪DAQ Server监听和处理流程图。 FIG 5 is a data acquisition device and a process flow diagram DAQ Server listener.

具体实施方式 Detailed ways

[0014] 为了加深对本发明的理解,下面将结合实施例和附图对本发明作进一步详述,该实施例仅用于解释本发明,并不构成对本发明保护范围的限定。 [0014] For better understanding of the present invention, the following examples and the accompanying drawings in conjunction with embodiments of the present invention will be described in further detail, this embodiment is merely for explaining the present invention, not to limit the scope of the present invention.

[0015] 基于B/S架构的污染源在线监控体系结构如图1所示。 [0015] The pollution-line monitoring architecture based on B / S structure shown in Figure 1. 为了实现监听服务器和Web浏览器之间双向实时通信,采用了Flash XML Socket通信方式。 In order to achieve real-time two-way communications between the monitor server and Web browser, using the Flash XML Socket communication. 标准的Web访问机制采用HTTP协议,只允许浏览器端主动发起请求,而服务器是被动响应,不允许服务器向浏览器发出一个连接请求,也就是说没有为服务器向浏览器推送数据提供设计实现。 Web access mechanisms using standard HTTP protocol, allowing only browser initiate a request and the server response is passive, does not allow the server sends a connection request to the browser, that does not provide for the design and implementation of server push data to the browser. 与此相对照,XMLSocket解决方案保持与服务器的开放连接,这一连接允许服务器即时发送传入的消息,而无需客户端发出请求,保证了实时性。 In contrast, XMLSocket solution maintains an open connection to the server, which lets the server immediately send incoming messages without a request from the client, to ensure real-time. 如图2中的Flash Server负责实现服务器端和浏览器端XMLSocket连接的建立,连接成功后即可通过BC Server实现服务器端和浏览器端的双向实时通信。 As shown in 2 Flash Server is responsible for implementing server and browser to establish XMLSocket connection, you can achieve two-way real-time communication server and browser side by BC Server connection is successful.

[0016] Web浏览器端根据用户从界面上提交的控制请求,如目标设备、命令类型、污染物编号等信息,通过添加校验码、包长等信息,按照我们自定义的传输协议封装成数据包,将控制命令从浏览器端发送给服务器端。 [0016] Web browser according to a request submitted by a user from a control interface, such as the target device, the command type, number and other information of contaminants, by adding checksum, packet length information, according to our custom transport protocols encapsulated data packet, a control command is sent from the browser to the server.

[0017] 根据监听任务的不同,服务器端由多个监听服务器组成,如图2所示。 [0017] The monitor different tasks, the server end by a plurality of listening servers, as shown in FIG. 其中BCServer负责接收从浏览器端发出的控制请求以及向浏览器发送控制结果,接收到控制数据包后,对数据包根据自定义传输协议进行合法性解析,如解析正确,进一步分析控制命令的类型。 Wherein BCServer control is responsible for receiving requests from the browser and transmits the control result to the browser, after receiving the control packet, the data packet on validity based on a custom transport protocols, such as resolved correctly, further analysis of the type of control command . 虽然目前国家对数采仪的传输标准等进行了规范,也支持远程控制,但各厂家在具体实现时还存在差异,也不能完全支持所有的控制类型,所以根据实际使用的需求,在我们的系统框架设计中,有些数采仪不支持的,我们可以直接通过数据传输单元DTU直接进行远程控制,使得我们的污染源在线控制系统具有高度的灵活性。 Although the current state of the transmission standards such as data acquisition instrument were the norm, and also supports remote control, but the manufacturers differ in specific implementation Shihai, can not fully support all types of controls, so based on the needs of actual use, in our framework design, some data acquisition device is not supported, we can direct data transfer unit DTU directly through the remote control, so that pollution of our online control system is highly flexible.

[0018] 通过对控制命令类型的分析,我们可以选择是向数采仪,还是向DTU发送控制命令。 [0018] By analyzing the type of control commands, we can choose, or send control commands to the DTU to data acquisition device. 如果向数采仪发送,服务器将接收到的控制数据包解析并提取数据,再将数据封装成符合国标HJ/T212-2005的控制命令格式,通过服务器端如图2中所示的DAQ Server,将数据发往对应的数采仪。 If sent to the data acquisition device, the server receives the control packet parse and extract data, then the data package to conform to the national standard control HJ / T212-2005 command format, as shown DAQ Server by the server shown in Figure 2, the corresponding data to the data acquisition device. 如果向DTU发送,根据现场设备支持的协议类型,比如松下协议,将数据封装成松下协议格式的控制命令,通过DTU Server将数据发往对应的DTU。 If the DTU sends, according to the protocol type supported field device, such as Panasonic protocol, data is encapsulated into a control command protocol format Panasonic, by DTU Server corresponding to the data to the DTU. 数采仪或DTU与现场监测设备之间通过串口通信,将控制命令发送给现场监测设备,如开阀、关阀、超标留样、获取实时值、获取检测仪表状态信息等。 Data acquisition device or between DTU and the monitoring device through the serial communication field, a control command to the site monitoring apparatus, such as a valve opening, valve closing, stay kind exceeded, obtaining real-time values, status information acquisition instrumentation. 现场监测设备执行命令,将反馈的结果通过数采仪或DTU返回给监听服务器,由BC Server通过XML Socket将反馈结果传输到Web浏览器端。 Site monitoring equipment to perform the command, the result listener feedback back to the server through the data acquisition device or DTU, the result of feedback from the BC Server transmitted to the Web browser via XML Socket.

[0019] 如图2所示,监听服务器上除了负责监听不同任务的四种终端外,还有不同的池,包括用于记录连接信息的连接池Connect1nPool,用于处理控制信息的执行中控制池ControllingPool和控制等待池ControlWaitingPool,以及用于存储各类接收数据的数据池。 [0019] As shown, in addition to the monitor server is responsible for different tasks four kinds of terminal monitors, there are different pools, pool including connection Connect1nPool for recording link information for performing processing control information in the control pool 2 ControllingPool and control waits pools ControlWaitingPool, and means for storing various types of data pool to receive data. 将接收的最新数据直接存储在内存中,避免了对数据库的频繁查询、读取等操作,提高了页面加载数据的速度。 The latest data received is stored directly in memory to avoid frequent queries to the database, reading and other operations, improve the speed of page loading data.

[0020] 由于终端设备响应控制命令的反馈数据无法与普通数据进行区分,也无法追踪控制命令的发起者,为了实现浏览器端对远程设备的实时控制,例如远程采样、远程开阀、远程关阀等,我们约定一台数采仪或DTU某一时刻只处理一个远程控制命令。 [0020] Since the terminal device can not respond to the control command feedback data to distinguish normal data, a control command originator can not be tracked, in order to achieve real time control of the browser remote device, such as remote sample, the remote valve opening, remote off valves, etc., we agreed to a data acquisition device or process DTU a time only one remote control command. 图3给出了环保物联网中基于池的实时控制技术。 Figure 3 shows a cell-based real-time control technique environmental IOT. 当浏览器端发出控制请求后,服务器端先检查执行中控制池ControllingPool中有无发往该数采仪或DTU的控制命令正在执行,如果没有,则将新的控制命令加入ControllingPool,否则将其加入等待控制池ControlWaitingPool。 When the browser sends a control request, the server-side execution control check whether the pool ControllingPool sent to the data acquisition device or DTU control commands being executed, if not, the new control command to join ControllingPool, otherwise it added to the waiting control pool ControlWaitingPool. 当某一控制命令执行完,数采仪或DTU将执行结果上传到服务器,服务器上将返回结果入相应的数据池,根据Cont1llingPool中发往该数采仪或DTU的控制信息,将执行结果返回给发出请求的浏览器,并将该控制信息从Control I ingPool中删除,同时从ControlffaitingPool中获取发往该数采仪或DTU的下一条控制命令,如果存在这样的命令,将其从ControlWaitingPool转移到ControllingPool并执行,即将相应的控制信息根据Connect1nPool中的连接信息发往相应的数采仪或DTU,执行下一条控制命令。 When a control command is executed, data acquisition device or the execution result DTU uploaded to the server, the server returns the results on the corresponding data pool, to return in accordance with the control information destined Cont1llingPool the data acquisition device or the DTU execution result requesting a browser, and the control information is deleted from the control I ingPool acquired simultaneously sent to the data acquisition device or the next DTU from ControlffaitingPool control command if this command is present, it is transferred to the ControlWaitingPool ControllingPool and perform, i.e. the corresponding control information sent to respective data acquisition device or DTU Connect1nPool in accordance with the connection information, a control command execution.

[0021] 为了实现浏览器端对现场设备的实时控制,我们基于Flash XML Socket实现双向实时通信。 [0021] In order to achieve real-time control of the browser side field devices, our two-way real-time communications based on Flash XML Socket. 服务器上Flash Server负责建立服务器端和浏览器端的XML Socket连接,连接建立后,服务器上基于BC Server与浏览器端进行双向实时通信,浏览器端一般信息的浏览、查询等仍基于HTTP协议。 On the server Flash Server responsible for setting up the server and browser-side XML Socket connection, the connection is established, two-way real-time communications based on BC Server with browser on the server, the browser browse general information, inquiries are still based on the HTTP protocol.

[0022] 图4给出了服务器上BC Server针对浏览器的监听和处理流程。 [0022] Figure 4 shows the BC Server to listen and process flow for the browser on the server. 对浏览器端发出的控制请求进行解析,如果对接收的包解析正确,结合浏览器和服务器之间的连接信息,以及服务器和目标设备之间的连接信息,将控制请求封装为特定格式的控制数据入执行中控制池ControllingPool,根据目标设备是数采仪还是DTU,选择DAQ Server或DTU Server将控制数据发送给指定的目标设备。 Control request sent by the browser parses the received packet analysis if properly combined connection information between the browser and server, and the connection between the information server and the target device, the control request to control the specific format of the package execution control data into pools ControllingPool, the target device is a data acquisition device or DTU, DTU Server selected DAQ Server or the control data to the target device specified.

[0023] 图5给出了服务器上DAQ Server针对数采仪的具体监听和处理流程,服务器上DTU Server针对DTU的监听与处理流程与其类似。 [0023] FIG. 5 shows the DAQ Server on the server to listen for the specific process flow and the data acquisition device, DTU Server monitor process flow for a DTU server analogous thereto. DAQ Server负责监听数采仪上传的数据,通过上传数据中数采仪设备的信息,再去控制池Cont1llingPool中查找是否有该数采仪的相应控制命令正在进行,若有则将此时数采仪上传的数据作为响应控制的结果返回给浏览器端,否则作为一般上传数据进行处理。 DAQ Server is responsible for data monitor data acquisition device to upload, upload data through information in data acquisition device equipment, go to control pool Cont1llingPool find whether there is a corresponding control command to the data acquisition device is underway at this time if there will be data acquisition instrument uploaded data returned as the result of a control in response to the browser, or as a general process for uploading data.

Claims (6)

  1. 1.一种Web环境下基于池技术的环保物联网实时控制方法,包括三类池:一是存储监控终端、浏览器等Socket连接信息的连接池,二是用于远程实时控制的控制池,三是存储各类数据的数据池,其特征在于:利用连接池和控制池,浏览器端能够实现并发控制目标设备,即现场数采仪或数据传输单元,同时能将目标设备返回的无来源标识的结果数据准确地转发给发起控制的浏览器。 A Web network environment based on the cell technology was green real-time control method, comprising three pools: One control terminal memory, and other browser information Socket connection pool, the pool for remotely controlling two real-time control, Third, all kinds of data stored in the data pool, wherein: the control by the connection pool and the pool, the browser can be concurrency control target device, i.e. the number of on-site collection or data transmission unit, while the target device can not return to the source of the resulting data accurately identified forwarded to launch the browser control.
  2. 2.根据权利要求1所述Web环境下基于池技术的环保物联网实时控制方法,其特征在于:所述连接池实现了服务器与远程数采仪、数据传输单元、浏览器之间所有连接信息的统一管理,支持入池、出池、从池中获取连接对象、池中连接信息实时维护等操作;在实时控制中,引入连接池记录所有连接信息,当监控中心每收到一个新的有效数据包时就自动维护连接池中相应连接信息,从而确保连接池中均为最新的连接信息;一方面,当浏览器端远程控制目标设备时,能够迅速从连接池中取出该目标设备的最新连接信息,将控制命令发送给目标设备;另一方面,连接池维护了浏览器端的Socket连接信息,从目标设备返回的结果信息可以通过这些连接通道快速地发送给发起控制的浏览器。 The environmental cell technology based on real-time control method of things at the 1 Web environment, as claimed in claim wherein: said connection pool achieves all the connection information between the server and the remote data acquisition device, the data transmission unit, the browser unified management, support the pool, the pool, get a connection object from the pool, the pool connection information in real-time maintenance and other operations; real-time control, the introduction of connection pooling record all the connection information, control centers each receive a new effective when packet automatically maintain the connection information corresponding to the connection pool, thereby ensuring the connection pool are the latest connection information; in one aspect, when the browser-side remote control target device, the target device can be quickly removed from the connection pool latest connection information, transmits the control command to the target device; on the other hand, maintains a connection pool Socket connection information on the browser side, the results returned from the target device information may be transmitted rapidly through these passages is connected to the initiator of the browser control.
  3. 3.根据权利要求1所述Web环境下基于池技术的环保物联网实时控制方法,其特征在于:所述数据池在服务器上根据接收数据类型的不同,进一步划分为存储所有数据包的数据包池、存储数采仪上传数据的数采仪数据池、存储现场数采仪或数据传输单元上传数据的数据池、存储浏览器发出控制请求的浏览器数据池、以及存放无效数据的无效数据池,直接建立所接收的各类数据的数据池,可以快速地将各类数据显示在监控界面上,无需频繁地进行入库查询和读取等操作,提高了页面加载数据的速度。 The environmental cell technology based on real-time control method of things at the 1 Web environment, as claimed in claim wherein: said data cell depending on the type of data received, the data packet further divided into all packets stored on the server pool, data acquisition device data pool storage data acquisition device to upload data, the data pool store field data acquisition device or the data transmission unit to upload, store browser sends a control request to the browser data pool, and invalid data pool store invalid data direct the establishment of various types of data received by the data pool, all kinds of data can be quickly displayed on the monitor screen, without the need for warehousing operations such as query and read frequently, increasing the speed of page loading data.
  4. 4.根据权利要求1所述Web环境下基于池技术的环保物联网实时控制方法,其特征在于:所述控制池实现了服务器上对浏览器发往目标设备控制信息的管理,为了实现并发控制终端设备,并保证设备返回的无来源标识的数据准确地反馈给发起控制的浏览器,进一步将控制池分为执行中控制池和等待控制池,保证每台目标设备某个时刻只能被一个浏览器所控制。 The environmental cell technology based on real-time control method of things at the 1 Web environment, as claimed in claim wherein: said control pool to achieve the management server to the browser control information destined for the target device, in order to implement concurrency control terminal equipment, and ensure that the data returned by the device no source identification and accurate feedback control of the browser to initiate further control pool into the pool and wait for execution control pool control, ensure each target device can only be a certain time the control of the browser.
  5. 5.根据权利要求4所述Web环境下基于池技术的环保物联网实时控制方法,其特征在于:所述的执行中控制池,浏览器端向目标设备发出控制命令,如果当前该目标设备没有其他浏览器向其发出控制请求,则将该控制命令连同浏览器和服务器以及服务器和目标设备之间的连接信息封装后进入执行中控制池,并将相应的控制命令发往目标设备;当服务器监听到目标设备发送过来的数据时,先检查执行中控制池是否有发往该目标设备的相关控制命令,如有则将其作为反馈数据,并读取执行中控制池该条控制命令的相关连接信息,将反馈数据返回给发出请求的浏览器端,并将该条控制命令从执行中控制池删除。 The environmental cell technology based on real things 4 Web control method in the environment, as claimed in claim wherein: said control is performed in the pool, the browser sends a control command to the target device, if the target device is not current other browsers to issue a control request, then the control command execution together into the information encapsulated in the connection between the browser and the server and the server pool and the control target device, and the corresponding control commands sent to the target device; when the server when listening to the data sent from the target device, the first check is performed whether the control cell contains control commands related to that destination device, then it is as if the feedback data, and performs read control pool control command related to the article connection information, feedback data returned to the requesting browser, and the strip removed from the pool control command execution.
  6. 6.根据权利要求4所述Web环境下基于池技术的环保物联网实时控制方法,其特征在于:所述的等待控制池,某个时刻每台目标设备只处理一个浏览器端的控制,其余发往该设备的控制命令都进入服务器端的等待控制池队列;当执行中控制池发往该设备的控制命令执行结束或反馈时延超出了设置的最大时延时,将执行控制池中发往该设备的控制数据出池,同时从等待控制池中激活下一条发往该设备的控制数据进入执行中控制池,并发往相应的目标设备。 The real-time control based on the environmental cell technology things Web environment of claim 4, wherein: said wait control pool, only a certain time each device, a process control of the browser, the remaining hair to control command of the device have entered the server pool queue wait control; the control command when the control cell is sent to the execution end device or exceeds the maximum delay feedback delay setting, execution control cell sent to the device control data out of the pool, while a control data sent to the execution control device into the pool from a pool of activated under the control waits, and sent to the respective target device.
CN 201410331300 2014-07-14 2014-07-14 Real-time control method based networking technology, environmental protection pool was under Web Environment CN104079658B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201410331300 CN104079658B (en) 2014-07-14 2014-07-14 Real-time control method based networking technology, environmental protection pool was under Web Environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201410331300 CN104079658B (en) 2014-07-14 2014-07-14 Real-time control method based networking technology, environmental protection pool was under Web Environment

Publications (2)

Publication Number Publication Date
CN104079658A true 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
CN 201410331300 CN104079658B (en) 2014-07-14 2014-07-14 Real-time control method based networking technology, environmental protection pool was under Web Environment

Country Status (1)

Country Link
CN (1) CN104079658B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
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

Citations (5)

* Cited by examiner, † Cited by third party
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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 (1)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date Type
CN104079658B (en) 2018-08-14 grant

Similar Documents

Publication Publication Date Title
US6711731B2 (en) Web based tool control in a semiconductor fabrication facility
US20040167960A1 (en) Network service interceptor
CN101789964A (en) Remote control and data monitoring method on embedded device
CN101582794A (en) System and method for unified configuration of network equipment
US20090055525A1 (en) System for Remote Configuration, Control, and Monitoring of Devices Over Computer Network Using Central Server
CN1901569A (en) Remote regulating method and system
CN201383100Y (en) Smart home remote control system
CN103973748A (en) Intelligent home system and monitoring method implemented by same
US20080235363A1 (en) Method and system for platform level data model for indications based event control and data transfer
CN102833323A (en) Method and system for remote control of controlled terminal by server
CN104243576A (en) Intelligent home system and user terminal and device terminal binding method of intelligent home system
CN101605078A (en) Power system communication server based on WEB mass communication modes and control method thereof
CN101441629A (en) Automatic acquiring method of non-structured web page information
CN101447891A (en) Service model self-adapting system and method thereof
CN103997442A (en) Monitoring method and system of intelligent housing system and intelligent housing system
US20160028780A1 (en) Managed Device-to-Device Communication in Business Computing Systems
CN102611710A (en) Data interaction method and data interaction system for scheduling master station and transformer substation based on MMS (Multimedia Messaging Service)
CN103064374A (en) Household energy consumption monitoring system based on internet of things technology
CN1770048A (en) Embedded web page server
CN103605529A (en) Method and device for processing application program
CN101895544A (en) Multi-user control method and multi-user control system for communication equipment and server
CN101052194A (en) Device for realizing maintenance of far end radio frequency terminal by local maintenance terminal
CN101867500A (en) Method and system for realizing embedded type common plug-and-play device status monitoring adaptive network structure
CN103792928A (en) Industrial field data collecting and analyzing system based on Modbus
CN103973762A (en) Method for communication between host and intelligent terminal of intelligent home system

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
GR01