CN109857018B - Digital sensor soft model system - Google Patents

Digital sensor soft model system Download PDF

Info

Publication number
CN109857018B
CN109857018B CN201910080105.5A CN201910080105A CN109857018B CN 109857018 B CN109857018 B CN 109857018B CN 201910080105 A CN201910080105 A CN 201910080105A CN 109857018 B CN109857018 B CN 109857018B
Authority
CN
China
Prior art keywords
sensor
command
subsystem
module
data
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
CN201910080105.5A
Other languages
Chinese (zh)
Other versions
CN109857018A (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.)
China University of Geosciences
Original Assignee
China University of Geosciences
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 China University of Geosciences filed Critical China University of Geosciences
Priority to CN201910080105.5A priority Critical patent/CN109857018B/en
Publication of CN109857018A publication Critical patent/CN109857018A/en
Application granted granted Critical
Publication of CN109857018B publication Critical patent/CN109857018B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a digital sensor soft model system, which is mainly divided into a newly-built sensor subsystem, a sensor management subsystem and 3 command response subsystems; aiming at the three subsystems, an internal function composition module is further constructed, and system functions of newly building a sensor, loading the sensor, responding to commands, closing the sensor and the like are realized, wherein the responding to command function comprises 11 commands of reading ROM, matching ROM, skipping ROM, searching ROM, alarming search, numerical value conversion, reading RAM, writing RAM, copying RAM, resetting EEPROM, reading and supplying power modes and the like.

Description

Digital sensor soft model system
Technical Field
The invention relates to the technical field of sensors of the Internet of things, in particular to a digital sensor soft model system.
Background
With the development of the technology of the internet of things, the digital intelligent sensor is used as an important component of the internet of things, and the research and development of the digital intelligent sensor become more urgent. The more developed scientific technology, the higher the automation degree, the greater the dependence on the sensor, the more numerous production process links of the digital sensor and the more complex process, and although a great deal of manpower, material resources and energy are invested to perform performance compensation such as temperature, zero point, nonlinearity, hysteresis, creep deformation and the like and four-corner error adjustment, the existing compensation technology is difficult to achieve high-quality requirements, and the serious problem that the production cost and the quality cost are always high generally exists. The electronic technology is greatly improved, the singlechip is popularized, the digital sensor is continuously changed, the digital automatic compensation and error correction technology is adopted in the software and hardware technology, and the high accuracy, high precision and high stability are incomparable with those of the traditional strain digital sensor.
Partial application of the digital sensor soft model: (1) prototype hardware design and debugging to service digital sensors; (2) as part of an intelligent digital sensor; (3) networking of a digital sensor network can be simulated; (4) a monitoring network based on a digital sensor can be constructed, and a data transmission path algorithm can be tested; (5) various parameters can be tested before the monitoring network is actually laid; in conclusion, the digital sensor soft model can be widely applied in production, research and engineering.
With the development of the internet of things technology and the development of digital sensors, various industries will have huge demands on the digital sensors. However, due to the influence of factors such as detection environment, detection technology, production process, production cost and the like, the application of the hardware sensor is limited to a certain extent, and the soft model of the digital sensor is used as the software form of the sensor, and due to the advantages of no limitation of the detection environment and the production process, low cost, higher reliability in the data processing process and the like, the soft model of the digital sensor can replace the hardware digital sensor in many cases, and plays an increasingly important role in research and application related to the digital sensor.
Disclosure of Invention
The invention aims to solve the technical problem that a digital sensor soft model system is provided aiming at the defect that a hardware digital sensor is limited in practical application due to the influence of factors such as detection environment, detection technology, production process, production cost and the like in the prior art, wherein the digital sensor soft model system comprises a newly-built sensor subsystem, a sensor management subsystem, a singlechip subsystem and a command response subsystem which are connected in sequence; wherein:
the newly-built sensor subsystem is used for newly building a plurality of sensors; aiming at each sensor, inputting corresponding sensor parameters by a user, and further completing the creation of the sensor; the newly-built sensor subsystem comprises a data conversion module and a newly-built file module; the data conversion module is used for converting the data format of the sensor parameters input by the user and further transmitting the converted data to the new file module; the new file creating module is used for creating a corresponding sensor file according to the data transmitted by the received data conversion module;
the sensor management subsystem is used for managing and loading a plurality of newly-built sensors into the digital sensor soft model system; the sensor management subsystem comprises a loading sensor module, an initializing sensor module and a closing sensor module; the sensor loading module is used for reading out the sensor parameters stored in each sensor file, processing the read data and loading the processed data into a sensor parameter list in the memory; the initialization sensor is used for initializing the sensor; the sensor closing module is used for closing the sensors loaded into the system, and specifically formatting data in a sensor parameter list;
for each sensor loaded into the system, the single chip microcomputer subsystem is used for reading, storing and transmitting data transmitted by the sensor;
the command response subsystem is used for receiving an operation command input by a user and transmitting the received operation command to each sensor through the single chip microcomputer subsystem, and the sensors further judge and respond to the received operation command.
Further, in the newly-built sensor subsystem, the sensor parameters input by the user include decimal integers, data format conversion is performed on the sensor parameters input by the user, specifically, the read decimal integers are converted into binary data with 8 bits and signs, wherein the highest bit is a sign bit, 0 represents a non-negative number, 1 represents a negative number, and if the input parameters are negative numbers, the parameters are converted into binary data in a complementary code form.
Further, the data processing in the sensor module is loaded, specifically, in the case of reading 8-bit binary data, the lower 6 bits are set as the default value "1".
Further, in the newly-built sensor subsystem, sensor parameters stored in a sensor file comprise a maximum limit value, a minimum limit value, a configuration parameter table, an alarm mark and a power supply mode; the loading sensor module respectively assigns the read maximum limit value, minimum limit value and configuration parameter table to bytes 2, 3 and 4 of the RAM in the sensor parameter list; setting bytes 0, 1, 5, 6, 7 to a default value of "1"; the 8 th byte in the RAM is set as a cyclic redundancy check code of the first 8 bytes of the RAM.
Furthermore, the command response subsystem comprises a command receiving module, a ROM value returning module, an RAM value returning module, a cyclic redundancy check module, an elimination processing module, a numerical value conversion module and a numerical value comparison module; wherein:
the return ROM value module is used for reading 64-bit ROM values of the sensor, and reading one bit each time, and finishing reading for 64 times in a circulating way;
the return RAM value module is used for reading the power supply mode input by the user and acquiring the RAM value of each sensor;
the command receiving module is used for receiving an operation command sent by a user, wherein the operation command is a binary data string, and the command sending process is a process of writing data to the sensor by the system;
the cyclic redundancy check module is used for calculating a cyclic redundancy check code of the specified binary data string and then comparing the cyclic redundancy check code with a cyclic redundancy check code of the data string;
the elimination processing module is used for identifying the ROM values of all sensors in the current system through an elimination algorithm;
the numerical value conversion module is used for converting a decimal real number into binary data;
the numerical value comparison module is used for reading data stored in the 0 th byte and the 1 st byte of the RAM in the sensor parameter list and comparing the read data with the highest limit value and the lowest limit value in the parameter list respectively; if the data stored in the 0 th byte of the sensor RAM is larger than the maximum limit value or the data stored in the 1 st byte of the sensor RAM is larger than the minimum limit value, setting the alarm flag to be 1, and setting the alarm flag to be 0 under other conditions; when the alarm mark is set to be 1, the current sensor is the alarm sensor.
Further, the operation commands input by the user comprise a read ROM command, a skip ROM command, a match ROM command, a search ROM command, an alarm search command, a numerical value conversion command, a read RAM command, a write RAM command, a copy RAM command, a reset EEPROM command and a read power supply mode command, the command response subsystem receives the operation commands transmitted by the user and transmits the operation commands to each sensor through the single chip microcomputer, and the sensors sequentially respond to the received operation commands and comprise:
when the command response subsystem receives a read ROM command, the sensor sends the ROM value of the sensor to the singlechip subsystem; the singlechip subsystem further controls a cyclic redundancy check module in the command response subsystem to perform cyclic redundancy check on the received data and feed back the read result to the user;
when the command response subsystem receives the skip ROM command, the system does not perform any operation;
when the command response subsystem receives a matching ROM command, the single chip microcomputer subsystem sends a ROM value which needs to be matched by a user to each sensor, each sensor compares the received ROM value with the ROM value of the sensor, and the comparison result is fed back to the user through the single chip microcomputer subsystem;
when the command response subsystem receives a ROM searching command, all sensors in a working state in the current system provide ROM values of the sensors to the single chip microcomputer subsystem, and the single chip microcomputer subsystem controls an elimination processing module in the command response subsystem according to a sequence received on the single bus to restore the ROM values of all the sensors in the system; the value on the single bus is the result of the phase and the back of the ROM value corresponding to each sensor in the working state;
when the command response subsystem receives an alarm search command, the singlechip subsystem controls a numerical comparison module in the command response subsystem to screen out alarm sensors; the screened alarm sensor provides the ROM value of the alarm sensor to the single chip microcomputer subsystem, and the same operation as that when the ROM searching command is received is carried out;
when the command response subsystem receives a numerical value conversion command, the single chip microcomputer subsystem randomly obtains a real number in a range set by a user, and controls a numerical value conversion module in the command response subsystem to convert the format of the obtained real number; the converted data is further transmitted to each sensor through the single chip subsystem, and the sensors respectively compare the received data with the maximum limit value and the minimum limit value of the sensors;
when the command response subsystem receives a RAM reading command, each sensor sends the RAM value of the sensor to the single chip microcomputer subsystem, the single chip microcomputer subsystem further controls a cyclic redundancy check module in the command response subsystem to perform cyclic redundancy check on received data, and meanwhile, a reading result is fed back to a user;
when the command response subsystem receives a RAM writing command, the single chip microcomputer subsystem controls a numerical value conversion module in the command response subsystem to convert the format of data set by a user, the converted data are sent to each sensor through the single chip microcomputer subsystem, and the sensors respectively write the received data into the 2 nd byte and the 3 rd byte of the RAM of the sensors;
when the command response subsystem receives a copy RAM command, each sensor writes the data of the 2 nd, 3 rd and 4 th bytes of the RAM of the sensor into a sensor file corresponding to the sensor;
when the command response subsystem receives a readjustment EEPROM command, each sensor writes the data of the first three bytes in the sensor file corresponding to the sensor into the 2 nd, 3 rd and 4 th bytes of the RAM of the sensor;
when the command response subsystem receives a power supply reading mode command, each sensor further feeds back the power supply mode of each sensor to a user through the single chip microcomputer subsystem.
The invention relates to a soft model system of a digital sensor, which is a software system developed after abstract summarization of a hardware digital sensor, and the system adopts a structured software development method to simulate main data components and a basic structure of the hardware digital sensor, operates according to the working time sequence of the hardware digital sensor, responds to all commands of the hardware digital sensor and completes corresponding functions.
The digital sensor soft model system provided by the invention has the structure of a hardware digital sensor, can receive and respond to all single bus commands which can be received and responded by the hardware digital sensor, can complete corresponding functions, and meets the requirements of information transmission, processing, storage, display, recording, control and the like.
Drawings
The invention will be further described with reference to the accompanying drawings and examples, in which:
FIG. 1 is a block diagram of a digital sensor soft model system according to the present invention;
FIG. 2 is an interface diagram of a system implementing a newly built sensor module;
FIG. 3 is an interface diagram of a system implementation for loading a sensor module;
FIG. 4 is an interface diagram of a system implementation initializing a sensor system;
FIG. 5 is an interface diagram of a system implementing sensor command responses;
FIG. 6 is an interface diagram of a system implementation matching ROM commands;
FIG. 7 is an interface diagram of a system implementing a write RAM command;
FIG. 8 is a diagram of an interface for a system implementation to execute a numerical translation command;
FIG. 9 is an interface diagram of a system implementing an alert search command;
FIG. 10 is an interface diagram of a system implementing the exit system.
Detailed Description
For a more clear understanding of the technical features, objects and effects of the present invention, embodiments of the present invention will now be described in detail with reference to the accompanying drawings.
Referring to fig. 1, which is a structural diagram of a digital sensor soft model system provided by the present invention, the digital sensor soft model system 11 provided by the present invention includes a newly-built sensor subsystem 111, a sensor management subsystem 112, a single chip subsystem 113 and a command response subsystem 114, which are connected in sequence; wherein:
the newly-built sensor subsystem 111 is used for newly building a plurality of sensors; referring to fig. 2, it is an interface diagram of a system implementing a newly-built sensor module, and it can be known from the diagram that for each sensor, a user inputs a sensor parameter corresponding to the sensor, and further completes the creation of the sensor; the newly-built sensor subsystem 111 comprises a data conversion module 1111 and a newly-built file module 1112; the data conversion module 1111 is configured to perform data format conversion on the sensor parameters input by the user, and further transmit the converted data to the new file module 1112; the new file creating module 1112 is configured to create a corresponding sensor file according to the data transmitted by the received data conversion module; preferably:
in this embodiment, the new file module 1112 creates a sensor file in the DS folder, where the created sensor file is a text file of txt, and the received data is used as a file name;
referring to fig. 2, a user inputs sensor parameters to be input into edit boxes of a power supply mode, a maximum value, a minimum value, a resolution R1 and a resolution R2; clicking a new sensor button to complete the creation of the sensor; wherein each input parameter value is a decimal integer.
The data conversion module 1111 converts the decimal integer read by the sensor parameter input by the user into 8-bit signed binary data, wherein the highest bit is a sign bit, 0 represents a non-negative number, and 1 represents a negative number, and if the input parameter is a negative number, the parameter is converted into the binary data in a complementary code form;
the sensor management subsystem 112 is used for managing and loading a plurality of newly-built sensors into the digital sensor soft model system; the sensor management subsystem 112 includes a load sensor module 1121, an initialize sensor module 1122, and a close sensor module 1123; wherein:
the sensor loading module 1121 is configured to read and process sensor parameters stored in each sensor file, and load the processed data into a sensor parameter list located in the memory; the data processing operation is to read into 8-bit binary data, and the lower 6 bits are set as default value "1"; the sensor loading module 1121 respectively assigns the read maximum limit value, minimum limit value and configuration parameter table to bytes 2, 3 and 4 of the RAM in the sensor parameter list; setting bytes 0, 1, 5, 6, 7 to a default value of "1"; the 8 th byte in the RAM is set as a cyclic redundancy check code of the first 8 bytes of the RAM.
Please refer to fig. 3, which is an interface diagram of the system for implementing loading of the sensor module; after the sensor is built through the newly-built sensor subsystem 111, the built sensor can be loaded in the system by clicking a sensor loading button on the interface, and the loading work of 3 sensors is completed in the current embodiment;
the initialization sensor 1122 is used for initializing a sensor loaded into the system; please refer to fig. 4, which is an interface diagram of the system implementing the initialization sensor system; and clicking an initialization button on the interface to finish the initialization work of all sensors in the system, and prompting the system by information of successful initialization.
Please refer to fig. 10, which is an interface diagram of the system for exiting the system; the sensor shutdown module 1123 is configured to shutdown a sensor loaded in the system, specifically, format data in a sensor parameter list; and the exit of the sensor can be finished by clicking a sensor closing button on the interface, and the system has a message prompt of 'successfully exiting the system'.
For each sensor loaded into the system, the single chip microcomputer subsystem 113 is used for reading, storing and transmitting data transmitted by the sensor;
and the command response subsystem 114 is used for receiving an operation command input by a user, transmitting the received operation command to each sensor through the single chip microcomputer subsystem 113, and the sensor further judges and responds to the received operation command. The command response subsystem 114 includes a command receiving module 1141, a ROM value returning module 1142, a RAM value returning module 1143, a cyclic redundancy check module 1144, an elimination processing module 1145, a numerical value conversion module 1146, and a numerical value comparison module 1147; among them:
the command receiving module 1141 is configured to receive an operation command sent by a user, where the operation command is a binary data string, and a process of sending the command is a process of writing data to a sensor by a system;
the return ROM value module 1142 is configured to read a 64-bit ROM value of the sensor, and each time one bit is read, the reading is completed 64 times in a cycle;
the return RAM value module 1143 is configured to read a power supply mode input by a user and acquire a RAM value of each sensor;
the cyclic redundancy check module 1144 is configured to calculate a cyclic redundancy check code of the specified binary data string, and then compare the cyclic redundancy check code with a cyclic redundancy check code of the data string;
the elimination processing module 1145 is used for identifying the ROM values of all sensors in the current system through an elimination algorithm;
the value conversion module 1146 is configured to convert a decimal real number into binary data;
a numerical comparison module 1147, configured to read data stored in the 0 th byte and the 1 st byte of the RAM in the sensor parameter list, and compare the read data with a maximum limit value and a minimum limit value of the sensor in the parameter list, respectively; if the data stored in the 0 th byte of the sensor RAM is larger than the maximum limit value or the data stored in the 1 st byte of the sensor RAM is larger than the minimum limit value, setting the alarm flag to be 1, and setting the alarm flag to be 0 under other conditions; when the alarm mark is set to be 1, the current sensor is the alarm sensor.
Referring to fig. 5, which is an interface diagram of a system implementing a sensor command response, it can be seen from the command drop-down box in the figure that the operation commands input by the user include a read ROM command, a skip ROM command, a match ROM command, a search ROM command, an alarm search command, a value conversion command, a read RAM command, a write RAM command, a copy RAM command, a reset EEPROM command, and a read power mode command; the command response subsystem 114 receives an operation command transmitted by a user and transmits the operation command to each sensor through the single chip microcomputer subsystem 113, and the responses of the sensors to the received operation command in turn include:
when the command response subsystem 114 receives a read ROM command, the sensor sends the ROM value of the sensor to the single chip microcomputer subsystem 113; the single chip microcomputer subsystem 113 further controls a cyclic redundancy check module 1144 in the command response subsystem 114 to perform cyclic redundancy check on the received data, and simultaneously feeds back the read result to the user;
when command response subsystem 114 receives the skip ROM command, the system does nothing;
please refer to fig. 6, which is an interface diagram of the system for implementing matching ROM commands; when the command response subsystem 114 receives the matching ROM command, the single chip microcomputer subsystem 113 sends the ROM value which needs to be matched by the user to each sensor, each sensor compares the received ROM value with the ROM value of the sensor, and the comparison result is fed back to the user through the single chip microcomputer subsystem 113; as can be seen from fig. 6, before executing the ROM match command, the ROM value to be matched needs to be entered in the ROM match edit box;
when the command response subsystem 114 receives a ROM search command, all sensors in a working state in the current system provide their own ROM values to the single chip microcomputer subsystem 113, and the single chip microcomputer subsystem 113 controls the processing module 1145 in the command response subsystem 114 according to a sequence received on the single bus to restore the ROM value of each sensor in the system; the value on the single bus is the result of the phase and the back of the ROM value corresponding to each sensor in the working state;
please refer to fig. 9, which is an interface diagram of the system implementing the alarm search command; when the command response subsystem 114 receives the alarm search command, the single chip microcomputer subsystem 113 screens the alarm sensors through a numerical value comparison module 1147 in the command response subsystem 114; the screened alarm sensor provides the ROM value of the alarm sensor to the single chip microcomputer subsystem 113, and the same operation as that when the ROM searching command is received is carried out; as can be seen from fig. 8, after the system completes the alarm search, there is a corresponding "alarm search completed" information prompt, and the ROM value of the searched sensor meeting the condition will be displayed in the searched sensor serial number list box;
please refer to fig. 8, which is an interface diagram of a system for implementing a numerical conversion command; when the command response subsystem 114 receives the value conversion command, the single chip microcomputer subsystem 113 randomly obtains a real number in a range set by a user, and performs format conversion on the obtained real number through the value conversion module 1146 of the command response subsystem 114; the converted data is further transmitted to each sensor through the single chip subsystem 113, and the sensors respectively compare the received data with the maximum limit value and the minimum limit value of the sensors; as can be seen from fig. 8, when the numerical value conversion command is executed, the measurement range needs to be input in the upper measurement range limit and the lower measurement range limit edit boxes, and when the command is executed, the value detected by the detection element in the detected numerical value edit box will be displayed.
Please refer to fig. 7, which is an interface diagram of a system implementing a write RAM command; when the command response subsystem 114 receives a RAM reading command, each sensor sends its RAM value to the single chip microcomputer subsystem 113, and the single chip microcomputer subsystem 113 further performs cyclic redundancy check on the received data through a cyclic redundancy check module 1144 in the command response subsystem 114 and feeds back a reading result to a user; as can be seen from fig. 7, before the write RAM command is executed, corresponding values (both integers) need to be entered in the RAM ceiling write edit box and the RAM floor write edit box.
When the command response subsystem 114 receives a command for writing into the RAM, the single chip microcomputer subsystem 113 performs format conversion on data set by a user through a numerical value conversion module 1146 in the command response subsystem 114, the converted data is sent to each sensor through the single chip microcomputer subsystem 113, and the sensors respectively write the received data into the 2 nd byte and the 3 rd byte of the RAM value of the sensors;
when command response subsystem 114 receives the copy RAM command, each sensor writes the 2 nd, 3 rd, and 4 th bytes of data of its own RAM value into its corresponding sensor file;
when command response subsystem 114 receives the reset EEPROM command, each sensor writes the data of the first three bytes in its corresponding sensor file into the 2 nd, 3 rd and 4 th bytes of its RAM value;
when the command response subsystem 114 receives the power supply reading mode command, each sensor further feeds back the power supply mode of the sensor to the user through the single chip microcomputer subsystem 113.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (6)

