CN111797293B - Data adjustment method, device, terminal equipment and storage medium - Google Patents

Data adjustment method, device, terminal equipment and storage medium Download PDF

Info

Publication number
CN111797293B
CN111797293B CN202010209041.7A CN202010209041A CN111797293B CN 111797293 B CN111797293 B CN 111797293B CN 202010209041 A CN202010209041 A CN 202010209041A CN 111797293 B CN111797293 B CN 111797293B
Authority
CN
China
Prior art keywords
product
pressure sensor
reference value
pressure
preset state
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
CN202010209041.7A
Other languages
Chinese (zh)
Other versions
CN111797293A (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.)
Shenzhen Horn Audio Co Ltd
Original Assignee
Shenzhen Horn Audio 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 Shenzhen Horn Audio Co Ltd filed Critical Shenzhen Horn Audio Co Ltd
Priority to CN202010209041.7A priority Critical patent/CN111797293B/en
Publication of CN111797293A publication Critical patent/CN111797293A/en
Application granted granted Critical
Publication of CN111797293B publication Critical patent/CN111797293B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01LMEASURING FORCE, STRESS, TORQUE, WORK, MECHANICAL POWER, MECHANICAL EFFICIENCY, OR FLUID PRESSURE
    • G01L1/00Measuring force or stress, in general
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01LMEASURING FORCE, STRESS, TORQUE, WORK, MECHANICAL POWER, MECHANICAL EFFICIENCY, OR FLUID PRESSURE
    • G01L11/00Measuring steady or quasi-steady pressure of a fluid or a fluent solid material by means not provided for in group G01L7/00 or G01L9/00
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/904Browsing; Visualisation therefor
    • 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/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Computational Linguistics (AREA)
  • Human Computer Interaction (AREA)
  • Measuring Fluid Pressure (AREA)

Abstract

The application is applicable to the technical field of data processing, and provides a data adjustment method, which comprises the following steps: when a reference value adjustment instruction is monitored, detecting whether the product is in a preset state; the product comprises at least one pressure sensor, and the preset state is that the electric quantity of the product is sufficient and the product is not subjected to external force; when the product is in a preset state, acquiring a first pressure value detected by each pressure sensor every first preset time; respectively calculating the average value of N first pressure values continuously detected by each pressure sensor to obtain a new reference value corresponding to each pressure sensor; updating the stored reference value in each pressure sensor to a corresponding new reference value. The reference value can be updated, so that a real pressure value can be accurately obtained when the pressure sensor detects the pressure, and the accuracy of the pressure sensor detection is improved.

Description

