CN103944813B - A kind of gateway and method for realizing General adaptive function - Google Patents
A kind of gateway and method for realizing General adaptive function Download PDFInfo
- Publication number
- CN103944813B CN103944813B CN201410151756.6A CN201410151756A CN103944813B CN 103944813 B CN103944813 B CN 103944813B CN 201410151756 A CN201410151756 A CN 201410151756A CN 103944813 B CN103944813 B CN 103944813B
- Authority
- CN
- China
- Prior art keywords
- module
- data
- interface
- gateway
- protocol
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention relates to a kind of gateway for realizing General adaptive function, the gateway includes things-internet gateway and the system platform being used cooperatively with things-internet gateway, interface configuration between the things-internet gateway and system platform, the things-internet gateway includes interface module, interface communication module, device protocol parsing module, interface communication pattern configurations table, configure module of meter control and wire/wireless transport module, the system platform includes wired/wireless transport module, interface communication module, device protocol parsing module, protocol processes alarm module, Service Processing Module and gateway interface communication pattern configuration module.Beneficial effects of the present invention are as follows:1)The technical scheme realize can the sensing equipment of compatible different agreement access same things-internet gateway, very big convenience is brought to client;2)The technical scheme conveniently carries out multi-protocol analysis management, without changing the hardware and software in gateway, it is possible to achieve compatibility and the data parsing of unknown sensing equipment.
Description
Technical field
The present invention relates to a kind of gateway of General adaptive, relate in particular to a kind of gateway for realizing General adaptive function and
Method, belong to computer internet technical field.
Background technology
Sensor is a kind of detection means, can experience measured information, and the information that will can be experienced, by a set pattern
Rule is for conversion into electric signal or the information output of other required forms, to meet the transmission of information, processing, storage, display, record
With control etc. require, the part is widely used examines in industrial production, marine exploration, environmental protection, resource investigation, medical science
The extremely general fields such as disconnected, bioengineering, computer internet.Sensor manufacturer, controller manufacturer, production in the market
Producer is considering the intellectuality of equipment of itself and when the Automation Design, often face it is most the problem of be key-course species
Various bus protocol selection and the selection of field apparatus layer interface, how to efficiently solve compatibility and sensing between agreement
The uniformity of device interface, turn into the technical barrier that each large sensor and controller factory makes great efforts to solve always.Due to each agreement it
Between independently of each other, incompatible, this just brings many inconvenience to the application of client, and is unfavorable for the long-term steady of industry control industry
Fixed development.Therefore, there is an urgent need for a kind of new technical scheme to solve above-mentioned technical problem.
The content of the invention
The present invention is exactly for technical problem present in prior art, there is provided a kind of gateway for realizing General adaptive function
And method, the technical scheme can the sensing equipment of compatible different agreement access same things-internet gateway, it is convenient to carry out assist more
View parsing management, without changing the hardware and software in gateway, you can to realize that the compatibility of unknown sensing equipment and data parse.
To achieve these goals, technical scheme is as follows, a kind of gateway for realizing General adaptive function, and it is special
Sign is that the gateway includes things-internet gateway and the system platform being used cooperatively with things-internet gateway, the Internet of Things net
The interface closed between system platform configures, and the things-internet gateway includes interface module, interface communication module, device protocol solution
Analyse module, interface communication pattern configurations table, configuration module of meter control and wire/wireless transport module, the system platform bag
Include wire/wireless transport module, interface communication module, device protocol parsing module, protocol processes alarm module, business processing mould
Block and gateway interface communication pattern configuration module, the interface module receive the data from sensing node, the Internet of Things
Interface communication module in gateway is responsible for the data of receiving interface module transfer, and according to interface communication pattern configurations table, determines
These fixed data are uploaded again after using local parsing, or directly transparent upload, while according to self-defining communication protocol, to upper
The data message of biography is packaged, and interface channel number, time, sensing node mark, analysis protocol are identified into title, data whether
Transparent transmission mark is packaged into information header, and the data that will be uploaded are packaged into message body, then by after message header and message body splicing by
Check code is calculated in XOR, eventually through the encapsulation plus flag completion message;Equipment association in the things-internet gateway
View parsing module stores multiple equipment protocol analysis functional module, when the data in interface channel need local parsing, adjusts
The data uploaded with corresponding parsing module to sensing node parse;The interface communication pattern configurations table, which stores, respectively to be connect
The communication pattern processing mode configuration information and corresponding analysis protocol configuration information of mouth;If interface module 1 is using local solution
The processing mode of analysis, and interface module 3 is using the processing mode of transparent transmission;The configuration module of meter control is used to put down with system
Platform interacts, the interface communication pattern configurations table in management gateway;Wire/wireless transport module in the things-internet gateway
It is responsible for realizing the communications of gateway and IP network;Such as WIFI, LAN, mobile wireless network mode.In the system platform
Wire/wireless transport module is responsible for realizing the communications of gateway and IP network;Such as WIFI, LAN, mobile wireless network side
Formula.
Interface communication module in the system platform is responsible for receiving upstream data, and according to self-defining communication protocol,
Parse the specifying information in information header, including interface channel number, time, sensing node mark, analysis protocol mark title, number
According to whether transparent transmission mark and message body data;And the information content parsed is submitted into business module processing.For transparent biography
Defeated data, business module is submitted to again after submitting the parsing of device protocol parsing module.
Device protocol parsing module in the system platform stores multiple equipment protocol analysis functional module, according to solution
Specifying information and message body data form in the information header of precipitation, judge to call corresponding parsing module to carry out data parsing;
The protocol processes alarm module, after the data of transparent upload can not correspond to related parsing module, by agreement
Handle alarm module alarm and carry out daily record retention.
As a modification of the present invention, the wire/wireless transport module is arranged to WIFI, LAN, mobile wireless network
In one kind.
As a modification of the present invention, the interface configures the gateway interface communication pattern specifically, in system platform
Configuration module of meter control of the configuration module to things-internet gateway sends query statement, configures module of meter control to interface communication pattern
Allocation list sends inquiry request,
After the inquiry of interface communication pattern configurations table by relevant information, including interface channel number, interface communication pattern, matching
Analysis protocol mark title, configuration information state of activation, the last modification time of configuration information, return to control module, and through matching somebody with somebody
The configuration module on module of meter control return platform is put,
The communication pattern of gateway interface communication pattern configuration module modification interface in system platform, match protocol, activation
State and last modification time information, after having changed, modification instruction is sent to gateway configuration module of meter control;
Modified information is submitted to interface communication pattern configurations table and protected by the configuration module of meter control in gateway
Deposit, the gateway interface communication pattern configuration module for preserving successfully backward platform replys preservation confirmation message, and connecing into gateway
Port communications module send configuration information notice of change.
The communication interface pattern configurations table includes gauge outfit and literary name section:
Interface channel number | Interface communication pattern | The analysis protocol mark title of matching | State of activation | Last modification time |
Literary name section explanation
A kind of gateway approach of the General adaptive function, it is characterised in that methods described is specific as follows:Methods described bag
Include following steps, 1)Sensing node uploads data;2)Interface module in gateway receives the data that sensing node uploads, and submits
Interface communication module processing, the data of interface communication module receiving interface module transfer are given, and are matched somebody with somebody according to interface communication pattern
The interface communication mode attribute in table is put, determining these data is uploaded again after using local parsing, or directly transparent upload;
31)Uploaded after local parsing, the protocol resolution module of intra-gateway parses to data, and gateway passes through data self-defined logical
System platform is uploaded to after letter protocol encapsulation, platform submits Service Processing Module after receiving data;32)Transparent upload, by data
System platform is uploaded to after being encapsulated by self-defining communication protocol, after platform receives data, according to the message header of the data of upload
In parse interface channel number, sensing node mark, analysis protocol mark title, data whether transparent transmission mark and data lattice
Formula, select related protocol parsing module parsing data, it is impossible to normally parse data, then submit to the progress of protocol processes alarm module
Alert process.
As a modification of the present invention, the step 31)Uploaded after middle use local parsing, in things-internet gateway
Detailed process is as follows, and the interface module in things-internet gateway receives the initial data D1 that sensing node uploads, and sends it to
Interface communication module, after the interface communication module in things-internet gateway receives, according to the interface channel S1 of interface module, to connecing
Port communications pattern configurations table sends inquiry request, and the mode of operation and matching that S1 is returned after the inquiry of interface communication module allocation list solve
The title of agreement is analysed, such as uses upload, protocol name N after local parsing.
Initial data D1 and parsing protocol-identifier title N are sent to equipment association by the interface communication module in things-internet gateway
Parsing module is discussed, protocol resolution module uses entitled N protocol analysis D1, and the data D2 that dissection process is crossed is returned to and connect
Port communications module;Data D2 after processing is transferred to local gateway to be shown or industry by interface communication module in things-internet gateway
Business is handled;Interface communication module in things-internet gateway is compiled using custom protocol encapsulation D2, message numbering for last message
Number plus 1, by message numbering and interface channel number, time, sensing node mark, analysis protocol identify title, data whether transparent transmission
Mark is packaged into message header, and using data message D2 as message body, the data block step-by-step that message header and message body form is carried out
Check code is calculated in XOR, by message header, message body and check code sequential concatenation, and before spliced data block
Flag is added afterwards, that is, is completed encapsulation and obtained D3 data;D3 is passed through transport module by the interface communication module in things-internet gateway
Platform is sent to, platform replys confirmation after receiving.
As a modification of the present invention, the step 31)Uploaded after middle use local parsing, in the processing of system platform
Detailed process is as follows, the wire/wireless transport module of system platform, receives the data D1 that thing plain net gateway reports, D1 is passed
Interface communication module is defeated by, the interface communication module of system platform uses self-defining communication protocol rule parsing D1, parses and disappear
Head, message body and check code are ceased, the data block step-by-step to message header, message body composition carries out XOR and check code is calculated, really
After recognizing former check code and calculating the uniformity of the check code of gained, parsing acquisition interface channel number, time, sensing from message header
Node identification, analysis protocol mark title, data whether transparent transmission, corresponding data message D2 is obtained from message body;Interface leads to
D2 is sent to business module and handled by letter module, and business module replys confirmation after receiving.
As a modification of the present invention, the step 32)The middle specific mistake using transparent upload in things-internet gateway
Journey is as follows, and the interface module in things-internet gateway receives the initial data D1 that sensing node uploads, and sends it to interface and lead to
Believe module;After interface communication module in things-internet gateway receives, according to the interface channel S3 of interface module, to interface communication
Pattern configurations table sends inquiry request;Interface communication module allocation list in things-internet gateway returns after being inquired about according to interface channel number
Return S3 mode of operation and the mark title of Corresponding matching analysis protocol;Interface communication module encapsulates D1 using custom protocol,
Message numbering is that last message numbering adds 1, by message numbering and interface channel number, time, sensing node mark, analysis protocol
Whether transparent transmission mark is packaged into message header for mark title, data, using data message D1 as message body, by message header and message body
The data block step-by-step of composition carries out XOR and check code is calculated, by message header, message body and check code sequential concatenation, and
And flag is added before and after spliced data block, that is, complete encapsulation and obtain D2 data, D2 is passed through biography by interface communication module
Defeated module is sent to platform, and platform replys confirmation after receiving.
As a modification of the present invention, the step 32)It is middle using it is transparent upload system platform detailed process such as
Under, the wire/wireless transport module of system platform receives the data D1 that thing plain net gateway reports, and D1 is transferred into interface leads to
Believe module;The interface communication module of system platform uses self-defining communication protocol rule parsing D1, parses message header, message
Body and check code, the data block step-by-step to message header, message body composition carry out XOR and check code are calculated, and confirm former check code
After the uniformity of the check code of generation, you can interface channel number, time, sensing node mark, parsing are obtained from message header
Protocol-identifier title, data whether transparent transmission, corresponding data message D2 is obtained from message body;The interface communication mould of system platform
Block is by data D2 and interface channel number, time, sensing node identifies, analysis protocol identifies title, whether transparent transmission is sent to data
Device protocol parsing module;The device protocol parsing module of system platform according to interface channel number, the time, sensing node mark,
Whether transparent transmission identification information and data D2 form search available protocol resolution module for analysis protocol mark title, data, such as
Fruit is not found, then notebook data bag D2 is submitted into protocol processes alarm module carries out alarm and daily record retention, if having found phase
Agreement is answered, then D2 is parsed using respective protocol, the data D3 after being handled, and D3 is returned into interface communication mould
Block;After interface communication module receives D3, send it to business module and handled, business module replys confirmation letter after receiving
Breath.
It is as follows relative to prior art, beneficial effects of the present invention:1)The technical scheme realizes can compatible different associations
The sensing equipment of view accesses same things-internet gateway, and very big convenience is brought to client;2)The technical scheme is convenient to be carried out
Multi-protocol analysis management, without changing the hardware and software in gateway, you can to realize the compatibility of unknown sensing equipment and data
Parsing;3)The technical scheme realizes Multi net voting, the interconnecting of multi-protocols, smoothly operation, substantially increases the city of product
Field competitiveness.
Brief description of the drawings
Fig. 1:Total system frame diagram of the present invention;
Fig. 2:The method of the invention flow chart;
Fig. 3:Things-internet gateway flow chart of data processing figure after local parsing;
Fig. 4:Things-internet gateway flow chart of data processing figure after data penetration transmission;
Fig. 5:System platform flow chart of data processing figure after data penetration transmission;
Fig. 6:System platform flow chart of data processing figure after local parsing;
Fig. 7:Interface modes configuration flow figure.
Embodiment
In order to deepen the understanding of the present invention and understanding, the present invention is made with reference to the accompanying drawings and detailed description into
The explanation of one step and introduction.
Embodiment 1:
Referring to Fig. 1, a kind of gateway for realizing General adaptive function, the gateway includes things-internet gateway and and Internet of Things
Interface configuration between system platform, the things-internet gateway and system platform that gateway is used cooperatively, the things-internet gateway
Including interface module, interface communication module, device protocol parsing module, interface communication pattern configurations table, configuration module of meter control
And wire/wireless transport module, the system platform include wired/wireless transport module, interface communication module, device protocol
Parsing module, protocol processes alarm module, Service Processing Module and gateway interface communication pattern configuration module;The interface mould
Block receives the data from sensing node, and the interface communication module in the things-internet gateway is responsible for receiving interface module transfer
Data, and according to interface communication pattern configurations table, determining these data is uploaded again after using local parsing, or directly saturating
Bright upload, while according to self-defining communication protocol, the data message of upload is packaged, by interface channel number, time, sensing
Whether transparent transmission mark is packaged into information header for node identification, analysis protocol mark title, data, and the data that will be uploaded, which are packaged into, to disappear
Body is ceased, then check code will be calculated by XOR after message header and message body splicing, completes to disappear eventually through plus flag
The encapsulation of breath;Device protocol parsing module in the things-internet gateway stores multiple equipment protocol analysis functional module, when
When data in interface channel need local parsing, the data for calling corresponding parsing module to upload sensing node solve
Analysis;Interface communication pattern configurations table in the things-internet gateway stores the communication pattern processing mode configuration information of each interface
And corresponding analysis protocol configuration information;If interface module 1 is using the processing mode of local parsing, and interface module 3 uses
The processing mode of transparent transmission.
The configuration module of meter control is used to interact with system platform, the interface communication pattern configurations in management gateway
Table;Wire/wireless transport module in the things-internet gateway is responsible for realizing the communications of gateway and IP network;As WIFI,
The modes such as LAN, mobile wireless network.
Wire/wireless transport module in the system platform is responsible for realizing the communications of gateway and IP network;Such as
The modes such as WIFI, LAN, mobile wireless network.
Interface communication module in the system platform is responsible for receiving upstream data, and according to self-defining communication protocol,
Parse the specifying information in information header, including interface channel number, time, sensing node mark, analysis protocol mark title, number
According to whether transparent transmission mark and message body data;And the information content parsed is submitted into business module processing;For transparent biography
Defeated data, business module is submitted to again after submitting the parsing of device protocol parsing module.
Device protocol parsing module in the system platform stores multiple equipment protocol analysis functional module, according to solution
Specifying information and message body data form in the information header of precipitation, judge to call corresponding parsing module to carry out data parsing;
The protocol processes alarm module, after the data of transparent upload can not correspond to related parsing module, by agreement
Handle alarm module alarm and carry out daily record retention.
Referring to Fig. 7, as a modification of the present invention, the interface configuration specifically, the gateway interface in system platform
Configuration module of meter control of the communication pattern configuration module to things-internet gateway sends query statement, and control module is to interface communication mould
Formula allocation list sends inquiry request, leads to relevant information, including interface channel number, interface after the inquiry of interface communication pattern configurations table
Letter pattern, the analysis protocol mark title of matching, configuration information state of activation, the last modification time of configuration information, return to control
Molding block, and the configuration module on platform is returned through control module,
The communication pattern of gateway interface communication pattern configuration module modification interface in system platform, match protocol, activation
State and last modification time information, after having changed, modification instruction is sent to gateway configuration module of meter control;
Modified information is submitted to interface communication pattern configurations table and protected by the configuration module of meter control in gateway
Deposit, the gateway interface communication pattern configuration module for preserving successfully backward platform replys preservation confirmation message, and connecing into gateway
Port communications module send configuration information notice of change.
The communication interface pattern configurations table is specific as follows, including gauge outfit and literary name section,
Interface channel number | Interface communication pattern | The analysis protocol mark title of matching | State of activation | Last modification time |
Literary name section explanation
Field name | Type | Remarks |
Interface channel number | Text-type | The identification number of interface channel |
Interface communication pattern | Numeric type | 0 representative uses transparent transmission, 1 representative to be uploaded again after using local parsing |
The analysis protocol mark title of matching | Text-type | The analysis protocol mark title of matching, is here sky if using transparent upload. |
State of activation | Boolean type | It is currently configured and whether activates |
Last modification time | Date-time type | It is currently configured the modification time of last time |
Embodiment 2:Referring to Fig. 2, a kind of gateway approach of the General adaptive function, methods described is specific as follows:
It the described method comprises the following steps, 1)Sensing node uploads data, is provided with sensing node A, B, C in Fig. 1, can be with
Increased or deleted according to being actually needed, 2)Interface module in gateway receives the data that sensing node uploads, and is set in Fig. 1
Interface module 1, interface module 2 and interface module 3 are equipped with, and submits to interface communication module processing, interface communication module receives
Data of interface module transmission, and according to interface communication pattern configurations table, it is to use after local parsing again to determine these data
Upload, or directly transparent upload;31)Being uploaded after local parsing, the protocol resolution module of intra-gateway parses to data,
System platform is uploaded to after data are encapsulated by self-defining communication protocol, platform submits Service Processing Module after receiving data;
Either 32)Transparent upload, is uploaded to system platform after data are encapsulated by self-defining communication protocol, platform receives data
Afterwards, according to parsed in the message header of the data of upload interface channel number, sensing node mark, analysis protocol identify title,
Data whether transparent transmission mark and data format, select related protocol parsing module parsing data, it is impossible to normally parse data, then carry
Give protocol processes alarm module and carry out alert process.
Referring to Fig. 3, as a modification of the present invention, the step 31)Uploaded after middle use local parsing, in Internet of Things
Detailed process in gateway is as follows,
Interface module in things-internet gateway receives the initial data D1 that sensing node uploads, and sends it to interface and lead to
Believe module.
After interface communication module in things-internet gateway receives, according to the interface channel S1 of interface module, lead to interface
Believe that pattern configurations table sends inquiry request,
S1 mode of operation and matching analysis protocol is returned after interface communication module allocation list inquiry in things-internet gateway
Title, as use upload, protocol name N after local parsing.
Initial data D1 and parsing protocol-identifier title N are sent to equipment association by the interface communication module in things-internet gateway
Parsing module is discussed, protocol resolution module uses entitled N protocol analysis D1, and the data D2 that dissection process is crossed is returned to and connect
Port communications module;Data D2 after processing is transferred to local gateway to be shown or industry by interface communication module in things-internet gateway
Business is handled;Interface communication module in things-internet gateway is compiled using custom protocol encapsulation D2, message numbering for last message
Number plus 1, by message numbering and interface channel number, time, sensing node mark, analysis protocol identify title, data whether transparent transmission
Mark is packaged into message header, and using data message D2 as message body, the data block step-by-step that message header and message body form is carried out
Check code is calculated in XOR, by message header, message body and check code sequential concatenation, and before spliced data block
Flag is added afterwards, that is, is completed encapsulation and obtained D3 data;D3 is passed through transport module by the interface communication module in things-internet gateway
Platform is sent to, platform replys confirmation after receiving.
Referring to Fig. 6, as a modification of the present invention, the step 31)Upload after middle use local parsing, put down in system
The processing detailed process of platform is as follows, the wire/wireless transport module of system platform, receives the data that thing plain net gateway reports
D1, D1 being transferred to interface communication module, the interface communication module of system platform uses self-defining communication protocol rule parsing D1,
Message header, message body and check code are parsed, the data block step-by-step to message header, message body composition carries out XOR and school is calculated
Test code, confirm former check code and calculate gained check code uniformity after, from message header parsing obtain interface channel number, when
Between, sensing node mark, analysis protocol mark title, data whether transparent transmission, corresponding data message D2 is obtained from message body;
D2 is sent to business module and handled by interface communication module, and business module replys confirmation after receiving.
Referring to Fig. 4, as a modification of the present invention, the step 32)It is middle to be uploaded using transparent in things-internet gateway
Detailed process it is as follows, interface module in things-internet gateway receives the initial data D1 that sensing node uploads, and is sent to
To interface communication module;After interface communication module in things-internet gateway receives, according to the interface number of interface module, such as S3, to
Interface communication pattern configurations table sends inquiry request;Return to S3's after interface communication module allocation list inquiry in things-internet gateway
The title of mode of operation and corresponding analysis protocol, is such as uploaded using transparent transmission.
Interface communication module in things-internet gateway is compiled using custom protocol encapsulation D1, message numbering for last message
Number plus 1, by message numbering and interface channel number, time, sensing node mark, analysis protocol identify title, data whether transparent transmission
Mark is packaged into message header, and using data message D1 as message body, the data block step-by-step that message header and message body form is carried out
Check code is calculated in XOR, by message header, message body and check code sequential concatenation, and before spliced data block
Flag is added afterwards, that is, is completed encapsulation and obtained D2 data,
D2 is sent to platform by the interface communication module in things-internet gateway by transport module, and platform is replied true after receiving
Recognize information.
Referring to Fig. 5, as a modification of the present invention, the step 32)It is middle using it is transparent upload system platform tool
Body process is as follows, the wire/wireless transport module of system platform, receives the data D1 that thing plain net gateway reports, D1 is transmitted
To interface communication module;The interface communication module of system platform uses self-defining communication protocol rule parsing D1, parses outbound message
Head, message body and check code, the data block step-by-step to message header, message body composition carry out XOR and check code are calculated, confirm
After the uniformity of former check code and the check code of generation, you can interface channel number, time, sensing node mark are obtained from message header
Know, analysis protocol mark title, data whether transparent transmission, corresponding data message D2 is obtained from message body;System platform connects
Port communications module is by data D2 and interface channel number, time, sensing node mark, whether analysis protocol identifies title, data saturating
Biography is sent to device protocol parsing module;The device protocol parsing module of system platform saves according to interface channel number, time, sensing
Point identification, analysis protocol mark title, whether transparent transmission identification information and data D2 form search available protocol analysis to data
Module, if do not found, notebook data bag D2 is submitted into protocol processes alarm module and carries out alarm and daily record retention, if looked for
Respective protocol has been arrived, then D2 has been parsed using respective protocol, the data D3 after being handled.And D3 is returned into interface and led to
Believe module;After interface communication module receives D3, send it to business module and handled, business module is replied after receiving to be confirmed
Information.
Self-defining communication protocol in the data handling procedure is as follows:
(1)Complete information data
Flag | Information header | Message body | Check bit | Flag |
(2)Information header
Message numbering | The numbering of order |
Interface channel number | Interface channel number on corresponding things-internet gateway |
Time | Data uplink time |
Sensing node identifies | The unique mark of sensing node |
Analysis protocol identifies title | If the data of gateway local parsing, then the title of analysis protocol is provided |
Data whether transparent transmission | Whether mark data is by the direct transparent transmission of things-internet gateway |
Message body length | Identify the length of message body |
(3)Check bit
Information header | Message body |
Above two parts are carried out with step-by-step XOR successively, ultimately produces an exclusive or check code.
It should be noted that above-described embodiment is only presently preferred embodiments of the present invention, it is not used for limiting the present invention's
Protection domain, on the basis of the above made equivalent substitution or replacement belong to protection scope of the present invention, it is of the invention
Protection domain is defined by claims.
Claims (6)
1. a kind of gateway for realizing General adaptive function, it is characterised in that the gateway includes things-internet gateway and and Internet of Things
Interface configuration between system platform, the things-internet gateway and system platform that net gateway is used cooperatively, the Internet of Things net
Pass includes interface module, interface communication module, device protocol parsing module, interface communication pattern configurations table, allocation list control mould
Block and wire/wireless transport module, the system platform include wired/wireless transport module, interface communication module, equipment association
Discuss parsing module, protocol processes alarm module, Service Processing Module and gateway interface communication pattern configuration module;The interface
Module receives the data from sensing node;Interface communication module in the things-internet gateway is responsible for receiving interface module transfer
Data, and according to interface communication pattern configurations table, determining these data is uploaded again after using local parsing, or directly
Transparent upload, while according to self-defining communication protocol, the data message of upload is packaged, by interface channel number, time, biography
Whether transparent transmission mark is packaged into information header for sense node identification, analysis protocol mark title, data, and the data that will be uploaded are packaged into
Message body, then check code will be calculated by XOR after message header and message body splicing, completed eventually through plus flag
The encapsulation of message;Device protocol parsing module in the things-internet gateway stores multiple equipment protocol analysis functional module,
When the data that sensing node uploads need local parsing, the data for calling corresponding parsing module to upload sensing node are carried out
Parsing;The interface communication pattern configurations table stores the configuration information of the communication pattern processing mode of each interface and corresponding
Analysis protocol configuration information, it is described configuration module of meter control be used for interacted with system platform, the interface in management gateway
Communication pattern allocation list;Wire/wireless transport module in the things-internet gateway is responsible for realizing the communication of gateway and IP network
Transmission;Wire/wireless transport module in the system platform is responsible for realizing the communications of gateway and IP network;The system
Interface communication module in platform is responsible for receiving upstream data, and according to self-defining communication protocol, parses in information header
Specifying information, including interface channel number, the time, sensing node mark, analysis protocol mark title, data whether transparent transmission mark and
Message body data;Device protocol parsing module in the system platform stores multiple equipment protocol analysis functional module, root
According to the specifying information in the information header parsed and message body data form, judge to call corresponding parsing module to carry out data solution
Analysis;The protocol processes alarm module, after the data of transparent upload can not correspond to related parsing module, by protocol processes
Alarm module is alarmed and carries out daily record retention.
A kind of 2. gateway for realizing General adaptive function according to claim 1, it is characterised in that the wire/wireless
Transport module is arranged to one kind in WIFI, LAN, mobile wireless network.
3. a kind of gateway for realizing General adaptive function according to claim 1 or 2, it is characterised in that the interface is matched somebody with somebody
Put specifically, configuration module of meter control of the gateway interface communication pattern configuration module to things-internet gateway in system platform is sent
Query statement, configuration module of meter control send inquiry request to interface communication pattern configurations table, and interface communication pattern configurations table is looked into
By relevant information after inquiry, including interface channel number, interface communication pattern, the analysis protocol mark title of matching, configuration information are swashed
The state of living, the last modification time of configuration information, return to control module, and the configuration being configured on module of meter control return platform
Module, communication pattern, match protocol, the activation shape of the gateway interface communication pattern configuration module modification interface in system platform
State and last modification time information, after having changed, modification instruction is sent to gateway configuration module of meter control;Configuration in gateway
Modified information is submitted to interface communication pattern configurations table and preserved by module of meter control, preserves successful backward platform
Gateway interface communication pattern configuration module, which is replied, preserves confirmation message, and the interface communication module send configuration information into gateway
Notice of change.
4. using the gateway approach of any one of the claim 1-3 General adaptive function, it is characterised in that methods described has
Body is as follows:It the described method comprises the following steps, 1)Sensing node uploads data;2)Interface module in gateway receives sensing node
The data of upload, and submit to interface communication module processing, the data of interface communication module receiving interface module transfer, and root
According to the interface communication mode attribute in interface communication pattern configurations table, determining these data is uploaded again after using local parsing,
Or directly transparent upload;31)Uploaded after local parsing, the protocol resolution module of intra-gateway parses to data, gateway
System platform is uploaded to after data are encapsulated by self-defining communication protocol, platform submits Service Processing Module after receiving data;
32)Transparent upload, system platform is uploaded to after data are encapsulated by self-defining communication protocol, after platform receives data, according to
The interface channel number that is parsed in the message header of the data of upload, sensing node mark, analysis protocol mark title, data whether
Transparent transmission identifies and data format, selects related protocol parsing module parsing data, if data can not be parsed normally, submits to association
View processing alarm module carries out alert process.
5. the gateway approach of General adaptive function according to claim 4, it is characterised in that the step 31)It is middle to use this
Uploaded after ground parsing, the detailed process in things-internet gateway is as follows, and the interface module in things-internet gateway receives sensing node
The initial data D1 of upload, and send it to interface communication module;After interface communication module in things-internet gateway receives, root
According to the interface channel S1 of interface module, inquiry request, interface communication module allocation list are sent to interface communication pattern configurations table
S1 mode of operation and the mark title of matching analysis protocol are returned to after inquiry, interface communication module is by initial data D1 and parsing
Protocol-identifier title N is sent to device protocol parsing module, and protocol resolution module uses entitled N protocol analysis D1, and will
The data D2 that dissection process is crossed returns to interface communication module;Interface communication module in things-internet gateway is by the data after processing
D2 transfers to local gateway to be shown or business processing;Interface communication module in things-internet gateway is encapsulated using custom protocol
D2, message numbering are that last message numbering adds 1, by message numbering and interface channel number, time, sensing node mark, parsing
Whether transparent transmission mark is packaged into message header for protocol-identifier title, data, using data message D2 as message body, by message header and disappears
The data block step-by-step of breath body composition carries out XOR and check code is calculated, and message header, message body and check code order are spelled
Connect, and flag is added before and after spliced data block, that is, complete encapsulation and obtain D3 data;Interface in things-internet gateway
D3 is sent to platform by communication module by transport module, and platform replys confirmation after receiving.
6. the gateway approach of General adaptive function according to claim 4, it is characterised in that the step 32)It is middle to use thoroughly
Detailed process of the bright upload in things-internet gateway is as follows, and the interface module in things-internet gateway receives the original that sensing node uploads
Beginning data D1, and send it to interface communication module;After interface communication module in things-internet gateway receives, according to interface mould
The interface channel S3 of block, inquiry request is sent to interface communication pattern configurations table;Interface communication module in things-internet gateway
Allocation list returns to S3 mode of operation and the mark title of Corresponding matching analysis protocol after being inquired about according to interface channel number;Interface leads to
Module is believed using custom protocol encapsulation D1, and message numbering is that last message numbering adds 1, by message numbering and interface channel
Number, the time, sensing node mark, analysis protocol mark title, data whether transparent transmission mark be packaged into message header, by data message
D1 carries out XOR as message body, by the data block step-by-step that message header and message body form and check code is calculated, by message header,
Message body and check code sequential concatenation, and flag is added before and after spliced data block, that is, complete encapsulation and obtain D2
D2 is sent to platform by data, interface communication module by transport module, and platform replys confirmation after receiving.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410151756.6A CN103944813B (en) | 2014-04-16 | 2014-04-16 | A kind of gateway and method for realizing General adaptive function |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410151756.6A CN103944813B (en) | 2014-04-16 | 2014-04-16 | A kind of gateway and method for realizing General adaptive function |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103944813A CN103944813A (en) | 2014-07-23 |
CN103944813B true CN103944813B (en) | 2018-01-30 |
Family
ID=51192303
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410151756.6A Expired - Fee Related CN103944813B (en) | 2014-04-16 | 2014-04-16 | A kind of gateway and method for realizing General adaptive function |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103944813B (en) |
Families Citing this family (33)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105635063B (en) * | 2014-10-31 | 2019-04-12 | 腾讯科技(上海)有限公司 | Internet of Things communication protocol configuration method and device |
CN105704234B (en) * | 2016-03-23 | 2019-08-13 | 浙江风向标科技有限公司 | The control method and device of smart machine |
JP6619505B2 (en) | 2016-04-05 | 2019-12-11 | 日本電信電話株式会社 | Sensor relay device and sensor relay system |
CN106453342A (en) * | 2016-10-21 | 2017-02-22 | 过冬 | Terminal access method of Internet of Things |
CN108023905B (en) * | 2016-10-31 | 2021-06-25 | 中国移动通信集团广东有限公司 | Internet of things application system and method |
CN108076026B (en) * | 2016-11-15 | 2020-04-07 | 中国科学院沈阳自动化研究所 | Industrial wireless network service adaptation method based on OPC-UA service platform |
CN106487712B (en) * | 2016-11-24 | 2019-11-15 | 泰康保险集团股份有限公司 | For accessing the method, apparatus and server of multiple external systems |
CN108173807B (en) * | 2017-11-28 | 2021-12-03 | 贵阳语玩科技有限公司 | Unified message sending and processing method and device |
CN108200090A (en) * | 2018-02-07 | 2018-06-22 | 科大国创软件股份有限公司 | A kind of agreement integration technology for electromechanical equipment |
CN108667807B (en) * | 2018-04-11 | 2020-12-11 | 华南师范大学 | Protocol self-adaption method and system based on monitoring cloud platform and gateway |
CN109104300A (en) * | 2018-07-12 | 2018-12-28 | 华清慧商(北京)科技有限公司 | A kind of general sensing data acquisition parsing of software definition reports things system and method |
CN108900524A (en) * | 2018-07-13 | 2018-11-27 | 中国电子科技集团公司第十五研究所 | Object node interactive system in a kind of Internet of Things |
CN109362053A (en) * | 2018-11-14 | 2019-02-19 | 中科院微电子研究所昆山分所 | Wireless sense network data processing method, gateway and equipment |
CN109842680B (en) * | 2019-01-28 | 2021-10-12 | 南京钛佳汽车科技有限公司 | System and method for realizing interconnection and intercommunication between external sensors of gateway |
CN110279920A (en) * | 2019-05-23 | 2019-09-27 | 广州博而济信息科技有限公司 | A method of ventilator data are acquired based on external acquisition equipment |
CN110099501B (en) * | 2019-06-17 | 2024-01-12 | 厦门能加新能源科技有限公司 | Internet of things module |
CN110519160A (en) * | 2019-08-15 | 2019-11-29 | 深圳市丰润达科技有限公司 | Things-internet gateway multimode communication means, device and computer readable storage medium |
CN110601876A (en) * | 2019-08-20 | 2019-12-20 | 西安向南网络信息科技有限公司 | Intelligent Internet of things platform |
CN110460521A (en) * | 2019-09-19 | 2019-11-15 | 北京中电普华信息技术有限公司 | A kind of edge calculations AnyRouter |
CN112653568A (en) * | 2019-10-13 | 2021-04-13 | 中电智能科技有限公司 | Multi-protocol-oriented PLC gateway equipment configuration method based on software definition |
CN112702299A (en) * | 2019-10-22 | 2021-04-23 | 博世汽车部件(苏州)有限公司 | Interface data processing apparatus, interface data processing system, interface data processing method, and computer-readable storage medium |
CN110850841A (en) * | 2019-10-30 | 2020-02-28 | 深圳市元征科技股份有限公司 | Fault diagnosis method and related device |
CN111147365A (en) * | 2019-12-25 | 2020-05-12 | 上海新物科技有限公司 | Modularization thing networking gateway equipment |
CN111083168A (en) * | 2019-12-31 | 2020-04-28 | 广东嘉泰智能技术有限公司 | Configurable data transmission method and device of Internet of things platform gateway and gateway |
CN113364820A (en) * | 2020-03-04 | 2021-09-07 | 青岛海尔空调电子有限公司 | Equipment control method and device of Internet of things service system |
CN111553652B (en) * | 2020-04-23 | 2023-10-27 | 中国银行股份有限公司 | Service processing method and device |
CN111343201A (en) * | 2020-05-18 | 2020-06-26 | 成都数之联科技有限公司 | Analysis method, device and system for rapidly adapting to protocol change |
CN111970363B (en) * | 2020-08-17 | 2022-08-16 | 北京金山云网络技术有限公司 | Data processing method and device based on Internet of things |
CN112468591A (en) * | 2020-11-27 | 2021-03-09 | 刘成禹 | Highway tunnel safety energy-saving intelligent operation management platform |
CN112929260A (en) * | 2021-02-08 | 2021-06-08 | 浙江浙大网新易盛网络通讯有限公司 | Intelligent gateway system and control method thereof |
CN113301522A (en) * | 2021-05-24 | 2021-08-24 | 招商局检测车辆技术研究院有限公司 | Data processing method of transportation facility V2X gateway and transportation facility V2X gateway |
CN113242265A (en) * | 2021-07-09 | 2021-08-10 | 中移(上海)信息通信科技有限公司 | Gateway data processing system and method and electronic equipment |
CN113485206A (en) * | 2021-08-06 | 2021-10-08 | 时代云英(重庆)科技有限公司 | Extensible Internet of things system and method |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101951693A (en) * | 2010-08-03 | 2011-01-19 | 天津中启创科技有限公司 | Thing Internet gateway of heterogeneous wireless network and control method thereof |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102238573A (en) * | 2010-04-30 | 2011-11-09 | 中兴通讯股份有限公司 | Machine-to-machine/machine-to-man/man-to-machine (M2M) service structure and M2M service realization method |
-
2014
- 2014-04-16 CN CN201410151756.6A patent/CN103944813B/en not_active Expired - Fee Related
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101951693A (en) * | 2010-08-03 | 2011-01-19 | 天津中启创科技有限公司 | Thing Internet gateway of heterogeneous wireless network and control method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN103944813A (en) | 2014-07-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103944813B (en) | A kind of gateway and method for realizing General adaptive function | |
CN108093070B (en) | Internet of things data service middleware system | |
CN107480053B (en) | Software test data generation method and device | |
CN107636602A (en) | A kind of data processing method and data processing equipment | |
CN107750058A (en) | Method, control terminal and the system of equipment access network based on wifi Beacon frames | |
CN108769165A (en) | Data processing method, Internet of Things access system in a kind of Internet of Things | |
CN107787025A (en) | Method, control terminal and the system of equipment access network | |
CN103401930B (en) | A kind of industrial monitoring method and device of sing on web Service | |
CN107168971A (en) | The data processing method and device of web application | |
CN113888064B (en) | Product quality tracing method, device and equipment in food and beverage industry | |
CN108919762A (en) | Control method and device based on Industrial Ethernet | |
CN106878041A (en) | Log information processing method, apparatus and system | |
CN103905410A (en) | Multi-channel communication protocol converter capable of converting user-defined protocol to Modbus protocol | |
CN107819650A (en) | Data safety method of testing and device | |
CN102982474A (en) | System and method for merchant member management and customer data analysis | |
CN106384239A (en) | Vaccine-circulation whole-course humiture traceability platform based on bar code, system and method thereof | |
CN110213756A (en) | A kind of data transmission method, device and its relevant device | |
CN105976141A (en) | Networked logistics inventory method and device | |
CN106569934A (en) | Application log display method and device | |
CN102970201B (en) | Mobility integrated method for industrial field device | |
CN107040613A (en) | A kind of message transmitting method and system | |
CN108200047A (en) | Data processing method, apparatus and system | |
CN107634979A (en) | A kind of transmission method and device of computer digital control machine tool data | |
CN109088882A (en) | A kind of method, apparatus, network controller and the system of data transmission | |
CN112732458A (en) | Multi-protocol data integration system and method adopting protocol stack |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180130 Termination date: 20210416 |
|
CF01 | Termination of patent right due to non-payment of annual fee |