1. A digital sensor soft model system is characterized in that the digital sensor soft model system comprises a newly-built sensor subsystem, a sensor management subsystem, a singlechip subsystem and a command response subsystem which are sequentially connected; wherein:
the newly-built sensor subsystem is used for newly building a plurality of sensors; aiming at each sensor, inputting corresponding sensor parameters by a user, and further completing the creation of the sensor; the newly-built sensor subsystem comprises a data conversion module and a newly-built file module; the data conversion module is used for converting the data format of the sensor parameters input by the user and further transmitting the converted data to the new file module; the new file creating module is used for creating a corresponding sensor file according to the data transmitted by the received data conversion module;
the sensor management subsystem is used for managing and loading a plurality of newly-built sensors into the digital sensor soft model system; the sensor management subsystem comprises a loading sensor module, an initializing sensor module and a closing sensor module; the sensor loading module is used for reading out the sensor parameters stored in each sensor file, processing the read data and loading the processed data into a sensor parameter list in the memory; the sensor initialization module is used for initializing the sensor; the sensor closing module is used for closing the sensor loaded in the digital sensor soft model system, and specifically formatting data in a sensor parameter list;
for each sensor loaded to the digital sensor soft model system, the single chip microcomputer subsystem is used for reading, storing and transmitting data transmitted by the sensor;
the command response subsystem is used for receiving an operation command input by a user and transmitting the received operation command to each sensor through the single chip microcomputer subsystem, and the sensors further judge and respond to the received operation command.
2. The digital sensor soft model system of claim 1, wherein in the newly-built sensor subsystem, the sensor parameters input by the user comprise decimal integers, data format conversion is performed on the sensor parameters input by the user, specifically, the read decimal integers are converted into 8-bit signed binary data, wherein the highest bit is a sign bit, 0 represents a non-negative number, and 1 represents a negative number, and if the input parameters are negative numbers, the parameters are converted into binary data in a complementary code form.
3. The digital sensor soft model system according to claim 1, wherein the lower 6 bits are set to a default value of "1" in the loading of data processing in the sensor module, in particular in the reading of 8-bit binary data.
4. The digital sensor soft model system of claim 1, wherein in the newly-built sensor subsystem, the sensor parameters stored in the sensor file include a maximum value, a minimum value, a configuration parameter table, an alarm flag, and a power supply mode; the loading sensor module respectively assigns the read maximum limit value, minimum limit value and configuration parameter table to bytes 2, 3 and 4 of the RAM in the sensor parameter list; setting bytes 0, 1, 5, 6, 7 to a default value of "1"; the 8 th byte in the RAM is set as a cyclic redundancy check code of the first 8 bytes of the RAM.
5. The digital sensor soft model system of claim 1, wherein the command response subsystem comprises a receive command module, a return ROM value module, a return RAM value module, a cyclic redundancy check module, a cancellation processing module, a numerical conversion module, and a numerical comparison module; wherein:
the return ROM value module is used for reading 64-bit ROM values of the sensor, and reading one bit each time, and finishing reading for 64 times in a circulating way;
the return RAM value module is used for reading the power supply mode input by the user and acquiring the RAM value of each sensor;
the command receiving module is used for receiving an operation command sent by a user, wherein the operation command is a binary data string, and the command sending process is a process of writing data to a sensor loaded in the digital sensor soft model system;
the cyclic redundancy check module is used for calculating a cyclic redundancy check code of the specified binary data string and then comparing the cyclic redundancy check code with a cyclic redundancy check code of the data string;
the elimination processing module is used for identifying ROM values of all sensors loaded into the digital sensor soft model system at present through an elimination algorithm;
the numerical value conversion module is used for converting a decimal real number into binary data;
the numerical value comparison module is used for reading data stored in the 0 th byte and the 1 st byte of the RAM in the sensor parameter list and comparing the read data with the highest limit value and the lowest limit value in the parameter list respectively; if the data stored in the 0 th byte of the sensor RAM is larger than the maximum limit value or the data stored in the 1 st byte of the sensor RAM is larger than the minimum limit value, setting the alarm flag to be 1, and setting the alarm flag to be 0 under other conditions; when the alarm mark is set to be 1, the current sensor is the alarm sensor.
6. The digital sensor soft model system of claim 1, wherein the operation commands input by the user comprise a read ROM command, a skip ROM command, a match ROM command, a search ROM command, an alarm search command, a numerical value conversion command, a read RAM command, a write RAM command, a copy RAM command, a reset EEPROM command and a read power mode command, the command response subsystem receives the operation commands transmitted by the user and transmits the operation commands to each sensor through the single chip microcomputer, and the sensors sequentially respond to the received operation commands and comprise:
when the command response subsystem receives a read ROM command, the sensor sends the ROM value of the sensor to the singlechip subsystem; the singlechip subsystem further controls a cyclic redundancy check module in the command response subsystem to perform cyclic redundancy check on the received data and feed back the read result to the user;
when the command response subsystem receives the skip ROM command, no operation is performed;
when the command response subsystem receives a matching ROM command, the single chip microcomputer subsystem sends a ROM value which needs to be matched by a user to each sensor, each sensor compares the received ROM value with the ROM value of the sensor, and the comparison result is fed back to the user through the single chip microcomputer subsystem;
when the command response subsystem receives a ROM searching command, all sensors loaded into the digital sensor soft model system at present are in a working state, the ROM values of the sensors are provided for the single chip microcomputer subsystem, and the single chip microcomputer subsystem controls an elimination processing module in the command response subsystem according to a sequence received on the single bus to restore the ROM values of all the sensors; the value on the single bus is the result of the phase and the back of the ROM value corresponding to each sensor in the working state;
when the command response subsystem receives an alarm search command, the singlechip subsystem controls a numerical comparison module in the command response subsystem to screen out alarm sensors; the screened alarm sensor provides the ROM value of the alarm sensor to the single chip microcomputer subsystem, and the same operation as that when the ROM searching command is received is carried out;
when the command response subsystem receives a numerical value conversion command, the single chip microcomputer subsystem randomly obtains a real number in a range set by a user, and controls a numerical value conversion module in the command response subsystem to convert the format of the obtained real number; the converted data is further transmitted to each sensor through the single chip subsystem, and the sensors respectively compare the received data with the maximum limit value and the minimum limit value of the sensors;
when the command response subsystem receives a RAM reading command, each sensor sends the RAM value of the sensor to the single chip microcomputer subsystem, the single chip microcomputer subsystem further controls a cyclic redundancy check module in the command response subsystem to perform cyclic redundancy check on received data, and meanwhile, a reading result is fed back to a user;
when the command response subsystem receives a RAM writing command, the single chip microcomputer subsystem controls a numerical value conversion module in the command response subsystem to convert the format of data set by a user, the converted data are sent to each sensor through the single chip microcomputer subsystem, and the sensors respectively write the received data into the 2 nd byte and the 3 rd byte of the RAM of the sensors;
when the command response subsystem receives a copy RAM command, each sensor writes the data of the 2 nd, 3 rd and 4 th bytes of the RAM of the sensor into a sensor file corresponding to the sensor;
when the command response subsystem receives a readjustment EEPROM command, each sensor writes the data of the first three bytes in the sensor file corresponding to the sensor into the 2 nd, 3 rd and 4 th bytes of the RAM of the sensor;
when the command response subsystem receives a power supply reading mode command, each sensor further feeds back the power supply mode of each sensor to a user through the single chip microcomputer subsystem.
CN201910080105.5A 2019-01-28 2019-01-28 Digital sensor soft model system Active CN109857018B (en)

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 CN109857018A (en) 2019-06-07
CN109857018B true 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 (5)

