CN109857018A - A kind of digital sensor soft model system - Google Patents
A kind of digital sensor soft model system Download PDFInfo
- Publication number
- CN109857018A CN109857018A CN201910080105.5A CN201910080105A CN109857018A CN 109857018 A CN109857018 A CN 109857018A CN 201910080105 A CN201910080105 A CN 201910080105A CN 109857018 A CN109857018 A CN 109857018A
- Authority
- CN
- China
- Prior art keywords
- sensor
- subsystem
- module
- data
- order
- 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.)
- Granted
Links
Abstract
The invention discloses a kind of digital sensor soft model system, the system is broadly divided into 3 newly-built sensor subsystem, sensor management subsystem and command response subsystems;For these three subsystems, the built-in function comprising modules further constructed, realize newly-built sensor, load sensor, response command, the system functions such as closure sensor wherein include 11 orders such as reading ROM, matching ROM, skip ROM, Search ROM, alarm search, numerical value conversion, read RAM, write RAM, duplication RAM, reset EEPROM, read power supply mode in response command function.
Description
Technical field
The present invention relates to internet of things sensors technical fields, more specifically to a kind of digital sensor soft model system
System.
Background technique
With the development of technology of Internet of things, an important component of the digital intelligent sensor as Internet of Things,
Research and development becomes especially urgent.Science and technology is more flourishing, and the degree of automation is higher, also gets over to the dependence of sensor
Greatly, the production technology link of digital sensor is relatively more, and technics comparing is complicated, although putting into a large amount of human and material resources and energy, into
The performance compensations such as trip temperature, zero point, non-linear, lag, creep and position error adjustment, used compensation technique are difficult to reach high
Quality requirement, the serious problems under have always been high not in the prevalence of production cost and quality cost.The leap of electronic technology into
Step, the promotion and popularization of single-chip microcontroller, digital sensor will constantly change, using the automatic compensation of digitlization in soft and hardware technology
With error correcting technology, high accuracy, high-precision, high stability are that traditional strain-type digital sensor cannot compare.
The certain applications of digital sensor soft model: (1) the prototype hardware design and debugging of digital sensor are served;
(2) a part as intelligent digital sensor;(3) networking of analog digital sensor network;(4) it can set up based on number
The monitoring net of sensor, test data transmission path algorithm;(5) various parameters can be tested before actually laying monitoring net;In a word
In production, research and engineering, digital sensor soft model will all be widely used.
With the development of technology of Internet of things and the development of digital sensor, all trades and professions will generate digital sensor
Huge demand.But due to the influence of the factors such as detection environment, Detection Techniques, production technology, production cost, hardware sensing
The application of device will be subject to certain restrictions, software form of the digital sensor soft model as sensor, due to not by detection ring
Border, the limitation of production technology is low in cost, the advantages such as higher reliability is provided during data processing, it will very
The work that hardware digital sensor is replaced in more situations plays increasingly in research relevant to digital sensor and application
Important role.
Summary of the invention
The technical problem to be solved in the present invention is that for the prior art due to detection environment, Detection Techniques, production work
The influence of the factors such as skill, production cost, the defect that hardware digital sensor is subject to certain restrictions in practical applications, provides
A kind of digital sensor soft model system, the digital sensor soft model system include sequentially connected newly-built sensor subsystem
System, sensor management subsystem, single-chip microcontroller subsystem and command response subsystem;Wherein:
The newly-built sensor subsystem, for creating several sensors;Wherein, for each sensor, by user
Its corresponding sensor parameters is inputted, the creation of sensor is further completed;The newly-built sensor subsystem includes that data turn
Change the mold block and new files module;The sensor parameters that the data conversion module is used to input user carry out data format and turn
It changes, and the data after conversion is further transferred to new files module;The new files module is used for according to reception data
The data of conversion module transmission, create corresponding sensor file;
The sensor management subsystem, for managing and loading several newly-built sensors to digital sensor soft mode
In type system;The sensor management subsystem includes load sensor module, initializing sensor module and closure sensor
Module;The load sensor module, for reading the sensor parameters stored in each sensor file, by the data of reading
After carrying out data processing, it is loaded into the sensor parameters list in memory;The initializing sensor, for sensing
Device is initialized;The closure sensor module specifically joins sensor for closing the sensor being loaded into system
Data in ordered series of numbers table are formatted;
For each sensor for the system that is loaded into, the single-chip microcontroller subsystem is for reading, storing and transmitting sensing
The data of device transmission;
The command response subsystem for receiving the operational order of user's input, and the operational order received is led to
It crosses single-chip microcontroller subsystem and is transferred to each sensor, sensor is further judged and responded to receiving operational order.
Further, in the newly-built sensor subsystem, the sensor parameters of user's input include decimal integer, needle
Data Format Transform is carried out to the sensor parameters of user's input, the decimal integer read, which is specifically converted into 8, symbol
Number binary data, wherein highest order be sign bit, 0 indicate nonnegative number, 1 indicate positive number, if input parameter be negative,
By Parameter Switch at the binary data of complement form.
Further, data processing in the load sensor module, specifically in reading 8 bit binary datas,
" 1 " is used as default by low 6.
Further, in the newly-built sensor subsystem, the sensor parameters stored in sensor file include highest
Limit value, minimum limit value, configuration parameter table, warning mark and power supply mode;The highest that the load sensor module will be read
Limit value, minimum limit value, configuration parameter table are assigned to the 2nd of RAM in sensor parameters list the, 3,4 bytes respectively;By the 0th, 1,5,6,
7 bytes use as default " 1 ";The 8th byte is set as the cyclic redundancy check code of 8 bytes before RAM in RAM.
Further, the command response subsystem includes receiving command module, returning to ROM value module, return to RAM value mould
Block, eliminates processing module, numeric conversion module and numerical value comparison module at cyclic redundancy check module;Wherein:
The return ROM value module for reading 64 ROM values of sensor, and reads one every time, recycles 64 readings
It takes complete;
The return RAM value module for reading the power supply mode of user's input, and obtains the RAM value of each sensor;
The reception command module, for receiving the operational order of user's transmission, the operational order is binary data
String, and the process for sending order is exactly the process that system writes data to sensor;
The cyclic redundancy check module, for calculating the cyclic redundancy check code of specified binary data string, then
The Cyclic Redundancy Check Code carried with serial data is compared;
The cancellation processing module, for identifying the ROM value of all the sensors in current system by Elimination Algorithms;
The numeric conversion module, for a decimal system real number to be converted into binary data;
Numerical value comparison module stores in the 0th byte of RAM and the 1st byte in sensor parameters list for reading
Data, and the data read are compared with highest limit value in parameter list and minimum limit value respectively;If sensor RAM
The data that the data of 0 byte storage are greater than the storage of the 1st byte of highest limit value or sensor RAM are greater than minimum limit value, then will
Warning mark is set to 1, and warning mark is set to 0 in the case of other;Wherein when warning mark is set to 1, current sensor is to report
Alert sensor.
Further, the operational order of user's input includes reading ROM order, skipping ROM order, matching ROM order, search
ROM order, numerical value conversion order, reads RAM order, writes RAM order, duplication RAM order, resets EEPROM alarm search command
Order and reading power supply mode order, the command response subsystem receive the operational order of user's transmission, and pass through single-chip microcontroller and pass
It is defeated by each sensor, sensor is directed to the response that the operational order received is successively made and includes:
When command response subsystem receives reading ROM order, the ROM value of itself is sent to single-chip microcontroller subsystem by sensor
System;Cyclic redundancy check module in the further control command response subsystem of single-chip microcontroller subsystem, for the data received
Cyclic redundancy check is carried out, while the result read is fed back into user;
Command response subsystem receives when skipping ROM order, and system is done nothing;
When command response subsystem receives matching ROM order, user is sent from single-chip microcontroller subsystem to each sensor
Matched ROM value is needed, the ROM value received is compared by each sensor with the ROM value of itself, and comparison result is led to
It crosses single-chip microcontroller subsystem and feeds back to user;
When command response subsystem receives Search ROM order, all in running order sensors in current system
The ROM value of itself is provided to single-chip microcontroller subsystem, single-chip microcontroller subsystem is according to sequence received on monobus, control command response
Processing module is eliminated in subsystem, restores the ROM value of each sensor in system;Wherein, the value on monobus is each place
The result of position Xiang Yuhou is corresponded in the ROM value of the sensor of working condition;
When command response subsystem receives alarm search command, in single-chip microcontroller subsystem controls command response subsystem
Numerical value comparison module, alarm sensor is screened;The alarm sensor screened provides itself to single-chip microcontroller subsystem
ROM value, and carry out and operation identical when receiving Search ROM order;
When command response subsystem receives numerical value conversion order, the single-chip microcontroller subsystem is first in range set by user
One real number of interior random acquisition, and the numeric conversion module in control command response subsystem carries out format to the real number got
Conversion;Data after conversion are further transferred to each sensor, the number that sensor will receive by single-chip microcontroller subsystem
It is compared respectively according to the highest limit value and minimum limit value with its own;
When command response subsystem receives reading RAM order, the RAM value of itself is sent to monolithic loom by each sensor
System, the cyclic redundancy check module in the further control command response subsystem of single-chip microcontroller subsystem, to the data received
Cyclic redundancy check is carried out, while feeding back to user for result is read;
Command response subsystem receives when writing RAM order, the number in single-chip microcontroller subsystem controls command response subsystem
It is worth conversion module, the data of user setting is formatted, the data after conversion are sent to often via single-chip microcontroller subsystem
The data received are respectively written into the 2nd byte and the 3rd byte of itself RAM by a sensor, sensor;
When command response subsystem receives duplication RAM order, each sensor is by the 2nd of itself RAM the, 3 and 4 byte
Data be written in corresponding sensor file;
Command response subsystem receives when resetting EEPROM order, and each sensor is by corresponding sensor file
In the data of first three byte the 2nd of itself RAM the, 3 and 4 byte is written;
When command response subsystem receives reading power supply mode order, the power supply mode of itself is passed through list by each sensor
Piece loom system further feeds back to user.
A kind of digital sensor soft model system of the present invention is after carrying out abstract summarize to hardware digital sensor
One software systems of exploitation, the system use the software development methodology of structuring, the main number of analog hardware digital sensor
According to component and basic structure, is run according to the working sequence of hardware digital sensor, respond all lives of hardware digital sensor
It enables, completes corresponding function.
A kind of digital sensor soft model system proposed by the present invention has the structure of hardware digital sensor, implements this hair
A kind of bright digital sensor soft model system, can receive and respond hardware digital sensor can receive and respond all
Monobus order and corresponding function is completed, meet the transmission of information, handled, stored, display, record and control etc. require.
Detailed description of the invention
Present invention will be further explained below with reference to the attached drawings and examples, in attached drawing:
Fig. 1 is a kind of structure chart of digital sensor soft model system proposed by the present invention;
Fig. 2 is the surface chart that system realizes newly-built sensor module;
Fig. 3 is the surface chart that system realizes load sensor module;
Fig. 4 is the surface chart that system realizes initializing sensor system;
Fig. 5 is the surface chart that system realizes sensor command response;
Fig. 6 is the surface chart that system realizes matching ROM order;
Fig. 7 is that system realizes the surface chart for writing RAM order;
Fig. 8 is that system realizes the surface chart for executing numerical value conversion order;
Fig. 9 is the surface chart that system realizes alarm search command;
Figure 10 is that system realizes the surface chart to log off.
Specific embodiment
For a clearer understanding of the technical characteristics, objects and effects of the present invention, now control attached drawing is described in detail
A specific embodiment of the invention.
Referring to FIG. 1, it is a kind of structure chart of digital sensor soft model system proposed by the present invention, the present invention is proposed
Digital sensor soft model system 11, including sequentially connected newly-built sensor subsystem 111, sensor management subsystem
112, single-chip microcontroller subsystem 113 and command response subsystem 114;Wherein:
The newly-built sensor subsystem 111, for creating several sensors;Wherein, referring to FIG. 2, it is system
The surface chart for realizing newly-built sensor module, is directed to each sensor as we know from the figure, inputs its corresponding sensor by user
Parameter further completes the creation of sensor;Wherein, the newly-built sensor subsystem 111 includes data conversion module 1111
With new files module 1112;The sensor parameters that the data conversion module 1111 is used to input user carry out data format
Conversion, and the data after conversion are further transferred to new files module 1112;The new files module 1112 is used for root
According to the data for receiving data conversion module transmission, corresponding sensor file is created;It is preferred:
In the present embodiment, the new files module 1112 creates sensor file, the sensing of creation in DS file
Device file type is the text file of .txt, and the data to receive are as filename;
Referring to FIG. 2, user will need the sensor parameters that input to be separately input to powering mode, highest limit value, minimum
In limit value, resolution ratio R1 and resolution ratio R2 edit box;Newly-built pick up button is clicked, the creation of sensor can be completed;Wherein,
Each parameter value of input is decimal integer.
Data conversion module 1111 is directed to the sensor parameters of user's input, and the decimal integer read is converted into 8
There is the binary data of symbol in position, and wherein highest order is sign bit, and 0 indicates nonnegative number, and 1 indicates positive number, if the parameter of input is
Negative, then by Parameter Switch at the binary data of complement form;
The sensor management subsystem 112, for managing and loading several newly-built sensors to digital sensor
In soft model system;The sensor management subsystem 112 includes load sensor module 1121, initializing sensor module
1122 and closure sensor module 1123;Wherein:
The load sensor module 1121, for reading and handling the sensor stored in each sensor file ginseng
Number, and data are loaded into the sensor parameters list in memory by treated;Data processing operation therein is specific
It is that will read in 8 bit binary datas, low 6 use as default " 1 ";Wherein, the load sensor module 1121 will
Highest limit value, minimum limit value, the configuration parameter table read is assigned to the 2nd of RAM in sensor parameters list the, 3,4 bytes respectively;
0th, 1,5,6,7 bytes are used as default into " 1 ";The 8th byte is set as the cyclic redundancy check of 8 bytes before RAM in RAM
Code.
Referring to FIG. 3, it realizes the surface chart of load sensor module for system;By creating sensor subsystem
After 111 complete the creation of sensor, the load sensor button on interface is clicked, the sensor of creation can be loaded in system
In, the load work of 3 sensors is completed in present example;
The initializing sensor 1122, initializes for the sensor to the system that is loaded into;Referring to FIG. 4, its
The surface chart of initializing sensor system is realized for system;Click the initialization button on interface, all sensings in completion system
The initial work of device, and system has the information alert of " initializing successfully ".
Referring to FIG. 10, it realizes the surface chart to log off for system;The closure sensor module 1123, for closing
The sensor in the system of being loaded into is closed, specifically the data in sensor parameters list are formatted;It clicks on interface
Exiting for sensor can be completed in closure sensor button, and system has the information alert of " successfully logging off ".
For each sensor for the system that is loaded into, the single-chip microcontroller subsystem 113 is for reading, storing and transmitting biography
The data of sensor transmission;
The command response subsystem 114, for receiving the operational order of user's input, and the operational order that will be received
Be transferred to each sensor by single-chip microcontroller subsystem 113, sensor to receive operational order carry out further judgement and
Response.Wherein, the command response subsystem 114 includes receiving command module 1141, returning to ROM value module 1142, return to RAM
Value module 1143, cyclic redundancy check module 1144, cancellation processing module 1145, numeric conversion module 1146 and numerical value compare mould
Block 1147;In the middle:
The reception command module 1141, for receiving the operational order of user's transmission, the operational order is binary system
Serial data, and the process for sending order is exactly the process that system writes data to sensor;
The return ROM value module 1142 for reading 64 ROM values of sensor, and reads one, circulation 64 every time
Secondary reading finishes;
The return RAM value module 1143 for reading the power supply mode of user's input, and obtains each sensor
RAM value;
The cyclic redundancy check module 1144, for calculating the cyclic redundancy check code of specified binary data string,
Then the Cyclic Redundancy Check Code carried with serial data is compared;
The cancellation processing module 1145, for identifying the ROM of all the sensors in current system by Elimination Algorithms
Value;
The numeric conversion module 1146, for a decimal system real number to be converted into binary data;
Numerical value comparison module 1147 is deposited in the 0th byte of RAM and the 1st byte for reading in sensor parameters list
The data of storage, and the data read are compared with the highest limit value of sensor in parameter list and minimum limit value respectively;
If the data that the data of the 0th byte of sensor RAM storage are greater than the storage of the 1st byte of highest limit value or sensor RAM are greater than
Minimum limit value, then be set to 1 for warning mark, and warning mark is set to 0 in the case of other;Wherein when warning mark is set to 1, currently
Sensor is alarm sensor.
Referring to FIG. 5, its for system realize sensor command response surface chart, from figure in order combobox as it can be seen that
The operational order of user's input includes reading ROM order, skipping ROM order, matching ROM order, Search ROM order, alarm search
Order, numerical value conversion order read RAM order, write RAM order, duplication RAM order, reset EEPROM order and read power supply mode
Order;The command response subsystem 114 receives the operational order of user's transmission, and is transferred to by single-chip microcontroller subsystem 113
Each sensor, sensor are directed to the response that the operational order received is successively made and include:
When command response subsystem 114 receives reading ROM order, the ROM value of itself is sent to monolithic loom by sensor
System 113;Cyclic redundancy check module 1144 in the further control command response subsystem 114 of single-chip microcontroller subsystem 113, needle
Cyclic redundancy check is carried out to the data received, while the result read is fed back into user;
Command response subsystem 114 receives when skipping ROM order, and system is done nothing;
Referring to FIG. 6, it realizes the surface chart of matching ROM order for system;Wherein, command response subsystem 114 receives
To when matching ROM order, user is sent to each sensor from single-chip microcontroller subsystem 113 and needs matched ROM value, each sensing
The ROM value received is compared by device with the ROM value of itself, and comparison result is fed back to by single-chip microcontroller subsystem 113
User;As can be seen from Fig. 6, it before executing ROM matching order, needs first to input in ROM compiling after matching frame and wants matched ROM
Value;
When command response subsystem 114 receives Search ROM order, all in running order sensings in current system
Device provides the ROM value of itself to single-chip microcontroller subsystem 113, and single-chip microcontroller subsystem 113 is according to sequence received on monobus, control
Processing module 1145 is eliminated in command response subsystem 114, restores the ROM value of each sensor in system;Wherein, monobus
On value be that the ROM value of each in running order sensor corresponds to the result of position Xiang Yuhou;
Referring to FIG. 9, it realizes the surface chart of alarm search command for system;Wherein, command response subsystem 114 receives
When to alarm search command, single-chip microcontroller subsystem 113, will by the numerical value comparison module 1147 in command response subsystem 114
Alarm sensor screens;The alarm sensor screened provides itself ROM value to single-chip microcontroller subsystem 113, and into
Row and operation identical when receiving Search ROM order;As can be seen from Fig. 8, it after system completes alarm search, has corresponding
The information alert of " alarm search is completed ", and the ROM value of the qualified sensor searched will be shown to search
To sensor sequence list box in;
Referring to FIG. 8, it realizes the surface chart for executing numerical value conversion order for system;Wherein, command response subsystem 114
When receiving numerical value conversion order, the single-chip microcontroller subsystem 113 first obtains a real number at random in range set by user,
And the real number got is formatted by command response subsystem 114 numeric conversion module 1146;After conversion
Data each sensor is further transferred to by single-chip microcontroller subsystem 113, sensor by the data received and its from
The highest limit value and minimum limit value of body are compared respectively;As can be seen from Fig. 8, it when executing numerical value conversion order, needs first surveying
Input measurement range in range limit and measurement range lower limit edit box is measured to examine in surveyed numerical value edit box when order executes
Survey element testing to value will show.
Referring to FIG. 7, it realizes the surface chart for writing RAM order for system;Wherein, command response subsystem 114 receives
When reading RAM order, the RAM value of itself is sent to single-chip microcontroller subsystem 113, single-chip microcontroller subsystem 113 into one by each sensor
Step carries out cyclic redundancy school to the data received by command response subsystem 114 cyclic redundancy check module 1144
It tests, while feeding back to user for result is read;From figure 7, it is seen that needing first to write in RAM highest limit value before RAM order is write in execution
Enter in edit box and the minimum limit value write-in edit box of RAM and inputs corresponding value (being both integer).
Command response subsystem 114 receives when writing RAM order, and single-chip microcontroller subsystem 113 passes through command response subsystem
Numeric conversion module 1146 in 114, formats the data of user setting, and the data after conversion are via monolithic loom
System 113 is sent to each sensor, and the data received are respectively written into the 2nd byte and the 3rd of itself RAM value by sensor
A byte;
When command response subsystem 114 receives duplication RAM order, each sensor is by the 2nd, 3 and 4 of itself RAM value
The data of a byte are written in corresponding sensor file;
Command response subsystem 114 receives when resetting EEPROM order, and each sensor is by corresponding sensor
The the 2nd, 3 and 4 byte of itself RAM value is written in the data of first three in file byte;
When command response subsystem 114 receives reading power supply mode order, each sensor leads to the power supply mode of itself
It crosses single-chip microcontroller subsystem 113 and further feeds back to user.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form, all of these belong to the protection of the present invention.
Claims (6)
1. a kind of digital sensor soft model system, which is characterized in that the digital sensor soft model system includes successively connecting
Newly-built sensor subsystem, sensor management subsystem, single-chip microcontroller subsystem and the command response subsystem connect;Wherein:
The newly-built sensor subsystem, for creating several sensors;Wherein, it for each sensor, is inputted by user
Its corresponding sensor parameters further completes the creation of sensor;The newly-built sensor subsystem includes data conversion mould
Block and new files module;The sensor parameters that the data conversion module is used to input user carry out Data Format Transform,
And the data after conversion are further transferred to new files module;The new files module is used for according to reception data conversion
The data of module transfer create corresponding sensor file;
The sensor management subsystem, for managing and loading several newly-built sensors to digital sensor soft model system
In system;The sensor management subsystem includes load sensor module, initializing sensor module and closure sensor module;
The load sensor module carries out the data of reading for reading the sensor parameters stored in each sensor file
After data processing, it is loaded into the sensor parameters list in memory;The initializing sensor module, for sensing
Device is initialized;The closure sensor module specifically joins sensor for closing the sensor being loaded into system
Data in ordered series of numbers table are formatted;
For each sensor for the system that is loaded into, the single-chip microcontroller subsystem is for reading, storing and transmitting sensor biography
Defeated data;
The operational order received for receiving the operational order of user's input, and is passed through list by the command response subsystem
Piece loom system is transferred to each sensor, and sensor is further judged and responded to receiving operational order.
2. digital sensor soft model system according to claim 1, which is characterized in that the newly-built sensor subsystem
In, the sensor parameters of user's input include decimal integer, carry out data format turn for the sensor parameters of user's input
It changes, the decimal integer read specifically is converted into 8 binary data for having symbol, wherein highest order is sign bit, 0 table
Show nonnegative number, 1 indicates positive number, if the parameter of input is negative, by Parameter Switch at the binary data of complement form.
3. digital sensor soft model system according to claim 1, which is characterized in that in the load sensor module
Data processing uses as default " 1 " for low 6 specifically in reading 8 bit binary datas.
4. digital sensor soft model system according to claim 1, which is characterized in that the newly-built sensor subsystem
In, the sensor parameters stored in sensor file include highest limit value, minimum limit value, configuration parameter table, warning mark and confession
Electric mode;The highest limit value read, minimum limit value, configuration parameter table are assigned to sensor by the load sensor module respectively
In parameter list RAM the 2nd, 3,4 bytes;0th, 1,5,6,7 bytes are used as default into " 1 ";The 8th byte is arranged in RAM
For the cyclic redundancy check code of 8 bytes before RAM.
5. digital sensor soft model system according to claim 1, which is characterized in that the command response subsystem packet
It includes and receives command module, return to ROM value module, return to RAM value module, cyclic redundancy check module, eliminate processing module, numerical value
Conversion module and numerical value comparison module;Wherein:
The return ROM value module for reading 64 ROM values of sensor, and reads one every time, recycles 64 times and read
Finish;
The return RAM value module for reading the power supply mode of user's input, and obtains the RAM value of each sensor;
The reception command module, for receiving the operational order of user's transmission, the operational order is binary data string, and
Sending the process ordered is exactly the process that system writes data to sensor;
The cyclic redundancy check module, for calculating the cyclic redundancy check code of specified binary data string, then with number
It is compared according to the included Cyclic Redundancy Check Code of string;
The cancellation processing module, for identifying the ROM value of all the sensors in current system by Elimination Algorithms;
The numeric conversion module, for a decimal system real number to be converted into binary data;
Numerical value comparison module, for reading the data stored in the 0th byte of RAM and the 1st byte in sensor parameters list,
And the data read are compared with highest limit value in parameter list and minimum limit value respectively;If the 0th word of sensor RAM
The data that the data of section storage are greater than the storage of the 1st byte of highest limit value or sensor RAM are greater than minimum limit value, then will alarm
Mark is set to 1, and warning mark is set to 0 in the case of other;Wherein when warning mark is set to 1, current sensor is to alarm to pass
Sensor.
6. digital sensor soft model system according to claim 1, which is characterized in that the operational order packet of user's input
It includes and reads ROM order, skip ROM order, matching ROM order, Search ROM order, alarm search command, numerical value conversion order, read
RAM order writes RAM order, duplication RAM order, resets EEPROM order and read power supply mode order, the command response subsystem
System receives the operational order of user's transmission, and is transferred to each sensor by single-chip microcontroller, and sensor is directed to the operation received
The response successively made is ordered to include:
When command response subsystem receives reading ROM order, the ROM value of itself is sent to single-chip microcontroller subsystem by sensor;It is single
Cyclic redundancy check module in the further control command response subsystem of piece loom system, is followed for the data received
Ring redundancy check, while the result read is fed back into user;
Command response subsystem receives when skipping ROM order, does nothing;
When command response subsystem receives matching ROM order, user is sent to each sensor from single-chip microcontroller subsystem and is needed
Matched ROM value, the ROM value received is compared by each sensor with the ROM value of itself, and comparison result is passed through list
Piece loom system feedback is to user;
When command response subsystem receives Search ROM order, all in running order sensors are to list in current system
Piece loom system provides the ROM value of itself, and single-chip microcontroller subsystem responds subsystem according to sequence received on monobus, control command
Processing module is eliminated in system, restores the ROM value of each sensor in system;Wherein, the value on monobus is each in work
The ROM value for making the sensor of state corresponds to the result of position Xiang Yuhou;
Numerical value when command response subsystem receives alarm search command, in single-chip microcontroller subsystem controls command response subsystem
Comparison module screens alarm sensor;The alarm sensor screened provides the ROM of itself to single-chip microcontroller subsystem
Value, and carry out and operation identical when receiving Search ROM order;
When command response subsystem receives numerical value conversion order, the single-chip microcontroller subsystem first in range set by user with
Machine obtains a real number, and the numeric conversion module in control command response subsystem carries out format to the real number got and turns
It changes;Data after conversion are further transferred to each sensor, the data that sensor will receive by single-chip microcontroller subsystem
It is compared respectively with the highest limit value of its own and minimum limit value;
When command response subsystem receives reading RAM order, the RAM value of itself is sent to single-chip microcontroller subsystem by each sensor
System, the cyclic redundancy check module in the further control command response subsystem of single-chip microcontroller subsystem, to the data received into
Row cyclic redundancy check, while user is fed back to by result is read;
Command response subsystem receives when writing RAM order, and the numerical value in single-chip microcontroller subsystem controls command response subsystem turns
Block is changed the mold, the data of user setting are formatted, the data after conversion are sent to each biography via single-chip microcontroller subsystem
The data received are respectively written into the 2nd byte and the 3rd byte of itself RAM by sensor, sensor;
When command response subsystem receives duplication RAM order, each sensor is by the number of the 2nd of itself RAM the, 3 and 4 byte
According in the corresponding sensor file of write-in;
Command response subsystem receives when resetting EEPROM order, and each sensor will be before in corresponding sensor file
The the 2nd of itself RAM the, 3 and 4 byte is written in the data of three bytes;
When command response subsystem receives reading power supply mode order, the power supply mode of itself is passed through single-chip microcontroller by each sensor
Subsystem further feeds back to user.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910080105.5A CN109857018B (en) | 2019-01-28 | 2019-01-28 | Digital sensor soft model system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910080105.5A CN109857018B (en) | 2019-01-28 | 2019-01-28 | Digital sensor soft model system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109857018A true CN109857018A (en) | 2019-06-07 |
CN109857018B CN109857018B (en) | 2020-09-25 |
Family
ID=66896411
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910080105.5A Active CN109857018B (en) | 2019-01-28 | 2019-01-28 | Digital sensor soft model system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109857018B (en) |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001067125A (en) * | 1999-08-27 | 2001-03-16 | Fujitsu Ltd | Method and device for constructing real world information database and method for learning autonomous mobile traveling body |
CN1666203A (en) * | 2002-07-03 | 2005-09-07 | 东京电子株式会社 | Method and apparatus for automatic sensor installation |
KR100681393B1 (en) * | 2006-03-31 | 2007-02-28 | 재단법인서울대학교산학협력재단 | Multipath estimation using channel parameters matrix extension with virtual sensors |
CN101689287A (en) * | 2007-06-28 | 2010-03-31 | 微软公司 | Learning and reasoning about the context-sensitive reliability of sensors |
US20100162224A1 (en) * | 2008-12-18 | 2010-06-24 | Electronics And Telecommunications Research Institute | Node update system using virtual partition technique and control method thereof |
CN102571315A (en) * | 2010-12-27 | 2012-07-11 | 微软公司 | Synchronizing sensor data across devices |
CN102893589A (en) * | 2010-05-13 | 2013-01-23 | 诺基亚公司 | Method and apparatus for providing context sensing and fusion |
CN103517114A (en) * | 2012-12-06 | 2014-01-15 | Tcl集团股份有限公司 | Sensor data interaction method and system |
CN103559725A (en) * | 2013-08-09 | 2014-02-05 | 中国地质大学(武汉) | Wireless sensor node optimization selection method orientated at visual tracking |
JP2014045242A (en) * | 2012-08-24 | 2014-03-13 | Oki Electric Ind Co Ltd | Virtual sensor creating device, virtual sensor creating method and program |
CN103957198A (en) * | 2014-04-15 | 2014-07-30 | 深圳市玖坤信息技术有限公司 | Sensor data receiving and converting method and system |
CN107077114A (en) * | 2014-10-30 | 2017-08-18 | 西门子公司 | Soft sensor is used in programmable logic controller (PLC) |
CN107734634A (en) * | 2016-08-12 | 2018-02-23 | 北京小米移动软件有限公司 | Sensor register method, apparatus and system |
CN108734938A (en) * | 2018-05-24 | 2018-11-02 | 文丹 | A kind of healthy data acquisition system based on wireless-transmission network |
-
2019
- 2019-01-28 CN CN201910080105.5A patent/CN109857018B/en active Active
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001067125A (en) * | 1999-08-27 | 2001-03-16 | Fujitsu Ltd | Method and device for constructing real world information database and method for learning autonomous mobile traveling body |
CN1666203A (en) * | 2002-07-03 | 2005-09-07 | 东京电子株式会社 | Method and apparatus for automatic sensor installation |
KR100681393B1 (en) * | 2006-03-31 | 2007-02-28 | 재단법인서울대학교산학협력재단 | Multipath estimation using channel parameters matrix extension with virtual sensors |
CN101689287A (en) * | 2007-06-28 | 2010-03-31 | 微软公司 | Learning and reasoning about the context-sensitive reliability of sensors |
US20100162224A1 (en) * | 2008-12-18 | 2010-06-24 | Electronics And Telecommunications Research Institute | Node update system using virtual partition technique and control method thereof |
CN102893589A (en) * | 2010-05-13 | 2013-01-23 | 诺基亚公司 | Method and apparatus for providing context sensing and fusion |
CN102571315A (en) * | 2010-12-27 | 2012-07-11 | 微软公司 | Synchronizing sensor data across devices |
JP2014045242A (en) * | 2012-08-24 | 2014-03-13 | Oki Electric Ind Co Ltd | Virtual sensor creating device, virtual sensor creating method and program |
CN103517114A (en) * | 2012-12-06 | 2014-01-15 | Tcl集团股份有限公司 | Sensor data interaction method and system |
CN103559725A (en) * | 2013-08-09 | 2014-02-05 | 中国地质大学(武汉) | Wireless sensor node optimization selection method orientated at visual tracking |
CN103957198A (en) * | 2014-04-15 | 2014-07-30 | 深圳市玖坤信息技术有限公司 | Sensor data receiving and converting method and system |
CN107077114A (en) * | 2014-10-30 | 2017-08-18 | 西门子公司 | Soft sensor is used in programmable logic controller (PLC) |
CN107734634A (en) * | 2016-08-12 | 2018-02-23 | 北京小米移动软件有限公司 | Sensor register method, apparatus and system |
CN108734938A (en) * | 2018-05-24 | 2018-11-02 | 文丹 | A kind of healthy data acquisition system based on wireless-transmission network |
Non-Patent Citations (2)
Title |
---|
KAZANTZIS NIKOLAOS: "Pollutant concentration profile reconstruction using digital soft sensors for biodegradation and exposure assessment in the presence of model uncertainty", 《ENVIRONMENTAL SCIENCE AND POLLUTION RESEARCH INTERNATIONAL》 * |
商亮亮 等: "基于自适应高效递推规范变量分析的多模过程软传感器建模", 《控制理论与应用》 * |
Also Published As
Publication number | Publication date |
---|---|
CN109857018B (en) | 2020-09-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9909908B2 (en) | Profiles for streamlining calibration test | |
CN105302055B (en) | The safety monitoring system and method for programmable logic controller (PLC) in a kind of industrial control system | |
EP2169541B1 (en) | Method, system and graphical user interface for configuring a simulator to simulate a plurality of devices | |
CN107066243B (en) | Method for analyzing and packaging control document of universal airborne bus interface | |
CN109783751A (en) | Form validation method and terminal device | |
CN103605606B (en) | A kind of embedded software test use-case batch execution method that can automatically change | |
CN105987775A (en) | Temperature sensor nonlinearity correction method and system based on BP neural network | |
CN105589805A (en) | Method and device for generating code coverage rate report | |
CN103646049A (en) | Method and system for automatically generating data report | |
CN109507625A (en) | The automatic calibrating method and terminal device of battery simulator | |
CN109446096A (en) | A kind of intelligence contract adjustment method, device and its storage medium | |
CN117009243A (en) | Chip performance automatic test method, device, computer equipment and storage medium | |
CN109857018A (en) | A kind of digital sensor soft model system | |
CN108334335A (en) | A kind of software source code version determines method and device | |
CN104280098B (en) | Ship liquid level sensor method of testing based on Labview | |
CN116258129A (en) | Method and system for generating personalized test report | |
Jevtic et al. | Development of smart transducers compliant with the IEEE 1451.4 standard | |
CN109889481A (en) | Fusion method and device are acquired based on multi-sensor device data | |
KR100854380B1 (en) | A control program design method for meter apparatus | |
US9817780B2 (en) | Communicator with profiles | |
CN114443503A (en) | Test case generation method and device, computer equipment and storage medium | |
CN110119351B (en) | Test case execution method and device | |
CN109240198A (en) | A kind of analog quantity conversion method and system based on programmable controller | |
CN109710469A (en) | It is a kind of for testing the method and system of meteorological observation equipment | |
CN106500759A (en) | Cigarette physical index general measuring instrument |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |