CN113940643B - Sampling control method, device, electronic equipment and storage medium - Google Patents

Sampling control method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113940643B
CN113940643B CN202111064156.2A CN202111064156A CN113940643B CN 113940643 B CN113940643 B CN 113940643B CN 202111064156 A CN202111064156 A CN 202111064156A CN 113940643 B CN113940643 B CN 113940643B
Authority
CN
China
Prior art keywords
sampling
configuration
scene
configurations
target
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
CN202111064156.2A
Other languages
Chinese (zh)
Other versions
CN113940643A (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.)
Chipsea Technologies Shenzhen Co Ltd
Original Assignee
Chipsea Technologies Shenzhen 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 Chipsea Technologies Shenzhen Co Ltd filed Critical Chipsea Technologies Shenzhen Co Ltd
Priority to CN202111064156.2A priority Critical patent/CN113940643B/en
Publication of CN113940643A publication Critical patent/CN113940643A/en
Application granted granted Critical
Publication of CN113940643B publication Critical patent/CN113940643B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/02Detecting, measuring or recording pulse, heart rate, blood pressure or blood flow; Combined pulse/heart-rate/blood pressure determination; Evaluating a cardiovascular condition not otherwise provided for, e.g. using combinations of techniques provided for in this group with electrocardiography or electroauscultation; Heart catheters for measuring blood pressure
    • A61B5/0205Simultaneously evaluating both cardiovascular conditions and different types of body conditions, e.g. heart and respiratory condition
    • A61B5/02055Simultaneously evaluating both cardiovascular condition and temperature
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/01Measuring temperature of body parts ; Diagnostic temperature sensing, e.g. for malignant or inflamed tissue