* Cited by examiner, † Cited by third party
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
CN103517114A (en) * 2012-12-06 2014-01-15 Tcl集团股份有限公司 Sensor data interaction method and system
JP2014045242A (en) * 2012-08-24 2014-03-13 Oki Electric Ind Co Ltd Virtual sensor creating device, virtual sensor creating method and program
CN107077114A (en) * 2014-10-30 2017-08-18 西门子公司 Soft sensor is used in programmable logic controller (PLC)
CN108734938A (en) * 2018-05-24 2018-11-02 文丹 A kind of healthy data acquisition system based on wireless-transmission network

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1518198A2 (en) * 2002-07-03 2005-03-30 Tokyo Electron Limited 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
US7696866B2 (en) * 2007-06-28 2010-04-13 Microsoft Corporation Learning and reasoning about the context-sensitive reliability of sensors
KR20100070899A (en) * 2008-12-18 2010-06-28 한국전자통신연구원 Node update system using virtual partition technique and control method thereof
US20130057394A1 (en) * 2010-05-13 2013-03-07 Nokia Corporation Method and Apparatus for Providing Context Sensing and Fusion
US9116220B2 (en) * 2010-12-27 2015-08-25 Microsoft Technology Licensing, Llc Time synchronizing sensor continuous and state data signals between nodes across a network
CN103559725B (en) * 2013-08-09 2016-01-06 中国地质大学(武汉) A kind of wireless sensor node optimum choice method of following the tracks of towards vision
CN103957198B (en) * 2014-04-15 2018-02-02 庞克学 A kind of sensing data receives conversion method and system
CN107734634B (en) * 2016-08-12 2020-11-10 北京小米移动软件有限公司 Sensor registration method, device and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
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
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
CN107077114A (en) * 2014-10-30 2017-08-18 西门子公司 Soft sensor is used in programmable logic controller (PLC)
CN108734938A (en) * 2018-05-24 2018-11-02 文丹 A kind of healthy data acquisition system based on wireless-transmission network

