Nothing Special   »   [go: up one dir, main page]

CN111930437B - Parameter configuration method - Google Patents

Parameter configuration method Download PDF

Info

Publication number
CN111930437B
CN111930437B CN202010682817.7A CN202010682817A CN111930437B CN 111930437 B CN111930437 B CN 111930437B CN 202010682817 A CN202010682817 A CN 202010682817A CN 111930437 B CN111930437 B CN 111930437B
Authority
CN
China
Prior art keywords
detection device
parameter configuration
sensor
power supply
data packet
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
CN202010682817.7A
Other languages
Chinese (zh)
Other versions
CN111930437A (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.)
Shanghai Huzhen Wulian Technology Co ltd
Original Assignee
Shanghai Huzhen Wulian Technology Co ltd
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 Shanghai Huzhen Wulian Technology Co ltd filed Critical Shanghai Huzhen Wulian Technology Co ltd
Priority to CN202010682817.7A priority Critical patent/CN111930437B/en
Publication of CN111930437A publication Critical patent/CN111930437A/en
Application granted granted Critical
Publication of CN111930437B publication Critical patent/CN111930437B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D18/00Testing or calibrating apparatus or arrangements provided for in groups G01D1/00 - G01D15/00

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

The invention relates to the technical field of sensors, and aims to provide a parameter configuration method. The invention discloses a parameter configuration method, which is realized based on a parameter configuration system; the parameter configuration system comprises a detection device and a host, wherein the detection device is electrically connected with the host; the parameter configuration method comprises the following steps: the host drives the detection device to enter a parameter configuration mode; the method comprises the steps that a host sends a first data packet to a detection device, wherein the first data packet comprises a writing command byte and a target parameter byte; the detection device receives the first data packet, and then replaces original parameters in the detection device with target parameters according to the writing command bytes and the target parameter bytes in the first data packet; the host drive detection device exits the parameter configuration mode. The parameter configuration of the detection device is low in cost.

Description

