CN105376209A - Network agent equipment, building monitoring system and method thereof - Google Patents

Network agent equipment, building monitoring system and method thereof Download PDF

Info

Publication number
CN105376209A
CN105376209A CN201410443338.4A CN201410443338A CN105376209A CN 105376209 A CN105376209 A CN 105376209A CN 201410443338 A CN201410443338 A CN 201410443338A CN 105376209 A CN105376209 A CN 105376209A
Authority
CN
China
Prior art keywords
http
network agent
server apparatus
https
agent equipment
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.)
Pending
Application number
CN201410443338.4A
Other languages
Chinese (zh)
Inventor
李洵
毕文彬
张泽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to CN201410443338.4A priority Critical patent/CN105376209A/en
Publication of CN105376209A publication Critical patent/CN105376209A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention relates to network agent equipment, a building monitoring system and a method thereof. The network agent equipment comprises a lower communication module, an upper communication module and a protocol conversion module, wherein the lower communication module is communicated with control point equipment in a local area network based on HTTP; each control point equipment in the local area network controls at least one management point equipment based on IopeNet; the upper communication module is communicated with server equipment in an Internet based on HTTPS; the protocol conversion module is connected to the lower communication module and the upper communication module respectively and carries out protocol conversion between the HTTP and the HTTPS on a received data packet. Through the network agent equipment, the control point equipment in a building management local area network based on IopeNet communication can be successfully communicated with the server equipment of the Internet.

Description