Data adjustment method, device, terminal equipment and storage medium
Technical Field
The application belongs to the technical field of data processing, and particularly relates to a data adjustment method, a data adjustment device, terminal equipment and a storage medium.
Background
The pressure sensor is the most commonly used sensor in industrial practice, and is widely applied to related products such as waistbands, wrist bands, insoles and the like, wherein the pressure sensor which adopts PP film swelling polarization and is packaged is gradually applied to pressure testing of the products because of the special flexibility and economic characteristics.
The existing pressure sensor is affected by factors such as working, materials or environment, and the like, so that the pressure sensor has basic pressure even if not pressed. If these base pressures are not removed, no real pressure is read. Particularly, when the multi-channel output exists, the base pressure of each channel is different, and if the base pressure is treated by the same base value, the accuracy of obtaining the real pressure data is not high when the pressure sensor detects the data.
Disclosure of Invention
The embodiment of the application provides a data adjustment method, a data adjustment device, terminal equipment and a storage medium, and aims to solve the problem that the accuracy of the existing detection pressure is not high.
In a first aspect, an embodiment of the present application provides a data adjustment method, including:
when a reference value adjustment instruction is monitored, detecting whether the product is in a preset state; the product comprises at least one pressure sensor, and the preset state is that the electric quantity of the product is sufficient and the product is not subjected to external force;
when the product is in a preset state, acquiring a first pressure value detected by each pressure sensor every first preset time;
respectively calculating the average value of N first pressure values continuously detected by each pressure sensor to obtain a new reference value corresponding to each pressure sensor; wherein N is larger than or equal to 2 and is an integer;
updating the stored reference value in each pressure sensor to a corresponding new reference value.
In a second aspect, an embodiment of the present application provides a data adjustment device, including:
the monitoring module is used for detecting whether the product is in a preset state or not when the reference value adjustment instruction is monitored; the product comprises at least one pressure sensor, and the preset state is that the electric quantity of the product is sufficient and the product is not subjected to external force;
the first acquisition module is used for acquiring a first pressure value detected by each pressure sensor every first preset time when the product is in a preset state;
the first calculation module is used for calculating average values of N first pressure values continuously detected by each pressure sensor respectively to obtain new reference values corresponding to each pressure sensor; wherein N is larger than or equal to 2 and is an integer;
and the updating module is used for updating the stored reference value in each pressure sensor into a corresponding new reference value.
In a third aspect, an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the data adjustment method described above when executing the computer program.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium storing a computer program, which when executed by a processor, implements the steps of the data adjustment method described above.
In a fifth aspect, embodiments of the present application provide a computer program product, which when run on an electronic device, causes the electronic device to perform the data adjustment method of any one of the first aspects above.
It will be appreciated that the advantages of the second to fifth aspects may be found in the relevant description of the first aspect, and are not described here again.
Compared with the prior art, the embodiment of the application has the beneficial effects that: according to the embodiment of the application, when the product is in the preset state, the new reference value can be calculated according to the monitored reference adjustment instruction to update the stored reference value in the pressure sensor, and the real pressure value can be accurately obtained when the pressure sensor detects the pressure through updating the reference value, so that the detection accuracy of the pressure sensor is improved.
It will be appreciated that the advantages of the second to fifth aspects may be found in the relevant description of the first aspect, and are not described here again.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following description will briefly introduce the drawings that are needed in the embodiments or the description of the prior art, it is obvious that the drawings in the following description are only some embodiments of the present application, 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 flow chart of a data adjustment method according to an embodiment of the present disclosure;
FIG. 2 is a flow chart of a data adjustment method according to another embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a data adjustment device according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a terminal device provided in an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system configurations, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in this specification and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
In addition, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used merely to distinguish between descriptions and are not to be construed as indicating or implying relative importance.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
The data adjustment method provided by the embodiment of the application can be applied to products such as a waistband, a wristband, an insole and the like comprising a pressure sensor, or terminal equipment in communication connection with the products, wherein the terminal equipment can be mobile phones, tablet computers, vehicle-mounted equipment, augmented reality (augmented reality, AR)/Virtual Reality (VR) equipment, notebook computers, ultra-mobile personal computer (UMPC), netbooks, personal digital assistants (personal digital assistant, PDA) and other terminal equipment, and the embodiment of the application does not limit the specific types of the terminal equipment.
In order to illustrate the technical solutions described in the present application, the following examples are provided.
Example 1
Referring to fig. 1, a data adjustment method provided in an embodiment of the present application includes:
step S101, detecting whether a product is in a preset state or not when a reference value adjustment instruction is monitored; the product comprises at least one pressure sensor, and the preset state is that the electric quantity of the product is sufficient and the product is not subjected to external force.
In application, the reference value adjustment command may be generated periodically by preset, or the reference value adjustment command may be directly input or transmitted. And detecting whether the state of the product is a preset state or not when the reference value alignment instruction is monitored.
For example, in an application scenario, when the product is an insole including a pressure sensor, it may be detected whether the insole is in a state where the amount of electricity is sufficient and no external force acts according to a mobile terminal in communication with the insole when a reference value adjustment instruction is detected.
In one embodiment, when the reference value adjustment command is monitored, detecting whether the product is in a preset state includes: when a reference value adjustment instruction is monitored, detecting the electric quantity of the product, and acquiring a second pressure value detected by each pressure sensor; and when the electric quantity is larger than the preset electric quantity, and the difference between the second pressure value detected by each pressure sensor and the corresponding stored reference value is within a preset error range, judging that the product is in a preset state. And when the reference value adjustment command is monitored, taking the pressure value detected by the pressure sensor at the moment as a second pressure value, and if the error between the second pressure value and the stored reference value is within a preset error range, indicating that no external force acts on the product at the moment.
In one embodiment, when the reference value adjustment command is monitored, detecting whether the product is in a preset state includes: when the reference value adjustment instruction is monitored, detecting whether a target instruction is received in a second preset time; the target instruction is an instruction indicating that the product has reached the preset state; and when the target instruction is received within the second preset time, judging that the product is in a preset state.
In the application, if the product needs to be subjected to reference value alignment, and when the product is in a preset state, a target instruction which indicates that the product is in sufficient electric quantity and has no external force effect can be sent or input, and when the reference value adjustment instruction is monitored, the product can be judged to be in the preset state when the target instruction is received.
Step S102, when the product is in a preset state, acquiring a first pressure value detected by each pressure sensor every first preset time.
In the application, when the product is judged to be in a state with sufficient electric quantity and no external force, continuously acquiring the pressure value detected by the pressure sensor every first preset time, and taking the detected pressure value as a first pressure value.
Step S103, calculating average values of N first pressure values continuously detected by each pressure sensor respectively to obtain new reference values corresponding to each pressure sensor;
wherein N is equal to or greater than 2 and is an integer.
In the application, when each pressure sensor continuously detects N first pressure values, average values of the N first pressure values of each pressure value are calculated respectively, and the average value corresponding to each pressure sensor is taken as a new reference value. The size of N may be preset, for example, set to 20, or may be set to 30, 40, 50, etc. for improving the accuracy, and specific values may be set according to actual requirements, which is not limited.
Step S104, updating the stored reference value in each pressure sensor to a corresponding new reference value.
In the application, after the new reference value of each pressure sensor is obtained, the original reference value of the corresponding pressure sensor is updated by the new reference value.
In one embodiment, after updating the reference value stored in each of the pressure sensors to a corresponding new reference value, the method includes: acquiring a third pressure value detected by the pressure sensor; calculating a difference value between the third pressure value and the new reference value, and taking the difference value as a real pressure value; and graphically displaying the real pressure value.
In application, after updating and adjusting the reference value, the actual pressure value detected by the pressure sensor is calculated by using the updated reference value, specifically, the pressure value detected by the pressure sensor (i.e. the third pressure value) is subtracted from the updated reference value to obtain the actual pressure value. If the product or the terminal device in communication connection with the product comprises a graphical display device (such as a display screen, etc.), the obtained real pressure value can be graphically displayed, so that the data of pressure change, calorie consumption, etc. can be seen on the graphical display device in real time. If the product is an insole, the step number can be calculated and displayed.
In one embodiment, the data adjustment method further comprises: detecting whether the product is in the preset state or not when an initialization instruction is monitored; and when the product is in the preset state, calling a prestored initialization process to initialize the product.
In the application, when the initial power-on is detected, an initialization instruction can be automatically generated, and when the product is in sufficient electric quantity and has no external force, a prestored initialization process is called to initialize the product. If the initialization fails during the initial power-up, the initialization can be continued when the preset condition is met during the second power-up. And after the product is successfully initialized, when the power is applied again, the initialization operation is not performed.
In one embodiment, the data adjustment method further comprises: the reference value adjustment command is periodically generated after the product is initialized. The reference value adjustment instruction may be set in advance, for example, the reference value adjustment instruction is set in advance at each power-up or the reference value adjustment instruction is set in accordance with time.
According to the embodiment of the application, when the product is in the preset state, the new reference value can be calculated according to the monitored reference adjustment instruction to update the stored reference value in the pressure sensor, and the real pressure value can be accurately obtained when the pressure sensor detects the pressure through updating the reference value, so that the detection accuracy of the pressure sensor is improved.
Example two
The present embodiment provides a data adjustment method, and the present embodiment is further described in the first embodiment, and the same or similar parts as those in the first embodiment can be referred to in the description related to the first embodiment, which is not repeated here. Referring to fig. 2, the data adjustment method in the present embodiment includes:
step S201, detecting whether a product is in a preset state or not when a reference value adjustment instruction is monitored;
the product comprises at least one pressure sensor, and the preset state is that the electric quantity of the product is sufficient and the product is not subjected to external force.
Step S202, when the product is in a preset state, acquiring a first pressure value detected by each pressure sensor every first preset time.
Step S203, calculating average values of N first pressure values continuously detected by each pressure sensor respectively to obtain new reference values corresponding to each pressure sensor;
wherein N is equal to or greater than 2 and is an integer.
Step S204, updating the stored reference value in each pressure sensor to a corresponding new reference value.
In this embodiment, where the steps S201, S202, S203, and S204 are the same as or similar to the steps S101, S102, S103, and S104, respectively, reference may be made to the related descriptions of the steps S101 to S104, and the detailed descriptions thereof are omitted herein.
In step S205, when a sensitivity adjustment instruction is received, a corresponding sensitivity coefficient is acquired.
In application, the corresponding sensitivity coefficient can be obtained by sending or inputting the sensitivity adjustment instruction, wherein the adjustment instruction comprises the sensitivity coefficient which is required to be adjusted correspondingly, and the corresponding sensitivity coefficient is obtained according to the received sensitivity adjustment instruction.
And step S206, taking the sensitivity coefficient as the sensitivity coefficient when the pressure sensor detects data.
In the application, the dynamic pressure range of the pressure sensor can be adjusted through the sensitivity coefficient, for example, the sensitivity requirement in an application scene is higher, and the pressure sensor can be set and adjusted to be high in sensitivity for detection; in another application scenario, the sensitivity requirement is not needed to be too sensitive, and the detection can be performed with lower sensitivity.
According to the embodiment of the application, when the product is in the preset state, on one hand, the new reference value can be calculated according to the monitored reference adjustment instruction to update the stored reference value in the pressure sensor, and the reference value can be updated, so that the real pressure value can be accurately obtained when the pressure sensor detects the pressure, and the detection accuracy of the pressure sensor is improved. On the other hand, the pressure dynamic range of the pressure sensor can be adjusted through the sensitivity coefficient, so that the flexibility of detection of the pressure sensor is improved.
Example III
Corresponding to the data adjustment method described in the above embodiments, fig. 3 shows a block diagram of the data adjustment device provided in the embodiment of the present application, and for convenience of explanation, only the portion relevant to the embodiment of the present application is shown. Referring to fig. 3, the apparatus includes:
the monitoring module 301 is configured to detect whether the product is in a preset state when the reference value adjustment instruction is monitored; the product comprises at least one pressure sensor, and the preset state is that the electric quantity of the product is sufficient and the product is not subjected to external force;
a first obtaining module 302, configured to obtain, when the product is in a preset state, a first pressure value detected by each pressure sensor at a first preset time interval;
a first calculating module 303, configured to calculate an average value of N first pressure values continuously detected by each pressure sensor, to obtain a new reference value corresponding to each pressure sensor; wherein N is larger than or equal to 2 and is an integer;
and an updating module 304, configured to update the reference value stored in each pressure sensor to a new reference value.
In one embodiment, the data adjustment device includes:
the second acquisition module is used for acquiring a corresponding sensitivity coefficient when receiving a sensitivity adjustment instruction;
and the adjusting module is used for taking the sensitivity coefficient as the sensitivity coefficient when the pressure sensor detects data.
In one embodiment, the monitoring module 301 includes:
the first monitoring unit is used for detecting the electric quantity of the product and acquiring a second pressure value detected by each pressure sensor when a reference value adjustment instruction is monitored;
and the detection unit is used for judging that the product is in a preset state when the electric quantity is larger than the preset electric quantity and the difference between the second pressure value detected by each pressure sensor and the corresponding stored reference value is within a preset error range.
In one embodiment, the monitoring module 301 includes:
the second monitoring unit is used for detecting whether a target instruction is received within a second preset time or not when the reference value adjustment instruction is monitored; the target instruction is an instruction indicating that the product has reached the preset state;
and the judging unit is used for judging that the product is in a preset state when the target instruction is received within a second preset time.
In one embodiment, the data adjustment device further comprises:
the detection module is used for detecting whether the product is in the preset state or not when the initialization instruction is monitored;
and the calling module is used for calling a prestored initialization process to initialize the product when the product is in the preset state.
In one embodiment, the data adjustment device further comprises:
and the instruction generation module is used for periodically generating the reference value adjustment instruction after the product is initialized.
In one embodiment, the data adjustment device further comprises:
the third acquisition module is used for acquiring a third pressure value detected by the pressure sensor;
the second calculation module is used for calculating the difference value between the third pressure value and the new reference value, and taking the difference value as a real pressure value;
and the display module is used for graphically displaying the real pressure value.
According to the embodiment of the application, when the product is in the preset state, the new reference value can be calculated according to the monitored reference adjustment instruction to update the stored reference value in the pressure sensor, and the real pressure value can be accurately obtained when the pressure sensor detects the pressure through updating the reference value, so that the detection accuracy of the pressure sensor is improved.
Example IV
As shown in fig. 4, an embodiment of the present invention further provides a terminal device 400 including: a processor 401, a memory 402 and a computer program 403, e.g. a data conditioning program of a pressure sensor, stored in said memory 402 and executable on said processor 401. The processor 401, when executing the computer program 403, implements the steps of the various data adjustment method embodiments described above, for example, the method steps of the first embodiment and/or the method steps of the second embodiment. The processor 401, when executing the computer program 403, implements the functions of the modules in the above-described device embodiments, such as the functions of the modules 301 to 304 shown in fig. 3.
Illustratively, the computer program 403 may be split into one or more modules that are stored in the memory 402 and executed by the processor 401 to complete the present invention. The one or more modules may be a series of computer program instruction segments capable of performing the specified functions describing the execution of the computer program 403 in the terminal device 400. For example, the computer program 403 may be divided into a first acquisition module, a first calculation module, an update module and a second acquisition module, where specific functions of each module are described in the third embodiment, and are not described herein.
The terminal device 400 may be a product such as a waistband, a wristband, or an insole including a pressure sensor, or a terminal device in communication connection with the product, where the terminal device may be a terminal device such as a mobile phone, a tablet computer, a vehicle-mounted device, an augmented reality/virtual reality device, a notebook computer, an ultra mobile personal computer), a netbook, or a personal digital assistant. The terminal device may include, but is not limited to, a processor 401 memory 402. It will be appreciated by those skilled in the art that fig. 4 is merely an example of a terminal device 400 and does not constitute a limitation of the terminal device 400, and may include more or less components than illustrated, or may combine certain components, or different components, e.g., the terminal device may further include an input-output device, a network access device, a bus, etc.
The processor 401 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 402 may be an internal storage unit of the terminal device 400, such as a hard disk or a memory of the terminal device 400. The memory 402 may also be an external storage device of the terminal device 400, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the terminal device 400. Further, the memory 402 may also include both an internal storage unit and an external storage device of the terminal device 400. The memory 402 is used for storing the computer program and other programs and data required by the terminal device. The memory 402 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other manners. For example, the apparatus/terminal device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical function division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated modules, 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 such understanding, the present invention may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the computer readable medium contains content that can be appropriately scaled according to the requirements of jurisdictions in which such content is subject to legislation and patent practice, such as in certain jurisdictions in which such content is subject to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; 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 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, and are intended to be included in the scope of the present invention.

Claims (9)

1. A method of data adjustment, comprising:
when a reference value adjustment instruction is monitored, detecting whether the product is in a preset state; the product comprises at least one pressure sensor, and the preset state is that the electric quantity of the product is sufficient and the product is not subjected to external force;
when the product is in a preset state, acquiring a first pressure value detected by each pressure sensor every first preset time;
respectively calculating the average value of N first pressure values continuously detected by each pressure sensor to obtain a new reference value corresponding to each pressure sensor; wherein N is larger than or equal to 2 and is an integer;
updating the stored reference value in each pressure sensor to a corresponding new reference value;
when the reference value adjustment instruction is monitored, detecting whether the product is in a preset state or not comprises the following steps:
when a reference value adjustment instruction is monitored, detecting the electric quantity of the product, and acquiring a second pressure value detected by each pressure sensor;
and when the electric quantity is larger than the preset electric quantity, and the difference between the second pressure value detected by each pressure sensor and the corresponding stored reference value is within a preset error range, judging that the product is in a preset state.
2. The data adjustment method according to claim 1, characterized in that the data adjustment method further comprises:
when a sensitivity adjustment instruction is received, a corresponding sensitivity coefficient is obtained;
and taking the sensitivity coefficient as the sensitivity coefficient when the pressure sensor detects data.
3. The data adjustment method according to claim 1, wherein detecting whether the product is in a preset state when the reference value adjustment instruction is detected, comprises:
when the reference value adjustment instruction is monitored, detecting whether a target instruction is received in a second preset time; the target instruction is an instruction indicating that the product has reached the preset state;
and when the target instruction is received within the second preset time, judging that the product is in a preset state.
4. A data adjustment method according to any one of claims 1 to 3, characterized in that the data adjustment method further comprises:
detecting whether the product is in the preset state or not when an initialization instruction is monitored;
and when the product is in the preset state, calling a prestored initialization process to initialize the product.
5. A data adjustment method according to any one of claims 1 to 3, characterized in that the data adjustment method further comprises:
the reference value adjustment command is periodically generated after the product is initialized.
6. A data adjustment method according to any one of claims 1 to 3, characterized by comprising, after updating the reference value stored in each of the pressure sensors to a corresponding new reference value:
acquiring a third pressure value detected by the pressure sensor;
calculating a difference value between the third pressure value and the new reference value, and taking the difference value as a real pressure value;
and graphically displaying the real pressure value.
7. A data adjustment device, comprising:
the monitoring module is used for detecting whether the product is in a preset state or not when the reference value adjustment instruction is monitored; the product comprises at least one pressure sensor, and the preset state is that the electric quantity of the product is sufficient and the product is not subjected to external force;
the first acquisition module is used for acquiring a first pressure value detected by each pressure sensor every first preset time when the product is in a preset state;
the first calculation module is used for calculating average values of N first pressure values continuously detected by each pressure sensor respectively to obtain new reference values corresponding to each pressure sensor; wherein N is larger than or equal to 2 and is an integer;
the updating module is used for updating the stored reference value in each pressure sensor into a corresponding new reference value;
the monitoring module includes:
the first monitoring unit is used for detecting the electric quantity of the product and acquiring a second pressure value detected by each pressure sensor when a reference value adjustment instruction is monitored;
and the detection unit is used for judging that the product is in a preset state when the electric quantity is larger than the preset electric quantity and the difference between the second pressure value detected by each pressure sensor and the corresponding stored reference value is within a preset error range.
8. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 6 when executing the computer program.
9. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the method according to any one of claims 1 to 6.
CN202010209041.7A 2020-03-23 2020-03-23 Data adjustment method, device, terminal equipment and storage medium Active CN111797293B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010209041.7A CN111797293B (en) 2020-03-23 2020-03-23 Data adjustment method, device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010209041.7A CN111797293B (en) 2020-03-23 2020-03-23 Data adjustment method, device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111797293A CN111797293A (en) 2020-10-20
CN111797293B true CN111797293B (en) 2024-03-29

Family

ID=72806409

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010209041.7A Active CN111797293B (en) 2020-03-23 2020-03-23 Data adjustment method, device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111797293B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113220189B (en) * 2020-01-21 2023-03-24 海信视像科技股份有限公司 Intelligent household equipment, display control method and storage medium
CN112674897B (en) * 2020-12-21 2021-12-21 深圳市力博得科技有限公司 Pressure data processing control method, control system and computer readable storage medium
CN112486345B (en) * 2021-02-02 2021-06-08 深圳市千分一智能技术有限公司 Processing method, device, terminal and storage medium for active pen writing abnormity
CN112507994B (en) * 2021-02-05 2021-06-18 深圳市汇顶科技股份有限公司 Method and device for determining pressure reference value, chip and electronic equipment
KR20220113872A (en) * 2021-02-05 2022-08-17 선전 구딕스 테크놀로지 컴퍼니, 리미티드 Methods, devices, chips and electronics for determining pressure thresholds
CN114176365A (en) * 2021-12-07 2022-03-15 珠海格力电器股份有限公司 Data processing method and device, electronic equipment and storage medium
CN114323424B (en) * 2021-12-13 2023-09-19 潍柴动力股份有限公司 Dynamic response detection method and device, electronic equipment and storage medium
CN114738680B (en) * 2022-04-26 2023-07-21 国机传感科技有限公司 Data processing system and data storage and recovery method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005147726A (en) * 2003-11-12 2005-06-09 Ihi Aerospace Co Ltd Barometric altimeter for flying body and its error correction method
CN203416381U (en) * 2013-07-02 2014-01-29 华平信息技术股份有限公司 Sensitivity maintenance and adjustment system for microphone
CN103862859A (en) * 2014-02-28 2014-06-18 天津长荣印刷设备股份有限公司 Pressure automatic adjusting system and work method thereof
CN108652636A (en) * 2018-06-29 2018-10-16 东莞英汉思机器人科技有限公司 Gait detection method based on pressure sensor and system
CN110440968A (en) * 2019-08-07 2019-11-12 深圳市前海胡桃科技有限公司 A kind of pressure detection method and pressure-detecting device of mobile carrier
CN110553786A (en) * 2019-10-11 2019-12-10 北京七星华创流量计有限公司 Pressure sensor compensation method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005147726A (en) * 2003-11-12 2005-06-09 Ihi Aerospace Co Ltd Barometric altimeter for flying body and its error correction method
CN203416381U (en) * 2013-07-02 2014-01-29 华平信息技术股份有限公司 Sensitivity maintenance and adjustment system for microphone
CN103862859A (en) * 2014-02-28 2014-06-18 天津长荣印刷设备股份有限公司 Pressure automatic adjusting system and work method thereof
CN108652636A (en) * 2018-06-29 2018-10-16 东莞英汉思机器人科技有限公司 Gait detection method based on pressure sensor and system
CN110440968A (en) * 2019-08-07 2019-11-12 深圳市前海胡桃科技有限公司 A kind of pressure detection method and pressure-detecting device of mobile carrier
CN110553786A (en) * 2019-10-11 2019-12-10 北京七星华创流量计有限公司 Pressure sensor compensation method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
RBF-NN和改进SA的压力传感器标定及其系统辨识的研究;程准等;《 机床与液压 》;第47卷(第21期);91-94 *

Also Published As

Publication number Publication date
CN111797293A (en) 2020-10-20

Similar Documents

Publication Publication Date Title
CN111797293B (en) Data adjustment method, device, terminal equipment and storage medium
CN109257507B (en) Method for adjusting screen brightness, mobile terminal and storage medium
CN112099661B (en) Pressure detection method and device and electronic equipment
CN111026367B (en) Micro-service arrangement method, device, terminal equipment and storage medium
CN111256802A (en) Calibration method of weighing device and weighing device
CN111813638B (en) Alarm information processing method and device and terminal equipment
CN110440968B (en) Pressure detection method and pressure detection device for mobile carrier
CN113126815B (en) Key response control method and device, terminal equipment and storage medium
US11696159B2 (en) Method, apparatus, and non-transitory computer readable medium for testing terminals
CN112114616B (en) Switching method of real-time clock, electronic equipment and computer storage medium
CN109257506B (en) Method for adjusting screen brightness, mobile terminal and storage medium
CN113543006B (en) Earphone testing method and device, electronic equipment and medium
CN113126814B (en) Key non-response correction method and device, terminal equipment and storage medium
CN110809083A (en) Mobile terminal information reminding method, mobile terminal and storage medium
CN110186560B (en) Ultraviolet numerical value correction method and system
CN109799715B (en) Data receiving method, device and terminal equipment
CN105551500A (en) Audio signal processing method and device
CN111862894A (en) Backlight brightness adjusting method, device, terminal and readable storage medium
CN111307195A (en) Universal sensor calibration method, device, equipment and computer readable storage medium
CN110730044A (en) Radio frequency test channel positioning method and device, radio frequency test system and control terminal
CN112415292A (en) Piezoelectric device on-line detection device and method
CN110095195A (en) Cable connector monitoring device, temperature correction method and corrector
CN114326230B (en) Flip-chip film, preparation method of flip-chip film and display panel
CN115235531B (en) Sensor correction method and device, terminal equipment and storage medium
CN115278504A (en) Earphone wearing state detection method and device and earphone

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