Parameter configuration method
Technical Field
The invention relates to the technical field of sensors, in particular to a parameter configuration method.
Background
The two-wire sensor is typically powered by 24V (15-30V), the loop outputs a 4-20mA signal, 4mA represents the minimum value of the sensor measurement range, 20mA represents the maximum value of the range, the current changes between 4-20mA, the change in the measurement range represents the change in the measurement value, and if the range value is known, the measurement value can be calculated by the sensor output current.
Currently, most two-wire sensors have a unique fixed range, and many sensors are sealed by welding or glue filling processes, so that parameter debugging is difficult once production is completed. The sensor is easy to have problems of parameter drift and low precision after long-term use, and at the moment, if the parameters are forcedly changed, physical damage is required to the sensor shell or the internal structure, and the internal circuit of the sensor is easy to be damaged.
In the prior art, if parameters are to be changed after the sensor is sealed or shipped, a complex control circuit is generally required to be added and implemented based on the HART protocol. Wherein, the HART protocol adopts FSK frequency shift keying signals based on Bell202 standard, and the audio digital signals with the amplitude of 0.5mA are superimposed on the low-frequency 4-20mA analog signals for bidirectional digital communication, and the data transmission rate is 1.2kbps. Because the average value of the FSK frequency shift keying signal is 0, the size of the analog signal transmitted to the control system is not influenced, and the compatibility with the existing analog system is ensured. The main variables and control information in HART protocol communication are transmitted by 4-20mA, and additional measurement, process parameters, device configuration, calibration, diagnostic information is accessed through the HART protocol, if necessary.
However, applications of the HART protocol typically require a dedicated HART modem and a dedicated 4-20mA current conversion chip, and are equipped with dedicated hand-held operators to configure the parameters. If only the simple parameters are modified, the whole circuit is complex, the power consumption is increased and the total volume of the sensor is increased due to the arrangement of the current conversion chip of the control circuit; in addition, the dedicated HART hand-held device is expensive, resulting in high cost of parameter configuration.
Disclosure of Invention
The invention aims to solve the technical problems at least to a certain extent, and provides a parameter configuration method.
The technical scheme adopted by the invention is as follows:
a parameter configuration method, which is realized based on a parameter configuration system; the parameter configuration system comprises a detection device and a host, wherein the detection device is electrically connected with the host; the parameter configuration method comprises the following steps:
the host drives the detection device to enter a parameter configuration mode;
the method comprises the steps that a host sends a first data packet to a detection device, wherein the first data packet comprises a writing command byte and a target parameter byte;
the detection device receives the first data packet, and then replaces original parameters in the detection device with target parameters according to the writing command bytes and the target parameter bytes in the first data packet;
the host drive detection device exits the parameter configuration mode.
Preferably, the parameter configuration method is implemented based on a parameter configuration system; the parameter configuration system comprises a detection device and a host, wherein the detection device is electrically connected with the host; the parameter configuration method is used for configuring the original parameters of the detection device.
Further preferably, the detection device comprises a sensor, a processor and a loop power supply circuit which are electrically connected in sequence, wherein the loop power supply circuit is electrically connected with the host; the detection device further comprises a power circuit, wherein a controlled end of the power circuit is electrically connected with the loop power supply circuit, and a power output end of the power circuit is electrically connected with the sensor and the processor; the parameter configuration method is used for configuring the original parameters of the sensor in the detection device.
Further preferably, when the host drives the detection device to enter the parameter configuration mode, the specific steps are as follows:
the host sends a parameter configuration instruction to the loop power supply circuit;
the loop power supply circuit receives the parameter configuration instruction, and then drives the power supply circuit to supply power to the sensor and the processor;
the processor detects the power supply voltage of the sensor and judges whether the power supply voltage is in the range of the parameter configuration voltage, if so, the processor sends a command for entering the parameter configuration mode to the sensor, the sensor receives the command for entering the parameter configuration mode and then enters the next step; if not, the processor sends a command for entering the normal working mode to the sensor, and the sensor receives the command for entering the normal working mode.
Further preferably, after the loop power supply circuit drives the power supply circuit to supply power to the sensor and the processor, before the sensor enters the parameter configuration mode, the method further comprises the following steps:
the processor sends an instruction to enter a low power consumption mode to the sensor, and the sensor enters the low power consumption mode.
Further preferably, after the loop power supply circuit receives the parameter configuration instruction, the loop power supply circuit drives the power supply circuit to supply power to the sensor and the processor at a first predetermined voltage.
Preferably, the detecting device replaces the original parameters in the detecting device with the target parameters according to the writing command bytes and the target parameter bytes in the first data packet, and further comprises the following steps:
the detection device feeds back the first data packet to the host according to the received first data packet.
Further preferably, the first data packet further includes a header byte and a trailer byte, wherein the header byte is located at a first position of the first data packet, and the trailer byte is located at a last position of the first data packet.
Preferably, after the host driving detection device enters the parameter configuration mode, and before the host driving detection device exits the parameter configuration mode, the method further comprises the following steps:
the host sends a second data packet to the detection device, wherein the second data packet comprises a read command byte and a parameter specification byte;
the detection device feeds back the parameter data matched with the parameter specification bytes in the detection device according to the read command bytes and the parameter specification bytes in the second data packet.
Preferably, when the host driving detection device exits the parameter configuration mode, the specific steps are as follows:
the host sends a third data packet to the detection device, wherein the third data packet comprises a stop command byte;
the detection device receives the third data packet and exits the parameter configuration mode according to a stop command byte in the third data packet.
Preferably, when the host driving detection device exits the parameter configuration mode, the specific steps are as follows:
the host sends a normal operation instruction to the loop power supply circuit;
the loop power supply circuit receives a normal operation instruction and then drives the power supply circuit to normally supply power to the detection device and the processor;
the processor sends an instruction for entering the normal working mode to the detection device, and the detection device receives the instruction of the normal working mode and exits the parameter configuration mode and then enters the normal working mode.
The beneficial effects of the invention are as follows:
the cost of parameter configuration of the detection device is low. Specifically, the parameter configuration method in the invention can be applied to detection devices such as a sensor and a transmitter, and the like, and in the running process of the parameter configuration method in the invention, the host drives the detection device to enter a parameter configuration mode, and then the first data packet is sent to the detection device to change the original parameters of the detection device, so that the parameter configuration of the detection device is realized.
In addition, by applying the parameter configuration method, when the problems of parameter drift and low precision of the detection device occur, the parameters of the detection device can be adjusted in real time, so that the degradation use or scrapping of the detection device is avoided, and the resource is saved.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a parameter configuration method in embodiments 1 and 2 in the present invention;
fig. 2 is a schematic diagram of the structure of the first packet, the second packet or the third packet in embodiment 2.
Detailed Description
The invention will be further elucidated with reference to the drawings and to specific embodiments. The present invention is not limited to these examples, although they are described in order to assist understanding of the present invention. Specific structural and functional details disclosed herein are merely representative of example embodiments of the invention. This invention may, however, be embodied in many alternate forms and should not be construed as limited to the embodiments set forth herein.
It will be understood that, although the terms first, second, etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another element. For example, a first element could be termed a second element, and, similarly, a second element could be termed a first element, without departing from the scope of example embodiments of the present invention.
It should be understood that for the term "and/or" that may appear herein, it is merely one association relationship that describes an associated object, meaning that there may be three relationships, e.g., a and/or B, may represent: a alone, B alone, and both a and B; for the term "/and" that may appear herein, which is descriptive of another associative object relationship, it means that there may be two relationships, e.g., a/and B, it may be expressed that: a alone, a alone and B alone; in addition, for the character "/" that may appear herein, it is generally indicated that the context associated object is an "or" relationship.
It will be understood that when an element is referred to herein as being "connected," "connected," or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may be present. In contrast, when an element is referred to herein as being "directly connected" or "directly coupled" to another element, it means that there are no intervening elements present. In addition, other words used to describe relationships between elements (e.g., "between … …" pair "directly between … …", "adjacent" pair "directly adjacent", etc.) should be interpreted in a similar manner.
It is to be understood that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of example embodiments of the invention. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises," "comprising," "includes," "including" and/or "including," when used herein, specify the presence of stated features, integers, steps, operations, elements, and/or components, and do not preclude the presence or addition of one or more other features, quantities, steps, operations, elements, components, and/or groups thereof.
It should be appreciated that in some alternative embodiments, the functions/acts noted may occur out of the order noted in the figures. For example, two figures shown in succession may in fact be executed substantially concurrently or the figures may sometimes be executed in the reverse order, depending upon the functionality/acts involved.
It should be understood that specific details are provided in the following description to provide a thorough understanding of the example embodiments. However, it will be understood by those of ordinary skill in the art that the example embodiments may be practiced without these specific details. For example, a system may be shown in block diagrams in order to avoid obscuring the examples with unnecessary detail. In other instances, well-known processes, structures, and techniques may be shown without unnecessary detail in order to avoid obscuring the example embodiments.
Example 1:
the embodiment provides a parameter configuration method, as shown in fig. 1, which is implemented based on a parameter configuration system; the parameter configuration system comprises a detection device and a host, wherein the detection device is electrically connected with the host. Specifically, the parameter configuration method is used for configuring original parameters of the detection device; the host computer can be any one of a mobile phone, a tablet computer, a notebook computer and a desktop computer, and is used for reading original parameters in the detection device and carrying out parameter configuration on the detection device. The parameter configuration method comprises the following steps:
the host drives the detection device to enter a parameter configuration mode;
the method comprises the steps that a host sends a first data packet to a detection device, wherein the first data packet comprises a writing command byte and a target parameter byte;
the detection device receives the first data packet, and then replaces original parameters in the detection device with target parameters according to the writing command bytes and the target parameter bytes in the first data packet;
the sensor sends a second data packet to the host according to the first data packet;
the host drive detection device exits the parameter configuration mode.
The parameter configuration method in the embodiment can be applied to detection devices such as a sensor and a transmitter, and the like, in the operation process of the parameter configuration method in the embodiment, the host drives the detection device to enter a parameter configuration mode, and then the first data packet is sent to the detection device to change the original parameters of the detection device, so that the parameter configuration of the detection device is realized, the parameter configuration method in the embodiment can realize the parameter configuration under the condition of hardly increasing the cost and the volume of the detection device, the problem that the parameters are difficult to modify after the detection device is packaged or the parameters are required to be modified with larger configuration cost is solved, and the cost of the configuration parameters of the detection device is effectively reduced.
In addition, when the parameter drift and the low precision of the detection device occur, the application of the parameter configuration method in the embodiment can adjust the parameters of the detection device in real time, so that the degradation use or scrapping of the detection device is avoided, and the resource saving is facilitated.
Example 2:
as shown in fig. 1, a parameter configuration method is implemented based on a parameter configuration system; the parameter configuration system comprises a detection device and a host, wherein the detection device is electrically connected with the host; the parameter configuration method is used for configuring original parameters of the detection device;
specifically, in this embodiment, the detection device includes a sensor, a processor, and a loop power supply circuit that are electrically connected in sequence, where the loop power supply circuit is electrically connected to the host; the detection device further comprises a power circuit, wherein a controlled end of the power circuit is electrically connected with the loop power supply circuit, and a power output end of the power circuit is electrically connected with the sensor and the processor; the parameter configuration method is used for configuring the original parameters of the sensor in the detection device. Specifically, the sensor in this embodiment is a two-wire sensor, and the general two-wire sensor can be connected to the host computer.
The detection device in this embodiment may be implemented by using a vibration sensor in application number 202021273587.0 and a host electrically connected to the vibration sensor. Specifically, the sensor may be, but not limited to, implemented using a MEMS (Micro-Electro-Mechanical System, microelectromechanical system) acceleration sensor of model KX126-1063, which is configured to receive the vibration signal, convert it into a digital signal, and send it to the processor. The processor is used for acquiring the digital signal sent by the sensor, converting the digital signal into vibration displacement data and then sending the vibration displacement data to the loop power supply circuit; the processor is also used for controlling the working mode of the sensor; in this embodiment, the processor may be implemented by, but not limited to, a processor model STM32L432 KB. The loop power supply circuit is used for receiving the vibration displacement data sent by the processor, converting the vibration displacement data into a current signal of 4-20mA and outputting the current signal to the upper computer; the loop power supply circuit includes a loop transmitter, the signal input end of the loop transmitter is electrically connected with the processor, the power input end of the loop transmitter is electrically connected with the power supply circuit, in this embodiment, the power input end and the signal output end of the loop transmitter are electrically connected with the upper computer, and the loop transmitter can be realized by adopting a model number XTR117, but not limited to the loop transmitter. And the power supply circuit is used for providing power support for the sensor, the processor and the loop power supply circuit. In this embodiment, the power supply circuit includes a voltage converter implemented using a power chip model MAX 17530/50.
The parameter configuration method comprises the following steps:
the host drives the detection device into a parameter configuration mode.
Specifically, when the host drives the detection device to enter the parameter configuration mode, the specific steps are as follows:
the host sends a parameter configuration instruction to the loop power supply circuit;
the loop power supply circuit receives the parameter configuration instruction, and then drives the power supply circuit to supply power to the sensor and the processor; specifically, the drive power supply circuit supplies power to the sensor and the processor at a first predetermined voltage. At this time, the power supply voltage of the power supply circuit to the sensor is a first predetermined voltage; in this embodiment, the first predetermined voltage is 10V, and since the power supply voltage of most of the sensors is +24v, the power supply voltage is expanded to +15v to +30v, and the first predetermined voltage of 10V is selected to supply power to the sensors, so as to start the sensors, and the sensors enter the parameter configuration mode, so that the parameter configuration voltage and the power supply voltage can be effectively prevented from collision.
The processor sends an instruction to enter a low power consumption mode to the sensor, and the sensor enters the low power consumption mode. The low power consumption is entered for lower power consumption of the whole sensor, so that the whole current of the whole system does not exceed 2.5mA under the condition of 10V supply voltage. When the sensor enters a low power consumption mode, the power consumption can be reduced by reducing the working module, reducing the working main frequency and the like, the low power consumption of the embodiment mainly reduces the operating frequency of the sensor, and the operating frequency of the sensor is reduced from 80MHz to 168MHz, so that the power consumption is reduced to about 1/4 of the original power consumption.
The processor detects the power supply voltage of the sensor and judges whether the power supply voltage is in a parameter configuration voltage range, wherein the parameter configuration voltage range is as follows: if the voltage is 10V-15V, the processor sends a command for entering a parameter configuration mode to the sensor, the sensor receives the command for entering the parameter configuration mode and then enters the next step; if not, the processor sends a command for entering the normal working mode to the sensor, and the sensor receives the command for entering the normal working mode.
In this embodiment, if the power supply voltage from the processor to the sensor is within the normal range (+15v to +30v), the sensor is not driven into the parameter configuration mode. In addition, during normal operation of the sensor, even if the voltage is within 10V, the parameter configuration mode is not entered, so that the voltage in the use of the sensor/transmitter is prevented from being lower than the normal power supply voltage. The processor rainbow drives the sensor into the parameter configuration mode only when the sensor begins to power on and the power supply of the sensor is within the parameter configuration voltage range.
The method comprises the steps that a host sends a first data packet to a detection device, wherein the first data packet comprises a writing command byte and a target parameter byte;
the detection device receives the first data packet, and then replaces original parameters in the detection device with target parameters according to the writing command bytes and the target parameter bytes in the first data packet;
specifically, when the detection device replaces the original parameters in the detection device with the target parameters according to the write command bytes and the target parameter bytes in the first data packet, the specific steps are as follows:
the detection device replaces original parameters in the detection device with target parameters according to the writing command bytes and the target parameter bytes in the first data packet;
the detection device feeds back the first data packet to the host according to the received first data packet. By executing the step, the accuracy of data transmission can be ensured, and a user can grasp the accuracy of data received by the detection device through the host.
The host sends a second data packet to the detection device, wherein the second data packet comprises a read command byte and a parameter specification byte;
the detection device feeds back the parameter data matched with the parameter specification bytes in the detection device according to the read command bytes and the parameter specification bytes in the second data packet.
It should be noted that, the order of sending the first data packet and the second data packet to the detection device by the host is not limited, the host sends the first data packet to the detection device to modify the parameters in the detection device, and the host sends the second data packet to the detection device to receive the current parameters of the detection device, so that the user can grasp the existing precision of the detection device through the host.
The host drive detection device exits the parameter configuration mode.
Specifically, when the host driving detection device exits the parameter configuration mode, the following steps are adopted:
the host sends a third data packet to the detection device, wherein the third data packet comprises a stop command byte;
the detection device receives the third data packet and exits the parameter configuration mode according to a stop command byte in the third data packet.
In this embodiment, as shown in fig. 2, each of the first data packet, the second data packet, and the third data packet further includes a header byte and a trailer byte, where the header byte is located at a first position of the first data packet, the second data packet, or the third data packet, and the trailer byte is located at a last position of the first data packet, the second data packet, or the third data packet. The arrangement of the header byte and the trailer byte is convenient for the detection device and/or the host to confirm whether the data packet is complete.
Specifically, when the host sends a data packet to the detection device, the magnitude of the power supply voltage sent by the power supply circuit to the sensor in the detection device is changed to simulate the data level, for example, +10V output by the power supply circuit is taken as a low level, +12V output by the power supply circuit is taken as a high level, the high level or the low level lasts for a preset time T, when the power supply circuit sends 8 high levels and/or low levels to the detection device, namely one data byte is formed, and a plurality of data bytes are combined to form one data packet.
When the detecting device sends a data packet to the host, the sensor in the detecting device outputs current to the host to simulate high and low levels, for example, 2.5mA current output by the sensor in the detecting device is taken as low level, 3.3mA current output by the sensor in the detecting device is taken as high level, the high level or the low level lasts for a preset time T, and when the sensor transmits 8 high levels and/or low levels to the host, one data byte is formed; a plurality of data bytes are combined to form a data packet.
In order to distinguish data bytes, when the detection device sends a data packet to the host or the host sends a data packet to the detection device, the interval time of the data bytes in the data packet is set to be larger than 9*T so as to avoid the problem that the detection device and the host mix up the front data byte and the rear data byte.
The predetermined time T represents the hold time of each data bit in each byte, so the length of the predetermined time T determines the rate at which the parameter configuration host communicates with the sensor. The selection of the predetermined time T is related to the processing performance inside the sensor, because in the configuration mode, the sensor is in the low power mode, the performance of the internal MCU cannot be fully exerted, but t=1 ms (millisecond) can be generally guaranteed, and as the process and performance of the processor in the detection device are improved, the predetermined time T can be smaller, and a higher data transmission rate can be obtained. The predetermined time T may be increased to reduce the power consumption of the detection device. The predetermined time T in this embodiment is 1ms (millisecond).
In addition, when the host driving detection device exits the parameter configuration mode, the following steps can be adopted:
the host sends a normal operation instruction to the loop power supply circuit;
the loop power supply circuit receives a normal operation instruction and then drives the power supply circuit to normally supply power to the detection device and the processor;
the processor sends an instruction for entering the normal working mode to the detection device, and the detection device receives the instruction of the normal working mode and exits the parameter configuration mode and then enters the normal working mode.
It will be apparent to those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, or they may alternatively be implemented in program code executable by computing devices, such that they may be stored in a memory device for execution by the computing devices, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps within them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The various embodiments described above are merely illustrative and may or may not be physically separate if reference is made to the unit being described as separate components; if a component is referred to as being a unit, it may or may not be a physical unit, may be located in one place, or may be distributed over multiple network elements. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
The above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some of the technical features thereof can be replaced by equivalents. Such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.
Finally, it should be noted that the invention is not limited to the alternative embodiments described above, but can be used by anyone in various other forms of products in the light of the present invention. The above detailed description should not be construed as limiting the scope of the invention, which is defined in the claims and the description may be used to interpret the claims.

