CN104702642B - data integration device for sensor network - Google Patents

data integration device for sensor network Download PDF

Info

Publication number
CN104702642B
CN104702642B CN201310659537.4A CN201310659537A CN104702642B CN 104702642 B CN104702642 B CN 104702642B CN 201310659537 A CN201310659537 A CN 201310659537A CN 104702642 B CN104702642 B CN 104702642B
Authority
CN
China
Prior art keywords
sensor
bus
shelves
processing unit
network node
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.)
Active
Application number
CN201310659537.4A
Other languages
Chinese (zh)
Other versions
CN104702642A (en
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.)
Institute for Information Industry
Original Assignee
Institute for Information Industry
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 Institute for Information Industry filed Critical Institute for Information Industry
Priority to CN201310659537.4A priority Critical patent/CN104702642B/en
Publication of CN104702642A publication Critical patent/CN104702642A/en
Application granted granted Critical
Publication of CN104702642B publication Critical patent/CN104702642B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

A kind of data integration device for sensor network system.Sensor network system includes sensor network and application program servomechanism.Data integration device self-application programmed servo device receives the literal order related to sensor network access, and being used cooperatively by literal order and sensor network hardware configuration shelves, complete the associative operations of the tabular data that the network node of sensor network provides.

Description

Data integration device for sensor network
Technical field
The present invention is on a kind of data integration device for sensor network;More specifically, the present invention is used to feel The data integration device for surveying device network is set using literal order and hardware configuration, completes the number after sensor network tabular According to access, to complete the communication between application program and sensor network.
Background technology
In known sensing application, sensor or controller mainly pass through bus(bus)Specifically sensed with specification Device pinboard(adapter board)The motherboard being connected to where sensing application program(host board).Development and application journey During sequence, sensor supplier must provide application program interface(Application Programming Interface)To phase Application developer is closed, is linked up with motherboard driver, carries out sensing application.Corresponding different sensing development environment with Program development language covers different application program interfaces more, it is necessary to use, and develops multiple sensing application programs.
And if above-mentioned motherboard is inserted in sensor network framework, an as network node, and each network node A main node is mainly linked to communication protocol wirelessly or non-wirelessly.Main node passes through the specific pinboard of specification, example As universal asynchronous transmits receiver(UART), it is connected with the motherboard where sensing application program.
And though user can drive in the related application that single sensor is performed on a node with node host plate Program is linked up, and the associative operation of sensor is carried out via sensor pinboard and network node.But it is being limited to apply It need to voluntarily consider in the case that program interface does not support sensor network framework, when application development and carry out motherboard and master The support of node and the communication of sensor network, so it can smoothly be linked up when program performs with sensor.
Furthermore, because sensor, network node and the sensor pinboard of the production of different sensor manufacturers generally have Different specifications, therefore, application program must also consider sensor pinboard, the network for how being directed to different size when exploitation Different pieces of information content caused by node and bus therebetween, makes further interpretation.
Accordingly, not only must each sensor supplier expand its application program interface in addition to network layer, and need because Answer a variety of heterogeneous networks, different development environments and different development language to prepare more set application program interfaces, then it is known to apply journey Sequence interface mode is a big burden for sensor supplier, and for the exploitation to sensor network application program, because need with Different application interface develops the mode of sensor network application program, is also quite inconvenient and not resilient.
In summary, how based on existing sensor network hardware structure, the mode that sensing data is handled is improved, to add The exploitation of fast application program simultaneously improves the elasticity that application program uses, and is the target that industry needs effort badly.
The content of the invention
The main object of the present invention is to provide a kind of data integration device for sensor network system.Sensor network System includes sensor network and application program servomechanism.Data integration device includes resource configuration module, at data interface Manage unit, Resource Properties processing unit, logic bus processing unit and network interface processing unit.Resource configuration module, use To store, sensor resource settings shelves, bus setting shelves, resource are corresponding with bus to set shelves and network node setting shelves.
Data interface processing unit is connected with application program servomechanism, to:Self-application programmed servo device receives sensor Query statement;Sensor resource settings shelves are inquired about according to sensor query statement, and self-inductance measurement device resource settings shelves capture sensing Device species configuration;Sensor bus query statement is transmitted according to sensor species configuration.Resource Properties processing unit to:According to The sensor bus query statement inquires about that the resource is corresponding with bus to set shelves, and from resource it is corresponding with bus set shelves capture it is total Line corresponds to configuration;Configuration inquiry bus setting shelves are corresponded to according to bus, and bus types configuration is captured from bus setting shelves;According to The transmission network querying node instruction of bus types configuration.
Logic bus processing unit to:Network node setting shelves, and automatic network are inquired about according to network node query statement Node sets shelves capture network node and correspond to configuration.Network interface processing unit is connected with sensor network, to:According to network Node corresponds to configuration access sensor network, and returns query response to application program servomechanism.Wherein, query response includes net Network node authentication code and network node sensor information.
After the embodiment refering to schema and then described, art tool usually intellectual can know more about this The technological means and specific implementation aspect of invention.
Brief description of the drawings
Fig. 1 is the schematic diagram of the sensor network system of the first embodiment of the present invention;
Fig. 2 is the schematic diagram of the sensor network system of the second embodiment of the present invention;
Fig. 3 is the schematic diagram of the sensor network system of the third embodiment of the present invention;
Fig. 4 is the flow chart of the data integration method of the fourth embodiment of the present invention;And
Fig. 5 A-5D are the flow charts of the data integration method of the fifth embodiment of the present invention.
Symbol description:
1st, 1 ', 9 sensor network system
11st, 11 ', 91 data integration device
111st, 911 resource configuration module
113 data interface processing units
115 Resource Properties processing units
117 logic bus processing units
119 network interface processing units
13rd, 93 application program servomechanism
130th, 930 sensor query statement
132 sensor attribute queries instruct
134 sensor attributes read instruction
136 sensor attribute write instructions
15th, 95 sensor network
1130 sensor bus query statements
1132 sensor bus input/output query statements
1134 sensor bus input/output query statements
1150 network node query statements
1152 network nodes read instruction
1154 network node write instructions
1170 nodes support query statement
1172 network nodes read instruction
1174 network node write instructions
1190th, 950 query response
9110 sensor configurations
913 data processing modules
RP sensor resource settings shelves
BP buses set shelves
MP resources are corresponding with bus to set shelves
NP network nodes set shelves
SEN sensor species configurations
PTY sensor attribute informations
BUS bus types configurations
RBP buses correspond to configuration
Id1 network node identification codes
TYPE network node sensor information
Add1 storage address
Add2 storage address
Value sensor numerical value
Ack write-ins are responded
Embodiment
The present invention will be explained by embodiments of the invention below.However, such embodiment and being not used to limit this hair It is bright can to implement in any environment, application program or mode as described embodiments.Therefore, the explanation of following examples only exists In the explaination present invention, and it is not used to the limitation present invention.In following examples and schema, to the indirect related element of the present invention Have been omitted from and do not illustrate, and the size relationship being illustrated between each element in schema is only to readily appreciate, and be not used to limit For the implementation ratio of reality.
Fig. 1 is refer to, is the schematic diagram of a sensor network system 9 of first embodiment of the invention.Sensor network system System 9 includes a data integration device 91, an application program servomechanism 93 and a sensor network 95.Data integration device 91 is wrapped Containing a resource configuration module 911 and a data processing module 913.Data processing module 913 and application program servomechanism 93 with And sensor network 95 connects.Resource configuration module 911 stores a sensor configuration 9110.Interaction between network element will be under It is expanded on further in text.
First, user is intended to carry out the behaviour of sensor network 95 by the sensor application program of application program servomechanism 93 When making, user first for sensor network 95 need to can use the inquiry of sensor.Therefore, user can pass through application program Servomechanism 93 sends a sensor query statement 930.Immediately, the self-application programmed servo device 93 of data processing module 913 receives sense After surveying device query statement 930, sensor configuration 9110 is just accessed according to sensor query statement 930.
Specifically, resource configuration module 911 can be various forms of data storage elements(Such as memory, hard disk Deng), the mainly record configuration data related to the sensor of sensor network 95 of sensor configuration 9110, it is being accessed every time Afterwards, sensor correlation configuration data can be all updated, consequently, it is possible to which data processing module 913 can be by accessing sensor group State 9110 learns the state of sensor network 95, and further inquires about sensor network 95.Then, data processing module 913 is just An available query response 950, and application program servomechanism 93 is back to, to complete application program servomechanism 93 and sensing Communication between device network 95.
Fig. 2 is refer to, it is the schematic diagram of a sensor network system 1 of second embodiment of the invention.Sensor network System 1 includes a data integration device 11, an application program servomechanism 13 and a sensor network 15.Data integration device 11 Include a resource configuration module 111, a data interface processing unit 113, a Resource Properties processing unit 115, a logic bus The network interface processing unit 119 of processing unit 117 and one.Data interface processing unit 113 connects with application program servomechanism 13 Connect, network interface unit 119 is connected with sensor network 15.Specifically, aforementioned reason unit can be that same processing is single First hardware, also can be different processing units hardware.
Resource configuration module 111 stores a sensor resource settings shelves RP, bus setting shelves BP, a resource and bus pair Grade MP and network node setting shelves NP should be set.Wherein, sensor resource settings shelves RP records sensor relevant information, always Line sets shelves BP record trunk relevant informations, and resource records sensor and the corresponding related letter of bus to the corresponding shelves MP that sets of bus Breath, network node setting shelves NP record network nodes and input/output relevant information, and can all be updated after each inquiry Network node setting shelves NP content.Interaction between network element will be expanded on further below.
First, user is intended to carry out the behaviour of sensor network 15 by the sensor application program of application program servomechanism 13 When making, user first for sensor network 15 need to can use the inquiry of sensor.Therefore, user can pass through application program Servomechanism 13 sends a sensor query statement 130.Immediately, data interface processing unit 113 just receives sensor query statement 130, and sensor resource settings shelves RP is inquired about according to sensor query statement 130, and self-inductance measurement device resource settings shelves RP is captured One sensor species configuration SEN.
It should be specified, sensor resource settings shelves RP record sensor species configuration SEN, represent in sensor network 15 There is network node to install the sensor related to sensor species configuration SEN.Then, data interface processing unit 113 can root A sensor bus query statement 1130 is transmitted according to sensor species configuration SEN, to confirm and sensor species configuration SEN phases Which kind of bus the sensor of pass uses.
Specifically, Resource Properties processing unit 115 then be used to be inquired about according to sensor bus query statement 1130 and provided Source is corresponding with bus to set shelves MP, and captures the corresponding configuration RBP of a bus from resource set shelves MP corresponding with bus.Wherein, always Line corresponds to bus used in configuration RBP record sensor species configurations SEN.
Accordingly, Resource Properties processing unit 115 further can correspond to configuration RBP inquiry bus setting shelves according to bus BP, to capture a bus types configuration BUS related to sensor species configuration SEN from bus setting shelves BP.Then, resource category Property processing unit 115 according to bus types configuration BUS transmit a network node query statement 1150.
Then, logic bus processing unit 117 sends node support inquiry according to network node query statement 1150 and referred to Make 1170.Finally, network interface processing unit 119 supports query statement 1170 according to node and inquires about sensor network 15, and returns A query response 1190 is passed to application program servomechanism 13.Wherein, query response 1190 include a network node identification code id1 with An and network node sensor information TYPE.Consequently, it is possible to data integration device 11 just completes application program servomechanism 13 and sense The communication surveyed between device network 15.
For ease of understanding, aforementioned operation process illustrated below.Similarly, user is intended to by application program servomechanism Sensor application program carry out sensor network operation when, user need to first for sensor network carry out can use sensor Inquiry.Therefore, user can send sensor query statement " SELECT FROM ida- by application program servomechanism Info ", uses which kind of sensor inquiry sensor network supports.
Immediately, data interface processing unit just receives sensor query statement " SELECT FROM ida-info ", and root According to sensor query statement, " SELECT FROM ida-info " inquire about sensor resource settings shelves RAA, i.e. Fig. 2 RP one kind Embodiment:
Wherein, due to the related configuration and setting of sensor resource settings shelves RAA record carbon dioxide sensors, sensing is represented There is node to be provided with carbon dioxide sensor in device network, therefore, just self-inductance measurement device resource settings shelves RAA is picked data interface unit Take sensor species configuration CO2S.
Then, data interface processing unit sends the inquiry of sensor bus according to the sensor species configuration CO2S captured " RAA.CO2S-L " is instructed to Resource Properties processing unit, to confirm that the sensor related to sensor CO2S is total using which kind of Line.Resource Properties processing unit is set then according to sensor bus query statement " RAA.CO2S-L " query resource is corresponding with bus Determine shelves Mapping, i.e. a kind of Fig. 2 MP embodiment:
Accordingly, Resource Properties processing unit captures the corresponding configuration of bus from the resource shelves Mapping that sets corresponding with bus CO2S.GPIO, and it is corresponding defeated using universal output that bus, which corresponds to configuration CO2S.GPIO records sensor species configuration CO2S, Enter bus.
Accordingly, Resource Properties processing unit further can correspond to configuration GPIO inquiry bus setting shelves LBA according to bus, That is Fig. 2 BP a kind of embodiment:
To capture the bus types configuration GPIO related to sensor species configuration CO2S from bus setting shelves LBA.Then, Resource Properties processing unit transmits network querying node instruction " LBA.GPIO-L " according to bus types configuration GPIO.
Then, logic bus processing unit is supported according to network node query statement " LBA.GPIO-L " sending node and inquired about Network interface processing unit is given in instruction " list ".And network interface processing unit supports query statement " list " according to node, and Through foregoing query processing path passback query response " NodeID:CO2S " is to application program servomechanism.Wherein, NodeID:CO2S Represent that network node NodeID is provided with sensor CO2S, and after query response, NodeID can be recorded in network node To carry out node administration in setting shelves, such as when node is added or left, or content is carried out more after each inquiry Newly.
Specifically, the instruction between the foregoing servomechanism with application program of the present invention is the instruction of class database, will The literal order for being decomposed into the present invention, by way of literal order assigns each configuration database of inquiry, complete application program Communication between servomechanism and sensor network.Consequently, it is possible to the configuration that the present invention only needs to be directed in database is adjusted, can be complete Into the communication of different application servomechanism and sensor network, and new program and phase needn't be write again such as prior art The API answered.
Then, Fig. 3 is refer to, it is the schematic diagram of a sensor network system 1 ' of third embodiment of the invention.Wherein, It is identical with the system architecture and network connection environment of preceding embodiment in 3rd embodiment, therefore symbol identical element function is also Together, repeated no more in this.And 3rd embodiment and the difference of preceding embodiment are, 3rd embodiment, which is described in, has inquired about sensing After sensor kenel in device network, the action that is operated for sensor.
First, in 3rd embodiment, user has learnt in sensor network 15 have by application program servomechanism 13 There is the sensor related to sensor information TYPE, therefore, user can send a sensing by application program servomechanism 13 Device attribute query instruction 132.In other words, the self-application programmed servo device 13 of data interface processing unit 113 receives sensor attribute Query statement 132, and according to the inquiry sensor resource settings shelves RP of sensor attribute query instruction 132.
And because sensor resource settings shelves RP more records the operational order of the related sensors of sensor information TYPE, because This, data interface processing unit 113 can self-inductance measurement device resource settings shelves RP capture a sensor attribute information PTY, and will sense Survey device attribute information PTY and be back to application program servomechanism 13.Consequently, it is possible to user can pass through sensor attribute information PTY learns which kind of operating function the sensor related to sensor information TYPE has.
For ease of understanding, aforementioned operation process is equally illustrated below.Continue the example of 3rd embodiment, user is led to Cross application program servomechanism and learnt that there is sensor CO2S in sensor network, therefore, user can pass through application program Servomechanism sends sensor attribute query instruction " SELECT FROM ida-CO2S ".And data interface processing unit receives sensing The instruction of device attribute query " SELECT FROM ida-CO2S ", and sensor resource settings shelves RAA is inquired about according to this.
And the attribute that the related sensors of sensor CO2S are more recorded due to sensor resource settings shelves RAA is referred to operation Order, i.e. a Fig. 2 RP embodiment can include the description of the attribute and operational order of sensor:
Therefore, data interface processing unit can self-inductance measurement device resource settings shelves RAA acquisition sensor attribute informations co2_ ppm:Read, and by sensor attribute information co2_ppm:Read is back to application program servomechanism.Consequently, it is possible to user is just Sensor attribute information co2_ppm can be passed through:Read learns the operation that with sensor CO2S there is co2_ppm to read.
Then, in 3rd embodiment, the sensor related to sensor information TYPE has basic read/write Function.Accordingly, when user is intended to be directed to sensor related to sensor information TYPE, and being provided with network node identification code id1 When being read out, data interface processing unit 113 is directed to network node identification code id1 and sensor attribute information PTY, certainly should A sensor attribute, which is received, with programmed servo device reads instruction 134.
Then, data interface processing unit 113 just reads the inquiry sensor resource settings of instruction 134 according to sensor attribute Shelves RP, and self-inductance measurement device resource settings shelves RP captures a sensor attribute configuration AccessRead.Then, data interface processing is single Member 113 transmits a sensor bus input/output query statement 1132 according to sensor attribute configuration AccessRead.Resource category Property processing unit 115 sets shelves then according to sensor bus input/output 1132 query resources of query statement are corresponding with bus MP, and capture the corresponding configuration RBP of bus from resource set shelves MP corresponding with bus.
Immediately, Resource Properties processing unit 115 corresponds to configuration RBP inquiry bus setting shelves BP according to bus, and from bus Set shelves BP and capture a bus input/output configuration IO.Wherein, the input/output of bus input/output configuration IO record trunks State.Then, Resource Properties processing unit 115 transmits a network node according to bus input/output configuration IO and reads instruction 1152。
And logic bus processing unit 117 reads the inquiry one network node setting shelves NP of instruction 1152 according to network node, And automatic network node sets shelves NP captures a storage address add1.Then, logic bus processing unit 117 is just according to memory Address add1 sends a network node and reads instruction 1172.Network interface processing unit 119 just reads according to network node and instructed 1172, the network node represented for network node identification code id1, the memory of network node is read in storage address add1 The data form of offer, to obtain a sensor numerical value value, and sensing numerical value value is back to application program servomechanism 13。
For ease of understanding, aforementioned operation process is equally illustrated below.Continue previous example, sensor CO2S has base This co2_ppm:The function that Read is read.Accordingly, when user is intended to be directed to and the sensor located at network node NodeID When CO2S carries out the reading of co2_ppm numerical value, data interface processing unit self-application programmed servo device receives sensor attribute and read " SELECT co2_ppm FROM ida-CO2S WHERE device=NodeID ", wherein NodeID person are to have inquired about for instruction The node NodeID known.
Then, data interface processing unit just reads instruction " SELECT co2_ppm FROM according to sensor attribute Ida-CO2S WHERE device=NodeID ", inquire about sensor resource settings shelves RAA and capture a sensor attribute configuration co2_ppm。
Then, data interface processing unit transmits sensor bus input/output according to sensor attribute configuration co2_ppm Query statement " RAA.CO2S-i co2_ppm-s NodeID ".Resource Properties processing unit then according to sensor bus export/ " RAA.CO2S-i co2_ppm-s NodeID " query resources are corresponding with bus to set shelves Mapping, that is, schemes for input inquiry instruction A kind of 2 MP embodiment, further include corresponding description of the Resource Properties with the output input configuration in bus:
And the corresponding configuration CO2S.GPIO of bus is captured from resource set shelves MP corresponding with bus, and its attribute that ID is A01 Co2_ppm corresponds to the position 0 of input port P01 on GPIO.Immediately, Resource Properties processing unit corresponds to configuration according to bus CO2S.GPIO inquiry bus setting shelves LBA, i.e. a kind of Fig. 2 BP embodiment, further include the output input group in GPIO buses The description of state:
Resource Properties processing unit more captures a bus input/output configuration GPIO.AI from bus setting shelves LBA.Then, Resource Properties processing unit transmits network node according to bus input/output configuration GPIO.AI and reads instruction " LBA GPIO-i AI0-s NodeID”。
And logic bus processing unit reads instruction " LBA GPIO-i AI0-s NodeID " inquiry nets according to network node Network node sets shelves TBA:
Logic bus processing unit more automatic network node sets shelves TBA captures storage address 0x41 and each memory length Degree 32.Then, logic bus processing unit just sends network node according to storage address 0x41 and reads instruction read0x41032.Network interface processing unit just reads instruction read0x41032 according to network node, for network node NodeID, read the , Long degree of data form original position 0 that network node NodeID memory provides in storage address 0x41 32 Capital expect, to obtain sensor numerical value ppm, and sensing numerical value ppm are back into application program servomechanism.
On the other hand, when user is intended to for related to sensor information TYPE, and it is located at network node identification code id1's When sensor carries out attribute write-in or renewal, data interface processing unit 113 is directed to network node identification code id1 and sensor Attribute information PTY, self-application programmed servo device receive a sensor attribute write instruction 136.
Then, data interface processing unit 113 just inquires about sensor resource settings according to sensor attribute write instruction 136 Shelves RP, and self-inductance measurement device resource settings shelves RP captures a sensor attribute configuration AccessWrite.Then, data interface is handled Unit 113 transmits a sensor bus input/output query statement 1134 according to sensor attribute configuration AccessWrite.Money Source attribute processing unit 115 is set then according to sensor bus input/output 1134 query resources of query statement are corresponding with bus Determine shelves MP, and the corresponding configuration RBP of bus is captured from resource set shelves MP corresponding with bus.
Immediately, data attribute processing unit 115 corresponds to configuration RBP inquiry bus setting shelves BP according to bus, and from bus Set shelves BP and capture bus input/output configuration IO.Wherein, the input/output shape of bus input/output configuration IO record trunks State.Then, data attribute processing unit 115 transmits a network node write instruction 1154 according to bus input/output configuration IO.
And logic bus processing unit 117 inquires about network node setting shelves NP according to network node write instruction 1154, and Automatic network node sets shelves NP captures a storage address add2.Then, logic bus processing unit 117 is just according to memory Location add2, send a network node write instruction 1174.Network interface processing unit 119 is just according to network node write instruction 1174, the network node represented for network node identification code id1, the memory to network node is write data into memory The data form that address add2 is provided, and obtain a write-in and respond ack, and ack is responded into write-in and is back to application program servo Device 13.
For ease of understanding, aforementioned operation process is equally illustrated below.Continue previous example, sensor CO2S has base This altitude:The function of Write write-ins.Accordingly, when user is intended to be directed to and the sensor located at network node NodeID When CO2S carries out the write-in of altitude numerical value, data interface processing unit self-application programmed servo device receives the write-in of sensor attribute Instruct " UPDATE ida-CO2S SET altitude=300WHERE device=NodeID ".
Then, data interface processing unit just reads instruction " UPDATE ida-CO2S SET according to sensor attribute Altitude=300WHERE device=NodeID " inquiry sensor resource settings shelves RAA:
Data interface processing unit can self-inductance measurement device resource settings shelves RAA acquisition sensor attribute configurations altitude.
Then, data interface processing unit transmits sensor bus output/defeated according to sensor attribute configuration altitude Enter query statement " RAA.CO2S-u altitude300-s NodeID ".Resource Properties processing unit is total then according to sensor " RAA.CO2S-u altitude300-s NodeID " query resources are corresponding with bus to set shelves to line input/output query statement Mapping, and the corresponding configuration CO2S.GPIO and its ID of bus is captured as A02's from resource set shelves Mapping corresponding with bus Attribute altitude corresponds to the position 32 of input port P02 on GPIO.Immediately, Resource Properties processing unit corresponds to group according to bus State CO2S.GPIO inquiry bus setting shelves LBA:
Data attribute processing unit more captures a bus input/output configuration GPIO.AO from bus setting shelves LBA.Then, Data attribute processing unit transmits network node write instruction " LBA.GPIO-u according to bus input/output configuration GPIO.AO AO32300-s NodeID”。
And logic bus processing unit according to network node read instruction " LBA.GPIO-u AO32300-s NodeID " are looked into Ask network node setting shelves TBA:
Logic bus processing unit more automatic network node sets shelves TBA captures storage address 0x51.Then, logic bus Processing unit just sends network node write instruction write0x51321300 according to storage address 0x51, wherein 1 representative data Number.Network interface processing unit is just according to network node write instruction write0x51321300, for network node NodeID, numerical value 300 is write to network node NodeID memory in the data form that storage address 0x51 is provided Beginning position 32, and be written and respond ack, and ack is responded into write-in and is back to application program servomechanism.
Similarly, foregoing data interface processing unit receive come self-application servomechanism instruction can also one instruction Operated for multiple network nodes, multiple sensors and multiple property values, such as " UPDATE ida-CO2S, ida-ISKT SET altitude=300, power=ON WHERE device=NodeID1, device=NodeID2 ", those skilled in the art It is able to should be readily appreciated that by preceding disclosure, then its Detailed Operation situation will not be repeated here.
The fourth embodiment of the present invention is a data integration method, and its flow chart refer to Fig. 4.The side of fourth embodiment Method is to be used for a data integration device, includes a resource configuration module and a data processing module.Data integration device is to use In a sensor network system.Sensor network system includes a sensor network and an application program servomechanism.Resource is matched somebody with somebody Put module and store a sensor configuration.Data processing module is connected with application program servomechanism and sensor network.4th is real The detailed step for applying example is as described below.
First, when user is intended to carry out the operation of sensor network by the sensor application program of application program servomechanism When, user directly can send a sensor query statement to data integration device by application program servomechanism, then hold Row step 401, data processing module self-application programmed servo device is made to receive sensor query statement.
Step 402 is performed, makes data processing module access sensor configuration according to sensor query statement to inquire about sensing Device network.Finally, step 403 is performed, makes data processing module return a query response to application program servomechanism, to complete to answer With the communication between programmed servo device and sensor network.
One the 5th embodiment of the present invention is a data integration method, and its flow chart refer to Fig. 5 A-5D.5th embodiment Method be to be used for a data integration device, include a resource configuration module and a data processing module.Data integration device It is to be used for a sensor network system.Sensor network system includes a sensor network and an application program servomechanism.Money Source configuration module stores a sensor configuration, and sensor configuration further includes a sensor resource settings shelves, a bus sets shelves, One resource is corresponding with bus to set shelves and network node setting shelves.
And data processing module further includes a data interface processing unit, a Resource Properties processing unit, a logic bus Processing unit and a network interface processing unit.Data processing module passes through data interface processing unit and application program servo Device connects, and is connected by network interface processing unit with sensor network.The detailed step of 5th embodiment is as described below.
First, similarly, when user is intended to carry out sensor net by the sensor application program of application program servomechanism During the operation of network, user directly can send a sensor query statement to Data Integration by application program servomechanism and fill Put, then perform step 501, make data interface processing unit self-application programmed servo device receive sensor query statement.Perform Step 502, data interface processing unit is made to inquire about sensor resource settings shelves according to sensor query statement, and self-inductance measurement device provides Source setting shelves capture a sensor species configuration.
Then, step 503 is performed, makes data interface processing unit transmit a sensor bus according to sensor species configuration Query statement.Step 504 is performed, makes Resource Properties processing unit according to sensor bus query statement query resource and bus pair Shelves should be set, and the corresponding configuration of a bus is captured from the resource shelves that set corresponding with bus.Step 505 is performed, is made at Resource Properties Reason unit corresponds to configuration inquiry bus setting shelves according to bus, and captures a bus types configuration from bus setting shelves.
Then, step 506 is performed, makes Resource Properties processing unit transmit network node inquiry according to bus types configuration Instruction.Step 507 is performed, makes logic bus processing unit send node support inquiry according to network node query statement and refers to Order.Step 508 is performed, makes network interface processing unit support query statement inquiry sensor network according to node, and return and look into Ask and respond to application program servomechanism.Wherein, query response includes a network node identification code and a network node sensor Information.
Then, when application program servomechanism obtains the network node identification code and network node sensor of sensor network After information, the sensor that can be directed to network node carries out attribute query.Step 509 is performed, makes data interface processing unit pin To network node sensor information, self-application programmed servo device receives sensor attribute query instruction.Perform step 510, order Data interface processing unit is according to sensor attribute query instructions query sensor resource settings shelves, and self-inductance measurement device resource settings Shelves capture a sensor attribute information.Step 511 is performed, making data interface processing unit be back to sensor attribute information should With programmed servo device.
And after application program servomechanism learns sensor attribute information, can be directed to network node carry out it is corresponding read with The operation of write-in.First explanation reads associative operation, performs step 512, makes data interface processing unit be recognized for network node Code and sensor attribute information, self-application programmed servo device receive a sensor attribute and read instruction.Perform step 513, order Data interface processing unit reads instructions query sensor resource settings shelves, and self-inductance measurement device resource settings according to sensor attribute Shelves capture a sensor attribute configuration.
Then, step 514 is performed, makes data interface processing unit transmit a sensor bus according to sensor attribute configuration Input/output query statement.Step 515 is performed, makes Resource Properties processing unit be referred to according to the inquiry of sensor bus input/output Make query resource is corresponding with bus to set shelves, and the corresponding configuration of bus is captured from the resource shelves that set corresponding with bus.Perform step 516, make Resource Properties processing unit correspond to configuration inquiry bus setting shelves according to bus, and a bus is captured from bus setting shelves Input/output configuration.
Then, step 517 is performed, makes Resource Properties processing unit transmit a network section according to bus input/output configuration Point reads instruction.Step 518 is performed, makes logic bus processing unit read the setting of instructions query network node according to network node Shelves, and automatic network node sets shelves capture a first memory address.Perform step 519, make logic bus processing unit according to First memory address sends a network node and reads instruction.
Step 520 is performed, makes network interface processing unit be directed to the network node that network node identification code represents, according to Network node reads instruction, reads the data form that network node provides in first memory address, and obtain a sensor Numerical value.Step 521 is performed, makes network interface processing unit that the sensor numerical value is back into application program servomechanism.
On the other hand, illustrate to write associative operation, perform step 522, make data interface processing unit be directed to network node Identification code and sensor attribute information, self-application programmed servo device receive a sensor attribute write instruction.Perform step 523, make data interface processing unit inquire about sensor resource settings shelves according to sensor attribute write instruction, and self-inductance measurement device provides Source setting shelves capture sensor attribute configuration.Step 524 is performed, makes data interface processing unit be passed according to sensor attribute configuration Send sensor bus input/output query statement.
Then, step 525 is performed, makes Resource Properties processing unit be looked into according to sensor bus input/output query statement Inquiry resource is corresponding with bus to set shelves, and captures the corresponding configuration of bus from the resource shelves that set corresponding with bus.Step 526 is performed, Make Resource Properties processing unit according to bus correspond to configuration inquiry bus setting shelves, and from bus setting shelves capture bus output/ Input configuration.Step 527 is performed, makes Resource Properties processing unit transmit a network node according to bus input/output configuration and writes Enter instruction.
Then, step 528 is performed, makes logic bus processing unit inquire about network node according to network node write instruction and sets Determine shelves, and automatic network node sets shelves capture a second memory address.Step 529 is performed, makes logic bus processing unit root A network node write instruction is sent according to second memory address.Step 530 is performed, makes network interface processing unit be directed to network The network node that node authentication code represents, according to network node write instruction, is carried to network node in second memory address The data form supplied is write.Step 531 is performed, makes the write-in of network interface processing unit passback one respond to application program Servomechanism.
In summary, data integration device of the invention can be by the network node of sensor network and sensor correlation configuration Multi-zone supervision, and the access for the literal order progress configuration for passing through class database manipulation, finally again in table form will operation Result data provides and gives application program servomechanism, consequently, it is possible to application program is when exploitation, just need not be by the bottom of sensor network The related configuration of layer is taken into consideration, with the exploitation of accelerating application and improves the elasticity that application program uses.
Only above-described embodiment is only the embodiment aspect of the illustrative present invention, and explains the technical characteristic of the present invention, Not it is used for limiting the protection category of the present invention.Any people skilled in the art unlabored can change or the peace of isotropism Row belongs to the scope that the present invention is advocated, the scope of the present invention should be defined by claims.