Network agent equipment and building monitoring system and method thereof
Technical field
The present invention relates to intelligent building field, particularly relate to a kind of network agent equipment and building monitoring system and method thereof.
Background technology
In building management system, intelligent building electromechanical equipment open communication agreement (IntelligentIntegratedInteractiveOpenNetwork can be adopted, IopeNet) as in the building of such as office building, park and other specific region, the net control communication protocol of the environmental Kuznets Curves such as such as illumination, air-conditioning, security protection is provided.In the inside of the local area network (LAN) of the building management system adopting IopeNet to set up, IopeNet between equipment, can be adopted to communicate.
But, along with the development of the Internet (Internet) technology and the proposition of the concept such as groups of building and integrated community, occur adopting high in the clouds such as Internet Server the multiple buildings in groups of building or integrated community to be carried out to the demand of unified management.Therefore, the intercommunication mutually realized between the server in high in the clouds with the equipment in building management local area network (LAN) is necessary.
Summary of the invention
technical problem
In view of this, the technical problem to be solved in the present invention is, how to make the server apparatus success communication based on the control point equipment in the building management local area network (LAN) of IopeNet communication and the Internet.
solution
In order to solve the problems of the technologies described above, according to a first aspect of the invention, provide a kind of network agent equipment, comprising:
Lower communication module, communicates based on the control point equipment in HTML (Hypertext Markup Language) HTTP and local area network (LAN), and each control point equipment in described local area network (LAN) controls at least one management point equipment based on intelligent building electromechanical equipment open communication agreement IopeNet;
Upper communication module, communicates based on the server apparatus had in the HTML (Hypertext Markup Language) HTTPS of SSL and the Internet;
Protocol conversion module, is connected respectively with described lower communication module and described upper communication module, the protocol conversion between carry out HTTP and HTTPS to the packet received.
For above-mentioned network agent equipment, in a kind of possible implementation, described protocol conversion module comprises:
Up analyzing sub-module, is connected with described lower communication module, resolves for the upstream data bag based on HTTP received from described control point equipment described lower communication module, to obtain the data of uniform resource position mark URL and IopeNet form;
Up matched sub-block, for searching the server apparatus that local mapping path is mated with described URL in server settings file, and obtaining address information and the protocol type of the server apparatus of described coupling, described server settings file comprises the local mapping path of each server apparatus, address information and protocol type;
Up encapsulation submodule, be connected with described upper communication module, for the data of described IopeNet form are encapsulated according to the form of HTTPS, thus the upstream data bag obtained based on HTTPS be sent to described upper communication module, the described upstream data bag based on HTTPS can be sent to the server apparatus of described coupling to make described upper communication module.
For above-mentioned network agent equipment, in a kind of possible implementation, described protocol conversion module also comprises domain name system DNS submodule,
Described DNS submodule is used for when described address information is domain name, domain name is converted to internet protocol address, the described upstream data bag based on HTTPS can be sent based on described IP address to the server apparatus of described coupling to make described upper communication module.
For above-mentioned network agent equipment, in a kind of possible implementation, also comprise the user security module be plugged between described lower communication module and described up analyzing sub-module,
Upstream data bag based on HTTP described in described user security module is used for receiving described lower communication module carries out username and password verification, when verify by, the described upstream data bag based on HTTP is sent to described up analyzing sub-module.
For above-mentioned network agent equipment, in a kind of possible implementation, described protocol conversion module also comprises:
Descending analyzing sub-module, be connected with described upper communication module, the downlink data packet based on HTTPS for receiving from described server apparatus described upper communication module is resolved, with obtain described server apparatus the described upstream data bag based on HTTPS is processed after object information;
Descending encapsulation submodule, be connected with described lower communication module, for described object information is encapsulated according to HTTP form, thus the downlink data packet obtained based on HTTP be sent to described lower communication module, make described lower communication module can return the described downlink data packet based on HTTP to described control point equipment.
For above-mentioned network agent equipment, in a kind of possible implementation, described upper communication module also sends pattra leaves Bayeux connection request for timing to described server apparatus, receives the pattra leaves connection response that described server apparatus returns;
Described descending analyzing sub-module in described protocol conversion module is also resolved for connecting response to described pattra leaves, to obtain the PUSH message of URL and IopeNet form,
Described descending encapsulation submodule in described protocol conversion module, also for being encapsulated according to HTTP form by the PUSH message of described IopeNet form, is asked with the IopeNet obtained based on HTTP,
Described lower communication module is also for sending to corresponding described control point equipment based on described URL by the described request of the IopeNet based on HTTP.
In order to solve the problems of the technologies described above, according to a second aspect of the invention, provide a kind of building monitoring system, comprising:
Network agent equipment, adopts the network agent equipment of any one structure in the embodiment of the present invention;
Control point equipment, is in local area network (LAN), communicates based on HTTP and described network agent equipment;
Server apparatus, is in the Internet, communicates based on HTTPS and described network agent equipment.
In order to solve the problems of the technologies described above, according to a third aspect of the invention we, provide a kind of building monitoring method, in the building monitoring system of the embodiment of the present invention, described building monitoring method comprises:
Described network agent equipment receives the upstream data bag based on HTTP from described control point equipment;
The described upstream data bag based on HTTP is converted to the upstream data bag based on HTTPS by described network agent equipment;
Described network agent equipment sends the described upstream data bag based on HTTPS to described server apparatus.
For above-mentioned building monitoring method, in a kind of possible implementation, the described upstream data bag based on HTTP is converted to the upstream data bag based on HTTPS by described network agent equipment, comprising:
Described network agent equipment is resolved based on the upstream data bag of HTTP described in receiving from described control point equipment, to obtain the data of URL and IopeNet form;
Described network agent equipment searches the server apparatus that local mapping path is mated with described URL in server settings file, and obtaining address information and the protocol type of the server apparatus of described coupling, described server settings file comprises the local mapping path of each server apparatus, address information and protocol type;
The data of described IopeNet form encapsulate according to the form of HTTPS by described network agent equipment, thus obtain the described upstream data bag based on HTTPS.
For above-mentioned building monitoring method, in a kind of possible implementation, described network agent equipment, after the address information and protocol type of the server apparatus of the described coupling of acquisition, also comprises:
When described address information is domain name, domain name is transferred to IP address, the described upstream data bag based on HTTPS can be sent based on described IP address to the server apparatus of described coupling to make described network agent equipment.
For above-mentioned building monitoring method, in a kind of possible implementation, also comprise:
Described network agent equipment receives the downlink data packet based on HTTPS from described server apparatus;
The described downlink data packet based on HTTPS is converted to the downlink data packet based on HTTP by described network agent equipment;
Described network agent equipment sends the described downlink data packet based on HTTP to described control point equipment.
For above-mentioned building monitoring method, in a kind of possible implementation, the described downlink data packet based on HTTPS is converted to the downlink data packet based on HTTP by described network agent equipment, comprising:
Described network agent equipment is resolved based on the downlink data packet of HTTPS described in receiving from described server apparatus, with obtain described server apparatus the described upstream data bag based on HTTPS is processed after object information;
Described object information encapsulates according to HTTP form by described network agent equipment, thus obtains the described downlink data packet based on HTTP.
For above-mentioned building monitoring method, in a kind of possible implementation, also comprise:
Described network agent equipment timing sends pattra leaves connection request to described server apparatus, receives the pattra leaves connection response that described server apparatus returns;
Described network agent equipment connects response to described pattra leaves and resolves, to obtain the PUSH message of URL and IopeNet form, the PUSH message of described IopeNet form is encapsulated according to HTTP form, ask with the IopeNet obtained based on HTTP, based on described URL, the described request of the IopeNet based on HTTP is sent to corresponding described control point equipment.
beneficial effect
In the embodiment of the present invention, network agent equipment can need the data unification be sent on the Internet to carry out receiving and processing in local area network, and send data to server apparatus, even if when local area network (LAN) and Internet protocol inconsistent, also the protocol conversion between carry out HTTP and can HTTPS to the packet received, realize the transfer of data between control point equipment and server apparatus, thus realize the server apparatus of the transfer of data of the various equipment in local area network (LAN) to high in the clouds.Further, can also pattra leaves agreement be passed through, realize server apparatus in the Internet to the quick and stable active push message of the control point equipment in local area network (LAN).
According to below with reference to the accompanying drawings to detailed description of illustrative embodiments, further feature of the present invention and aspect will become clear.
Accompanying drawing explanation
Comprise in the description and form the accompanying drawing of a part for specification and specification together illustrates exemplary embodiment of the present invention, characteristic sum aspect, and for explaining principle of the present invention.
Fig. 1 is the structural representation of the building monitoring system of one embodiment of the invention;
Fig. 2 is the structural representation of the network agent equipment of one embodiment of the invention;
Fig. 3 ~ Fig. 5 is the structural representation of the network agent equipment of another embodiment of the present invention;
Fig. 6 is the structural representation of the network agent equipment of another embodiment of the present invention;
Fig. 7 is the schematic flow sheet of the building monitoring method of one embodiment of the invention;
Fig. 8 and Fig. 9 is the schematic flow sheet of the building monitoring method of another embodiment of the present invention;
Figure 10 is the schematic flow sheet of the building monitoring method of another embodiment of the present invention.
Embodiment
Various exemplary embodiment of the present invention, characteristic sum aspect is described in detail below with reference to accompanying drawing.The same or analogous element of Reference numeral presentation function identical in accompanying drawing.Although the various aspects of embodiment shown in the drawings, unless otherwise indicated, accompanying drawing need not be drawn in proportion.
Word " exemplary " special here means " as example, embodiment or illustrative ".Here need not be interpreted as being better than or being better than other embodiment as any embodiment illustrated by " exemplary ".
In addition, in order to better the present invention is described, in embodiment hereafter, give numerous details.It will be appreciated by those skilled in the art that do not have some detail, the present invention can implement equally.In some instances, the method known for those skilled in the art, means, element and circuit are not described in detail, so that highlight purport of the present invention.
embodiment 1
Fig. 1 is the structural representation of the building monitoring system of one embodiment of the invention.As shown in Figure 1, this building monitoring system mainly can comprise: network agent equipment 11; Be in the control point equipment 13 in local area network (LAN), can communicate based on HTML (Hypertext Markup Language) (HyperTextTransferProtocol, HTTP) and described network agent equipment 11; Be in the server apparatus 15 in the Internet (Internet), can communicate with described network agent equipment 11 based on the HTML (Hypertext Markup Language) (HyperTextTransferProtocoloverSecureSocketLayer, HTTPS) with SSL.
Wherein, the control point equipment 13 in local area network (LAN) can control at least one management point equipment 17 based on IopeNet.In concrete building monitoring system, the management point equipment 17 that control point equipment 13 can manage specifically can be arranged according to the demand of practical application, such as, a certain control point equipment 13 is for managing the lamp of management point the equipment 17 as a certain floor with illumination functions.For another example, a certain control point equipment 13 is that the household electrical appliance of a certain floor are as refrigerator, microwave oven etc. for the management point equipment 17 managed.And for example, a certain control point equipment 13 is that the office electrical equipment of a certain floor is as TV, phone etc. for the management point equipment 17 managed.Wherein, IopeNet data can be passed through the form that JSON (JavaScriptObjectNotation, JavaScript object representation) wraps and store.IopeNet data can be encapsulated in HTTP, and transmit in the network such as local area network (LAN) or Internet, control point equipment possesses the function of resolving IopeNet data, the information such as the numbering of management point equipment that needs to control and state can be obtained after parsing, thus the management point equipment of specifying is controlled.
In the building monitoring system of the embodiment of the present invention, can the data unification be sent on the Internet be needed to carry out receiving and processing in local area network by network agent equipment 11, and send data to server apparatus 15, even if when local area network (LAN) and Internet protocol inconsistent, network agent equipment 11 also carry out HTTP and can HTTPS to the packet received between protocol conversion, realize the transfer of data between control point equipment 13 and server apparatus 15, thus realize the server apparatus 15 of the transfer of data of the various equipment in local area network (LAN) to high in the clouds.Wherein, the concrete structure of network agent equipment 11, can see the associated description in following examples.
embodiment 2
Fig. 2 is the structural representation of the network agent equipment of one embodiment of the invention.This network agent equipment can be applied in the building monitoring system shown in Fig. 1, the structure of composition graphs 1 is described network agent equipment, as shown in Figure 2, this network agent equipment 11 mainly can comprise: lower communication module 21, communicate based on the control point equipment 13 in HTTP and local area network (LAN), wherein, each control point equipment 13 in described local area network (LAN) controls at least one management point equipment 17 based on IopeNet; Upper communication module 23, communicates based on the server apparatus 15 in HTTPS and the Internet; Protocol conversion module 25, is connected respectively with described lower communication module 21 and described upper communication module 23, the protocol conversion between carry out HTTP and HTTPS to the packet received.
In a kind of possible implementation, this network agent equipment can carry out uplink, and specifically, lower communication module 21 receives the upstream data bag based on HTTP from described control point equipment 13; The described upstream data bag based on HTTP is converted to the described upstream data bag based on HTTPS by protocol conversion module 25; Based on the upstream data bag of HTTPS described in after upper communication module 23 sends the conversion of described protocol conversion module 25 to described server apparatus 15.
In a kind of possible implementation, this network agent equipment can carry out downlink transfer, and specifically, upper communication module 23 receives the downlink data packet based on HTTPS from described server apparatus 15; The described downlink data packet based on HTTPS is converted to the described downlink data packet based on HTTP by protocol conversion module 25; Lower communication module 21 sends the described downlink data packet based on HTTP to described control point equipment 13.
The example of upstream data bag and downlink data packet has multiple, be ask based on the IopeNet of HTTP/HTTPS agreement with upstream data bag in the present embodiment, downlink data packet be based on the IopeNet response of HTTP/HTTPS agreement for example, the function of the modules of network agent equipment is described.
Specifically, the IopeNet that lower communication module 21 receives based on HTTP/HTTPS from control point equipment 13 asks, based on the data content that URL and IopeNet that can comprise this control point equipment 13 in the IopeNet request of HTTP/HTTPS asks, if this control point equipment 13 needs the protocol type of server apparatus 15 in the Internet of access consistent with the protocol type that the IopeNet received asks, then upper communication module 23 can send this IopeNet based on HTTP/HTTPS based on identical agreement to this server apparatus 15 and asks.Then, upper communication module 23 can receive the IopeNet based on HTTP/HTTPS agreement that this server apparatus 15 returns and reply, and this response is sent to the control point equipment 13 in local area network (LAN) by lower communication module 21 again in the mode of HTTP/HTTPS agreement.
When agreement is inconsistent, such as, the IopeNet that lower communication module 21 receives based on HTTP from control point equipment 13 asks, this URL is obtained from based on resolving the IopeNet request of HTTP, after the address information and protocol type of the server apparatus 15 obtaining mating with this URL based on server settings file, if determine that server apparatus 15 conducts interviews based on HTTPS, the data content of then being asked by this IopeNet by protocol conversion module 25 obtains asking based on the IopeNet of HTTPS based on HTTPS Reseal, the IopeNet sent based on HTTPS to this server apparatus 15 based on the address information of server apparatus 15 of coupling by upper communication module 23 again asks.Server apparatus 15 can be resolved the request of the IopeNet based on HTTPS received and preserve, information such as obtaining keyword (key), state value (value) and action (action) can be resolved from IopeNet request, keyword can be as marks such as device numberings, and state value is as the state such as "ON", "Off".Then, the IopeNet that server apparatus 15 can return based on HTTPS to the upper communication module 23 of network agent equipment 11 replys, this IopeNet response obtains replying based on the IopeNet of HTTP based on HTTP Reseal by protocol conversion module 25, and lower communication module 21 sends IopeNet request control point equipment 13 before this IopeNet based on HTTP response being sent to carries out results verification.Such as, server apparatus 15 can be comprised in IopeNet response and perform the object information that the IopeNet based on HTTP asks, such as, if execution result is mistake, in IopeNet response, concrete error identification (ID) number can be comprised, for representing the execution result information such as the code of error condition.
Control point equipment B in example one, building detects that the state of air-conditioning equipment " 01 " becomes closedown by opening, then can comprise the information such as device numbering " 01 ", state "Off", the time " YYYY-MM-DDTHH-MM-SS+08:00 " that state variation occurs, the number of devices " 1 ... n " that changes in the IopeNet request that control point equipment B is sent by network agent device-to-server equipment.If do not comprise error code in the IopeNet response that returned by network agent equipment of server apparatus, then illustrate that IopeNet request that control point equipment B sends can the correct reception of serviced device equipment and parsing.
Control point equipment C in example two, building detects that alarm " 02 " gives the alarm, can comprise in the IopeNet request that control point equipment C is sent by network agent device-to-server equipment give the alarm device numbering " 02 ", state " warnings ", generation state variation the information such as time " YYYY-MM-DDTHH-MM-SS+08:00 ".If do not comprise error code in the IopeNet response that returned by network agent equipment of server apparatus, then illustrate that the IopeNet request of transmission can the correct reception of serviced device equipment and parsing.In addition, if comprise error code in IopeNet response, then the reception that the IopeNet of transmission asks not have serviced device equipment correct or parsing are described.
embodiment 3
Fig. 3 ~ Fig. 5 is the structural representation of the network agent equipment of another embodiment of the present invention.The assembly that in Fig. 3 ~ Fig. 5, label is identical with Fig. 2 has identical function, for simplicity's sake, omits the detailed description to these assemblies.
As shown in Figure 3, be with the main distinction of the equipment of network agent shown in Fig. 2, in order to realize uplink, protocol conversion module 25 can comprise: up analyzing sub-module 251, be connected with described lower communication module 21, for the data obtaining URL(uniform resource locator) (UniformResourceLocator, URL) and IopeNet form based on parsing the upstream data bag of HTTP received from described control point equipment 13 described lower communication module 21; Up matched sub-block 253, for searching the server apparatus that local mapping path is mated with described URL in server settings file 250, and obtaining address information and the protocol type of the server apparatus 15 of described coupling, described server settings file 250 comprises the local mapping path of each server apparatus 15, address information and protocol type; Up encapsulation submodule 255, be connected with described upper communication module 23, for the data of described IopeNet form are encapsulated according to the form of HTTPS, thus obtain the described upstream data bag based on HTTPS and be sent to described upper communication module 23, the described upstream data bag based on HTTPS can be sent to the server apparatus 15 of described coupling to make described upper communication module 23.
For example, the content of server settings file 250 can be as follows:
■Server1
HostNamewww.server1.com
port443
LocalMappingPath/local/server1/
■Server2
HostNamewww.server2.com
port443
LocalMappingPath/local/server2/
■SubSystemUT1
IP192.168.1.5
Wherein, Server1, Server2, SubSystemUT1 are server names or are called server identification; The field that HostName or IP is corresponding is the address information of Server1; Port is port number field, for " 443 ", port numbers represents that this server needs to adopt HTTPS protocol access, for " 80 ", port numbers represents that this server needs to adopt http protocol access; LocalMappingPath is local mapping path field, each local mapping path can be taken out by up matched sub-block 253 from this field, mate with the URL in the upstream data bag parsed, address information and the protocol type of this server apparatus can be determined according to HostName and the port field of the server apparatus that the match is successful.
In a kind of possible implementation, protocol conversion module 25 also comprises can domain name system (DomainNameSystem, DNS) submodule 257, described DNS submodule 257 is when to mate the address information obtained be domain name to up matched sub-block 253, domain name can be converted to Internet protocol (InternetProtocol, IP) address, can send the described upstream data bag based on HTTPS based on described IP address to the server apparatus 15 of described coupling to make described upper communication module 23.For the content of above-mentioned server settings file 250, the address information www.server1.com of server apparatus Server1 is the form of domain name, needs to adopt DNS submodule 257 to convert the form of IP address to; And the address information 192.168.1.5 of server apparatus SubSystemUT1 is the form of IP address, do not need to adopt DNS submodule 257 to change.
In a kind of possible implementation, in order to ensure the safety of uplink, network agent equipment can also comprise: be plugged on the user security module 27 between described lower communication module 21 and described up analyzing sub-module 251, username and password verification is carried out for the upstream data bag based on HTTP described in receiving described lower communication module 21, when verify by, the described upstream data bag based on HTTP is sent to described up analyzing sub-module 251.Such as, control point equipment 13 is when sending data to network agent equipment 11, user name password or user name password authentification mistake is there is not in upstream data bag, user security module 27 can not allow the up analyzing sub-module 251 of protocol conversion module 25 to carry out protocol conversion to the described upstream data bag based on HTTP, or do not allow upper communication module 23 by these Packet Generations to corresponding server apparatus, and corresponding error message can be replied to control point equipment 13.In addition, if the URL in the upstream data bag that sends to network agent equipment 11 of control point equipment 13 cannot access, also corresponding error message can be replied by lower communication module 21 to control point equipment 13.Or, if when upper communication module 23 communicates with server apparatus 15, there is HTTP/HTTPS mistake or IopeNet response mistake, also can cross lower communication module 21 and reply corresponding error message to control point equipment 13.
In a kind of possible implementation, as shown in Figure 4, can comprise to realize protocol conversion module 25 described in downlink transfer: descending analyzing sub-module 252, be connected with described upper communication module 23, the downlink data packet based on HTTPS for receiving from described server apparatus 15 described upper communication module 23 is resolved, with obtain described server apparatus the described upstream data bag based on HTTPS is processed after object information; Descending encapsulation submodule 254, be connected with described lower communication module 21, for described object information is encapsulated according to HTTP form, thus obtain the described downlink data packet based on HTTP and be sent to described lower communication module 21, make described lower communication module 21 can return the described downlink data packet based on HTTP to described control point equipment 13.
In the present embodiment, network agent equipment also can have the function of uplink and downlink transfer simultaneously, and all submodules of integrated uplink and downlink transfer, see Fig. 5.
embodiment 4
Fig. 6 is the structural representation of the network agent equipment of another embodiment of the present invention.The assembly that in Fig. 6, label is identical with Fig. 2 ~ Fig. 5 has identical function, for simplicity's sake, omits the detailed description to these assemblies.As shown in Figure 6, be with the main distinction of the equipment of network agent shown in Fig. 2 ~ Fig. 5, network agent equipment can also realize active push by assist server equipment, can be realized by the long polling mode of pattra leaves (Bayeux) agreement, specifically, upper communication module 23 also sends pattra leaves for timing to described server apparatus 15 and connects (BayeuxConnect) request, receives the pattra leaves connection response that described server apparatus 15 returns.Descending analyzing sub-module 252 in protocol conversion module 25 can also be used for connecting response to this pattra leaves and resolve, judge the PUSH message that whether there is the control point equipment in local area network in this response, if existed, then can connect the PUSH message of resolving response and obtaining URL and IopeNet form from described pattra leaves, the PUSH message of described IopeNet form can encapsulate according to described HTTP form by the descending encapsulation submodule 254 in protocol conversion module 25, ask with the IopeNet obtained based on HTTP, lower communication module 21 is also for sending to corresponding described control point equipment 13 based on described URL by the described request of the IopeNet based on HTTP.After control point equipment 13 in local area network (LAN) asks process to complete to this IopeNet based on HTTP, can return IopeNet replys to network agent equipment 11, the response of control point equipment 13 to be sent to the server apparatus 15 of the Internet by network agent equipment 11 by sending issue request (Publishrequest) based on Bayeux agreement to server apparatus 15, and announcement response (Publishresponse) that reception server equipment 15 returns based on Bayeux agreement.To sum up, according to said sequence, the mechanism of the server apparatus active in the Internet to the control point equipment PUSH message in local area network (LAN) can be realized.Wherein, make a mistake if set up in the long process be connected at network agent equipment 11 and server apparatus 15, these mistakes can be carried out record with the form of daily record, to carry out corresponding location of mistake.Wherein, upper communication module 23 can connect multiple stage as being less than or equal to 3 station server equipment 15 and communicating with it, and upper communication module 23 can connect multiple stage as being less than or equal to 32 control point equipment and communicating with it.
For example, server apparatus A closes illuminating lamp " 03 " by the control point equipment B in building, then server apparatus A can be comprised in the IopeNet request of control point equipment B active push by network agent equipment: the information such as URL address " DeviceB/Light3 ", instruction type " write ", state " closedown " at control point equipment B illuminating lamp " 03 ".After network agent equipment receives such request, can encapsulate according to HTTP form according to by this request, send the corresponding IopeNet based on HTTP according to URL address to control point equipment B and ask.After network agent equipment receives the response of control point equipment B, then return response to server apparatus A.
In a kind of possible implementation, in order to system service and the set-up function of optimized integration, network agent equipment can also be arranged: the service module 130 of IopeNet system and setting module 140.Service module 130 can realize by the system object (SystemObject) in IopeNet agreement obtaining to the restarting of system, timing synchronization, system information functions such as checking.Such as, the reboot attribute by setting SystemObject realizes the restart facility to system; Timing synchronization is carried out as the server of timing synchronization by the address of specifying the timeMasterHref attribute of SystemObject; By checking that other attribute informations of SystemObject realize the function of system information acquisition.Setting module 140 can set some relevant parameters of system, the related setting of such as system time, system ip address etc.
The network agent equipment 11 of the embodiment of the present invention can need the data unification be sent on the Internet to carry out receiving and processing in local area network, and send data to server apparatus 15, even if when local area network (LAN) and Internet protocol inconsistent, network agent equipment 11 also carry out HTTP and can HTTPS to the packet received between protocol conversion, realize the transfer of data between control point equipment 13 and server apparatus 15, thus realize the server apparatus of the transfer of data of the various equipment in local area network (LAN) to high in the clouds.Further, can also pattra leaves agreement be passed through, realize server apparatus 15 in the Internet to the quick and stable active push message of the control point equipment 13 in local area network (LAN).
embodiment 5
Fig. 7 is the schematic flow sheet of the building monitoring method of one embodiment of the invention.As shown in Figure 7, this building monitoring method may be used in the building monitoring system in above-described embodiment, and in conjunction with the building monitoring system of above-mentioned Fig. 1 ~ Fig. 6, the structure of network agent equipment, in uplink process, this building monitoring method mainly can comprise:
Step 101, network agent equipment 11 (can be specially its lower communication module 21) receive the upstream data bag based on HTTP from control point equipment 13;
Upstream data bag based on HTTP is converted to the upstream data bag based on HTTPS by step 102, network agent equipment 11 (can be specially its protocol conversion module 25);
Step 103, network agent equipment 11 (can be specially its upper communication module 23) send the described upstream data bag based on HTTPS to server apparatus 15.
Wherein, step 102 specifically can comprise: the protocol conversion module 25 of network agent equipment 11 is resolved based on the upstream data bag of HTTP, to obtain the data of URL and IopeNet form described in receiving from described control point equipment 13; The server apparatus 15 that local mapping path is mated with described URL is searched in server settings file 250, and obtain address information and the protocol type of the server apparatus 15 of described coupling, the local mapping path of each server apparatus 15, address information and protocol type etc. can be comprised in described server settings file 250; The data of described IopeNet form are encapsulated according to the form of HTTPS, thus obtain the described upstream data bag based on HTTPS, the described upstream data bag based on HTTPS can be sent to the server apparatus 15 of described coupling to make described network agent equipment 11.Wherein, the concrete example of server settings file 250 can see the associated description in above-mentioned network agent equipment 11 embodiment.
Wherein, described network agent equipment 11 is after the address information and protocol type of the server apparatus 15 of the described coupling of acquisition, if the address information of the server apparatus 15 of coupling is domain name, protocol conversion module 25 can also transfer domain name to IP address, then upper communication module 23 based on the server apparatus 15 mated in this access the Internet, IP address, and can send to the server apparatus 15 of coupling the upstream data bag based on HTTPS obtained after protocol conversion module 25 is changed.
embodiment 6
Fig. 8 is the schematic flow sheet of the building monitoring method of another embodiment of the present invention.As shown in Figure 8, this building monitoring method may be used in the building monitoring system in above-described embodiment, and in conjunction with the building monitoring system of above-mentioned Fig. 1 ~ Fig. 6, the structure of network agent equipment, in uplink process, this building monitoring method mainly can comprise:
Step 201, network agent equipment 11 (can be specially its upper communication module 23) receive the downlink data packet based on HTTPS from described server apparatus 15.
The described downlink data packet based on HTTPS is converted to the downlink data packet based on HTTP by step 202, network agent equipment 11 (can be specially its protocol conversion module 25).Specifically, the protocol conversion module 25 of network agent equipment 11 is resolved based on the downlink data packet of HTTPS described in receiving from described server apparatus 15, with obtain server apparatus 15 the described upstream data bag based on HTTPS is processed after object information; Described object information is encapsulated according to HTTP form, thus obtains the described downlink data packet based on HTTP, make the lower communication module 21 of described network agent equipment 11 can send the described downlink data packet based on HTTP to described control point equipment 13.
Step 203, network agent equipment 11 (can be specially its lower communication module 21) send the described downlink data packet based on HTTP to described control point equipment.
In the building monitoring method of the embodiment of the present invention, the step of uplink and downlink transfer can combine, for example, as shown in Figure 9:
The IopeNet that the lower communication module 21 of step 301, network agent equipment 11 receives based on HTTP from control point equipment 13 asks.
Step 302, from obtaining after this URL also mates the address information and protocol type obtaining this server apparatus 15 based on resolving the IopeNet request of HTTP, determine that server apparatus 15 conducts interviews based on HTTPS, then this URL is the mapping address of server apparatus 15 in this network agent equipment 11 of the Internet, need to be mated this URL by the server settings file 250 of inside, find the address information of the server apparatus 15 corresponding with this URL, the data content of then being asked by this IopeNet by protocol conversion module 25 obtains asking based on the IopeNet of HTTPS based on HTTPS Reseal.
Step 303, the IopeNet sent based on HTTPS to this server apparatus 15 based on the address information of server apparatus 15 of coupling by upper communication module 23 ask.
Step 304, then, the IopeNet based on HTTPS that upper communication module 23 receives this server apparatus 15 replys.
After step 305, protocol conversion module 25 are resolved and obtained URL from the IopeNet based on HTTPS replys, the data content of being replied by this IopeNet obtains replying based on the IopeNet of HTTP based on HTTP Reseal.
Step 306, lower communication module 21 obtain URL based on parsing again and this IopeNet based on HTTP response are sent to this control point equipment 13.
embodiment 7
Figure 10 is the schematic flow sheet of the building monitoring method of another embodiment of the present invention.As shown in Figure 9, this building monitoring method may be used in the building monitoring system in above-described embodiment, in conjunction with the building monitoring system of above-mentioned Fig. 1 ~ Fig. 6, the structure of network agent equipment, in the active push process realizing server apparatus, this building monitoring method mainly can comprise:
The timing of step 401, network agent equipment 11 (can be specially its upper communication module 23) sends pattra leaves connection request to described server apparatus 15.
Step 402, network agent equipment 11 (can be specially its upper communication module 23) receive the pattra leaves connection response that described server apparatus 15 returns.
Step 403, to pattra leaves connect response in data integrate.Specifically, after can resolving described pattra leaves connection response, first judge pattra leaves connects in response whether there is PUSH message, if existed, namely the PUSH message obtaining URL and IopeNet form is resolved, then the PUSH message of described IopeNet form can encapsulate according to HTTP form by the protocol conversion module 25 of network agent equipment 11, asks with the IopeNet obtained based on HTTP.
The described request of the IopeNet based on HTTP is sent to corresponding described control point equipment 13 based on resolving the URL obtained from pattra leaves connection response by step 405, network agent equipment 11.
Step 406, network agent equipment 11 receive the process that the Data Integrations such as protocol conversion are carried out in the response of the IopeNet based on HTTP that control point equipment 13 returns.
Step 407, network agent equipment 11 send based on Bayeux protocol publication request (Publishrequest) to server apparatus 15.
Announcement response (Publishresponse) that step 408, network agent equipment 11 reception server equipment 15 return based on Bayeux agreement.
In the building monitoring method of the embodiment of the present invention, can the data unification be sent on the Internet be needed to carry out receiving and processing in local area network by network agent equipment 11, and send data to server apparatus 15, even if when local area network (LAN) and Internet protocol inconsistent, also the protocol conversion between carry out HTTP and can HTTPS to the packet received, realize the transfer of data between control point equipment 13 and server apparatus 15, thus realize the server apparatus of the transfer of data of the various equipment in local area network (LAN) to high in the clouds.Further, can also pattra leaves agreement be passed through, realize server apparatus 15 in the Internet to the quick and stable active push message of the control point equipment 13 in local area network (LAN).
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.

Claims (13)

1. a network agent equipment, is characterized in that, comprising:
Lower communication module, communicates based on the control point equipment in HTML (Hypertext Markup Language) HTTP and local area network (LAN), and each control point equipment in described local area network (LAN) controls at least one management point equipment based on intelligent building electromechanical equipment open communication agreement IopeNet;
Upper communication module, communicates based on the server apparatus had in the HTML (Hypertext Markup Language) HTTPS of SSL and the Internet;
Protocol conversion module, is connected respectively with described lower communication module and described upper communication module, the protocol conversion between carry out HTTP and HTTPS to the packet received.
2. network agent equipment according to claim 1, is characterized in that, described protocol conversion module comprises:
Up analyzing sub-module, is connected with described lower communication module, resolves for the upstream data bag based on HTTP received from described control point equipment described lower communication module, to obtain the data of uniform resource position mark URL and IopeNet form;
Up matched sub-block, for searching the server apparatus that local mapping path is mated with described URL in server settings file, and obtaining address information and the protocol type of the server apparatus of described coupling, described server settings file comprises the local mapping path of each server apparatus, address information and protocol type;
Up encapsulation submodule, be connected with described upper communication module, for the data of described IopeNet form are encapsulated according to the form of HTTPS, thus the upstream data bag obtained based on HTTPS be sent to described upper communication module, the described upstream data bag based on HTTPS can be sent to the server apparatus of described coupling to make described upper communication module.
3. network agent equipment according to claim 2, is characterized in that, described protocol conversion module also comprises domain name system DNS submodule,
Described DNS submodule is used for when described address information is domain name, domain name is converted to internet protocol address, the described upstream data bag based on HTTPS can be sent based on described IP address to the server apparatus of described coupling to make described upper communication module.
4. network agent equipment according to claim 2, is characterized in that, also comprises the user security module be plugged between described lower communication module and described up analyzing sub-module,
Upstream data bag based on HTTP described in described user security module is used for receiving described lower communication module carries out username and password verification, when verify by, the described upstream data bag based on HTTP is sent to described up analyzing sub-module.
5. the network agent equipment according to any one of claim 2 ~ 4, is characterized in that, described protocol conversion module also comprises:
Descending analyzing sub-module, be connected with described upper communication module, the downlink data packet based on HTTPS for receiving from described server apparatus described upper communication module is resolved, with obtain described server apparatus the described upstream data bag based on HTTPS is processed after object information;
Descending encapsulation submodule, be connected with described lower communication module, for described object information is encapsulated according to HTTP form, thus the downlink data packet obtained based on HTTP be sent to described lower communication module, make described lower communication module can return the described downlink data packet based on HTTP to described control point equipment.
6. the network agent equipment according to any one of claim 2 ~ 4, is characterized in that:
Described upper communication module also sends pattra leaves Bayeux connection request for timing to described server apparatus, receives the pattra leaves connection response that described server apparatus returns;
Described descending analyzing sub-module in described protocol conversion module is also resolved for connecting response to described pattra leaves, to obtain the PUSH message of URL and IopeNet form,
Described descending encapsulation submodule in described protocol conversion module, also for being encapsulated according to HTTP form by the PUSH message of described IopeNet form, is asked with the IopeNet obtained based on HTTP,
Described lower communication module is also for sending to corresponding described control point equipment based on described URL by the described request of the IopeNet based on HTTP.
7. a building monitoring system, is characterized in that, comprising:
Network agent equipment, adopts the network agent equipment according to any one of claim 1 ~ 6;
Control point equipment, is in local area network (LAN), communicates based on HTTP and described network agent equipment;
Server apparatus, is in the Internet, communicates based on HTTPS and described network agent equipment.
8. a building monitoring method, in the building monitoring system in described claim 7, is characterized in that, described building monitoring method comprises:
Described network agent equipment receives the upstream data bag based on HTTP from described control point equipment;
The described upstream data bag based on HTTP is converted to the upstream data bag based on HTTPS by described network agent equipment;
Described network agent equipment sends the described upstream data bag based on HTTPS to described server apparatus.
9. building monitoring method according to claim 8, is characterized in that, the described upstream data bag based on HTTP is converted to the upstream data bag based on HTTPS by described network agent equipment, comprising:
Described network agent equipment is resolved based on the upstream data bag of HTTP described in receiving from described control point equipment, to obtain the data of URL and IopeNet form;
Described network agent equipment searches the server apparatus that local mapping path is mated with described URL in server settings file, and obtaining address information and the protocol type of the server apparatus of described coupling, described server settings file comprises the local mapping path of each server apparatus, address information and protocol type;
The data of described IopeNet form encapsulate according to the form of HTTPS by described network agent equipment, thus obtain the described upstream data bag based on HTTPS.
10. building monitoring method according to claim 9, is characterized in that, described network agent equipment, after the address information and protocol type of the server apparatus of the described coupling of acquisition, also comprises:
When described address information is domain name, domain name is transferred to IP address, the described upstream data bag based on HTTPS can be sent based on described IP address to the server apparatus of described coupling to make described network agent equipment.
Building monitoring method according to any one of 11. according to Claim 8 ~ 10, is characterized in that, also comprise:
Described network agent equipment receives the downlink data packet based on HTTPS from described server apparatus;
The described downlink data packet based on HTTPS is converted to the downlink data packet based on HTTP by described network agent equipment;
Described network agent equipment sends the described downlink data packet based on HTTP to described control point equipment.
12. building monitoring methods according to claim 11, is characterized in that, the described downlink data packet based on HTTPS is converted to the downlink data packet based on HTTP by described network agent equipment, comprising:
Described network agent equipment is resolved based on the downlink data packet of HTTPS described in receiving from described server apparatus, with obtain described server apparatus the described upstream data bag based on HTTPS is processed after object information;
Described object information encapsulates according to HTTP form by described network agent equipment, thus obtains the described downlink data packet based on HTTP.
13. building monitoring methods according to claim 11, is characterized in that, also comprise:
Described network agent equipment timing sends pattra leaves connection request to described server apparatus, receives the pattra leaves connection response that described server apparatus returns;
Described network agent equipment connects response to described pattra leaves and resolves, to obtain the PUSH message of URL and IopeNet form, the PUSH message of described IopeNet form is encapsulated according to HTTP form, ask with the IopeNet obtained based on HTTP, based on described URL, the described request of the IopeNet based on HTTP is sent to corresponding described control point equipment.
CN201410443338.4A 2014-09-02 2014-09-02 Network agent equipment, building monitoring system and method thereof Pending CN105376209A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410443338.4A CN105376209A (en) 2014-09-02 2014-09-02 Network agent equipment, building monitoring system and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410443338.4A CN105376209A (en) 2014-09-02 2014-09-02 Network agent equipment, building monitoring system and method thereof