Claims (6)

1. A parameter configuration method is characterized in that: the parameter configuration method is realized based on a parameter configuration system; the parameter configuration system comprises a detection device and a host, wherein the detection device is electrically connected with the host; the parameter configuration method comprises the following steps:
the host drives the detection device to enter a parameter configuration mode;
the method comprises the steps that a host sends a first data packet to a detection device, wherein the first data packet comprises a writing command byte and a target parameter byte;
the detection device receives the first data packet, and then replaces original parameters in the detection device with target parameters according to the writing command bytes and the target parameter bytes in the first data packet;
the host driving detection device exits the parameter configuration mode; the detection device comprises a sensor, a processor and a loop power supply circuit which are electrically connected in sequence, wherein the loop power supply circuit is electrically connected with the host; the detection device further comprises a power supply circuit, wherein a controlled end of the power supply circuit is electrically connected with the loop power supply circuit, a power supply output end of the power supply circuit is electrically connected with the sensor and the processor, and the sensor is a two-wire sensor; the parameter configuration method is used for configuring the original parameters of the sensor in the detection device; when the host driving detection device enters a parameter configuration mode, the specific steps are as follows:
the host sends a parameter configuration instruction to the loop power supply circuit;
the loop power supply circuit receives the parameter configuration instruction, and then drives the power supply circuit to supply power to the sensor and the processor;
the processor detects the power supply voltage of the sensor and judges whether the power supply voltage is in the range of the parameter configuration voltage, if so, the processor sends a command for entering the parameter configuration mode to the sensor, the sensor receives the command for entering the parameter configuration mode and then enters the next step; if not, the processor sends a command for entering a normal working mode to the sensor, and the sensor receives the command for entering the normal working mode; in the normal working process of the sensor, even if the power supply voltage is in the parameter configuration voltage range, the sensor cannot enter the parameter configuration mode, and only when the sensor starts to be electrified and the power supply voltage of the sensor is in the parameter configuration voltage range, the processor drives the sensor to enter the parameter configuration mode; after the loop power supply circuit drives the power supply circuit to supply power to the sensor and the processor, the sensor enters a parameter configuration mode and further comprises the following steps:
the processor sends an instruction for entering a low power consumption mode to the sensor, and the sensor enters the low power consumption mode; after the loop power supply circuit receives the parameter configuration instruction, the loop power supply circuit drives the power supply circuit to supply power to the sensor and the processor at a first preset voltage.
2. A method of configuring parameters according to claim 1, wherein: the detection device replaces the original parameters in the detection device with the target parameters according to the writing command bytes and the target parameter bytes in the first data packet, and then the method further comprises the following steps:
the detection device feeds back the first data packet to the host according to the received first data packet.
3. A method of configuring parameters according to claim 1, wherein: the first data packet further comprises a packet header byte and a packet tail byte, wherein the packet header byte is positioned at the head of the first data packet, and the packet tail byte is positioned at the tail of the first data packet.
4. A method of configuring parameters according to claim 1, wherein: after the host drive detection device enters the parameter configuration mode and before the host drive detection device exits the parameter configuration mode, the method further comprises the following steps:
the host sends a second data packet to the detection device, wherein the second data packet comprises a read command byte and a parameter specification byte;
the detection device feeds back the parameter data matched with the parameter specification bytes in the detection device according to the read command bytes and the parameter specification bytes in the second data packet.
5. A method of configuring parameters according to claim 1, wherein: when the host driving detection device exits the parameter configuration mode, the specific steps are as follows:
the host sends a third data packet to the detection device, wherein the third data packet comprises a stop command byte;
the detection device receives the third data packet and exits the parameter configuration mode according to a stop command byte in the third data packet.
6. A method of configuring parameters according to claim 1, wherein: when the host driving detection device exits the parameter configuration mode, the specific steps are as follows:
the host sends a normal operation instruction to the loop power supply circuit;
the loop power supply circuit receives a normal operation instruction and then drives the power supply circuit to normally supply power to the detection device and the processor;
the processor sends an instruction for entering the normal working mode to the detection device, and the detection device receives the instruction of the normal working mode and exits the parameter configuration mode and then enters the normal working mode.
CN202010682817.7A 2020-07-15 2020-07-15 Parameter configuration method Active CN111930437B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010682817.7A CN111930437B (en) 2020-07-15 2020-07-15 Parameter configuration method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010682817.7A CN111930437B (en) 2020-07-15 2020-07-15 Parameter configuration method