Claims (8)

1. a kind of data integration device for being used for a sensor network system, it is characterised in that the sensor network system includes One sensor network and an application program servomechanism, the data integration device include:
One resource configuration module, to store a sensor configuration, the sensor configuration includes a sensor resource settings shelves, one Bus sets shelves and a resource is corresponding with bus sets shelves;
One data processing module, it is connected with the application program servomechanism and the sensor network, comprising:
One data interface processing unit, to:
The sensor query statement is received from the application program servomechanism;
The sensor resource settings shelves are inquired about according to the sensor query statement, and a sense is captured from the sensor resource settings shelves Survey device species configuration;
One sensor bus query statement is transmitted according to the sensor species configuration;
One Resource Properties processing unit, to:
Inquire about that the resource is corresponding with bus to set shelves according to the sensor bus query statement, and set from the resource is corresponding with bus Determine one bus of shelves acquisition and correspond to configuration;
Configuration is corresponded to according to the bus and inquires about bus setting shelves, and a bus types configuration is captured from bus setting shelves;
One network node query statement is transmitted according to the bus types configuration;
One logic bus processing unit, to:
One node is sent according to the network node query statement and supports query statement;
One network interface processing unit, is connected with the sensor network, to:
Query statement is supported according to the node and inquires about the sensor network, and returns a query response to the application program servo Device, the sensor configuration are updated after being accessed, wherein, the query response includes a network node identification code and a net Network node sensor information.
2. data integration device as claimed in claim 1, it is characterised in that the data interface processing unit more to:
For the network node sensor information, sensor attribute query instruction is received from the application program servomechanism;
Captured according to the sensor attribute query instructions query sensor resource settings shelves, and from the sensor resource settings shelves One sensor attribute information;
The sensor attribute information is back to the application program servomechanism.
3. data integration device as claimed in claim 2, it is characterised in that the sensor configuration further includes a network node and set Determine shelves, the data interface processing unit more to:
For the network node identification code and the sensor attribute information, a sensor category is received from the application program servomechanism Property read instruction;
According to the sensor attribute reading instructions query sensor resource settings shelves, and captured from the sensor resource settings shelves One sensor attribute configuration;
One sensor bus input/output query statement is transmitted according to the sensor attribute configuration;
Wherein, the Resource Properties processing unit more to:
Inquire about that the resource is corresponding with bus to set shelves according to the sensor bus input/output query statement, and from the resource with Bus, which correspondingly sets shelves and captures the bus, corresponds to configuration;
Configuration is corresponded to according to the bus and inquires about bus setting shelves, and a bus input/output group is captured from bus setting shelves State;
One network node is transmitted according to the bus input/output configuration and reads instruction;
Wherein, the logic bus processing unit more to:
Instructions query network node setting shelves are read according to the network node, and a storage is captured from network node setting shelves Device address;
One network node is sent according to the storage address and reads instruction;
Wherein, the network interface processing unit more to:
The network node represented for the network node identification code, read and instructed according to the network node, read the network section The data form that point provides in the storage address, and obtain a sensor numerical value;
The sensor numerical value is back to the application program servomechanism.
4. data integration device as claimed in claim 2, it is characterised in that the sensor configuration further includes a network node and set Determine shelves, the data interface processing unit more to:
For the network node identification code and the sensor attribute information, a sensor category is received from the application program servomechanism Property write instruction;
The sensor resource settings shelves are inquired about according to the sensor attribute write instruction, and captured from the sensor resource settings shelves One sensor attribute configuration;
One sensor bus input/output query statement is transmitted according to the sensor attribute configuration;
Wherein, the Resource Properties processing unit more to:
Inquire about that the resource is corresponding with bus to set shelves according to the sensor bus input/output query statement, and from resource with it is total Line, which correspondingly sets shelves and captures the bus, corresponds to configuration;
Configuration is corresponded to according to the bus and inquires about bus setting shelves, and a bus input/output group is captured from bus setting shelves State;
One network node write instruction is transmitted according to the bus input/output configuration;
Wherein, the logic bus processing unit more to:
Network node setting shelves are inquired about according to the network node write instruction, and a storage is captured from network node setting shelves Device address;
One network node write instruction is sent according to the storage address;
Wherein, the network interface processing unit more to:
The network node represented for the network node identification code, according to the network node write instruction, to the network node Write in the data form that the storage address provides;
The write-in of passback one is responded to the application program servomechanism.
5. a kind of data integration method for being used for a data integration device, it is characterised in that the data integration device is to be used for one Sensor network system, comprising a resource configuration module and a data processing module, the sensor network system includes a sense Device network and an application program servomechanism are surveyed, the resource configuration module stores a sensor configuration, and the sensor configuration includes One sensor resource settings shelves, bus setting shelves and a resource is corresponding with bus sets shelves, the data processing module and this Application program servomechanism and sensor network connection, the data processing module further include a data interface processing unit, one Resource Properties processing unit, a logic bus processing unit and a network interface processing unit, the data integration method include:
(a) the data interface processing unit is made to receive a sensor query statement from the application program servomechanism;
(b1) make the data interface processing unit inquire about the sensor resource settings shelves according to the sensor query statement, and certainly should Sensor resource settings shelves capture a sensor species configuration;
(b2) the data interface processing unit is made to transmit a sensor bus query statement according to the sensor species configuration;
(b3) the Resource Properties processing unit is made to inquire about resource setting corresponding with bus according to the sensor bus query statement Shelves, and capture the corresponding configuration of a bus from the resource shelves that set corresponding with bus;
(b4) make the Resource Properties processing unit correspond to configuration according to the bus and inquire about bus setting shelves, and set from the bus Shelves capture a bus types configuration;
(b5) the Resource Properties processing unit is made to transmit a network node query statement according to the bus types configuration;
(b6) make the logic bus processing unit send a node according to the network node query statement and support query statement;
(b7) make the network interface processing unit support query statement according to the node and inquire about the sensor network;
(c) make the socket processing unit return a query response to the application program servomechanism, and update the sensor group State, wherein, the query response includes a network node identification code and a network node sensor information.
6. data integration method as claimed in claim 5, it is characterised in that further include:
(d) make the data interface processing unit be directed to the network node sensor information, one is received from the application program servomechanism Sensor attribute query instructs;
(e) the data interface processing unit is made according to the sensor attribute query instructions query sensor resource settings shelves, and A sensor attribute information is captured from the sensor resource settings shelves;
(f) make the data interface processing unit that the sensor attribute information is back into the application program servomechanism.
7. data integration method as claimed in claim 6, it is characterised in that the sensor configuration further includes a network node and set Determine shelves, the data integration method further includes:
(g) the data interface processing unit is made to be directed to the network node identification code and the sensor attribute information, from the application Programmed servo device receives a sensor attribute and reads instruction;
(h) the data interface processing unit is made according to the sensor attribute reading instructions query sensor resource settings shelves, and A sensor attribute configuration is captured from the sensor resource settings shelves;
(i) the data interface processing unit is made to transmit sensor bus input/output inquiry according to the sensor attribute configuration Instruction;
(j) the Resource Properties processing unit is made to inquire about the resource and bus according to the sensor bus input/output query statement Corresponding setting shelves, and capture the corresponding configuration of the bus from the resource shelves that set corresponding with bus;
(k) make the Resource Properties processing unit correspond to configuration according to the bus and inquire about bus setting shelves, and set from the bus Shelves capture a bus input/output configuration;
(l) make the Resource Properties processing unit transmit a network node according to the bus input/output configuration and read instruction;
(m) make the logic bus processing unit read instructions query network node setting shelves according to the network node, and certainly should Network node setting shelves capture a storage address;
(n) make the logic bus processing unit send a network node according to the storage address and read instruction;
(o) the network interface processing unit is made to be directed to the network node that the network node identification code represents, according to the network section Point reads instruction, reads the data form that the network node provides in the storage address, and obtain a sensor numerical value;
(p) make the network interface processing unit that the sensor numerical value is back into the application program servomechanism.
8. data integration method as claimed in claim 6, it is characterised in that the sensor configuration further includes a network node and set Determine shelves, the data integration method further includes:
(g) the data interface processing unit is made to be directed to the network node identification code and the sensor attribute information, from the application Programmed servo device receives a sensor attribute write instruction;
(h) the data interface processing unit is made to inquire about the sensor resource settings shelves according to the sensor attribute write instruction, and A sensor attribute configuration is captured from the sensor resource settings shelves;
(i) the data interface processing unit is made to transmit sensor bus input/output inquiry according to the sensor attribute configuration Instruction;
(j) the Resource Properties processing unit is made to inquire about the resource and bus according to the sensor bus input/output query statement Corresponding setting shelves, and capture the corresponding configuration of the bus from the resource shelves that set corresponding with bus;
(k) make the Resource Properties processing unit correspond to configuration according to the bus and inquire about bus setting shelves, and set from the bus Shelves capture a bus input/output configuration;
(l) the Resource Properties processing unit is made to transmit a network node write instruction according to the bus input/output configuration;
(m) make the logic bus processing unit inquire about network node setting shelves according to the network node write instruction, and certainly should Network node setting shelves capture a storage address;
(n) the logic bus processing unit is made to send a network node write instruction according to the storage address;
(o) the network interface processing unit is made to be directed to the network node that the network node identification code represents, according to the network section Point write instruction, writes to the network node in the data form that the storage address provides;
(p) the network interface processing unit is made after step (o), and the write-in of passback one is responded to the application program servomechanism.
CN201310659537.4A 2013-12-09 2013-12-09 data integration device for sensor network Active CN104702642B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310659537.4A CN104702642B (en) 2013-12-09 2013-12-09 data integration device for sensor network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310659537.4A CN104702642B (en) 2013-12-09 2013-12-09 data integration device for sensor network