Publications (1)

Publication Number Publication Date
CN105376209A true CN105376209A (en) 2016-03-02

Family

ID=55378019

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410443338.4A Pending CN105376209A (en) 2014-09-02 2014-09-02 Network agent equipment, building monitoring system and method thereof

Country Status (1)

Country Link
CN (1) CN105376209A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107135109A (en) * 2017-05-25 2017-09-05 云南电网有限责任公司电力科学研究院 A kind of energy management terminal front end processor
CN107360068A (en) * 2017-06-30 2017-11-17 广东美的制冷设备有限公司 Household appliance controlling system, method and its equipment
CN108737343A (en) * 2017-04-20 2018-11-02 苏宁云商集团股份有限公司 A kind of implementation method and device of secure access network
CN111787067A (en) * 2020-06-08 2020-10-16 浙江保融科技有限公司 Multi-bank-enterprise direct connection remote service calling and managing method
CN112954001A (en) * 2021-01-18 2021-06-11 武汉绿色网络信息服务有限责任公司 Method and device for HTTP-to-HTTPS bidirectional transparent proxy

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103095819A (en) * 2013-01-04 2013-05-08 微梦创科网络科技(中国)有限公司 Data information pushing method and data information pushing system
CN103188254A (en) * 2011-12-31 2013-07-03 北京市国路安信息技术有限公司 Network security protection method capable of giving consideration to both smoothness and safety of internal and external network information

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103188254A (en) * 2011-12-31 2013-07-03 北京市国路安信息技术有限公司 Network security protection method capable of giving consideration to both smoothness and safety of internal and external network information
CN103095819A (en) * 2013-01-04 2013-05-08 微梦创科网络科技(中国)有限公司 Data information pushing method and data information pushing system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
毕文彬等: "iopeNet产品系统模块介绍", 《智能建筑电气技术》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108737343A (en) * 2017-04-20 2018-11-02 苏宁云商集团股份有限公司 A kind of implementation method and device of secure access network
CN108737343B (en) * 2017-04-20 2021-02-19 苏宁易购集团股份有限公司 Method and device for realizing secure access to network
CN107135109A (en) * 2017-05-25 2017-09-05 云南电网有限责任公司电力科学研究院 A kind of energy management terminal front end processor
CN107360068A (en) * 2017-06-30 2017-11-17 广东美的制冷设备有限公司 Household appliance controlling system, method and its equipment
CN111787067A (en) * 2020-06-08 2020-10-16 浙江保融科技有限公司 Multi-bank-enterprise direct connection remote service calling and managing method
CN112954001A (en) * 2021-01-18 2021-06-11 武汉绿色网络信息服务有限责任公司 Method and device for HTTP-to-HTTPS bidirectional transparent proxy