Also Published As

Publication number Publication date
CN109857018A (en) 2019-06-07

Similar Documents

Publication Publication Date Title
CN106874244B (en) Method for constructing automatic document generation model based on work sequence
CN111562933B (en) Air conditioner upgrading method and air conditioner system
CN110955715B (en) Data conversion method and device for ERP system and target platform and electronic device
CN112506759B (en) Automatic test method and device for servo system control software and storage medium
CN105607923A (en) Cross-platform avionics system configuration data generation and recovery method
CN110244936B (en) Method and device for supporting VISIO flow chart to automatically import DCS algorithm configuration software
CN107368313A (en) Code detection method, device and electronic equipment
US20110093097A1 (en) Device information setting apparatus and device information setting method
CN104657274A (en) Method and device for testing software interface
US9135323B2 (en) System and method for classifying data dump data
CN107357721B (en) Method and device for testing system
US10095512B2 (en) Program development support device, non-transitory storage medium storing thereon computer-readable program development support program, and program development support method
CN115277882A (en) CAN message database establishing method and device, vehicle-mounted electronic equipment and storage medium
CN109857018B (en) Digital sensor soft model system
CN104376098B (en) A kind of files in batch method of calibration based on python
JPWO2017195369A1 (en) Program development support device, train monitoring and control device, and program development support method
CN113806332A (en) Heterogeneous system integrated data processing method and device and computer equipment
CN102377894A (en) Method and device for revising imaging box chip
CN116862263A (en) Method, device and storage medium for planning fusion of yield and policies
CN111506305A (en) Tool kit generation method and device, computer equipment and readable storage medium
CN115345600A (en) RPA flow generation method and device
CN109614656B (en) TLM (transport layer management Module) system for OpenGL (open graphics library) display list calling
CN114706715B (en) Control method, device, equipment and medium for distributed RAID based on BMC
CN113064585B (en) JSON mode-based real-time message interface automatic generation method
US20220245458A1 (en) Apparatus and method for converting neural network

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