CN114167338B - Single-point voltage calibration and calibration method and device - Google Patents

Single-point voltage calibration and calibration method and device Download PDF

Info

Publication number
CN114167338B
CN114167338B CN202111481358.7A CN202111481358A CN114167338B CN 114167338 B CN114167338 B CN 114167338B CN 202111481358 A CN202111481358 A CN 202111481358A CN 114167338 B CN114167338 B CN 114167338B
Authority
CN
China
Prior art keywords
voltage
intelligent electronic
slope value
electronic equipment
line pin
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
CN202111481358.7A
Other languages
Chinese (zh)
Other versions
CN114167338A (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.)
Guangdong Transtek Medical Electronics Co Ltd
Original Assignee
Guangdong Transtek Medical Electronics 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 Guangdong Transtek Medical Electronics Co Ltd filed Critical Guangdong Transtek Medical Electronics Co Ltd
Priority to CN202111481358.7A priority Critical patent/CN114167338B/en
Publication of CN114167338A publication Critical patent/CN114167338A/en
Application granted granted Critical
Publication of CN114167338B publication Critical patent/CN114167338B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R35/00Testing or calibrating of apparatus covered by the other groups of this subclass
    • G01R35/02Testing or calibrating of apparatus covered by the other groups of this subclass of auxiliary devices, e.g. of instrument transformers according to prescribed transformation ratio, phase angle, or wattage rating
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Telephone Function (AREA)
  • Measuring Pulse, Heart Rate, Blood Pressure Or Blood Flow (AREA)

Abstract

The application provides a single-point voltage calibration and calibration method and a single-point voltage calibration and calibration device, which are applied to a calibrator, wherein keys are arranged on the calibrator, and the method comprises the following steps: when a user touches a key, a touch signal is generated; after the communication connection with the intelligent electronic equipment is successfully established according to the touch signal, detecting the first voltage of the intelligent electronic equipment at the current moment, and generating a control instruction; transmitting a control instruction to the intelligent electronic equipment so that the intelligent electronic equipment detects the second voltage of the intelligent electronic equipment at the current moment according to the control instruction; receiving a second voltage sent by the intelligent electronic equipment, and comparing the first voltage with the second voltage to obtain a first comparison result; if the first comparison result is smaller than a first preset voltage threshold value, calculating a voltage slope value according to the first voltage and the second voltage; judging whether the voltage slope value meets the factory requirement; if the electric quantity detection value meets the requirement, the voltage slope value is sent to the intelligent electronic equipment, so that the electric quantity detection precision of the equipment and the consistency of mass production of products are improved.

Description

