Summary of the invention
To above-mentioned technical problem; The object of the present invention is to provide a kind of things-internet gateway data adaption system and method; Its data transaction that can the radio sensing network of isomery be imported into is a uniform data format, realizes radio sensing network transmission of Information under the various application scenarioss.
For reaching this purpose, the present invention adopts following technical scheme:
A kind of things-internet gateway data adaption system, it comprises:
The perception access unit is used for receiving the perception data that the radio sensing network sensing equipment imports into;
The agreement call unit is connected with the perception access unit, is used for transferring corresponding data adapting protocol according to said perception data;
The adapting protocol expanding element is connected with the agreement call unit, is used to provide the second development interface of data adapting protocol, the type of the data adapting protocol of extension storage;
The data adaptation unit is connected with the agreement call unit, be used for according to said data adapting protocol said perception data being resolved, and the content encoding after will resolving is the data of consolidation form;
Data buffer storage unit is connected with the data adaptation unit, is used for when things-internet gateway interrupted with being connected of Internet of Things management platform the data of storage data adaptation unit output;
The wide area access unit is connected with the data adaptation unit, is used to select the access way of data, and through this access way the data of said consolidation form is sent to the Internet of Things management platform.
Especially, said agreement call unit specifically comprises:
Preliminary resolution unit is connected with the perception access unit, is used for said perception data is resolved, and obtains the identification information of said sensing equipment;
Agreement is transferred the unit, is connected with preliminary resolution unit, is used for transferring corresponding data adapting protocol according to said identification information.
Especially, said data adaptation unit specifically comprises:
The upstream data adaptation unit; Transferring the unit with agreement is connected; Be used for passing through things-internet gateway when the Internet of Things management platform is sent perception data at radio sensing network; According to said data adapting protocol said perception data is resolved, and the content encoding after will resolving is an input wide area access unit after the data of consolidation form;
The downlink data adaptation unit; Be connected with the wide area access unit; Be used for the Internet of Things management platform through things-internet gateway when the sensing equipment of radio sensing network sends management data, said management data is encoded to input perception access unit behind the form of said sensing equipment identification.
Especially, this system also comprises:
Third party's access unit; Be connected with data adaptation unit and wide area access unit, be used for the data of third party's access device input are analyzed, and according to analysis result; When the form of the data of exporting when the form of the data of said third party's access device input and data adaptation unit is identical; With its input wide area network access unit, when the form of the form of the data of said third party's access device input and the data of data adaptation unit output not simultaneously, with its input data adaptation unit processing;
Log unit is connected with data adaptation unit and the 3rd access unit, is used to write down the running state information of this things-internet gateway data adaption system.
Especially, said identification information comprises at least a of identification of the manufacturer number, software and hardware version number and Equipment Serial Number.
The invention also discloses a kind of things-internet gateway data adaptation method, comprise the steps:
A, perception access unit receive the perception data that sensing equipment imports in the radio sensing network;
B, agreement call unit are transferred corresponding data adapting protocol according to said perception data; And can be as required, the second development interface of the data adapting protocol that provides through the adapting protocol expanding element, the type of the data adapting protocol of extension storage;
C, data adaptation unit are resolved said perception data according to said data adapting protocol, and the content encoding after will resolving is the data of consolidation form; And when things-internet gateway interrupted with being connected of Internet of Things management platform, through the data of data buffer storage unit storage data adaptation unit output;
D, wide area access unit select the access way of data, and through this access way the data of said consolidation form are sent to the Internet of Things management platform.
Especially, said step B specifically comprises:
B1, preliminary resolution unit are resolved said perception data, obtain the identification information of said sensing equipment;
B2, agreement are transferred the unit and are transferred corresponding data adapting protocol according to said identification information; And can be as required, the second development interface of the data adapting protocol that provides through the adapting protocol expanding element, the type of the data adapting protocol of extension storage.
Especially, said step C specifically comprises:
Pass through things-internet gateway when the Internet of Things management platform is sent perception data at radio sensing network; The upstream data adaptation unit is resolved said perception data according to said data adapting protocol, and the content encoding after will resolving is an input wide area access unit after the data of consolidation form; When the Internet of Things management platform was sent management data through the sensing equipment of things-internet gateway in radio sensing network, the downlink data adaptation unit was encoded to said management data input perception access unit behind the form of said sensing equipment identification.
Especially, said step D also comprises:
When third party's access device inserts things-internet gateway; Third party's access unit is analyzed the data of third party's access device input; And, when the form of the form of the data of said third party's access device input and the data of data adaptation unit output is identical, it is imported the wide area network access unit according to analysis result; At the form of the form of the data of said third party's access device input and the data of data adaptation unit output not simultaneously, with its input data adaptation unit processing; Simultaneously, the running state information of this things-internet gateway data adaption system of log unit record.
Especially, said identification information comprises at least a of identification of the manufacturer number, software and hardware version number and Equipment Serial Number.
The present invention is through the radio sensing network access things-internet gateway of perception access unit with isomery; Convert the perception data of each node input in the radio sensing network of isomery the data of consolidation form into through the data adaptation unit, shielded the otherness of radio sensing network; Through the wide area network access unit data of said consolidation form are sent to the Internet of Things management platform.The present invention all is included into Internet of Things management platform management with various radio sensing networks, makes the radio sensing network of isomery become that Internet of Things can be managed, a controllable part.
Embodiment
For making the object of the invention, technical scheme and advantage clearer, the present invention is described further below in conjunction with accompanying drawing and embodiment.
Please with reference to shown in Figure 1, things-internet gateway data adaption system comprises in the present embodiment: perception access unit 101, agreement call unit 102, adapting protocol expanding element 103, data adaptation unit 104, data buffer storage unit 105, wide area access unit 106, third party's access unit 107 and log unit 108.Said agreement call unit 102 comprises that preliminary resolution unit 1021 and agreement transfer unit 1022.Said data adaptation unit 104 comprises upstream data adaptation unit 1041 and downlink data adaptation unit 1042.
Said perception access unit 101 is used for receiving the perception data that the radio sensing network sensing equipment imports into.
The kind of sensing equipment is a lot of in the wireless sensor network of isomery; The standard of the communication technology that each sensing equipment uses also has nothing in common with each other; Perception access unit 101 is connected with the Centroid of the radio sensing network of isomery through a standard interface connector; Be responsible on the one hand receiving the perception data that sensing equipment imports in the radio sensing network, receive the Internet of Things management platform sends to each sensing equipment in the radio sensing network through things-internet gateway data on the other hand.Said Centroid is used for converging the data that each node of radio sensing network of isomery is gathered, and sends the data of perception access unit 101 inputs to each node.
Said agreement call unit 102 is connected with perception access unit 101, is used for transferring corresponding data adapting protocol according to said perception data.
Wherein, preliminary resolution unit 1021 is connected with perception access unit 101, is used for said perception data is resolved, and obtains the identification information of said sensing equipment.Agreement is transferred unit 1022, is connected with preliminary resolution unit 1021, is used for transferring corresponding data adapting protocol according to said identification information.
When perception access unit 101 is imported agreement call unit 102 with various perception datas; Preliminary resolution unit 1021 will tentatively be resolved said perception data; Obtain the identification information of the sensing equipment of the said perception data of collection, and this identification information input agreement is transferred unit 1022.Said identification information comprises at least a of identification of the manufacturer number (ID), software and hardware version number and Equipment Serial Number, and these information can both unique communication protocol type of confirming that said sensing equipment uses.Agreement is transferred unit 1022 after receiving said identification information; Will be according to this identification information; From the driving file of this things-internet gateway data adaption system storage, transferring the data adapting protocol corresponding with various perception datas is various communication protocols, and said data adapting protocol is sent to data adaptation unit 104.
Consider the autgmentability of this things-internet gateway data adaption system, the present invention also is provided with adapting protocol expanding element 103.Said adapting protocol expanding element 103 is connected with agreement call unit 102, is used to provide the second development interface of data adapting protocol, the type of the data adapting protocol of extension storage.Through second development interface, but user's flexible expansion data adapting protocol, and the expanded data adapting protocol is stored as dynamic link library (DLL) file, when things-internet gateway starts, carry out dynamic load.
Said data adaptation unit 104 is connected with agreement call unit 102, be used for according to said data adapting protocol said perception data being resolved, and the content encoding after will resolving is the data of consolidation form.
Upstream data adaptation unit 1041; Transferring unit 1022 with agreement is connected; Be used for passing through things-internet gateway when the Internet of Things management platform is sent perception data at radio sensing network; According to said data adapting protocol said perception data is resolved, and the content encoding after will resolving is an input wide area access unit 106 after the data of consolidation form.
After perception data being resolved according to the data adapting protocol; The data format disunity that obtains; If these data are directly imported the Internet of Things management platform, the Internet of Things management platform can't be resolved the particular content of these data, therefore must be with the uniform formatization of various data.Upstream data adaptation unit 1041 is after resolving various perception datas; According to the preset coding rule; The content of the various perception datas after resolving all is encoded to the data of consolidation form, and it is identical to make all perception datas finally import the data format of Internet of Things management platform.
Downlink data adaptation unit 1042; Be connected with wide area access unit 106; Be used for the Internet of Things management platform through things-internet gateway when the sensing equipment of radio sensing network sends management data, said management data is encoded to input perception access unit 101 behind the form of said sensing equipment identification.
When the Internet of Things management platform is sent management data through the sensing equipment of things-internet gateway in radio sensing network; Downlink data adaptation unit 1042 will be according to the type of the sensing equipment of different vendor configuration; Management data is encoded to this sensing equipment can the recognition data form; And interconnected agreement (IP) address between the network that parses when receiving the perception data of this sensing equipments input according to upstream data adaptation unit 1041, with the sensing equipment of the management data behind the coding through perception access device input correspondence.
Said data buffer storage unit 105 is connected with data adaptation unit 104, is used for when things-internet gateway interrupted with being connected of Internet of Things management platform the data of storage data adaptation unit 104 outputs.
Data buffer storage unit 105 is mainly used in and prevents losing of data.In the be connected interruption of things-internet gateway with the Internet of Things management platform, when the perception data after also promptly handling through data adaptation unit 104 can't send to the Internet of Things management platform, data buffer storage unit 105 will be stored the data of data adaptation unit 104 outputs.At things-internet gateway with after rebuliding of Internet of Things management platform is connected; Can be according to user's needs; Selection directly sends to the Internet of Things management platform with data buffer storage unit 105 data in buffer through wide area access unit 106; Or set concrete time interval, in this time interval, said data in buffer is sent to the Internet of Things management platform.
Said wide area access unit 106 is connected with data adaptation unit 104, is used to select the access way of data, and through this access way the data of said consolidation form is sent to the Internet of Things management platform.
The access way that wide area access unit 106 inserts the Internet of Things management platform has a lot, and for example code division multiple access (CDMA) mode, ADSL (ADSL) mode etc. according to the environment needs of Internet of Things reality, are selected the suitable data access way.
In order to improve the function of things-internet gateway, the present invention also is provided with third party's access unit 107 and log unit 108.
Said third party's access unit 107 is connected with data adaptation unit 104 and wide area access unit 106; Be used for the data of third party's access device input are analyzed; And according to analysis result; When the form of the form of the data of said third party's access device input and the data of data adaptation unit 104 outputs is identical, with its input wide area network access unit, when the form of the form of the data of said third party's access device input and the data that data adaptation unit 104 is exported not simultaneously; Its input data adaptation unit 104 is handled, converted into the data format identical with other perception data.Third party's access device can be the internet-of-things terminal system of other type.
Said log unit 108 is connected with data adaptation unit 104 and the 3rd access unit, is used to write down the running state information of this things-internet gateway data adaption system.
Said state information mainly comprises running log, debugging log and fault log.Wherein, running log comprises system start-up, closes, receives data, sends running status records such as data.Debugging log record significant process function parameters rank.The fault that the fault log register system occurs.
Need to prove; Before this things-internet gateway data adaption system operation; At first will be to its configuration of being correlated with, the for example address of the configuring ports that takies of this system, data server and configuring ports and identification of the manufacturer number and configuration that drives the file corresponding relation or the like.This configuration operation can directly be accomplished at things-internet gateway, also can be by Internet of Things management platform remote control.
Things-internet gateway data adaptation method flow chart as shown in Figure 2, that Fig. 2 provides for the embodiment of the invention.
Things-internet gateway data adaptation method comprises the steps: in the present embodiment
Step S201, perception access unit 101 receive the perception data that sensing equipment imports in the radio sensing network.
Perception access unit 101 is connected with the Centroid of the radio sensing network of isomery through a standard interface connector; Be responsible on the one hand receiving the perception data that sensing equipment imports in the radio sensing network, receive the Internet of Things management platform sends to each sensing equipment in the radio sensing network through things-internet gateway data on the other hand.
Step S202, agreement call unit 102 are transferred corresponding data adapting protocol according to said perception data.
Preliminary 1021 pairs of said perception datas of resolution unit are resolved, and obtain the identification information of said sensing equipment.Then, agreement is transferred unit 1022 and is transferred corresponding data adapting protocol according to said identification information.Said identification information comprises at least a of identification of the manufacturer number, software and hardware version number and Equipment Serial Number.
In addition, the second development interface that provides through adapting protocol expanding element 103, but user's flexible expansion data adapting protocol, and the expanded data adapting protocol is stored as dynamic link library (DLL) file, when things-internet gateway starts, carry out dynamic load.
Step S203, data adaptation unit 104 are resolved said perception data according to said data adapting protocol, and the content encoding after will resolving is the data of consolidation form.
Pass through things-internet gateway when the Internet of Things management platform is sent perception data at radio sensing network; Upstream data adaptation unit 1041 is resolved said perception data according to said data adapting protocol; And according to the preset coding rule; The content of the various perception datas after resolving all is encoded to the data of consolidation form, and it is identical to make all perception datas finally import the data format of Internet of Things management platform.
When the Internet of Things management platform was sent management data through the sensing equipment of things-internet gateway in radio sensing network, downlink data adaptation unit 1042 was encoded to said management data input perception access unit 101 behind the form of said sensing equipment identification.
In order to prevent when interrupting in being connected of things-internet gateway and Internet of Things management platform, the losing of data adaptation unit 104 dateouts, data buffer storage unit 105 will be stored the data of data adaptation unit 104 outputs this moment.And at things-internet gateway with after rebuliding of Internet of Things management platform is connected; According to user's needs; Selection directly sends to the Internet of Things management platform with data buffer storage unit 105 data in buffer through wide area access unit 106; Or set concrete time interval, in this time interval, said data in buffer is sent to the Internet of Things management platform.
Step S204, wide area access unit 106 selects the access way of data, and through this access way the data of said consolidation form sent to the Internet of Things management platform.
And; When third party's access device inserts things-internet gateway; Third party's access unit 107 will be analyzed the data of third party's access device input, and according to analysis result, when the form of the data of exporting at the form and the data adaptation unit 104 of the data of said third party's access device input is identical; With its input wide area network access unit; At the form of the form of the data of said third party's access device input and the data of data adaptation unit 104 outputs not simultaneously, with its input data adaptation unit 104 processing, do not convert the data format identical into other perception data.Meanwhile, log unit 108 is also with the running state information of real time record things-internet gateway data adaption system.
The perception data that technical scheme of the present invention is imported each node in the radio sensing network of isomery converts the data of consolidation form into, has shielded the otherness of radio sensing network, has realized radio sensing network transmission of Information under the various application scenarioss.
All or part of content in the technical scheme that above embodiment provides can realize that through software programming its software program is stored in the storage medium that can read, storage medium for example: the hard disk in the computer, CD or floppy disk.The above is merely preferred embodiment of the present invention, and is in order to restriction the present invention, not all within spirit of the present invention and principle, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.