Landscapes

  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Cardiology (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Molecular Biology (AREA)
  • Veterinary Medicine (AREA)
  • Biophysics (AREA)
  • Pathology (AREA)
  • Engineering & Computer Science (AREA)
  • Biomedical Technology (AREA)
  • Physiology (AREA)
  • Medical Informatics (AREA)
  • Physics & Mathematics (AREA)
  • Surgery (AREA)
  • Animal Behavior & Ethology (AREA)
  • General Health & Medical Sciences (AREA)
  • Public Health (AREA)
  • Pulmonology (AREA)
  • Transmission Systems Not Characterized By The Medium Used For Transmission (AREA)
  • Dc-Dc Converters (AREA)

Abstract

The embodiment of the application provides a sampling control method, a device, electronic equipment and a storage medium, wherein the method comprises the steps of sampling according to sampling rule configuration and obtaining sampling data; the sampling rule configuration comprises at least one sampling configuration in a preset sampling configuration group, wherein the sampling configuration group comprises at least two sampling configurations, and each sampling configuration corresponds to one sampling scene; determining sampling scene requirements according to the sampling data; if the sampling scene requirement is changed, determining a target sampling scene which is required to be changed, and determining target sampling rule configuration corresponding to the target sampling scene in a sampling configuration group according to a preset relation; the preset relationship is used for representing the corresponding relationship between the sampling scene and the sampling rule configuration; and switching the sampling rule configuration to a target sampling rule configuration. The sampling control method provided by the embodiment of the application can effectively improve the efficiency of sampling configuration switching.

Description

Sampling control method, device, electronic equipment and storage medium
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a sampling control method, a device, an electronic device, and a storage medium.
Background
When the electronic device senses external information, the external information is generally sampled periodically according to a preset time sequence, which is also called PRF (Pulse Repetition Frequency ) sampling. In PRF sampling timing, it is required to sample by different sampling configurations in order to cope with different sampling scenarios. When the sampling scene is switched, the traditional sampling mode needs to stop sampling immediately, and new sampling configuration information is rewritten in a register group for storing the sampling configuration information according to the new sampling scene, and then resampling is performed according to the new sampling configuration information. Therefore, the traditional sampling mode needs to rewrite the whole group of registers when the sampling configuration is switched, and has complex steps and low efficiency.
Disclosure of Invention
In view of the above problems, embodiments of the present application provide a sampling control method, apparatus, electronic device, and storage medium, so as to solve the above technical problems.
In a first aspect, an embodiment of the present application provides a sampling control method, including: sampling is carried out according to the sampling rule configuration, and sampling data are obtained; the sampling rule configuration comprises at least one sampling configuration in a preset sampling configuration group, wherein the sampling configuration group comprises at least two sampling configurations, and each sampling configuration corresponds to one sampling scene; determining sampling scene requirements according to the sampling data; if the sampling scene requirement is changed, determining a target sampling scene which is required to be changed, and determining target sampling rule configuration corresponding to the target sampling scene in a sampling configuration group according to a preset relation; the preset relationship is used for representing the corresponding relationship between the sampling scene and the sampling rule configuration; and switching the sampling rule configuration to a target sampling rule configuration.
In a second aspect, an embodiment of the present application provides a sampling control device, where the device includes a sampling module, a scene determining module, a target determining module, and a switching module, where the sampling module is configured to sample according to a sampling rule, and obtain sampling data; the sampling rule configuration comprises at least one sampling configuration in a preset sampling configuration group, wherein the sampling configuration group comprises at least two sampling configurations, and each sampling configuration corresponds to one sampling scene; the scene determining module is used for determining sampling scene requirements according to the sampling data; the target determining module is used for determining a target sampling scene after the change if the sampling scene requirement is changed, and determining target sampling rule configuration corresponding to the target sampling scene in the sampling configuration group according to a preset relation; the preset relationship is used for representing the corresponding relationship between the sampling scene and the sampling rule configuration; the switching module is used for switching the sampling rule configuration into a target sampling rule configuration.
In a third aspect, an embodiment of the present application further provides an electronic device, including a processor and a memory, where the memory stores computer program instructions that, when invoked by the processor, perform a sampling control method according to any one of the above.
In a fourth aspect, embodiments of the present application also provide a computer-readable storage medium storing program code, wherein the program code, when executed by a processor, performs the sampling control method of any one of the above.
The embodiment of the application provides a sampling control method, a device, electronic equipment and a storage medium, wherein the sampling control method firstly carries out sampling according to sampling rule configuration and obtains sampling data; the sampling rule configuration comprises at least one sampling configuration in a preset sampling configuration group, wherein the sampling configuration group comprises at least two sampling configurations, and each sampling configuration corresponds to one sampling scene; then determining sampling scene requirements according to the sampling data; if the sampling scene requirement is changed, determining a target sampling scene which is required to be changed, and determining target sampling rule configuration corresponding to the target sampling scene in a sampling configuration group according to a preset relation; the preset relationship is used for representing the corresponding relationship between the sampling scene and the sampling rule configuration; the sampling rule configuration is switched to the target sampling rule configuration, so that when the sampling scene is changed, the switching step can be simplified, the sampling configuration corresponding to the sampling scene can be switched rapidly, and the efficiency of the switching of the sampling configuration can be improved effectively.
These and other aspects of the application will be more readily apparent from the following description of the embodiments.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being 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 shows a schematic diagram of a sampling system according to an embodiment of the present application.
Fig. 2 shows a flowchart of a first sampling control method according to an embodiment of the present application.
Fig. 3 is a schematic flow chart of a second sampling control method according to an embodiment of the present application.
Fig. 4 shows a timing diagram of a sampling configuration according to an embodiment of the present application.
Fig. 5 shows a timing diagram of a sampling configuration switching according to an embodiment of the present application.
Fig. 6 shows a flowchart of a third sampling control method according to an embodiment of the present application.
Fig. 7 shows another timing diagram of a sampling configuration provided by an embodiment of the present application.
Fig. 8 shows another timing diagram of sampling configuration switching according to an embodiment of the present application.
Fig. 9 shows a flowchart of a fourth sampling control method according to an embodiment of the present application.
Fig. 10 shows a timing diagram of a cyclic configuration of a sampling configuration according to an embodiment of the present application.
Fig. 11 shows still another timing diagram of a sampling configuration provided by an embodiment of the present application.
Fig. 12 shows still another timing diagram of sampling configuration switching provided by an embodiment of the present application.
Fig. 13 shows a block diagram of a sampling control device according to an embodiment of the present application.
Fig. 14 shows a block diagram of an electronic device according to an embodiment of the present application.
Fig. 15 shows a block diagram of a computer-readable storage medium according to an embodiment of the present application.
Detailed Description
Embodiments of the present application are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are exemplary only for explaining the present application and are not to be construed as limiting the present application.
In order to enable those skilled in the art to better understand the solution of the present application, the following description will make clear and complete descriptions of the technical solution of the present application in the embodiments of the present application with reference to the accompanying drawings. It will be apparent that the described embodiments are only some, but not all, embodiments of the application. 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.
When the electronic device senses external information, the external information is generally sampled periodically according to a preset time sequence, which is also called PRF (Pulse Repetition Frequency ) sampling. In PRF sampling timing, it is required to sample by different sampling configurations in order to cope with different sampling scenarios. When the sampling scene is switched, the traditional sampling mode needs to stop sampling immediately, and new sampling configuration information is rewritten in a register group for storing the sampling configuration information according to the new sampling scene, and then resampling is performed according to the new sampling configuration information.
For example, in PRF sampling timing, the usual sampling configuration is a wear detection sampling configuration, and when it is detected that the user has worn the product (i.e., the sampling scene changes), the master will issue a new set of dynamic sampling configurations to sample for the dynamic scene. Specifically, when the sampling scene is switched from the wear detection sampling scene to other scenes, the master control immediately stops sampling at this time, refreshes all sampling configurations in the register, and then restarts sampling.
Therefore, when the sampling configuration is switched in the traditional sampling mode, the main control needs to call the brand new sampling configuration according to the new sampling scene and write the new sampling configuration into the register. In the process, the host computer not only needs to call new sampling configuration parameters, but also needs to stop sampling, rewrites a plurality of registers for storing the sampling configuration parameters, occupies more resources, and has complex switching steps and long occupied time, thereby reducing the sampling configuration switching efficiency.
The embodiment of the application provides a sampling control method, a device, electronic equipment and a storage medium, wherein the sampling control method stores at least two selectable sampling configurations; sampling according to one of the sampling configurations; and when the sampling configuration is determined to be required to be switched, calling a target sampling configuration required to be switched from the at least two selectable sampling configurations, and sampling according to the target sampling configuration. Because the target sampling configuration is stored in advance, the target sampling configuration does not need to be rewritten, and the switching of the sampling configuration can be realized through simple calling. Therefore, the switching step can be simplified, and the efficiency of sampling configuration switching can be effectively improved.
For example, when storing at least two selectable sampling configurations, all selectable sampling configurations may be written to corresponding one or more registers, respectively; when sampling is performed according to one of the sampling configurations, the corresponding one or more registers are called. When the current sampling configuration is required to be switched to the target sampling configuration (namely, another sampling configuration), only one or more target registers corresponding to the target sampling configuration are required to be called, and all registers are not required to be rewritten. Each sampling configuration may correspond to an application scenario, and when the application scenario is switched, it may be determined that the sampling configuration needs to be switched. In the embodiment of the present application, the above-mentioned set of at least two selectable sampling configurations is referred to as a "sampling configuration group", and the set of registers for storing the sampling configurations is referred to as a "scene configuration register group".
Referring to fig. 1, fig. 1 is a block diagram of a sampling system according to an embodiment of the present application. The sampling system comprises a main control module 11, a scene configuration register set 12, a sampling scene control register 13 and a sampling time sequence transceiver signal controller 14. The main control module 11 is respectively connected with the scene configuration register set 12, the sampling scene control register 13 and the sampling time sequence receiving-transmitting signal controller 14; the scene configuration register group 12 is also respectively connected with a sampling scene control register 13 and a sampling time sequence receiving-transmitting signal controller 14; the sampling scene control register 13 is also connected to a sampling timing transceiver signal controller 14.
In this embodiment, the main control module 11 controls the sampling flow in the sampling system, and performs data processing. The scene configuration register set 12 may be a PRF scene configuration register set, and a plurality of configuration registers may be included in the scene configuration register set 12 for storing a plurality of sampling configurations corresponding to different sampling scenes. Taking an application scenario of the wearable device as an example, the different sampling scenarios may include, but are not limited to, at least two of a wear detection sampling scenario, a resting heart rate detection sampling scenario, an exercise heart rate detection sampling scenario, and a temperature detection sampling scenario. The sampling scene control register 13 may be a PRF sampling scene control register, the sampling scene control register 13 being used to store the current sampling scene; the sampling timing transceiver signal controller 14 may be a PRF sampling timing transmit and receive signal controller, and the sampling timing transceiver signal controller 14 is configured to select a sampling configuration corresponding to a current sampling scene in the scene configuration register set 12 according to the current sampling scene, and generate sampling pulses according to the sampling configuration.
As an example, the main control module 11 recognizes a sampling scene and writes the sampling scene into the sampling scene control register 13 while starting sampling; after the start of sampling, the sampling timing transceiver signal controller 14 selects a corresponding sampling configuration from the scene configuration register set 12 according to the sampling scene given by the sampling scene control register 13, and generates an actual sampling pulse according to the sampling configuration to perform sampling. After the sampling is completed, the sampling data may be fed back to the sampling timing transceiver signal controller 14, and the sampling timing transceiver signal controller 14 transmits the sampling result to the main control module 11. The main control module 11 analyzes and identifies whether the current sampling scene is changed according to the sampling result, writes the changed sampling scene into the sampling scene control register 13, and the subsequent sampling time sequence transceiver signal controller 14 continues to sample according to the sampling configuration corresponding to the new sampling scene. Therefore, in the embodiment of the application, when the sampling configuration is required to be updated, the master control only needs to rewrite the scene control register, and the data of a plurality of registers in the scene configuration register group do not need to be refreshed, so that the efficiency of sampling configuration switching can be effectively improved.
As shown in fig. 2, fig. 2 is a schematic flow chart of a sampling control method 100 according to an embodiment of the present application. The sampling control method 100 may be applied to the sampling system 10 described above. In this embodiment, the sampling control method 100 may include the following steps S110 to S140.
Step S110: sampling is carried out according to the sampling rule configuration, and sampling data are obtained.
Wherein the sampling rule configuration comprises at least one sampling configuration in a preset sampling configuration group. The set of sampling configurations includes at least two sampling configurations, and each sampling configuration corresponds to a sampling scenario.
In the present embodiment, a sample configuration group including at least two different sample configurations is stored in advance in the scene configuration register group 12. Further, the sampling configuration includes, but is not limited to, parameters such as sampling current, number of light emitting diodes (LIGHT EMITTING LEDs) turned on, sampling time, etc., and at least one parameter is different between different sampling configurations. For example, the sampling configuration group may include a sampling configuration PRF1, a sampling configuration PRF2, wherein the sampling configuration PRF1 includes a sampling current I1, an LED on-number A1, and a sampling time S1, and the sampling configuration PRF2 includes a sampling current I1, an LED on-number A1, and a sampling time S2.
Further, each sampling configuration is configured to correspond to a sampling scenario. In this embodiment, the sampling scenes include, but are not limited to, at least two of a wear detection sampling scene, a resting heart rate detection sampling scene, an exercise heart rate detection sampling scene, and a temperature detection sampling scene. For example, sampling configuration PRF1 corresponds to wearing a detection sampling scene; the sampling configuration PRF2 corresponds to a resting heart rate detection sampling scenario.
In the sampling process, at least one sampling configuration is selected from the sampling configuration group for sampling, wherein the at least one sampling configuration is the sampling rule configuration of the current sampling. Specifically, the sampling timing transceiver signal controller 14 selects a corresponding sampling rule configuration from the sampling configuration groups pre-stored in the scene configuration register group 12 according to the current sampling scene, and generates actual sampling pulses for sampling according to the sampling configuration in the sampling rule configuration, so as to obtain sampling data.
Step S120: a sampling scene requirement is determined from the sampling data.
Specifically, the sampling timing transceiver signal controller 14 sends the sampling result to the main control module 11 according to the sampling data, and the main control module 11 performs data processing on the sampling result, so as to determine a required sampling scene, that is, determine a sampling scene requirement.
During sampling, the sampling scene requirements may change. Specifically, under the current sampling scene, sampling is carried out according to the sampling rule configuration corresponding to the current sampling scene, and if the required sampling scene determined according to the sampling data is consistent with the current sampling scene, the sampling scene requirement is not changed; and if the current required sampling scene determined according to the sampling data is inconsistent with the current sampling scene, the sampling scene requirement is changed.
For example, in the wearing detection sampling scene, sampling is performed according to a sampling rule configuration corresponding to the wearing detection sampling scene, and if the required sampling scene is still the wearing detection sampling scene according to the sampling data, the sampling scene requirement is not changed at this time; if the required sampling scene is determined to be the heart rate detection sampling scene according to the sampling data, the sampling scene requirement at the moment is changed.
For another example, under the resting heart rate detection sampling scene, sampling is performed according to the sampling rule configuration corresponding to the resting heart rate detection sampling scene, and if the required sampling scene is still the resting heart rate detection sampling scene according to the sampling data, the sampling scene requirement is not changed at this time; if the required sampling scene is determined to be the exercise heart rate detection sampling scene according to the sampling data, the sampling scene requirement at the moment is changed.
Further, analyzing and processing the sampling result under the current sampling scene, if the analysis result accords with the current sampling scene, the required sampling scene is consistent with the current sampling scene, namely the sampling scene requirement is not changed; if the analysis result does not accord with the current sampling scene, the current required sampling scene is inconsistent with the current sampling scene, namely the sampling scene requirement is changed.
For example, in the wearing detection sampling scene, if the obtained sampling result is analyzed and processed to indicate that wearing is not detected, the required sampling scene is still the wearing detection sampling scene at this time, that is, the sampling scene requirement is not changed; if the obtained sampling result is analyzed and processed to show that wearing is detected, the sampling scene required at the moment is a heart rate detection sampling scene, namely the sampling scene requirement is changed.
For another example, in the resting heart rate detection sampling scene, if the obtained sampling result is analyzed and processed to indicate that the current heart rate accords with the resting heart rate, the required sampling scene is still the resting heart rate detection sampling scene at the moment, that is, the sampling scene requirement is not changed; if the obtained sampling result is analyzed and processed to show that the current heart rate is not consistent with the resting heart rate but is consistent with the exercise heart rate, the sampling scene required at the moment is an exercise heart rate detection sampling scene, namely the sampling scene requirement is changed.
Step S130: if the sampling scene requirement is changed, determining a target sampling scene after the change, and determining target sampling rule configuration corresponding to the target sampling scene in a sampling configuration group according to a preset relation.
In this embodiment, if the sampling scene requirement is not changed, generating sampling pulses for sampling in the next period according to the original sampling rule configuration; if the sampling scene requirement is changed, determining a target sampling scene which is required to be changed, determining target sampling rule configuration corresponding to the target sampling scene in a sampling configuration group according to a preset relation, and generating sampling pulses for sampling according to the target sampling rule configuration in the next period.
Specifically, the main control module 11 determines the target sampling scene after the required change by analyzing and processing the sampling result, rewrites the sampling scene control register 13 by the scene change signal to write the target sampling scene into the sampling scene control register 13, and then the sampling timing transceiver signal controller 14 determines the target sampling rule configuration corresponding to the target sampling scene in the sampling configuration group according to the preset relationship.
The preset relationship is used for representing the corresponding relationship between the sampling scenes and the sampling rule configuration, and one sampling scene corresponds to one sampling rule configuration. In this embodiment, the sampling rule configurations corresponding to different sampling scenarios may be the same or different, and are not limited.
The sampling rule configuration comprises at least one sampling configuration in a preset sampling configuration group, and the at least one sampling configuration comprises sampling configurations corresponding to sampling scenes. As an embodiment, the number of sampling configurations in different sampling rule configurations may be the same. For example, sampling scenario 1 corresponds to sampling rule configuration a, wherein sampling rule configuration a comprises sampling configuration PRF1, and sampling configuration PRF1 corresponds to sampling scenario 1; sample scenario 2 corresponds to sample rule configuration B, where sample rule configuration B includes sample configuration PRF2, and sample configuration PRF2 corresponds to sample scenario 2. In a specific example, the resting heart rate detection sampling scene corresponds to a sampling rule configuration a, wherein the sampling rule configuration a comprises a sampling configuration PRF1, and the sampling configuration PRF1 corresponds to the resting heart rate detection sampling scene; the exercise heart rate detection sampling scene corresponds to a sampling rule configuration B, wherein the sampling rule configuration B comprises a sampling configuration PRF2, and the sampling configuration PRF2 corresponds to the exercise heart rate detection sampling scene.
As another approach, the number of sampling configurations in different sampling rule configurations may also be different. For example, sampling scenario 1 corresponds to sampling rule configuration a, wherein sampling rule configuration a comprises sampling configuration PRF1, and sampling configuration PRF1 corresponds to sampling scenario 1; sample scenario 2 corresponds to sample rule configuration B, where sample rule configuration B includes sample configuration PRF1 and sample configuration PRF2, and sample configuration PRF2 corresponds to sample scenario 2. In a specific example, the resting heart rate detection sampling scene corresponds to a sampling rule configuration a, wherein the sampling rule configuration a comprises a sampling configuration PRF1, and the sampling configuration PRF1 corresponds to the resting heart rate detection sampling scene; the exercise heart rate detection sampling scene corresponds to a sampling rule configuration B, wherein the sampling rule configuration B comprises a sampling configuration PRF1 and a sampling configuration PRF2, and the sampling configuration PRF2 corresponds to the exercise heart rate detection sampling scene.
Step S140: and switching the sampling rule configuration into a target sampling rule configuration.
Specifically, the sampling timing transceiver signal controller 14 selects a target sampling rule configuration from the sampling configuration groups prestored in the scene configuration register group 12, so as to switch the original sampling rule configuration into the target sampling rule configuration, and generates an actual sampling pulse according to the sampling configuration in the target sampling rule configuration to perform sampling of the next period.
Therefore, the sampling control method does not need to stop sampling and refresh all sampling configurations when the sampling scene requirement is changed, but only needs to simply rewrite the sampling scene control register 13, so that the switching of the sampling configurations can be rapidly completed, the step of switching the sampling configurations is simplified, and the switching efficiency is effectively improved.
The sampling control method provided by the embodiment of the application firstly carries out sampling according to the configuration of the sampling rule and obtains sampling data; the sampling rule configuration comprises at least one sampling configuration in a preset sampling configuration group, wherein the sampling configuration group comprises at least two sampling configurations, and each sampling configuration corresponds to one sampling scene; then determining sampling scene requirements according to the sampling data; if the sampling scene requirement is changed, determining a target sampling scene which is required to be changed, and determining target sampling rule configuration corresponding to the target sampling scene in a sampling configuration group according to a preset relation; the preset relationship is used for representing the corresponding relationship between the sampling scene and the sampling rule configuration; the sampling rule configuration is switched to the target sampling rule configuration, so that when the sampling scene is changed, the switching step can be simplified, the sampling configuration corresponding to the sampling scene can be switched rapidly, and the efficiency of the switching of the sampling configuration can be improved effectively.
As shown in fig. 3, an embodiment of the present application further provides a sampling control method 200. The sampling control method 200 is equally applicable to the sampling system 10 described above. In this embodiment, the sampling control method 200 may include the following steps S210 to S240.
Step S210: sampling is carried out according to the sampling rule configuration, and sampling data are obtained.
Wherein the sampling rule configuration comprises one sampling configuration in a preset sampling configuration group.
In the sampling process, one sampling configuration is selected from the sampling configuration group to sample, wherein the sampling configuration is the sampling rule configuration of the current sampling, and the sampling configuration corresponds to the current sampling scene. For example, in the wearing detection sampling scene, a sampling configuration corresponding to the wearing detection sampling scene is selected from the sampling configuration group, and the sampling configuration is also a sampling rule configuration corresponding to the wearing detection sampling scene.
Specifically, the sampling timing transceiver signal controller 14 selects a sampling rule configuration corresponding to the current sampling scene from the sampling configuration groups prestored in the scene configuration register group 12 according to the current sampling scene, where the sampling rule configuration includes a sampling configuration corresponding to the current sampling scene; and then generating actual sampling pulse for sampling according to the sampling configuration corresponding to the current sampling scene in the sampling rule configuration, so as to obtain sampling data.
As one embodiment, the current sampling configuration is maintained for cyclic sampling with the current sampling scenario unchanged. As shown in fig. 4, when continuous sampling is performed while the sampling scene 1 remains unchanged, cyclic sampling is performed while maintaining the sampling configuration PRF1 corresponding to the sampling scene 1. The sampling sequence is as follows: sampling configuration PRF1, sampling configuration PRF1 … ….
Step S220: a sampling scene requirement is determined from the sampling data.
In this embodiment, step S220 may refer to step S120, and will not be described again.
Step S230: if the sampling scene requirement is changed, determining a target sampling scene after the change, and determining a target sampling configuration corresponding to the target sampling scene in the sampling configuration group according to a first preset relation.
In this embodiment, if the sampling scene requirement is not changed, generating sampling pulses for sampling in the original sampling configuration in the next period; if the sampling scene requirement is changed, determining a target sampling scene which is required to be changed, determining a target sampling configuration corresponding to the target sampling scene in a sampling configuration group according to a first preset relation, and generating sampling pulses for sampling according to the target sampling configuration in the next period.
Specifically, the main control module 11 determines the target sampling scene after the required change by analyzing and processing the sampling result, rewrites the sampling scene control register 13 by the scene change signal to write the target sampling scene into the sampling scene control register 13, and then the sampling timing transceiver signal controller 14 determines one target sampling configuration corresponding to the target sampling scene in the sampling configuration group according to the first preset relationship. The first preset relationship is used for representing a one-to-one correspondence between the sampling scene and the sampling configuration.
For example, if the sampling scene requirement is changed from a resting heart rate detection sampling scene to an exercise heart rate detection sampling scene, the target sampling scene is the exercise heart rate detection sampling scene, at this time, the main control module 11 may write the exercise heart rate detection sampling scene into the sampling scene control register 13 by simply rewriting the sampling scene control register 13, and then the sampling timing transceiver signal controller 14 determines, in the sampling configuration group, a target sampling configuration corresponding to the exercise heart rate detection sampling scene according to the first preset relationship, where the target sampling configuration is a sampling rule configuration corresponding to the exercise heart rate detection sampling scene.
Step S240: and switching the sampling rule configuration to a target sampling configuration.
Specifically, the sampling timing transceiver signal controller 14 selects a target sampling configuration from the sampling configuration groups prestored in the scene configuration register group 12, so as to switch the original sampling rule configuration into the target sampling configuration, and generates an actual sampling pulse according to the target sampling configuration to perform sampling of the next cycle.
In a subsequent continuous sampling process, the cyclic periodic sampling may be performed in a target sampling configuration. As shown in fig. 5, after switching from the sampling scene 1 to the sampling scene 2, the cyclic sampling by the sampling configuration PRF1 corresponding to the sampling scene 1 is changed to the cyclic sampling by the sampling configuration PRF2 corresponding to the sampling scene 2 in the continuous sampling process, and the sampling order before and after the switching of the sampling configuration is: sampling configuration PRF1, sampling configuration PRF2 … ….
Compared with the prior art, the sampling control method in the embodiment does not need to stop sampling and refresh all sampling configurations when the sampling scene requirement is changed, but only needs to simply rewrite the sampling scene control register 13, so that the switching of the sampling configurations can be rapidly completed, further, the step of switching the sampling configurations is simplified, and the switching efficiency is effectively improved.
The sampling control method provided by the embodiment of the application firstly carries out sampling according to the configuration of the sampling rule and obtains sampling data; the sampling rule configuration comprises one sampling configuration in a preset sampling configuration group, wherein the sampling configuration group comprises at least two sampling configurations, and each sampling configuration corresponds to one sampling scene; then determining sampling scene requirements according to the sampling data; if the sampling scene requirement is changed, determining a target sampling scene which is required to be changed, and determining target sampling configuration corresponding to the target sampling scene in a sampling configuration group according to a first preset relation; the first preset relationship is used for representing the corresponding relationship between the sampling scene and the sampling configuration; the sampling rule configuration is switched to the target sampling configuration, so that when the sampling scene is changed, the switching step can be simplified, the sampling configuration corresponding to the sampling scene can be switched rapidly, and the efficiency of the sampling configuration switching is improved effectively.
As shown in fig. 6, the embodiment of the application further provides a sampling control method 300. The sampling control method 300 is equally applicable to the sampling system 10 described above. In this embodiment, the sampling control method 300 may include the following steps S310 to S340.
Step S310: and circularly sampling according to at least two sampling configurations in the sampling configuration group, and obtaining sampling data.
In this embodiment, the sampling rule configuration includes at least two sampling configurations in a preset sampling configuration group.
In the sampling process, at least two sampling configurations are selected from a sampling configuration group to sample, and each sampling configuration corresponds to one sampling scene; the at least two sampling configurations are sampling rule configurations of the current sampling, and one of the at least two sampling configurations corresponds to the current sampling scene. For example, in the resting heart rate detection sampling scene, sampling configuration PRF1 and sampling configuration PRF2 are selected from the sampling configuration group to sample, where the sampling configuration PRF1 and the sampling configuration PRF2 are sampling rule configurations corresponding to the resting heart rate detection sampling scene, and the sampling configuration PRF1 may be sampling configuration corresponding to the wearing detection sampling scene, and the sampling configuration PRF2 may be sampling configuration corresponding to the resting heart rate detection sampling scene.
Specifically, the sampling timing transceiver signal controller 14 selects a sampling rule configuration corresponding to the current sampling scene from the sampling configuration groups prestored in the scene configuration register group 12 according to the current sampling scene, where the sampling rule configuration includes one sampling configuration corresponding to the current sampling scene and at least one sampling configuration corresponding to other sampling scenes; and generating actual sampling pulse for sampling according to the sampling configuration corresponding to the current sampling scene and the sampling configuration corresponding to at least one other sampling scene in the sampling rule configuration, so as to obtain sampling data.
As an embodiment, when the sampling rule configuration includes at least two sampling configurations, the sampling rule configuration further includes the number and order of cycles of the at least two sampling configurations, so that the sampling timing transceiver signal controller 14 may sequentially perform sampling of the corresponding number of cycles according to the at least two sampling configurations.
As one embodiment, at least two sampling configurations of the current sampling rule configuration are maintained for cyclic sampling with the current sampling scenario remaining unchanged. As shown in fig. 7, when continuous sampling is performed while sampling scene 1 is kept unchanged, sampling configuration PRF1 and sampling configuration PRF2 in a sampling rule configuration corresponding to sampling scene 1 are held for cyclic sampling. The sampling sequence is as follows: sampling configuration PRF1, sampling configuration PRF2, sampling configuration PRF1, sampling configuration PRF2 … ….
Step S320: a sampling scene requirement is determined from the sampling data.
In this embodiment, step S320 may refer to step S120, and will not be described in detail.
Step S330: if the sampling scene requirement is changed, determining a target sampling scene after the change, and determining at least two target sampling configurations corresponding to the target sampling scene in the sampling configuration group according to a second preset relationship.
In this embodiment, if the sampling scene requirement is not changed, generating sampling pulses for sampling in the next period according to the original at least two sampling configurations; if the sampling scene requirement is changed, determining a target sampling scene which is required to be changed, determining at least two target sampling configurations corresponding to the target sampling scene in the sampling configuration group according to a second preset relation, and generating sampling pulses for sampling according to the at least two target sampling configurations in the next period.
Specifically, the main control module 11 determines the target sampling scene after the required change by analyzing and processing the sampling result, rewrites the sampling scene control register 13 by the scene change signal to write the target sampling scene into the sampling scene control register 13, and then the sampling timing transceiver signal controller 14 determines at least two target sampling configurations corresponding to the target sampling scene in the sampling configuration group according to the second preset relationship. The second preset relationship is used for representing the corresponding relationship between the sampling scene and at least two sampling configurations.
For example, if the sampling scene requirement is changed from a resting heart rate detection sampling scene to an exercise heart rate detection sampling scene, the target sampling scene is the exercise heart rate detection sampling scene, at this time, the main control module 11 may write the exercise heart rate detection sampling scene into the sampling scene control register 13 by simply rewriting the sampling scene control register 13, and then the sampling timing transceiver signal controller 14 determines at least two sampling configurations corresponding to the exercise heart rate detection sampling scene in the sampling configuration group according to the second preset relationship, where the at least two sampling configurations are sampling rule configurations corresponding to the exercise heart rate detection sampling scene.
Further, different sampling scenarios may correspond to performing a different number of at least two sampling configurations, and wherein each sampling configuration in turn corresponds to a respective one of the sampling scenarios. For example, the sampling configuration PRF1 and the sampling configuration PRF2 may be correspondingly executed in the resting heart rate detection sampling scene, where the sampling configuration PRF1 is a sampling configuration that corresponds to the wearing detection sampling scene alone, and the sampling configuration PRF2 is a sampling configuration that corresponds to the resting heart rate detection sampling scene alone. Therefore, in the resting heart rate detection sampling scene, not only the resting heart rate can be sampled to obtain resting heart rate data, but also wearing data can be sampled to judge whether the equipment is worn. The exercise heart rate detection resting heart rate detection sampling scene may correspond to a sampling configuration PRF1, a sampling configuration PRF2, and a sampling configuration PRF3, wherein the sampling configuration PRF1 is a sampling configuration that corresponds solely to the wearing detection sampling scene, the sampling configuration PRF2 is a sampling configuration that corresponds solely to the resting heart rate detection sampling scene, and the sampling configuration PRF3 is a sampling configuration that corresponds solely to the exercise heart rate detection sampling scene. Therefore, in the exercise heart rate detection sampling scene, not only can the exercise heart rate be sampled to obtain exercise heart rate data, but also wearing data can be sampled to judge whether the equipment is worn, and also the resting heart rate can be sampled to obtain resting heart rate data.
Step S340: at least two sampling configurations are switched to at least two target sampling configurations.
In this embodiment, at least two sampling configurations are switched to at least two target sampling configurations. Specifically, the sampling timing transceiver signal controller 14 selects the at least two target sampling configurations from the sampling configuration groups pre-stored in the scene configuration register group 12, so as to switch the original sampling configuration to the at least two target sampling configurations, and generates an actual sampling pulse according to the at least two target sampling configurations to perform sampling of the next cycle.
In a subsequent consecutive sampling, then, the cyclic sampling is performed in the at least two target sampling configurations. As shown in fig. 8, after switching from sampling scene 1 to sampling scene 2, cyclic sampling by sampling configuration PRF1 and sampling configuration PRF2 corresponding to sampling scene 1 changes to cyclic sampling by sampling configuration PRF2 and PRF3 corresponding to sampling scene 2 in the continuous sampling process, wherein the sampling order is: sample configuration PRF1, sample configuration PRF2, sample configuration PRF3, sample configuration 2, sample configuration 3 … ….
Compared with the prior art, the sampling control method in the embodiment does not need to stop sampling and refresh all sampling configurations when the sampling scene requirement is changed, but only needs to simply rewrite the sampling scene control register 13, so that the switching of the sampling configurations can be rapidly completed, further, the step of switching the sampling configurations is simplified, and the switching efficiency is effectively improved. In addition, the sampling control method also obtains data corresponding to a plurality of scenes through automatic cyclic sampling of a plurality of sampling configurations in the sampling process, so that the data of the plurality of scenes are conveniently compared and analyzed, and meanwhile, the plurality of sampling configurations are automatically switched in the automatic cyclic sampling process without refreshing all the sampling configurations, so that the rapidity of switching of the sampling configurations is ensured.
The sampling control method provided by the embodiment of the application firstly carries out cyclic sampling according to at least two sampling configurations in the sampling configuration group and obtains sampling data; then determining sampling scene requirements according to the sampling data; if the sampling scene requirement is changed, determining a target sampling scene which is required to be changed, and determining at least two target sampling configurations corresponding to the target sampling scene in a sampling configuration group according to a second preset relationship; and then the sampling rule configuration is switched into the target sampling rule configuration, so that the switching step can be simplified when the sampling scene is changed, the sampling configuration corresponding to the sampling scene can be switched rapidly, and the efficiency of the switching of the sampling configuration can be effectively improved.
As shown in fig. 9, the embodiment of the application further provides a sampling control method 400. The sampling control method 400 is equally applicable to the sampling system 10 described above. In this embodiment, the sampling control method 400 may include the following steps S410 to S440.
Step S410: and circularly sampling according to at least two sampling configurations in the sampling configuration group and the circular configuration of the at least two sampling configurations, and obtaining sampling data.
In this embodiment, the sampling rule configuration includes at least two sampling configurations in a preset sampling configuration group and a cyclic configuration of the at least two sampling configurations, where the cyclic configuration is used to characterize the number of sampling periods performed by each sampling configuration in the sampling rule configuration. For example, the sampling rule configuration includes a sampling configuration PRF1 and a sampling configuration PRF2, and the cyclic configurations are a sampling configuration PRF1×2 and a sampling configuration PRF2×3, and then in the sampling process, sampling of 2 cyclic periods is performed according to the sampling configuration PRF1, and sampling of 3 cyclic periods is performed according to the sampling configuration PRF 2.
In the sampling process, at least two sampling configurations are selected from the sampling configuration group, and sampling is carried out according to the cyclic configuration of the at least two sampling configurations; the at least two sampling configurations and the cyclic configuration of the at least two sampling configurations are sampling rule configurations of the current sampling, and one of the at least two sampling configurations corresponds to the current sampling scene.
Specifically, the sampling timing transceiver signal controller 14 selects at least two sampling configurations, which are correspondingly executed in the current sampling scene, from the sampling configuration groups prestored in the scene configuration register group 12 according to the current sampling scene, wherein the at least two sampling configurations include one sampling configuration corresponding to the current sampling scene and at least one sampling configuration corresponding to other sampling scenes; and generating actual sampling pulses according to the at least two sampling configurations and the cyclic configuration of the at least two sampling configurations to sample, thereby obtaining sampling data.
For example, in the resting heart rate detection sampling scenario, sampling configuration PRF1 and sampling configuration PRF2 are selected from the sampling configuration group to sample, where sampling configuration PRF1 may be a sampling configuration corresponding to the wearing detection sampling scenario, and a cycle configuration corresponding to sampling configuration PRF1 is 1, sampling configuration PRF2 may be a sampling configuration corresponding to the resting heart rate detection sampling scenario, and a cycle configuration corresponding to sampling configuration PRF is 2, that is, sampling configuration PRF1 performs 1 cycle period, and sampling configuration PRF2 performs 2 cycles. And generating actual sampling pulses according to the sampling configuration PRF1 and the cyclic configuration thereof and the sampling PRF2 and the cyclic configuration thereof. As shown in particular in fig. 10.
Further, in the case where the current sampling scene is kept unchanged, at least two sampling configurations among the current sampling rule configurations are kept for cyclic sampling, and the number of cycles corresponding to the cyclic configuration is performed during the sampling by each sampling configuration. As shown in fig. 11, when continuous sampling is performed while sampling scene 1 is kept unchanged, sampling configuration PRF1 and sampling configuration PRF2 in a sampling rule configuration corresponding to the sampling scene 1 are held for cyclic sampling, and the cyclic configuration of the sampling configuration PRF1 is 1 and the cyclic configuration of the sampling configuration PRF2 is 2. The sampling sequence is as follows: sampling configuration PRF1, sampling configuration PRF2, sampling configuration PRF1, sampling configuration PRF2 … ….
Step S420: a sampling scene requirement is determined from the sampling data.
In this embodiment, step S420 may refer to step S120, and will not be described in detail.
Step S430: if the sampling scene requirement is changed, determining a target sampling scene after the change, and determining at least two target sampling configurations corresponding to the target sampling scene and cyclic configurations of the at least two target sampling configurations in a sampling configuration group according to a third preset relation.
In this embodiment, if the sampling scene requirement is not changed, sampling pulses are continuously generated in the next period according to at least two original sampling configurations and a cyclic configuration to perform sampling; if the sampling scene requirement is changed, determining a target sampling scene which is required to be changed, determining at least two target sampling configurations corresponding to the target sampling scene and the cyclic configurations of the at least two target sampling configurations in a sampling configuration group according to a third preset relation, and generating sampling pulses for sampling according to the at least two target sampling configurations and the cyclic configurations of the at least two target sampling configurations in the next period.
Specifically, the main control module 11 determines the target sampling scene after the required change by analyzing and processing the sampling result, rewrites the sampling scene control register 13 by the scene change signal to write the target sampling scene into the sampling scene control register 13, and then the sampling timing transceiver signal controller 14 determines at least two target sampling configurations corresponding to the target sampling scene in the sampling configuration group according to the third preset relationship, and determines the cyclic configuration of the at least two target sampling configurations. The third preset corresponding relation is used for representing a first corresponding relation between the sampling scene and at least two sampling configurations in the sampling configuration group and a second corresponding relation between the sampling scene and cyclic configurations of the at least two sampling configurations.
For example, if the sampling scene requirement is changed from a resting heart rate detection sampling scene to an exercise heart rate detection sampling scene, the target sampling scene is the exercise heart rate detection sampling scene, at this time, the main control module 11 may write the exercise heart rate detection sampling scene into the sampling scene control register 13 by simply rewriting the sampling scene control register 13, and then the sampling timing transceiver signal controller 14 determines at least two sampling configurations corresponding to the exercise heart rate detection sampling scene in the sampling configuration group according to the first correspondence, and determines a cyclic configuration corresponding to the at least two sampling configurations in the exercise heart rate detection sampling scene according to the second correspondence.
Further, in different sampling scenarios, the cyclic configurations corresponding to the same sampling configuration may be the same or different. For example, in a resting heart rate detection sampling scenario, sampling configuration PRF1 and sampling configuration PRF2 may be performed correspondingly. The sampling configuration PRF1 is a sampling configuration corresponding to a wearing detection sampling scene, and the cycle configuration of the sampling configuration PRF1 in a resting heart rate detection sampling scene is 1; the sampling configuration PRF2 is a sampling configuration corresponding to a resting heart rate detection sampling scene, and the cycle configuration of the sampling configuration PRF2 in the resting heart rate detection sampling scene is 2. In the exercise heart rate detection sampling scenario, sampling configuration PRF1, sampling configuration PRF2, and sampling configuration PRF3 may be performed correspondingly. The sampling configuration PRF1 is a sampling configuration corresponding to a wearing detection sampling scene, and the cycle configuration of the sampling configuration PRF1 in the exercise heart rate detection sampling scene is 1; the sampling configuration PRF2 is a sampling configuration corresponding to a resting heart rate detection sampling scene, and the cycle configuration of the sampling configuration PRF2 in the exercise heart rate detection sampling scene is 1; the sampling configuration PRF3 is a sampling configuration corresponding to an exercise heart rate detection sampling scene, and the cycle configuration of the sampling configuration PRF3 in the exercise heart rate detection sampling scene is 2.
It should be noted that, in the current sampling scenario, the cyclic configuration of the sampling configuration corresponding to the current sampling scenario may be greater than the cyclic configuration of the sampling configuration corresponding to the other sampling scenario, so that the maximum data precision associated with the current sampling scenario may be ensured. For example, in a resting heart rate detection sampling scenario, sampling configuration PRF1 and sampling configuration PRF2 may be performed correspondingly. The sampling configuration PRF1 is a sampling configuration PRF1 corresponding to a wearing detection sampling scene, the sampling configuration PRF2 is a sampling configuration corresponding to a resting heart rate detection sampling scene, and the cyclic configuration of the sampling configuration PRF2 is larger than that of the sampling configuration PFR2, so that the maximum sampling data precision of the resting heart rate in the resting heart rate detection sampling scene is ensured.
Step S440: and switching at least two sampling configurations and a cyclic configuration of the at least two sampling configurations to at least two target sampling configurations and a cyclic configuration of the at least two target sampling configurations.
In this embodiment, at least two sampling configurations are switched to at least two target sampling configurations, and a cyclic configuration of the at least two sampling configurations is switched to a cyclic configuration of the at least two target sampling configurations. Specifically, the sampling timing transceiver signal controller 14 selects the at least two target sampling configurations from the sampling configuration groups pre-stored in the scene configuration register group 12 to switch the original sampling configuration to the at least two target sampling configurations, and then generates actual sampling pulses according to the at least two target sampling configurations and the cyclic configuration of the at least two target sampling configurations to perform sampling of the next cycle.
In subsequent consecutive sampling, then, cyclic sampling is performed in the at least two target sampling configurations, and a number of cycles corresponding to the cyclic configuration is performed during sampling by each target sampling configuration. As shown in fig. 12, after switching from sampling scene 1 to sampling scene 2, cyclic sampling by sampling configuration PRF1 and sampling configuration PRF2 corresponding to this sampling scene 1 is changed to cyclic sampling by sampling configuration PRF2 and PRF3 corresponding to sampling scene 2 in the continuous sampling process, where the cyclic configuration of sampling configuration PRF1 is 1, the cyclic configuration of sampling configuration PRF2 is changed from 2 to 1, and the cyclic configuration of sampling configuration 3 is 2. The sampling sequence is as follows: sample configuration PRF1, sample configuration PRF2, sample configuration PRF3 … ….
Compared with the prior art, the sampling control method in the embodiment does not need to stop sampling and refresh all sampling configurations when the sampling scene requirement is changed, but only needs to simply rewrite the sampling scene control register 13, so that the switching of the sampling configurations can be rapidly completed, further, the step of switching the sampling configurations is simplified, and the switching efficiency is effectively improved. In addition, the sampling control method also obtains data corresponding to a plurality of scenes through automatic cyclic sampling of a plurality of sampling configurations in the sampling process, so that the data of the plurality of scenes are conveniently compared and analyzed, and meanwhile, the plurality of sampling configurations are automatically switched in the automatic cyclic sampling process without refreshing all the sampling configurations, so that the rapidity of switching of the sampling configurations is ensured.
The sampling control method provided by the embodiment of the application carries out cyclic sampling according to at least two sampling configurations in the sampling configuration group and cyclic configurations of the at least two sampling configurations, and obtains sampling data; then determining sampling scene requirements according to the sampling data; if the sampling scene requirement is changed, determining a target sampling scene which is required to be changed, and determining at least two target sampling configurations corresponding to the target sampling scene and cyclic configurations of the at least two target sampling configurations in a sampling configuration group according to a third preset relation; and switching at least two sampling configurations and the cyclic configuration of the at least two sampling configurations to at least two target sampling configurations and the cyclic configuration of the at least two target sampling configurations.
As shown in fig. 13, the embodiment of the present application further provides a sampling control device 500, where the sampling control device 500 may be applied to the sampling system 10 described above. The sampling control device 500 includes a sampling module 510, a scene determination module 520, a target module 530, and a switching module 540. The sampling module 510 is configured to sample according to a sampling rule, and obtain sampling data; the scene determination module 520 is configured to determine a sampling scene requirement according to the sampling data; the target module 530 is configured to determine a target sampling scene after the sampling scene needs to be changed if the sampling scene needs to be changed, and determine a target sampling rule configuration corresponding to the target sampling scene in the sampling configuration group according to a preset relationship; the switching module 540 is configured to switch the sampling rule configuration to a target sampling rule configuration.
In some implementations, the sampling module 510 includes a sampling unit 511. The sampling unit 511 is configured to perform cyclic sampling according to at least two sampling configurations in the sampling configuration group, and obtain sampling data. In some embodiments, the sampling unit 511 includes a sampling subunit configured to perform cyclic sampling according to at least two sampling configurations in the sampling configuration group and a cyclic configuration of the at least two sampling configurations, and obtain sampling data.
In some implementations, the targeting module 530 includes a first targeting unit 531 and a second targeting unit 532. The first target determining unit is used for determining a target sampling scene after the change if the sampling scene requirement is changed, and determining a target sampling configuration corresponding to the target sampling scene in the sampling configuration group according to a first preset relation; the second target determining unit 532 is configured to determine a target sampling scene after the change if the sampling scene requirement changes, and determine at least two target sampling configurations corresponding to the target sampling scene in the sampling configuration group according to a second preset relationship. In some embodiments, the second target determining unit 532 includes a second target determining subunit, where the second target determining subunit is configured to determine, if the sampling scene requirement changes, a target sampling scene that needs to be changed, and determine at least two target sampling configurations corresponding to the target sampling scene and a cyclic configuration of the at least two target sampling configurations in the sampling configuration group according to a third preset relationship.
In some embodiments, the switching module 540 comprises a switching unit 541, the switching unit 541 being configured to switch the at least two sampling configurations and the cyclic configuration of the at least two sampling configurations to the at least two target sampling configurations and the cyclic configuration of the at least two target sampling configurations.
The sampling control device provided by the embodiment of the application firstly carries out sampling according to the configuration of the sampling rule and obtains sampling data; the sampling rule configuration comprises at least one sampling configuration in a preset sampling configuration group, wherein the sampling configuration group comprises at least two sampling configurations, and each sampling configuration corresponds to one sampling scene; then determining sampling scene requirements according to the sampling data; if the sampling scene requirement is changed, determining a target sampling scene which is required to be changed, and determining target sampling rule configuration corresponding to the target sampling scene in a sampling configuration group according to a preset relation; the preset relationship is used for representing the corresponding relationship between the sampling scene and the sampling rule configuration; the sampling rule configuration is switched to the target sampling rule configuration, so that when the sampling scene is changed, the switching step can be simplified, the sampling configuration corresponding to the sampling scene can be switched rapidly, and the efficiency of the switching of the sampling configuration can be improved effectively.
As shown in fig. 14, fig. 14 shows a block diagram of an electronic device 600 according to an embodiment of the present application, where the intelligent control device 600 includes a processor 610 and a memory 620, and the memory 620 stores program instructions that when executed by the processor 610 implement the above-mentioned sampling control method.
The electronic device 600 includes, but is not limited to, a smart bracelet, a smart watch, a truly wireless stereo (True Wireless Stereo, TWS) headset, a mobile terminal.
Processor 610 may include one or more processing cores. The processor 610 connects various parts within the overall battery management system using various interfaces and lines to perform various functions of the battery management system and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 620, and invoking data stored in the memory 620. Alternatively, the processor 610 may be implemented in at least one hardware form of digital signal Processing (DIGITAL SIGNAL Processing, DSP), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 610 may integrate one or a combination of several of a central processor 610 (Central Processing Unit, CPU), an image processor 610 (Graphics Processing Unit, GPU), a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for being responsible for rendering and drawing of display content; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 610 and may be implemented solely by a single communication chip.
The Memory 620 may include a random access Memory 620 (Random Access Memory, RAM) or a Read-Only Memory 620. Memory 620 may be used to store instructions, programs, code sets, or instruction sets. The memory 620 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (e.g., a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described below, etc. The storage data area may also store data created by the electronic device map in use (e.g., phonebook, audiovisual data, chat log data), and the like.
As shown in fig. 15, an embodiment of the present application further provides a computer readable storage medium 700, in which computer program instructions 710 are stored in the computer readable storage medium 700, the computer program instructions 710 being callable by a processor to perform the method described in the above embodiment.
The computer readable storage medium may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium comprises a non-volatile computer readable storage medium (non-transitory computer-readable storage medium). The computer readable storage medium 700 has storage space for program code to perform any of the method steps described above. The program code can be read from or written to one or more computer program products. The program code may be compressed, for example, in a suitable form.
Although the present application has been described in terms of the preferred embodiments, it should be understood that the present application is not limited to the specific embodiments, but is capable of numerous modifications and equivalents, and alternative embodiments and modifications of the embodiments described above, without departing from the spirit and scope of the present application.

Claims (9)

1. The method is characterized in that the method is applied to a sampling system, the sampling system comprises a main control module, a scene configuration register set, a sampling scene control register and a sampling time sequence receiving and transmitting signal controller, the scene configuration register set stores the sampling configuration set in advance, and the method comprises the following steps:
The sampling time sequence receiving and transmitting signal controller is configured to sample according to a sampling rule and obtain sampling data; the sampling rule configuration comprises at least two sampling configurations in the sampling rule configuration group and a cyclic configuration of the at least two sampling configurations, wherein the cyclic configuration is used for representing the sampling period times executed by each sampling configuration in the sampling rule configuration, each sampling configuration corresponds to one sampling scene, and the sampling scene comprises at least two of wearing detection sampling scenes, resting heart rate detection sampling scenes, movement heart rate detection sampling scenes and temperature detection sampling scenes, one sampling configuration of the at least two sampling configurations corresponds to a current sampling scene, and the cyclic configuration of the sampling configuration corresponding to the current sampling scene in the at least two sampling configurations is larger than the cyclic configuration of the sampling configurations corresponding to other sampling scenes;
the main control module determines sampling scene requirements according to the sampling data;
If the sampling scene requirement is changed, the main control module determines a target sampling scene which is required to be changed, and the sampling time sequence transceiver signal controller determines a target sampling rule configuration corresponding to the target sampling scene in the sampling configuration group according to a preset relation; the preset relationship is used for representing the corresponding relationship between the sampling scene and the sampling rule configuration; and
The sampling time sequence receiving and transmitting signal controller switches the sampling rule configuration into the target sampling rule configuration.
2. The sampling control method according to claim 1, wherein the sampling according to the sampling rule configuration and obtaining the sampling data comprises:
And circularly sampling according to at least two sampling configurations in the sampling configuration group, and obtaining sampling data.
3. The method of claim 2, wherein if the sampling scenario requirement changes, the main control module determines a target sampling scenario after the change, and the sampling timing transceiver signal controller determines a target sampling rule configuration corresponding to the target sampling scenario in the sampling configuration group according to a preset relationship, including:
if the sampling scene requirement is changed, the main control module determines a target sampling scene which is required to be changed, and the sampling time sequence transceiver signal controller determines at least two target sampling configurations corresponding to the target sampling scene in the sampling configuration group according to a second preset relation; the second preset relationship is used for representing the corresponding relationship between the sampling scene and at least two sampling configurations in the sampling configuration group.
4. The sampling control method according to claim 2, wherein the performing cyclic sampling according to at least two sampling configurations in the sampling configuration group and obtaining sampling data includes:
And circularly sampling according to at least two sampling configurations in the sampling configuration group and the circular configuration of the at least two sampling configurations, and obtaining sampling data.
5. The method of claim 4, wherein if the sampling scenario requirement changes, the main control module determines a target sampling scenario after the change, and the sampling timing transceiver signal controller determines a target sampling rule configuration corresponding to the target sampling scenario in the sampling configuration group according to a preset relationship, including:
if the sampling scene requirement is changed, the main control module determines a target sampling scene which is required to be changed, and the sampling time sequence transceiver signal controller determines at least two target sampling configurations corresponding to the target sampling scene and cyclic configurations of the at least two target sampling configurations in the sampling configuration group according to a third preset relation; the third preset relationship is used for representing a first corresponding relationship between a sampling scene and at least two sampling configurations in the sampling configuration group and a second corresponding relationship between the sampling scene and cyclic configurations of the at least two sampling configurations.
6. The sampling control method according to claim 5, wherein said switching the sampling rule configuration to the target sampling rule configuration comprises:
switching the at least two sampling configurations and the cyclic configuration of the at least two sampling configurations to the at least two target sampling configurations and the cyclic configuration of the at least two target sampling configurations.
7. A sampling control device, the device comprising:
The sampling module is used for sampling according to the sampling rule configuration and obtaining sampling data; the sampling rule configuration comprises at least two sampling configurations in a preset sampling configuration group and a cyclic configuration of the at least two sampling configurations, the cyclic configuration is used for representing the sampling period times executed by each sampling configuration in the sampling rule configuration, the sampling configuration group comprises at least two sampling configurations, each sampling configuration corresponds to one sampling scene, and the sampling scenes comprise at least two of wearing detection sampling scenes, resting heart rate detection sampling scenes, movement heart rate detection sampling scenes and temperature detection sampling scenes, one sampling configuration of the at least two sampling configurations corresponds to a current sampling scene, and the cyclic configuration of the sampling configuration corresponding to the current sampling scene in the at least two sampling configurations is larger than the cyclic configuration of the sampling configuration corresponding to other sampling scenes;
The scene determining module is used for determining sampling scene requirements according to the sampling data;
the target determining module is used for determining a target sampling scene after the change if the sampling scene requirement is changed, and determining target sampling rule configuration corresponding to the target sampling scene in the sampling configuration group according to a preset relation; the preset relationship is used for representing the corresponding relationship between the sampling scene and the sampling rule configuration; and
And the switching module is used for switching the sampling rule configuration into the target sampling rule configuration.
8. An electronic device comprising a processor and a memory, the memory storing computer program instructions that, when invoked by the processor, perform the sampling control method of any one of claims 1-6.
9. A computer readable storage medium, characterized in that the computer readable storage medium stores a program code, wherein the program code, when executed by a processor, performs the sampling control method of any one of claims 1 to 6.
CN202111064156.2A 2021-09-10 2021-09-10 Sampling control method, device, electronic equipment and storage medium Active CN113940643B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111064156.2A CN113940643B (en) 2021-09-10 2021-09-10 Sampling control method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111064156.2A CN113940643B (en) 2021-09-10 2021-09-10 Sampling control method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113940643A CN113940643A (en) 2022-01-18
CN113940643B true CN113940643B (en) 2024-06-11

Family

ID=79328283

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111064156.2A Active CN113940643B (en) 2021-09-10 2021-09-10 Sampling control method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113940643B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111095430A (en) * 2019-11-29 2020-05-01 深圳市汇顶科技股份有限公司 Biological characteristic data sampling method and sampling management device thereof
CN111797148A (en) * 2019-04-09 2020-10-20 Oppo广东移动通信有限公司 Data processing method, data processing device, storage medium and electronic equipment
CN111880681A (en) * 2020-06-28 2020-11-03 北京小米移动软件有限公司 Touch screen sampling rate adjusting method and device and computer storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9554747B2 (en) * 2013-08-26 2017-01-31 EveryFit, Inc. Power efficient system and method for measuring physical activity in resource constrained devices

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111797148A (en) * 2019-04-09 2020-10-20 Oppo广东移动通信有限公司 Data processing method, data processing device, storage medium and electronic equipment
CN111095430A (en) * 2019-11-29 2020-05-01 深圳市汇顶科技股份有限公司 Biological characteristic data sampling method and sampling management device thereof
CN111880681A (en) * 2020-06-28 2020-11-03 北京小米移动软件有限公司 Touch screen sampling rate adjusting method and device and computer storage medium

Also Published As

Publication number Publication date
CN113940643A (en) 2022-01-18

Similar Documents

Publication Publication Date Title
CN108874539B (en) Resource allocation method, device, terminal and storage medium
CN109992315B (en) Touch screen control method and device, terminal and storage medium
EP3309676B1 (en) Method and apparatus for providing screenshot service on terminal device and storage medium and device
CN108762831A (en) Application program preloads method, apparatus, storage medium and terminal
CN110702346B (en) Vibration testing method and device, storage medium and terminal
CN113671846B (en) Intelligent device control method and device, wearable device and storage medium
WO2022001452A1 (en) Information display method and apparatus, wearable device, and storage medium
CN111124668A (en) Memory release method and device, storage medium and terminal
CN107479700A (en) Blank screen gestural control method, device, storage medium and mobile terminal
CN111260760B (en) Image processing method, device, electronic equipment and storage medium
CN113051493A (en) Application program display method and device, storage medium and terminal
CN113940643B (en) Sampling control method, device, electronic equipment and storage medium
CN108845838A (en) Application program preloads method, apparatus, storage medium and terminal
CN113608792B (en) Intelligent optimization method and device for wake-up decision, electronic equipment and storage medium
CN114629576A (en) Frequency selection method, frequency selection device, frequency selection equipment and storage medium
CN108762838A (en) Application program preloads method, apparatus, storage medium and terminal
CN116483737B (en) Data processing method and device, electronic equipment and storage medium
CN111382312B (en) Post-class problem display method, device, equipment and medium based on WeChat public number
CN109360142B (en) Multi-channel graphic output control method based on ZYNQ
CN110489318A (en) Grasping means, device, storage medium and the terminal of systrace information
CN107729136B (en) Processing priority configuration method and device based on FPGA
WO2022237083A1 (en) Information display method and apparatus, and terminal, storage medium and computer program product
CN115469991A (en) Timer queue setting method, device and equipment and readable storage medium
CN115754413A (en) Oscilloscope and data processing method
CN115878014A (en) Sampling control method, device, electronic equipment and storage medium

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