CN108398152A - A kind of numbering system and method for universal sensor - Google Patents
A kind of numbering system and method for universal sensor Download PDFInfo
- Publication number
- CN108398152A CN108398152A CN201711477731.5A CN201711477731A CN108398152A CN 108398152 A CN108398152 A CN 108398152A CN 201711477731 A CN201711477731 A CN 201711477731A CN 108398152 A CN108398152 A CN 108398152A
- Authority
- CN
- China
- Prior art keywords
- sensor
- numbering system
- communication protocol
- numbering
- serial ports
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01D—MEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
- G01D21/00—Measuring or testing not otherwise provided for
- G01D21/02—Measuring two or more variables by means not covered by a single other subclass
Abstract
The present invention provides a kind of numbering systems and method of universal sensor.The numbering system of universal sensor, including:Configuration module, for configuring selection sensor type;Protocol selection module, for selecting the communication protocol corresponding to sensor type;Data read module, the data for reading sensor, and according to the detected value of communication protocol output transducer;Instruction writing module is numbered sensor according to detected value, and corresponding sensor is written in the number data of number according to communication protocol.By the way that configuration module and protocol selection module is arranged, the communication protocol that can will belong to the different types of sensor of different vendor is integrated in systems.Operating personnel read data and write-in number data by selecting respective sensor manufacturer and type, you can are numbered to sensor, eliminate and carry out communication cost with different vendor different technologies personnel, improve efficiency, ensure that detection work can be timely completed.
Description
Technical field
The present invention relates to construction detection technique field, more particularly to the numbering system of a kind of universal sensor and side
Method.
Background technology
With the fast development of technology and the deep popularization of smart city theory, occur for construction monitoring field
Various types of sensors, such as stress, strain, lock power, displacement, temperature, humidity sensor building field application increasingly
Extensively.
It is as follows using the general flow of sensor in the realm of building construction:Solution formulation, sensor number, equipment installation,
Data acquire.In general, solution formulation is completed by the civil engineer of profession, sensor number work provides technology by hardware vendor
It supports, equipment installation is responsible for guidance by hardware vendor, and data acquisition is then completed using information-based means.Sensor number it is main
Purpose is just to determine the correspondence of each sensor and institute's test position.The number of certain usual type sensor be all by
Its production firm voluntarily implements, and gives each sensor to send instruction, then artificial change wherein some biography by its serial ports assistant
Then the detected value of sensor reads the returned data of all the sensors, and maximum to detection data variation by serial ports assistant
The determining number of sensor write-in.During above-mentioned number, the instruction of each sensor and reading are all with its corresponding communication
Agreement is foundation, and read-write is required for very professional personnel that could operate, and its instruction and reading are all a lot of characters, i.e.,
It is professional when reading data and write instruction, and especially time-consuming takes great energy.For example,
4B015F4B015E4B01604B015D4B015F4B01604B015F, this is the return number of hexadecimal temperature sensor
According to the personnel that this data are unfamiliar with sensor agreement are difficult to handle.
Sensor used in actual work progress is especially numerous, different sensor, different
Manufacturer causes the communication protocol of various sensors multifarious.As shown in Figure 1, in the number process of sensor, need frequent
Number item is linked up from different hardware vendors, therefore will produce larger time cost, some even can influence the duration.For
This, it is necessary to a kind of numbering system and method for universal sensor are developed, so that number process is become simple and easily executes, make scene
Personnel can easily be numbered sensor, complete the installation to sensor and debugging efforts as early as possible, ensure construction speed.
Invention content
The purpose of the present invention is to provide a kind of numbering systems and method of universal sensor, to solve existing sensor
Cumbersome problem is linked up during number, operating personnel are by selecting respective sensor manufacturer and type, so that it may easily to read
Evidence of fetching and write-in number data, eliminate and carry out communication cost with different vendor different technologies personnel, improve efficiency, ensure
Detection work can be timely completed.
In order to solve the above technical problem, the present invention provides a kind of numbering systems of universal sensor, including:
Configuration module, for configuring selection sensor type;
Protocol selection module, for selecting the communication protocol corresponding to the sensor type;
Data read module, the data for reading the sensor, and export the sensing according to the communication protocol
The detected value of device;And
Instruction writing module is numbered the sensor according to the detected value, and will according to the communication protocol
The corresponding sensor is written in the number data of the number.
Optionally, in the numbering system of the universal sensor, the configuration module is additionally operable to pass in configuration selection
Before sensor type, scans the numbering system and connect serial ports with the sensor, judge whether the sensor has specified string
Mouth is connect with the numbering system, if so, the numbering system and the specified serial ports of the sensor are established a connection.
Optionally, in the numbering system of the universal sensor, the configuration module is additionally operable to pass in configuration selection
Before sensor type, scans the numbering system and connect serial ports with the sensor, judge whether the sensor has specified string
Mouthful, if nothing, the driving of the sensor is installed to the numbering system, the serial ports of the sensor is specified, it will be described
Numbering system and the specified serial ports of the sensor establish a connection.
In addition, the present invention also provides a kind of method for numbering serial of the numbering system using the universal sensor, including:
Step 1:Select the type of the sensor;
Step 2:According to the type of the sensor, corresponding communication protocol is selected;
Step 3:The output data of the sensor is read, and converts the output data according to the communication protocol
For the detected value of the correspondence sensor;And
Step 4:According to the detected value, the sensor is numbered, and according to the communication protocol by the volume
The corresponding sensor is written in number corresponding number data.
Optionally, in the method for numbering serial of the numbering system using the universal sensor, in the step 1
Before further include:
It scans the numbering system and connect serial ports with the sensor, judge whether the sensor has specified serial ports and institute
Numbering system connection is stated,
If so, the numbering system and the specified serial ports of the sensor are established a connection.
Optionally, in the method for numbering serial of the numbering system using the universal sensor, in the step 1
Before further include:
It scans the numbering system and connect serial ports with the sensor, judge whether the sensor has specified serial ports,
If nothing, the driving of the sensor is installed to the numbering system, the serial ports of the sensor is specified, it will
The numbering system and the specified serial ports of the sensor establish a connection.
Optionally, in the method for numbering serial of the numbering system using the universal sensor, the step three guarantees
It includes:, a pre-selection sensor is selected in multiple sensors, artificially assigns described one significant change of pre-selection sensor
Value;Then the output data of multiple sensors is read, and exports the inspection of multiple sensors according to the communication protocol
Measured value.
Optionally, in the method for numbering serial of the numbering system using the universal sensor, the step 4 packet
It includes:First, the pre-selection sensor for artificially being assigned changing value is selected in the detected value of multiple sensors;Then right
The pre-selection sensor is numbered, and the pre-selection is written in the corresponding number data of the number according to the communication protocol
Sensor.
Optionally, in the method for numbering serial of the numbering system using the universal sensor, repeating said steps
Three and step 4, multiple sensors are completed to number one by one.
Optionally, in the method for numbering serial of the numbering system using the universal sensor, repetition is read multiple
The number data are converted to corresponding number according to the communication protocol, confirmed each by the number data of the sensor
Whether the number of the sensor is correct.
Using a kind of numbering system and method for universal sensor provided by the present invention, by be arranged configuration module and
Protocol selection module, the communication protocol that can will belong to the different types of sensor of different vendor is integrated in systems, leads to
The type for crossing selection sensor, can automatically select out corresponding communication protocol, then according to communication protocol by sensor signal
It is automatically translated into the detection data that common operating personnel can be understood, greatly reduces the ditch of civil engineer and hardware developers
Lead to the time and exchange cost, and is easy to operate, it is easy to control.Operating personnel are read by selecting respective sensor manufacturer and type
Evidence of fetching and write-in number data, you can sensor is numbered, eliminates and carries out ditch with different vendor different technologies personnel
Logical cost, improves efficiency, ensures that detection work can be timely completed.
Description of the drawings
Fig. 1 is the schematic diagram of method for numbering serial in the prior art of the invention;
Fig. 2 is the schematic diagram of the method for numbering serial of the numbering system using universal sensor in one embodiment of the invention.
Specific implementation mode
The numbering system to a kind of universal sensor proposed by the present invention and side below in conjunction with the drawings and specific embodiments
Method is described in further detail.According to following explanation and claims, advantages and features of the invention will become apparent from.It needs to illustrate
, attached drawing is all made of very simplified form and uses non-accurate ratio, only to it is convenient, lucidly aid in illustrating this
The purpose of inventive embodiments.
The numbering system of the universal sensor of one embodiment of the invention includes:Configuration module, for configuring selection sensing
Device type;Protocol selection module, for selecting the communication protocol corresponding to sensor type;Data read module, for reading
The data of sensor, and according to the detected value of communication protocol output transducer;Writing module is instructed, according to detected value, to sensing
Device is numbered, and corresponding sensor is written in the number data of number according to communication protocol.
Specific practice is as follows:Summarize common sensor type and common manufacturer in construction monitoring, in configuration module
In, the type for the sensor for possessing different communication protocol is included in configuration module, the constraint term as sensor type;Then
Communication protocol corresponding to each sensor is included in protocol selection module, the constraint term as communication protocol;Digital independent mould
The output signal of sensor can be transformed into the detected value of sensor by block according to communication protocol;Instruct writing module can be with
According to communication protocol, number is converted to corresponding number data.
By the way that configuration module and protocol selection module is arranged, the different types of sensor of different vendor can will be belonged to
Communication protocol it is integrated in systems, by selecting the type of sensor, corresponding communication protocol can be automatically selected out, then
The signal of sensor is automatically translated into the detection data that common operating personnel can be understood according to communication protocol, eliminate with not
Communication cost is carried out with manufacturer different technologies personnel, improves efficiency, ensures that detection work can be timely completed.
In order to establish the connection relation of numbering system and sensor, configuration module is additionally operable to select sensor class in configuration
Before type, scanning numbering system connect serial ports with sensor, judges whether sensor has specified serial ports to be connect with numbering system, if
Have, the specified serial ports of numbering system and sensor is established a connection;If nothing, the driving of sensor is installed to numbering system,
The serial ports of sensor is specified, the specified serial ports of numbering system and sensor is established a connection.
In addition, the present invention also provides a kind of method for numbering serial of the numbering system using universal sensor, including
Step 1:Select the type of sensor;
According to the actual demand of construction monitoring, in construction work, it will usually configure different types of sensor, such as
Substantially in series concrete Construction control, multiple temperature and strain gauge may be configured simultaneously, this writing sensor is connected in series with,
It is arranged in different positions, the temperature and stress variation situation of the concrete for monitoring different location.In some large-engineerings,
The temperature sensor of different vendor and the strain gauge of different vendor are there is also, it is logical corresponding to different types of sensor
Believe that agreement may be different.The type for the sensor numbered according to actual needs selects corresponding sensor class in configuration module
Type.
Step 2:According to the type of sensor, corresponding communication protocol is selected;
It is included in the communication protocol that protocol selection module is provided with corresponding to each sensor, selected in step 2
Sensor type finds corresponding communication protocol.
Step 3:The output data of sensor is read, and output data is converted into corresponding biography according to the communication protocol
The detected value of sensor;
As previously mentioned, practice of construction monitoring in, generally include a plurality of types of sensors, for each type there is also
Large number of sensor, this is also the reason of sensor will be numbered.
First, a pre-selection sensor, the artificial pre-selection sensor one that assigns is selected significantly to become in multiple sensors
Change value, such as heated for the temperature sensor of some pre-selection, at this moment preselected temperature sensor is than remaining temperature sensing
The measured temperature of device is obviously higher;Then the output data of multiple sensors is read, and number will be exported according to communication protocol
According to the detected value for being converted to multiple sensors respectively.
Step 4:According to detected value, sensor is numbered, and corresponding number is numbered by described according to communication protocol
Corresponding sensor is written in data.
Due to artificially imparting pre-selection one significant change value of sensor, the multiple biographies at this moment exported according to communication protocol
In the detected value of sensor, the detected value for preselecting sensor is also the most significant, for example, in the examples described above, artificially being heated
Preselected temperature sensor detected value, be significantly higher than other temperature sensors artificially not heated certainly.
First, the pre-selection sensor for artificially being assigned changing value is selected in the detected value of multiple sensors;Then to pre-
It selects sensor to be numbered, and corresponding number data write-in pre-selection sensor will be numbered according to communication protocol.
Repeat the above steps three and step 4, and number action is completed one by one to multiple sensors.
After the number for completing all the sensors, the output order for reading all the sensors is repeated, each sensor is verified
Whether number is correct.
In order to establish the connection relation of computer and sensor, further include before step 1:Scan numbering system and sensing
Device connects serial ports, judges whether sensor has specified serial ports to be connect with numbering system, if so, by numbering system and the sensor
Specified serial ports establish a connection;If nothing, the driving of sensor is installed to numbering system, the serial ports of sensor is referred to
It is fixed, the specified serial ports of numbering system and sensor is established a connection.
In conclusion as shown in Fig. 2, by the way that configuration module and protocol selection module is arranged, different factories can will be belonged to
The communication protocol of the different types of sensor of quotient is integrated in systems, by selecting the type of sensor, can automatically select
Go out corresponding communication protocol, sensor signal is then automatically translated into what common operating personnel can be understood according to communication protocol
Detection data, operating personnel read data and write-in number data, you can to passing by selecting respective sensor manufacturer and type
Sensor is numbered, and eliminates and carries out communication cost with different vendor different technologies personnel, improves efficiency, ensures detection work
It can be timely completed.
Foregoing description is only the description to present pre-ferred embodiments, not to any restriction of the scope of the invention, this hair
Any change, the modification that the those of ordinary skill in bright field does according to the disclosure above content, belong to the protection of claims
Range.
Claims (10)
1. a kind of numbering system of universal sensor, which is characterized in that including:
Configuration module, for configuring selection sensor type;
Protocol selection module, for selecting the communication protocol corresponding to the sensor type;
Data read module, the data for reading the sensor, and export the sensor according to the communication protocol
Detected value;And
Instruction writing module is numbered the sensor according to the detected value, and will be described according to the communication protocol
The corresponding sensor is written in the number data of number.
2. the numbering system of universal sensor as described in claim 1, which is characterized in that the configuration module is additionally operable to
Before configuration selects sensor type, scans the numbering system and connect serial ports with the sensor, judge the sensor
Whether there is specified serial ports to be connect with the numbering system, if so, the numbering system and the specified serial ports of the sensor are built
Vertical connection relation.
3. the numbering system of universal sensor as described in claim 1, which is characterized in that the configuration module is additionally operable to
Before configuration selects sensor type, scans the numbering system and connect serial ports with the sensor, judge the sensor
Whether there is specified serial ports, if nothing, the driving of the sensor is installed to the numbering system, the serial ports of the sensor is carried out
It is specified, the numbering system and the specified serial ports of the sensor are established a connection.
4. a kind of method for numbering serial of numbering system using universal sensor as claimed any one in claims 1 to 3,
It is characterized in that, including:
Step 1:Select the type of the sensor;
Step 2:According to the type of the sensor, corresponding communication protocol is selected;
Step 3:It reads the output data of the sensor, and is converted to the output data pair according to the communication protocol
Answer the detected value of the sensor;And
Step 4:According to the detected value, the sensor is numbered, and according to the communication protocol by it is described number pair
The corresponding sensor is written in the number data answered.
5. utilizing the method for numbering serial of the numbering system of the universal sensor as claimed in claim 4, which is characterized in that
Further include before the step 1:
It scans the numbering system and connect serial ports with the sensor, judge whether the sensor has specified serial ports and the volume
The connection of number system,
If so, the numbering system and the specified serial ports of the sensor are established a connection.
6. utilizing the method for numbering serial of the numbering system of the universal sensor as claimed in claim 5, which is characterized in that
Further include before the step 1:
It scans the numbering system and connect serial ports with the sensor, judge whether the sensor has specified serial ports,
If nothing, the driving of the sensor is installed to the numbering system, the serial ports of the sensor is specified, it will be described
Numbering system and the specified serial ports of the sensor establish a connection.
7. the method for numbering serial of the numbering system of the utilization universal sensor as described in any one of claim 4 to 6,
It is characterized in that, the step 3 includes:A pre-selection sensor is selected in multiple sensors, artificially assigns the pre-selection
One significant change value of sensor;Then the output data of multiple sensors is read, and is turned according to communication protocol data
The detected value for changing multiple sensors into is parsed.
8. utilizing the method for numbering serial of the numbering system of the universal sensor as claimed in claim 7, which is characterized in that institute
Stating step 4 includes:First, the pre-selection biography for artificially being assigned changing value is selected in the detected value of multiple sensors
Sensor;Then the pre-selection sensor is numbered, and corresponding number data is numbered by described according to the communication protocol
The pre-selection sensor is written.
9. utilizing the method for numbering serial of the numbering system of the universal sensor as claimed in claim 8, which is characterized in that weight
Multiple sensors are completed to number one by one by the multiple step 3 and step 4.
10. utilizing the method for numbering serial of the numbering system of the universal sensor as claimed in claim 9, which is characterized in that
The number data of multiple sensors are read in repetition, and the number data are converted to corresponding volume according to the communication protocol
Number, confirm whether the number of each sensor is correct.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711477731.5A CN108398152A (en) | 2017-12-29 | 2017-12-29 | A kind of numbering system and method for universal sensor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711477731.5A CN108398152A (en) | 2017-12-29 | 2017-12-29 | A kind of numbering system and method for universal sensor |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108398152A true CN108398152A (en) | 2018-08-14 |
Family
ID=63093702
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711477731.5A Pending CN108398152A (en) | 2017-12-29 | 2017-12-29 | A kind of numbering system and method for universal sensor |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108398152A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112859654A (en) * | 2021-02-08 | 2021-05-28 | 青岛海洋科学与技术国家实验室发展中心 | Ocean buoy data acquisition controller capable of being freely configured and configuration method |
CN113660143A (en) * | 2021-08-20 | 2021-11-16 | 国网安徽省电力有限公司电力科学研究院 | Intelligent sensor protocol testing method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104010005A (en) * | 2013-02-21 | 2014-08-27 | 中兴通讯股份有限公司 | Method and system supporting access of sensors of different types |
CN104320462A (en) * | 2014-10-27 | 2015-01-28 | 华北电力大学(保定) | Configurable information acquisition method for smart power network and electrical network information acquisition terminal |
CN105675168A (en) * | 2016-01-05 | 2016-06-15 | 上海建工集团股份有限公司 | Automatic numbering device and method for temperature sensors |
CN107225918A (en) * | 2016-03-24 | 2017-10-03 | 苏州驶安特汽车电子有限公司 | A kind of tyre pressure sensor system and communication protocol concocting method |
-
2017
- 2017-12-29 CN CN201711477731.5A patent/CN108398152A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104010005A (en) * | 2013-02-21 | 2014-08-27 | 中兴通讯股份有限公司 | Method and system supporting access of sensors of different types |
CN104320462A (en) * | 2014-10-27 | 2015-01-28 | 华北电力大学(保定) | Configurable information acquisition method for smart power network and electrical network information acquisition terminal |
CN105675168A (en) * | 2016-01-05 | 2016-06-15 | 上海建工集团股份有限公司 | Automatic numbering device and method for temperature sensors |
CN107225918A (en) * | 2016-03-24 | 2017-10-03 | 苏州驶安特汽车电子有限公司 | A kind of tyre pressure sensor system and communication protocol concocting method |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112859654A (en) * | 2021-02-08 | 2021-05-28 | 青岛海洋科学与技术国家实验室发展中心 | Ocean buoy data acquisition controller capable of being freely configured and configuration method |
CN113660143A (en) * | 2021-08-20 | 2021-11-16 | 国网安徽省电力有限公司电力科学研究院 | Intelligent sensor protocol testing method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106059582B (en) | A kind of Testing of mixed signal chipset system and method | |
CN202770933U (en) | High-precision multichannel analog quantity automatic test system | |
CN100511171C (en) | Test approach for debugging serial port function with single board and system thereof | |
CN106094804A (en) | A kind of cross-platform PLC plate level frock based on QT test system and method for testing thereof | |
CN106248044B (en) | A kind of bridge full-bridge Multi-point deflection real-time acquisition and display system | |
CN101625387A (en) | Fast scanning detecting device of two-wire system industrial instrument and detecting method | |
CN106788920B (en) | A kind of baud rate deviation detecting method, device and air conditioner indoor unit | |
CN101841449B (en) | Method and device for realizing position-binding of CAN bus sensors | |
CN108398152A (en) | A kind of numbering system and method for universal sensor | |
CN101957428A (en) | Automatic test method and tool of monitoring circuit board | |
CN102183737A (en) | Multi-channel and multi-parameter automatic verification system and automatic verification method | |
CN107025203A (en) | First board, the second board and a kind of equipment | |
CN205881158U (en) | Terminal test equipment of power consumption field usage | |
CN206369789U (en) | A kind of multifunctional digital wafer prober | |
CN205983198U (en) | Cross -platform PLC board level frock test system based on QT | |
CN201497780U (en) | Rapid cyclic-detection device for two-wire industrial instruments | |
CN110109043A (en) | Electric energy meter detection method, detection terminal and computer readable storage medium | |
CN103941710A (en) | Digital grouting recorder | |
CN107632910A (en) | A kind of method of testing and device | |
CN209102264U (en) | Engineering machinery assemble production line pressure test device | |
CN105867968A (en) | Loading device and program loading method | |
CN116257037A (en) | Method, system, electronic device and storage medium for generating controller test program | |
CN103165405A (en) | Mutli-dimensional variable code real-time generation method through general purpose interface bus (GPIB) interface | |
CN102058430B (en) | Automatic test equipment (ATE) of multi-parameter monitor and test method thereof | |
CN101290710A (en) | User programmable universal question-answer type communication interface method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180814 |
|
RJ01 | Rejection of invention patent application after publication |