Publications (2)

Publication Number Publication Date
CN111930437A CN111930437A (en) 2020-11-13
CN111930437B true CN111930437B (en) 2024-03-22

Family

ID=73313477

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010682817.7A Active CN111930437B (en) 2020-07-15 2020-07-15 Parameter configuration method

Country Status (1)

Country Link
CN (1) CN111930437B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1882944A (en) * 2003-11-24 2006-12-20 诺基亚有限公司 Configuration of a terminal
CN101000585A (en) * 2006-12-06 2007-07-18 北京飞天诚信科技有限公司 Method and device for implementing CCID equipment
CN202255444U (en) * 2011-09-09 2012-05-30 陈雅莹 Calibration and programming tool for sensor
CN103063234A (en) * 2011-07-11 2013-04-24 洛克威尔自动控制技术股份有限公司 Electric transducer and method for automatically selecting sourcing mode thereof
CN103489429A (en) * 2012-06-11 2014-01-01 联想(北京)有限公司 Method for adjusting brightness and electronic equipment
CN103647901A (en) * 2013-12-24 2014-03-19 中国科学院半导体研究所 Low-cost image data collection transmission system free of external storage and based on field programmable gate array (FPGA)
CN104158678A (en) * 2013-05-13 2014-11-19 联想(新加坡)私人有限公司 Configuring a device based on proximity to other devices
CN104374465A (en) * 2014-11-18 2015-02-25 浙江大学城市学院 Subway low-frequency vibration test device and method based on fiber bragg grating sensors
CN104615463A (en) * 2015-01-26 2015-05-13 青岛海信电器股份有限公司 System attribute setting method and terminal
CN109041098A (en) * 2017-06-12 2018-12-18 维沃移动通信有限公司 A kind of terminal measuring configuration method, terminal and base station
CN109155888A (en) * 2016-02-29 2019-01-04 韦斯伯技术公司 The piezoelectric MEMS element for detecting the signal of Sound stimulat for generating expression
CN110361673A (en) * 2019-06-27 2019-10-22 中国航空工业集团公司雷华电子技术研究所 A kind of power detection module parameter adjustment system and its method of adjustment
CN110831878A (en) * 2017-07-14 2020-02-21 因温特奥股份公司 Method for configuring safety-critical configuration parameters in a people conveyor

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6973535B2 (en) * 2001-09-14 2005-12-06 Cornice, Inc. Digital device configuration and method
AT7781U3 (en) * 2005-04-21 2006-05-15 Piezocryst Advanced Sensorics MEASURING EXAMPLES WITH AT LEAST ONE SAW ELEMENT
EP2063357A1 (en) * 2007-11-21 2009-05-27 Pepperl + Fuchs Gmbh Transportable data storage and method for transferring configuration files from an external computer to a sensor
US9971609B2 (en) * 2014-06-05 2018-05-15 American Megatrends, Inc. Thermal watchdog process in host computer management and monitoring
US9852094B2 (en) * 2015-12-07 2017-12-26 Allegro Microsystems, Llc Device configuration using a magnetic field

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1882944A (en) * 2003-11-24 2006-12-20 诺基亚有限公司 Configuration of a terminal
CN101000585A (en) * 2006-12-06 2007-07-18 北京飞天诚信科技有限公司 Method and device for implementing CCID equipment
CN103063234A (en) * 2011-07-11 2013-04-24 洛克威尔自动控制技术股份有限公司 Electric transducer and method for automatically selecting sourcing mode thereof
CN202255444U (en) * 2011-09-09 2012-05-30 陈雅莹 Calibration and programming tool for sensor
CN103489429A (en) * 2012-06-11 2014-01-01 联想(北京)有限公司 Method for adjusting brightness and electronic equipment
CN104158678A (en) * 2013-05-13 2014-11-19 联想(新加坡)私人有限公司 Configuring a device based on proximity to other devices
CN103647901A (en) * 2013-12-24 2014-03-19 中国科学院半导体研究所 Low-cost image data collection transmission system free of external storage and based on field programmable gate array (FPGA)
CN104374465A (en) * 2014-11-18 2015-02-25 浙江大学城市学院 Subway low-frequency vibration test device and method based on fiber bragg grating sensors
CN104615463A (en) * 2015-01-26 2015-05-13 青岛海信电器股份有限公司 System attribute setting method and terminal
CN109155888A (en) * 2016-02-29 2019-01-04 韦斯伯技术公司 The piezoelectric MEMS element for detecting the signal of Sound stimulat for generating expression
CN109041098A (en) * 2017-06-12 2018-12-18 维沃移动通信有限公司 A kind of terminal measuring configuration method, terminal and base station
CN110831878A (en) * 2017-07-14 2020-02-21 因温特奥股份公司 Method for configuring safety-critical configuration parameters in a people conveyor
CN110361673A (en) * 2019-06-27 2019-10-22 中国航空工业集团公司雷华电子技术研究所 A kind of power detection module parameter adjustment system and its method of adjustment