Similar Documents

Publication Publication Date Title
US10965473B2 (en) Smart object identification in the digital home
US9596501B2 (en) Remote control processing method, device and system
CN105471686B (en) Terminal control method, device and system
EP3060018B1 (en) Registration method and system for common service entity
CN105376209A (en) Network agent equipment, building monitoring system and method thereof
AU2015400309B2 (en) Long connection sharing method for multi-businesses, system and device, terminal
CN104660714A (en) Remote control method, remote control device and remote control system of terminal equipment
CN105306264A (en) Network configuration and remote registration binding method and system for intelligent household appliance
US20120317254A1 (en) Network platform in a network device ecosystem
CN103491172A (en) Method and system for sharing cloud file
CN105897652A (en) Standard protocol based heterogeneous terminal dynamic access method
CN102684899B (en) Method, ACS (auto-configuration server) and system for obtaining equipment status based on TR069 protocol
US10341830B2 (en) Method and apparatus for sending or forwarding information
CN107124483A (en) Domain name analytic method and server
CN104243482A (en) Control method and device of intelligent device
CN101197724A (en) Long-range control system and method for information household electrical appliance in IGRS household network based on IPv6
CN111741538A (en) Communication link establishing method based on gateway, equipment control method and device
CN103873271A (en) Gateway EoC terminal, and management system and management method thereof
CN103428303A (en) Method and system for IPv6 host to have access to IPv4 server
CN103439934A (en) Intelligent electrical appliance control method, server and system
KR102094041B1 (en) System having the Semantic Engine based on RDF Graph for Autonomous Interaction between IoT Devices in Real-Time
CN104780082A (en) Communication method for mobile equipment and household intelligent terminal
CN104955153A (en) Method, device and appliances for discovering resources
CN104580552A (en) Implementing method of resolution redirection of error domain name server in home gateway
CN104168302A (en) Device control realizing method, device control realizing system and proxy 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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160302