Publications (2)

Publication Number Publication Date
CN104702642A CN104702642A (en) 2015-06-10
CN104702642B true CN104702642B (en) 2018-03-23

Family

ID=53349407

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310659537.4A Active CN104702642B (en) 2013-12-09 2013-12-09 data integration device for sensor network

Country Status (1)

Country Link
CN (1) CN104702642B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1492356A (en) * 2002-10-23 2004-04-28 奕升科技股份有限公司 Modular network integrating system
CN1548987A (en) * 2003-05-16 2004-11-24 远传电信股份有限公司 Geographical disaster monitoring and alarming system of application communication network
CN201749528U (en) * 2010-06-23 2011-02-16 新谊整合科技股份有限公司 Security and image monitoring alternate-current integrating system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8479258B2 (en) * 2011-01-06 2013-07-02 Martin Herman Weik, III Garage management system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1492356A (en) * 2002-10-23 2004-04-28 奕升科技股份有限公司 Modular network integrating system
CN1548987A (en) * 2003-05-16 2004-11-24 远传电信股份有限公司 Geographical disaster monitoring and alarming system of application communication network
CN201749528U (en) * 2010-06-23 2011-02-16 新谊整合科技股份有限公司 Security and image monitoring alternate-current integrating system

Also Published As

Publication number Publication date
CN104702642A (en) 2015-06-10