Single-point voltage calibration and calibration method and device
Technical Field
The application relates to the field of voltage testing, in particular to a single-point voltage calibration and calibration method and device.
Background
At present, intelligent electronic devices with communication and blood pressure measurement functions are required to acquire current accurate voltage so as to make corresponding indication and function realization, but due to environmental reasons, schemes and the like, actual measured values and theoretical values are often different. In actual production, errors of different schemes and resistors, internal resistance of a chip and the like can cause inconsistent actual partial pressure, and at the moment, an instrument is needed to calibrate the differential pressure, so that the requirements of high precision and product functions are met.
Meanwhile, the consistency of products can be different due to different schemes and different chips, and it is important to add a voltage calibration function during production.
Disclosure of Invention
Therefore, the application aims to provide a single-point voltage calibration method and device for intelligent electronic equipment with communication and blood pressure measurement functions, which does not need a fixed voltage stabilizing source as a calibration source, and the calibration method and device are actually adjusted to output by a calibrator, have definite system and simple circuit, can detect and calibrate in real time, and can solve errors caused by the internal resistance and resistance precision of a chip, thereby improving the precision of equipment electric quantity detection and the consistency of product mass production.
In a first aspect, an embodiment of the present application provides a single-point voltage calibration method, which is applied to a calibrator, where a key is provided on the calibrator, and the method includes:
when the user touches the key, a touch signal is generated;
powering up according to the touch signal, detecting the first voltage of the intelligent electronic device at the current moment after the communication connection with the intelligent electronic device is successfully established, and generating a control instruction;
the control instruction is sent to the intelligent electronic equipment, so that the intelligent electronic equipment detects the second voltage of the intelligent electronic equipment at the current moment according to the control instruction;
receiving the second voltage sent by the intelligent electronic equipment, and comparing the first voltage with the second voltage to obtain a first comparison result;
if the first comparison result is smaller than a first preset voltage threshold value, calculating a voltage slope value according to the first voltage and the second voltage;
judging whether the voltage slope value meets the factory requirement or not;
if yes, the voltage slope value is sent to the intelligent electronic equipment;
further, the determining whether the voltage slope value meets the factory requirement includes:
detecting a third voltage of the intelligent electronic device at the next time, and receiving a fourth voltage of the intelligent electronic device at the next time;
obtaining a fifth voltage according to the voltage slope value and the fourth voltage;
comparing the third voltage with the fifth voltage to obtain a second comparison result;
if the second comparison result is smaller than a second preset voltage threshold, the voltage slope value meets the factory requirement;
if the second comparison result is greater than or equal to the second preset voltage threshold, the voltage slope value does not meet the factory requirement;
further, the calculating a voltage slope value from the first voltage and the second voltage includes:
calculating the voltage slope value according to:
wherein K is the voltage slope value, V 1 For the first voltage, V 2 Is the second voltage;
further, after the voltage slope value is sent to the intelligent electronic device, the method further includes:
the intelligent electronic equipment stores the voltage slope value and takes the product of the voltage slope value and the second voltage as output voltage;
further, the calibration instrument is provided with a first serial clock line pin and a first serial data line pin, the intelligent electronic device is provided with a second serial clock line pin and a second serial data line pin, and after the communication connection with the intelligent electronic device is established successfully, the method further comprises:
after the touch signal is electrified, the initial state of the first serial clock line pin, the initial state of the first serial data line pin, the initial state of the second serial clock line pin and the initial state of the second serial data line pin are all configured to be high level;
the first serial clock line pin is configured to be low-level and then sent to the second serial clock line pin, so that the intelligent electronic equipment configures the second serial data line pin to be the low-level;
after the first serial data line pin receives the low level sent by the second serial data line pin, the first serial clock line pin is configured to be the high level and then sent to the second serial clock line pin, so that the intelligent electronic equipment configures the second serial data line pin to be the high level.
In a second aspect, an embodiment of the present application provides a single-point voltage calibration device, which is applied to a calibrator, where a key is provided on the calibrator, and the device includes:
the triggering module is used for generating a triggering signal when the user triggers the key;
the detection module is used for detecting the first voltage of the intelligent electronic device at the current moment and generating a control instruction after the communication connection between the detection module and the intelligent electronic device is successfully established according to the touch signal; the control instruction is sent to the intelligent electronic equipment, so that the intelligent electronic equipment detects the second voltage of the intelligent electronic equipment at the current moment according to the control instruction;
the comparison module is used for receiving the second voltage sent by the intelligent electronic equipment, and comparing the first voltage with the second voltage to obtain a first comparison result;
the calculating module is used for calculating a voltage slope value according to the first voltage and the second voltage under the condition that the first comparison result is smaller than a first preset voltage threshold value;
the judging module is used for judging whether the voltage slope value meets the factory requirement or not;
and the sending module is used for sending the voltage slope value to the intelligent electronic equipment under the condition of meeting the voltage slope value.
Further, the judging module is specifically configured to:
detecting a third voltage of the intelligent electronic device at the next time, and receiving a fourth voltage of the intelligent electronic device at the next time;
obtaining a fifth voltage according to the voltage slope value and the fourth voltage;
comparing the third voltage with the fifth voltage to obtain a second comparison result;
if the second comparison result is smaller than a second preset voltage threshold, the voltage slope value meets the factory requirement;
if the second comparison result is greater than or equal to the second preset voltage threshold, the voltage slope value does not meet the factory requirement;
further, the computing module is specifically configured to:
calculating the voltage slope value according to:
wherein K is the voltage slope value, V 1 For the first voltage, V 2 Is the second voltage.
In a third aspect, an embodiment of the present application provides an electronic device, including a memory, and a processor, where the memory stores a computer program executable on the processor, and where the processor implements a method as described above when executing the computer program.
In a fourth aspect, embodiments of the present application provide a computer readable medium having non-volatile program code executable by a processor, the program code causing the processor to perform the method as described above.
The embodiment of the application provides a single-point voltage calibration and calibration method and device, which are applied to a calibrator, wherein keys are arranged on the calibrator, and the method comprises the following steps: when a user touches a key, a touch signal is generated; after the communication connection with the intelligent electronic equipment is successfully established according to the touch signal, detecting the first voltage of the intelligent electronic equipment at the current moment, and generating a control instruction; transmitting a control instruction to the intelligent electronic equipment so that the intelligent electronic equipment detects the second voltage of the intelligent electronic equipment at the current moment according to the control instruction; receiving a second voltage sent by the intelligent electronic equipment, and comparing the first voltage with the second voltage to obtain a first comparison result; if the first comparison result is smaller than a first preset voltage threshold value, calculating a voltage slope value according to the first voltage and the second voltage; judging whether the voltage slope value meets the factory requirement; if the voltage slope value is met, the voltage slope value is sent to the intelligent electronic equipment, so that a fixed voltage stabilizing source is not needed to be used as a calibration source, the calibration instrument is used for actually adjusting output, the system is clear, the circuit is simple, the calibration can be detected and made in real time, the errors caused by the internal resistance and resistance precision of the chip can be solved, and the precision of equipment electric quantity detection and the consistency of mass production of products are further improved.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the application. The objectives and other advantages of the application will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the above objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present application, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a single-point voltage calibration method according to an embodiment of the present application;
FIG. 2 is a flowchart of step S106 in a single-point voltage calibration method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a calibration system for a sphygmomanometer according to a second embodiment of the present application;
fig. 4 is a schematic diagram of handshake interaction performed by the sphygmomanometer according to the second embodiment of the present application through IIC communication;
fig. 5 is a schematic diagram of a blood pressure meter according to a second embodiment of the present application performing handshake interaction level change through IIC communication;
FIG. 6 is a schematic diagram of a communication baud of a sphygmomanometer according to a third embodiment of the present application, wherein the communication baud performs handshake interaction through UART communication;
fig. 7 is a schematic diagram of a single-point voltage calibration device according to a fourth embodiment of the present application.
Icon:
1-a trigger module; 2-a detection module; 3-a comparison module; 4-a calculation module; 5-judging module; 6-a transmitting module.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the present application will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Embodiment one:
the single-point voltage calibration method provided by the embodiment of the application can be applied to intelligent electronic equipment with voltage measurement and communication functions, wherein the communication functions comprise wireless communication such as BLE (Bluetooth Low Energy, bluetooth low energy consumption), WIFI (wireless network communication technology), GRPS (General Packet Radio Service ) and the like and wired communication such as IIC (Inter-Integrated Circuit, integrated circuit bus), UART (Universal Asynchronous Receiver/Transmitter, general asynchronous transceiver), SPI (Serial Peripheral Interface ) and the like, but the communication must be ensured to be fast in response. The power supply of the calibrated device may not be provided by the calibration device, as long as the connection of the detection points between the calibration device and the calibrated device is ensured.
FIG. 1 is a flowchart of a single-point voltage calibration method according to an embodiment of the present application.
Referring to fig. 1, the single-point voltage calibration method is applied to a calibrator, and a key is arranged on the calibrator, and includes:
step S101, when a user touches a key, a touch signal is generated;
step S102, powering up according to a touch signal, detecting the first voltage of the intelligent electronic device at the current moment after the communication connection with the intelligent electronic device is established successfully, and generating a control instruction;
step S103, a control instruction is sent to the intelligent electronic equipment, so that the intelligent electronic equipment detects the second voltage of the intelligent electronic equipment at the current moment according to the control instruction;
step S104, receiving a second voltage sent by the intelligent electronic equipment, and comparing the first voltage with the second voltage to obtain a first comparison result;
step S105, if the first comparison result is smaller than a first preset voltage threshold, calculating a voltage slope value according to the first voltage and the second voltage;
step S106, judging whether the voltage slope value meets the factory requirement;
step S107, if yes, the voltage slope value is sent to the intelligent electronic equipment;
here, the intelligent electronic devices include all intelligent electronic devices with a voltage measurement function, such as an electronic sphygmomanometer, a health scale, and an intelligent bracelet.
Specifically, in this embodiment, the same voltage at the same time is used, and the calibrator and the intelligent electronic device perform multiple rapid acquisition and then filter to obtain a first voltage and a second voltage; the first voltage is the self voltage of the calibrator at the current moment, and the second voltage is the self voltage of the intelligent electronic equipment at the current moment; the check machine compares the first voltage with the second voltage to obtain a first comparison result; if the first comparison result is smaller than a first preset voltage threshold value, calculating a voltage slope value according to the first voltage and the second voltage; if the first comparison result exceeds a first preset voltage threshold value, reporting an error; judging whether the voltage slope value meets the factory requirement, and if so, sending the voltage slope value to intelligent electronic equipment by the check machine; the application can detect and calibrate in real time, can solve the error caused by the internal resistance and resistance precision of the chip, and further improves the precision of equipment electric quantity detection and the consistency of mass production of products. Wherein the first preset voltage threshold is 0.5V.
Further, referring to fig. 2, step S106 further includes the steps of:
step S201, detecting a third voltage of the intelligent electronic device at the next time and receiving a fourth voltage of the intelligent electronic device at the next time;
step S202, obtaining a fifth voltage according to the voltage slope value and the fourth voltage;
step S203, comparing the third voltage with the fifth voltage to obtain a second comparison result;
step S204, if the second comparison result is smaller than a second preset voltage threshold, the voltage slope value meets the factory requirement;
step S205, if the second comparison result is greater than or equal to a second preset voltage threshold, the voltage slope value does not meet the factory requirement;
here, the time difference between the next time and the current time is 500ms, the third voltage is the self voltage of the calibration instrument after the first voltage detects 500ms, the fourth voltage is the current voltage of the intelligent electronic device after the second voltage detects 500ms, and the second preset voltage threshold is 0.05V.
Further, calculating a voltage slope value from the first voltage and the second voltage includes:
the voltage slope value is calculated according to the following:
wherein K is a voltage slope value, V 1 At a first voltage of V 2 Is a second voltage.
Further, after sending the voltage slope value to the intelligent electronic device, the method further includes:
the intelligent electronic equipment stores the voltage slope value and takes the product of the voltage slope value and the second voltage as output voltage;
here, the intelligent electronic device further comprises a storage module for storing the voltage slope value.
Further, a first serial clock line pin and a first serial data line pin are arranged on the calibrator, a second serial clock line pin and a second serial data line pin are arranged on the intelligent electronic device, and after the communication connection with the intelligent electronic device is established successfully, the method further comprises:
after the touch signal is powered on, the initial state of the first serial clock line pin, the initial state of the first serial data line pin, the initial state of the second serial clock line pin and the initial state of the second serial data line pin are all configured to be high level;
the first serial clock line pin is configured to be low-level and then sent to the second serial clock line pin, so that the intelligent electronic equipment configures the second serial data line pin to be low-level;
after the first serial data line pin receives the low level sent by the second serial data line pin, the first serial clock line pin is configured to be high level and then sent to the second serial clock line pin, so that the intelligent electronic equipment configures the second serial data line pin to be high level;
the high level is realized by configuring input pull-up, so that the phenomenon of short circuit caused by high output and low output at the same time is prevented;
the waiting point of each state has a 60s error reporting processing mechanism, namely, if the time-out does not enter the next stage, the error reporting is prompted;
the IIC communication may be replaced by UART, SPI, or other wired communication.
The embodiment of the application provides a single-point voltage calibration method which is applied to a calibrator, wherein keys are arranged on the calibrator, and the method comprises the following steps: when a user touches a key, a touch signal is generated; after the communication connection with the intelligent electronic equipment is successfully established according to the touch signal, detecting the first voltage of the intelligent electronic equipment at the current moment, and generating a control instruction; transmitting a control instruction to the intelligent electronic equipment so that the intelligent electronic equipment detects the second voltage of the intelligent electronic equipment at the current moment according to the control instruction; receiving a second voltage sent by the intelligent electronic equipment, and comparing the first voltage with the second voltage to obtain a first comparison result; if the first comparison result is smaller than a first preset voltage threshold value, calculating a voltage slope value according to the first voltage and the second voltage; judging whether the voltage slope value meets the factory requirement; if the voltage slope value is met, the voltage slope value is sent to the intelligent electronic equipment, so that a fixed voltage stabilizing source is not needed to be used as a calibration source, the calibration instrument is used for actually adjusting output, the system is clear, the circuit is simple, the calibration can be detected and made in real time, the errors caused by the internal resistance and resistance precision of the chip can be solved, and the precision of equipment electric quantity detection and the consistency of mass production of products are further improved.
Embodiment two:
fig. 3 is a schematic diagram of a sphygmomanometer calibration system according to a second embodiment of the present application.
Referring to fig. 3, when the intelligent electronic device is a sphygmomanometer, the calibration system includes:
when the wiring of the calibrator and the sphygmomanometer is correct, a key on the calibrator is pressed to electrify the calibrator, so that the calibrator is started to work;
the check machine displays the correct version number and supplies power to the sphygmomanometer, and the check machine and the sphygmomanometer start communication handshake interaction.
Further, fig. 4 is a schematic diagram of handshake interaction performed by the sphygmomanometer according to the second embodiment of the present application through IIC communication;
fig. 5 is a schematic diagram of a blood pressure meter according to a second embodiment of the present application performing handshake interaction level change through IIC communication;
referring to fig. 4 and 5, the handshake interaction of the sphygmomanometer through IIC communication includes:
configuring a first SCL (serial clock line) pin, a first SDA (serial data line) pin and a second SCL pin and a second SDA pin on the intelligent electronic device on the calibrator to input a pull-up high level;
pressing a key, powering the sphygmomanometer by the calibrator, delaying for 1s, enabling the calibrator to enter a point A state, and enabling a first SCL pin to be configured to output a low level;
the second SCL pin detects that the first SCL pin is at a low level, the sphygmomanometer enters a B point state, and the second SDA pin is configured to output the low level;
when the first SD pin detects that the second SDA pin is at a low level, the calibrator enters a C point state, and the first SCL pin is configured to input a pull-up high level;
when the second SCL pin detects that the first SCL pin is at a high level, the sphygmomanometer enters a D point state, and the second SDA pin is configured to be input to pull up the high level.
Further, if the interaction is successful, a voltage calibration mode is entered;
the sphygmomanometer ensures that the self high-current device (such as an air pump air valve backlight and the like) is closed and the voltage detection configuration is opened, and the calibrator detects the self voltage V after waiting 500ms 1 Then sends a reading command of 0x43 through IIC protocol to make the sphygmomanometer carry out self voltage V 2 And send to the calibrator, both of which are simultaneouslyDetecting the voltage at the same point at the same moment to perform calibration;
if |V 1 -V 2 The method comprises the steps that (1) the calibration is successful when the I=0.5V, and a voltage slope value K is calculated so that the blood pressure passes through the IIC to store the voltage slope value K;
after waiting 500ms, the self voltage V 'of the calibrator is obtained at the same time' 1 And the self voltage V 'of the sphygmomanometer' 2
If |V' 1 -K×V′ 2 The voltage of the sphygmomanometer meets the standard when the I is 0.05V, and K is sent to a storage module of the sphygmomanometer for storage through 0x 1D;
here, in order to ensure that the voltage points between the two are basically the same, the operation of a high-current device of the sphygmomanometer, such as a backlight air pump air valve and the like, is reduced as much as possible, and the detection time of the sphygmomanometer and the check machine is within 100ms as much as possible when the two devices interact.
The embodiment of the application provides a single-point voltage calibration method which is applied to a calibrator, wherein keys are arranged on the calibrator, and the method comprises the following steps: when a user touches a key, a touch signal is generated; after the communication connection with the intelligent electronic equipment is successfully established according to the touch signal, detecting the first voltage of the intelligent electronic equipment at the current moment, and generating a control instruction; transmitting a control instruction to the intelligent electronic equipment so that the intelligent electronic equipment detects the second voltage of the intelligent electronic equipment at the current moment according to the control instruction; receiving a second voltage sent by the intelligent electronic equipment, and comparing the first voltage with the second voltage to obtain a first comparison result; if the first comparison result is smaller than a first preset voltage threshold value, calculating a voltage slope value according to the first voltage and the second voltage; judging whether the voltage slope value meets the factory requirement; if the voltage slope value is met, the voltage slope value is sent to the intelligent electronic equipment, so that a fixed voltage stabilizing source is not needed to be used as a calibration source, the calibration instrument is used for actually adjusting output, the system is clear, the circuit is simple, the calibration can be detected and made in real time, the errors caused by the internal resistance and resistance precision of the chip can be solved, and the precision of equipment electric quantity detection and the consistency of mass production of products are further improved.
Embodiment III:
UARTs, which are one type of asynchronous serial communication protocol, operate on the principle that each character of the transmitted data is transmitted bit by bit.
Wherein each bit has the following meaning:
start position: a logic "0" signal is first sent to indicate the start of a transmission of a character.
Data bits: immediately after the start bit. The number of data bits may be 4, 5, 6, 7, 8, etc. to constitute one character. ASCII codes are commonly used. The transmission starts from the lowest order bit and is clocked.
Parity bits: after the data bit is added with the bit, the bit number of the '1' is made to be even (even check) or odd (odd check) so as to check the correctness of data transmission.
Stop bit: which is an end flag of character data. May be a high level of 1 bit, 1.5 bits, 2 bits. Since the data is clocked on the transmission line and each device has its own clock, a small out-of-sync between the two devices in the communication is likely to occur. The stop bit is thus not merely indicative of the end of the transmission, but provides an opportunity for the computer to correct clock synchronization. The greater the number of bits available for the stall bit, the greater the tolerance for different clock synchronizations, but the slower the data transfer rate.
Idle bits: in a logic "1" state, indicating that no data is being transferred on the current line.
Baud rate: is an indicator for measuring the data transmission rate. Representing the number of symbols transmitted per second (symbol). The amount of information (number of bits) represented by a symbol is related to the order of the symbol. For example, 256-level symbols are used for transmission, each 8 bits represents a symbol, the data transmission rate is 120 characters/second, the baud rate is 120baud, and the bit rate is 120×8=960 bits/s. The concepts of the two are easy to be misplaced;
compared with IIC, UART can use single TXD (Transmit (tx) Data) as unidirectional communication, and directly Transmit Data according to slave machine through a certain baud rate. The received Data is only the Data on RXD (received) Data, and the received Data is converted into corresponding characters according to a certain baud rate. So the UART is provided with two data lines, the TXD of the slave is the RXD of the slave, and the RXD of the master is the TXD of the slave.
Fig. 6 is a schematic diagram of a communication baud of a sphygmomanometer according to a third embodiment of the present application, which performs handshake interaction through UART communication.
Handshaking interactions through UART communication include mode entry acknowledgements and communication baud acknowledgements.
The mode entry acknowledgement is the same as IIC communication, and the SDA is changed to TXD and the SCL is changed to RXD, and specifically, reference may be made to fig. 4 and fig. 5, which are not described herein.
Here, performing handshake interaction baud confirmation through UART communication includes:
the calibrator and the sphygmomanometer send a string of character strings to confirm the baud rate;
giving a blood pressure meter with a calibrating instrument TXD 'GOADJ';
after the sphygmomanometer RXD, TXD 'ACK' is given to the calibrator;
after calibrating the machine RXD, the TXD 'OK' is given to the sphygmomanometer;
after the sphygmomanometer RXD, TXD "ACK".
Embodiment four:
fig. 7 is a schematic diagram of a single-point voltage calibration device according to a fourth embodiment of the present application.
Referring to fig. 7, the single-point voltage calibration device is applied to a calibrator, on which a key is provided, and the device includes:
the triggering module 1 is used for generating a triggering signal when a user triggers a key;
the detection module 2 is used for detecting the first voltage of the intelligent electronic device at the current moment and generating a control instruction after the communication connection between the detection module and the intelligent electronic device is successfully established according to the touch signal; transmitting a control instruction to the intelligent electronic equipment so that the intelligent electronic equipment detects the second voltage of the intelligent electronic equipment at the current moment according to the control instruction;
the comparison module 3 is used for receiving the second voltage sent by the intelligent electronic equipment, and comparing the first voltage with the second voltage to obtain a first comparison result;
a calculating module 4, configured to calculate a voltage slope value according to the first voltage and the second voltage when the first comparison result is smaller than a first preset voltage threshold;
the judging module 5 is used for judging whether the voltage slope value meets the factory requirement;
and the sending module 6 is used for sending the voltage slope value to the intelligent electronic equipment under the condition of meeting the voltage slope value.
Further, the judging module 5 is specifically configured to:
detecting the third voltage of the intelligent electronic device at the next moment, and receiving the fourth voltage of the intelligent electronic device at the next moment;
obtaining a fifth voltage according to the voltage slope value and the fourth voltage;
comparing the third voltage with the fifth voltage to obtain a second comparison result;
if the second comparison result is smaller than a second preset voltage threshold value, the voltage slope value meets the factory requirement;
if the second comparison result is greater than or equal to the second preset voltage threshold, the voltage slope value does not meet the factory requirements.
Further, the calculating module 4 is specifically configured to:
the voltage slope value is calculated according to the following:
wherein K is a voltage slope value, V 1 At a first voltage of V 2 Is a second voltage.
The embodiment of the application provides a single-point voltage calibration device which is applied to a calibrator, wherein a key is arranged on the calibrator, and the single-point voltage calibration device comprises: when a user touches a key, a touch signal is generated; after the communication connection with the intelligent electronic equipment is successfully established according to the touch signal, detecting the first voltage of the intelligent electronic equipment at the current moment, and generating a control instruction; transmitting a control instruction to the intelligent electronic equipment so that the intelligent electronic equipment detects the second voltage of the intelligent electronic equipment at the current moment according to the control instruction; receiving a second voltage sent by the intelligent electronic equipment, and comparing the first voltage with the second voltage to obtain a first comparison result; if the first comparison result is smaller than a first preset voltage threshold value, calculating a voltage slope value according to the first voltage and the second voltage; judging whether the voltage slope value meets the factory requirement; if the voltage slope value is met, the voltage slope value is sent to the intelligent electronic equipment, so that a fixed voltage stabilizing source is not needed to be used as a calibration source, the calibration instrument is used for actually adjusting output, the system is clear, the circuit is simple, the calibration can be detected and made in real time, the errors caused by the internal resistance and resistance precision of the chip can be solved, and the precision of equipment electric quantity detection and the consistency of mass production of products are further improved.
The embodiment of the application also provides electronic equipment, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the steps of the single-point voltage calibration method provided by the embodiment when executing the computer program.
The embodiment of the application also provides a computer readable medium with non-volatile program code executable by a processor, wherein the computer readable medium stores a computer program, and the computer program executes the steps of the single-point voltage calibration method of the embodiment when being executed by the processor.
The computer program product provided by the embodiment of the present application includes a computer readable storage medium storing a program code, where instructions included in the program code may be used to perform the method described in the foregoing method embodiment, and specific implementation may refer to the method embodiment and will not be described herein.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described system and apparatus may refer to corresponding procedures in the foregoing method embodiments, which are not described herein again.
In addition, in the description of embodiments of the present application, unless explicitly stated and limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communication between two elements. The specific meaning of the above terms in the present application will be understood in specific cases by those of ordinary skill in the art.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In the description of the present application, it should be noted that the directions or positional relationships indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. are based on the directions or positional relationships shown in the drawings, are merely for convenience of describing the present application and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the present application. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above examples are only specific embodiments of the present application, and are not intended to limit the scope of the present application, but it should be understood by those skilled in the art that the present application is not limited thereto, and that the present application is described in detail with reference to the foregoing examples: any person skilled in the art may modify or easily conceive of the technical solution described in the foregoing embodiments, or perform equivalent substitution of some of the technical features, while remaining within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (8)

1. The single-point voltage calibration and calibration method is characterized by being applied to a calibrator, wherein keys are arranged on the calibrator, and the method comprises the following steps:
when the user touches the key, a touch signal is generated;
powering up according to the touch signal, detecting the first voltage of the intelligent electronic device at the current moment after the communication connection with the intelligent electronic device is successfully established, and generating a control instruction;
the control instruction is sent to the intelligent electronic equipment, so that the intelligent electronic equipment detects the second voltage of the intelligent electronic equipment at the current moment according to the control instruction;
receiving the second voltage sent by the intelligent electronic equipment, and comparing the first voltage with the second voltage to obtain a first comparison result;
if the first comparison result is smaller than a first preset voltage threshold value, calculating a voltage slope value according to the first voltage and the second voltage;
judging whether the voltage slope value meets the factory requirement or not;
if yes, the voltage slope value is sent to the intelligent electronic equipment;
the judging whether the voltage slope value meets the factory requirement comprises the following steps:
detecting a third voltage of the intelligent electronic device at the next time, and receiving a fourth voltage of the intelligent electronic device at the next time;
obtaining a fifth voltage according to the voltage slope value and the fourth voltage;
comparing the third voltage with the fifth voltage to obtain a second comparison result;
if the second comparison result is smaller than a second preset voltage threshold, the voltage slope value meets the factory requirement;
and if the second comparison result is greater than or equal to the second preset voltage threshold, the voltage slope value does not meet the factory requirement.
2. The single point voltage calibration method of claim 1, wherein said calculating a voltage slope value from said first voltage and said second voltage comprises:
calculating the voltage slope value according to:
wherein K is the voltage slope value, V 1 For the first voltage, V 2 Is the second voltage.
3. The single point voltage calibration method of claim 1, wherein after sending the voltage slope value to the intelligent electronic device, the method further comprises:
and the intelligent electronic device stores the voltage slope value and takes the product of the voltage slope value and the second voltage as output voltage.
4. The single-point voltage calibration method according to claim 1, wherein the calibrator is provided with a first serial clock line pin and a first serial data line pin, the intelligent electronic device is provided with a second serial clock line pin and a second serial data line pin, and after the communication connection with the intelligent electronic device is established successfully, the method further comprises:
after the touch signal is electrified, the initial state of the first serial clock line pin, the initial state of the first serial data line pin, the initial state of the second serial clock line pin and the initial state of the second serial data line pin are all configured to be high level;
the first serial clock line pin is configured to be low-level and then sent to the second serial clock line pin, so that the intelligent electronic equipment configures the second serial data line pin to be the low-level;
after the first serial data line pin receives the low level sent by the second serial data line pin, the first serial clock line pin is configured to be the high level and then sent to the second serial clock line pin, so that the intelligent electronic equipment configures the second serial data line pin to be the high level.
5. A single-point voltage calibration device, characterized in that is applied to school machine appearance, be provided with the button on the school machine appearance, the device includes:
the triggering module is used for generating a triggering signal when the user triggers the key;
the detection module is used for detecting the first voltage of the intelligent electronic device at the current moment and generating a control instruction after the communication connection between the detection module and the intelligent electronic device is successfully established according to the touch signal; the control instruction is sent to the intelligent electronic equipment, so that the intelligent electronic equipment detects the second voltage of the intelligent electronic equipment at the current moment according to the control instruction;
the comparison module is used for receiving the second voltage sent by the intelligent electronic equipment, and comparing the first voltage with the second voltage to obtain a first comparison result;
the calculating module is used for calculating a voltage slope value according to the first voltage and the second voltage under the condition that the first comparison result is smaller than a first preset voltage threshold value;
the judging module is used for judging whether the voltage slope value meets the factory requirement or not;
the sending module is used for sending the voltage slope value to the intelligent electronic equipment under the condition of meeting the voltage slope value;
the judging module is specifically configured to:
detecting a third voltage of the intelligent electronic device at the next time, and receiving a fourth voltage of the intelligent electronic device at the next time;
obtaining a fifth voltage according to the voltage slope value and the fourth voltage;
comparing the third voltage with the fifth voltage to obtain a second comparison result;
if the second comparison result is smaller than a second preset voltage threshold, the voltage slope value meets the factory requirement;
and if the second comparison result is greater than or equal to the second preset voltage threshold, the voltage slope value does not meet the factory requirement.
6. The single point voltage calibration device of claim 5, wherein the computing module is specifically configured to:
calculating the voltage slope value according to:
wherein K is the voltage slope value, V 1 For the first voltage, V 2 Is the second voltage.
7. An electronic device comprising a memory, a processor, the memory having stored thereon a computer program executable on the processor, characterized in that the processor implements the method of any of the preceding claims 1 to 4 when the computer program is executed.
8. A computer readable medium having non-volatile program code executable by a processor, the program code causing the processor to perform the method of any one of claims 1 to 4.
CN202111481358.7A 2021-12-06 2021-12-06 Single-point voltage calibration and calibration method and device Active CN114167338B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111481358.7A CN114167338B (en) 2021-12-06 2021-12-06 Single-point voltage calibration and calibration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111481358.7A CN114167338B (en) 2021-12-06 2021-12-06 Single-point voltage calibration and calibration method and device

Publications (2)

Publication Number Publication Date
CN114167338A CN114167338A (en) 2022-03-11
CN114167338B true CN114167338B (en) 2023-11-24

Family

ID=80483545

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111481358.7A Active CN114167338B (en) 2021-12-06 2021-12-06 Single-point voltage calibration and calibration method and device

Country Status (1)

Country Link
CN (1) CN114167338B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103901791A (en) * 2014-04-02 2014-07-02 联想(北京)有限公司 Response key touch operating method and device and electronic device
CN107329107A (en) * 2017-08-28 2017-11-07 华立科技股份有限公司 Ammeter falls zero line error calibration and detection method and system
CN108924366A (en) * 2018-07-26 2018-11-30 广州视源电子科技股份有限公司 Low-voltage reminding method and device, electronic equipment and storage medium
CN112526433A (en) * 2020-12-25 2021-03-19 河南省计量科学研究院 Lightning protection element tester calibration method based on timing voltage measurement method
CN113520307A (en) * 2020-04-20 2021-10-22 华为技术有限公司 Blood pressure measuring method and device and wearable equipment
CN114338266A (en) * 2021-12-21 2022-04-12 珠海一微半导体股份有限公司 Baud rate calibration method and calibration circuit of CAN controller

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103901791A (en) * 2014-04-02 2014-07-02 联想(北京)有限公司 Response key touch operating method and device and electronic device
CN107329107A (en) * 2017-08-28 2017-11-07 华立科技股份有限公司 Ammeter falls zero line error calibration and detection method and system
CN108924366A (en) * 2018-07-26 2018-11-30 广州视源电子科技股份有限公司 Low-voltage reminding method and device, electronic equipment and storage medium
CN113520307A (en) * 2020-04-20 2021-10-22 华为技术有限公司 Blood pressure measuring method and device and wearable equipment
CN112526433A (en) * 2020-12-25 2021-03-19 河南省计量科学研究院 Lightning protection element tester calibration method based on timing voltage measurement method
CN114338266A (en) * 2021-12-21 2022-04-12 珠海一微半导体股份有限公司 Baud rate calibration method and calibration circuit of CAN controller

Also Published As

Publication number Publication date
CN114167338A (en) 2022-03-11

Similar Documents

Publication Publication Date Title
US9486138B2 (en) Portable handheld medical diagnostic device having a mezzanine circuit board with a universal connection interface
TWI722645B (en) Blood glucose test strip and associated measuring method
CN208707674U (en) A kind of converter and test macro based on LIN agreement
US20100312082A1 (en) Embeddable modules for measuring blood glucose levels
CN107147553B (en) Method, device and equipment for adjusting Baud rate and frame format of slave station
BRPI1010904A2 (en) METHODS FOR DISPLAYING INFORMATION, AND FOR PRINTING FIELD DEVICE CONFIGURATION INFORMATION, AND, PORTABLE FIELD MAINTENANCE TOOL
JP2014086876A (en) Serial communication circuit, integrated circuit device, physical amount measurement device, electronic apparatus, mobile, and serial communication method
CN108011692A (en) A kind of data communications method for microcontroller
CN107688521A (en) A kind of server power supply detects circuit and detection method in place
CN114167338B (en) Single-point voltage calibration and calibration method and device
Augustynek et al. Non invasive measurement and visualizations of blood pressure
TWI431295B (en) Current loop detection system and current loop detection method thereof
US20230152871A1 (en) Electronic device and connecting device
CN111025194A (en) Interface cable connection detection device and interface module
KR20220011085A (en) Dongle apparatus for analyzing blood
CN109405949A (en) A kind of communication means based on 2.4G two-way communication intelligent broadcast scale
US20190146634A1 (en) Adjusting method of a virtual keyboard and touch device
TWI723708B (en) Stylus, method and system for updating stylus setting
JP4390725B2 (en) Telemeter communication equipment
US20140018655A1 (en) Blood glucose meter integrated with a computing or communication device
CN108255732B (en) Method for tracking running state of single chip microcomputer system
CN108132902B (en) UART-to-USB system and method capable of self-adapting to voltage
CN112346665A (en) Communication method, device, equipment, system and storage medium of solid state disk
CN101645804A (en) Veneer, communication system and method for detecting connection state of communication interface
US20190005810A1 (en) Information setting device and electronic appliance

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