Also Published As

Publication number Publication date
CN111930437A (en) 2020-11-13

Similar Documents

Publication Publication Date Title
CN102047615B (en) Serial-peripheral interface with reduced number of connection lines
JP2635837B2 (en) Display system
CN101853000B (en) One-tape-multiple imaging box chip, method using same, imaging system and imaging box
CN103823776A (en) Unibus in communication with master equipment and slave equipment and communication method
WO2003077995B1 (en) Device telemetry module with configurable physical layer for use with an implantable medical device
CN105677598B (en) The module and method of multiple MEMS sensor data are quickly read based on I2C interface
RU2416819C2 (en) Method, computer programme product and device for connecting to memory card
CN111435927A (en) Fast link turnaround using MIPI D-PHY
CN110457744A (en) A kind of SD/SDIO device emulation model framework and its design method
CN111930437B (en) Parameter configuration method
CN105446837A (en) Method, device and system for detecting whether IIC (inter-integrated circuit) interface device is connected
CN112379660A (en) UART for automobile automatic driving domain controller and debugging system and method
CN111026691B (en) OWI communication equipment based on APB bus
CN105354166B (en) Robot and the data transmission method being applicable in
JP2000293485A (en) Communication interface
CN107053169B (en) Bus type intelligent servo driving system, robot and method
CN102621950A (en) Pure electric vehicle carload controller refreshing instrument and refreshing method
JP2958601B2 (en) Data communication method
US20120084474A1 (en) Interface for communication between sensing devices and i2c bus
CN214412730U (en) Motor driver with infrared communication function
JP2000324896A (en) Data transmission system and image forming apparatus
CN106970891B (en) Method, device and system for interaction between microprocessor and peripheral
CN221765962U (en) Rectifier PLC control port mapping module based on STM32
KR100438987B1 (en) Parallel input/output apparatus for distributed control system
CN113960951A (en) Novel dinosaur model control system

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