Similar Documents

Publication Publication Date Title
JP6546308B2 (en) Method and apparatus for managing process data
CN105094707B (en) A kind of data storage, read method and device
CN104067186B (en) Assisting system, record have record medium and the method for generation executable program of support program
CN102200993B (en) For the method and apparatus showing process data
CN103149849B (en) industrial automation system and method
CN1307495C (en) Control server, control terminal, control system, and recording medium storing control communication program
CN104903884B (en) Field apparatus collocation method, field apparatus configuration verification method and the asset management system
US10067747B2 (en) Embedded device application development
CN105760419A (en) Method And Systme For Join Processing
CN105830417A (en) A method and a system for replacing and commissioning of a field device
US9015608B2 (en) Regenerating a user interface area
CN102097015B (en) Operation instruction processing system and method
JPWO2013191275A1 (en) Control device
CN105745651A (en) Techniques for managing writable search results
CN101634833A (en) Open type configuration method and system for IO parameters of field device
CN103069353B (en) Facility management device and screen display method
CN104702642B (en) data integration device for sensor network
CN103376777A (en) Testing method for Modbus communication interface of controller and host computer
JP5893715B2 (en) Data integration apparatus and data integration method for use in sensor network
CN103336710A (en) Method and system for constructing virtual equipment widget
CN102521292A (en) Template-based analytic method for integrated data of heterogeneous pollution source
CN103530353A (en) Self-identification method of GPS user data format
CN205050186U (en) Real -time automatic system of booking rooms
CN103366032A (en) System and method for Internet of Things perception layer to conduct unified representation
EP3591481B1 (en) Device configuration management apparatus, system, and program

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