CN113940643A - 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
CN113940643A
CN113940643A CN202111064156.2A CN202111064156A CN113940643A CN 113940643 A CN113940643 A CN 113940643A CN 202111064156 A CN202111064156 A CN 202111064156A CN 113940643 A CN113940643 A CN 113940643A
Authority
CN
China
Prior art keywords
sampling
configuration
scene
target
configurations
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.)
Pending
Application number
CN202111064156.2A
Other languages
Chinese (zh)
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/CN113940643A/en
Publication of CN113940643A publication Critical patent/CN113940643A/en
Pending legal-status Critical Current

Links

Images

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

Abstract

The embodiment of the application provides a sampling control method, a sampling control 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 changes, determining a target sampling scene needing to be changed, and determining a target sampling rule configuration corresponding to the target sampling scene in a sampling configuration group according to a preset relationship; 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 switching the sampling configuration.

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 and apparatus, an electronic device, and a storage medium.
Background
When the electronic device senses the external information, the external information is usually subjected to periodic data sampling according to a preset time sequence, which is also called as PRF (Pulse Repetition Frequency) sampling. In PRF sampling timing, it needs to sample through different sampling configurations in order to cope with different sampling scenarios. When sampling scenes are switched, the traditional sampling mode needs to immediately stop sampling, newly-new sampling configuration information is rewritten in a register group used for storing the sampling configuration information according to a new sampling scene, and then resampling is carried out according to the new sampling configuration information. Therefore, the traditional sampling mode needs to rewrite the whole group of registers when 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 to solve the above technical problems.
In a first aspect, an embodiment of the present application provides a sampling control method, where the method includes: sampling according to the 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 changes, determining a target sampling scene needing to be changed, and determining a target sampling rule configuration corresponding to the target sampling scene in a sampling configuration group according to a preset relationship; 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 apparatus, which includes a sampling module, a scene determining module, a target determining module, and a switching module, where the sampling module is configured to perform sampling 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 determination module is used for determining a target sampling scene which needs to be changed if the sampling scene requirement changes, and determining target sampling rule configuration corresponding to the target sampling scene in the sampling configuration group according to a preset relationship; 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 to a target sampling rule configuration.
In a third aspect, an embodiment of the present application further provides an electronic device, which includes a processor and a memory, where the memory stores computer program instructions, and the computer program instructions, when called by the processor, execute any one of the above sampling control methods.
In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, in which a program code is stored, where the program code is executed by a processor to perform any one of the above sampling control methods.
According to the sampling control method, the sampling control device, the electronic equipment and the storage medium, sampling is carried out according to 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; then determining sampling scene requirements according to the sampling data; if the sampling scene requirement changes, determining a target sampling scene needing to be changed, and determining a target sampling rule configuration corresponding to the target sampling scene in a sampling configuration group according to a preset relationship; 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 changes, the switching steps can be simplified, the sampling configuration corresponding to the sampling scene is switched rapidly, and the efficiency of switching the sampling configuration is improved effectively.
These and other aspects of the present application will be more readily apparent from the following description of the embodiments.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 shows a schematic diagram of a sampling system provided in an embodiment of the present application.
Fig. 2 shows a schematic flow chart of a first sampling control method provided in an embodiment of the present application.
Fig. 3 shows a flowchart of a second sampling control method provided in an embodiment of the present application.
Fig. 4 shows a timing diagram of a sampling configuration provided in an embodiment of the present application.
Fig. 5 shows a timing diagram of a sampling configuration switching provided in an embodiment of the present application.
Fig. 6 shows a flowchart of a third sampling control method provided in the embodiment of the present application.
Fig. 7 shows another timing diagram of a sampling configuration provided in an embodiment of the present application.
Fig. 8 shows another timing diagram of sampling configuration switching provided in the embodiment of the present application.
Fig. 9 is a flowchart illustrating 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 provided in an embodiment of the present application.
Fig. 11 shows another timing diagram of a sampling configuration provided in an embodiment of the present application.
Fig. 12 shows another timing diagram of sampling configuration switching provided in the embodiment of the present application.
Fig. 13 shows a block diagram of a sampling control apparatus 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 illustrates a block diagram of a computer-readable storage medium according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application.
In order to make the technical solutions of the present application better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
When the electronic device senses the external information, the external information is usually subjected to periodic data sampling according to a preset time sequence, which is also called as PRF (Pulse Repetition Frequency) sampling. In PRF sampling timing, it needs to sample through different sampling configurations in order to cope with different sampling scenarios. When sampling scenes are switched, the traditional sampling mode needs to immediately stop sampling, newly-new sampling configuration information is rewritten in a register group used for storing the sampling configuration information according to a new sampling scene, and then resampling is carried out according to the new sampling configuration information.
For example, in the PRF sampling sequence, a common sampling configuration is a wearing detection sampling configuration, and after it is detected that a user has worn a product (that is, a sampling scene changes), the master controller issues a new set of dynamic sampling configurations to sample a dynamic scene. Specifically, when the sampling scene is switched from the wearing detection sampling scene to other scenes, the master control immediately stops sampling at the moment, refreshes all sampling configurations in the register, and then restarts sampling.
Therefore, in the conventional sampling mode, when the sampling configuration is switched, the main control needs to call a brand-new sampling configuration according to a new sampling scene, and write the new sampling configuration into the register. In the process, the host needs to call a new sampling configuration parameter, stops sampling, and rewrites a plurality of registers for storing the sampling configuration parameter, so that more resources are occupied, the switching step is complex, the occupied time is long, and the sampling configuration switching efficiency is low.
The embodiment of the application provides a sampling control method, a sampling control device, electronic equipment and a storage medium, wherein the sampling control method firstly stores at least two selectable sampling configurations; sampling according to one of the sampling configurations; and when the sampling configuration is determined to need to be switched, calling a target sampling configuration which needs to be switched from the at least two selectable sampling configurations, and sampling according to the target sampling configuration. The target sampling configuration is stored in advance, so that 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 steps can be simplified, and the efficiency of switching the sampling configuration can be effectively improved.
For example, when storing at least two selectable sampling configurations, all selectable sampling configurations may be written to the 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 needs to be switched to a target sampling configuration (namely, another sampling configuration), only one or more target registers corresponding to the target sampling configuration need to be called, and all registers do not need 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, a set of the at least two selectable sampling configurations is referred to as a "sampling configuration group", and a set of registers for storing the sampling configurations is referred to as a "scene configuration register group".
As shown in fig. 1, fig. 1 is a block diagram illustrating a sampling system provided in an embodiment of the present application. The sampling system comprises a main control module 11, a scene configuration register group 12, a sampling scene control register 13 and a sampling timing transceiving signal controller 14. The main control module 11 is respectively connected with the scene configuration register group 12, the sampling scene control register 13 and the sampling timing transceiving signal controller 14; the scene configuration register group 12 is also respectively connected with a sampling scene control register 13 and a sampling timing transceiving signal controller 14; the sampling scene control register 13 is also connected to the sampling timing transceiving signal controller 14.
In this embodiment, the main control module 11 controls a sampling process in the sampling system and performs data processing. The scene configuration register set 12 may be a PRF scene configuration register set, and the scene configuration register set 12 may include a plurality of configuration registers 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 wearing detection sampling scenario, a resting heart rate detection sampling scenario, a motion 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, and the sampling scene control register 13 is used for storing a current sampling scene; the sampling timing transceiver controller 14 may be a PRF sampling timing transmit and receive signal controller, and the sampling timing transceiver controller 14 is configured to select a sampling configuration corresponding to a current sampling scenario from the scenario configuration register set 12 according to the current sampling scenario, and generate a sampling pulse according to the sampling configuration.
As an example, the main control module 11 identifies a sampling scene, and writes the sampling scene into the sampling scene control register 13, and starts sampling at the same time; after the sampling starts, the sampling timing transceiving signal controller 14 selects a corresponding sampling configuration from the scene configuration register group 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 for sampling. After the sampling is completed, the sampling data may be fed back to the sampling timing transceiver controller 14, and the sampling timing transceiver 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, and writes the changed sampling scene into the sampling scene control register 13, and the subsequent sampling timing transceiver signal controller 14 continues sampling according to the sampling configuration corresponding to the new sampling scene. Therefore, in the embodiment of the application, when the sampling configuration needs to be updated, the main control only needs to rewrite the scene control register, and does not need to refresh the data of the plurality of registers in the scene configuration register group, so that the efficiency of switching the sampling configuration can be effectively improved.
As shown in fig. 2, fig. 2 is a schematic flowchart illustrating 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: and sampling according to the sampling rule configuration, and obtaining sampling data.
The sampling rule configuration comprises at least one sampling configuration in a preset sampling configuration group. The sampling configuration group comprises at least two sampling configurations, and each sampling configuration corresponds to one sampling scene.
In this embodiment, a sampling configuration group is pre-stored in the scene configuration register group 12, and the sampling configuration group includes at least two different sampling configurations. Further, the sampling configuration includes, but is not limited to, parameters such as a sampling current, a number of Light Emitting Diodes (LEDs) turned on, and a sampling time, 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, where the sampling configuration PRF1 includes a sampling current I1, a number of LEDs on a1, and a sampling time S1, and the sampling configuration PRF2 includes a sampling current I1, a number of LEDs on a1, and a sampling time S2.
Further, each sampling configuration is configured to correspond to a sampling scenario. In this embodiment, the sampling scenario includes, but is not limited to, at least two of a wear detection sampling scenario, a rest heart rate detection sampling scenario, a sports heart rate detection sampling scenario, and a temperature detection sampling scenario. For example, the sampling configuration PRF1 corresponds to a wear detection sampling scenario; 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, and the at least one sampling configuration is the sampling rule configuration of the current sampling. Specifically, the sampling timing transceiving signal controller 14 selects a corresponding sampling rule configuration from the sampling configuration group pre-stored in the scene configuration register group 12 according to the current sampling scene, and generates an actual sampling pulse according to the sampling configuration in the sampling rule configuration for sampling, thereby obtaining sampling data.
Step S120: and determining sampling scene requirements according to the sampling data.
Specifically, the sampling timing transceiving 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 scenario, that is, determine a sampling scenario requirement.
During the sampling process, sampling scenario requirements may change. Specifically, under a current sampling scene, sampling is performed according to a sampling rule configuration corresponding to the current sampling scene, and if a required sampling scene determined according to sampling data is consistent with the current sampling scene, it is indicated that 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 a wearing detection sampling scene, sampling is performed according to a sampling rule configuration corresponding to the wearing detection sampling scene, and if it is determined that the required sampling scene is still the wearing detection sampling scene according to the sampling data, the sampling scene requirement at this time is not changed; and if the required sampling scene is determined to be the heart rate detection sampling scene according to the sampling data, the requirement of the sampling scene at the moment is changed.
For another example, in a resting heart rate detection sampling scene, sampling is performed according to sampling rule configuration corresponding to the resting heart rate detection sampling scene, and if it is determined that the required sampling scene is still the resting heart rate detection sampling scene according to the sampling data, the sampling scene requirement at the moment is not changed; and if the required sampling scene is determined to be the exercise heart rate detection sampling scene according to the sampling data, the requirement of the sampling scene at the moment is changed.
Further, analyzing and processing the sampling result in the current sampling scene, and if the analysis result is consistent with the current sampling scene, indicating that the required sampling scene is consistent with the current sampling scene, that is, 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 not consistent with the current sampling scene, namely the sampling scene requirement is changed.
For example, in a 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 a 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 needed sampling scene is a heart rate detection sampling scene, namely the sampling scene needs to be changed.
For another example, in a resting heart rate detection sampling scene, if the obtained sampling result is analyzed and processed to indicate that the current heart rate is consistent with the resting heart rate, the required sampling scene is still the resting heart rate detection sampling scene, 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 required sampling scene is the exercise heart rate detection sampling scene, namely the requirement of the sampling scene is changed.
Step S130: and if the sampling scene requirement changes, determining a target sampling scene needing to be changed, and determining a target sampling rule configuration corresponding to the target sampling scene in the sampling configuration group according to a preset relationship.
In this embodiment, if the sampling scene requirement is not changed, the original sampling rule configuration is continuously used to generate sampling pulses for sampling in the next period; and if the sampling scene requirement changes, determining a target sampling scene needing to be changed, determining a target sampling rule configuration corresponding to the target sampling scene in the sampling configuration group according to a preset relationship, and generating sampling pulses for sampling according to the target sampling rule configuration in the next period.
Specifically, the main control module 11 determines a target sampling scenario after a change is required by analyzing and processing a sampling result, and rewrites the sampling scenario control register 13 by a scenario change signal to write the target sampling scenario into the sampling scenario control register 13, and then the sampling timing transceiver signal controller 14 determines a target sampling rule configuration corresponding to the target sampling scenario in the sampling configuration group according to a 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 a sampling configuration corresponding to a sampling scene. 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, where sampling rule configuration a includes sampling configuration PRF1, and sampling configuration PRF1 corresponds to sampling scenario 1; sampling scenario 2 corresponds to sampling rule configuration B, where sampling rule configuration B includes sampling configuration PRF2, and sampling configuration PRF2 corresponds to sampling scenario 2. In a specific example, the resting heart rate detection sampling scenario corresponds to a sampling rule configuration a, where the sampling rule configuration a includes a sampling configuration PRF1, and the sampling configuration PRF1 corresponds to the resting heart rate detection sampling scenario; the exercise heart rate detection sampling scenario corresponds to a sampling rule configuration B, where the sampling rule configuration B includes a sampling configuration PRF2, and the sampling configuration PRF2 corresponds to the exercise heart rate detection sampling scenario.
Alternatively, 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, where sampling rule configuration a includes sampling configuration PRF1, and sampling configuration PRF1 corresponds to sampling scenario 1; sampling scenario 2 corresponds to sampling rule configuration B, where sampling rule configuration B includes sampling configuration PRF1 and sampling configuration PRF2, and sampling configuration PRF2 corresponds to sampling scenario 2. In a specific example, the resting heart rate detection sampling scenario corresponds to a sampling rule configuration a, where the sampling rule configuration a includes a sampling configuration PRF1, and the sampling configuration PRF1 corresponds to the resting heart rate detection sampling scenario; the exercise heart rate detection sampling scenario corresponds to a sampling rule configuration B, where the sampling rule configuration B includes a sampling configuration PRF1 and a sampling configuration PRF2, and the sampling configuration PRF2 corresponds to the exercise heart rate detection sampling scenario.
Step S140: and switching the sampling rule configuration to a target sampling rule configuration.
Specifically, the sampling timing transceiving signal controller 14 selects a target sampling rule configuration from a sampling configuration group pre-stored in the scene configuration register group 12, switches the original sampling rule configuration to 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, according to the sampling control method, when the sampling scene requirement changes, sampling does not need to be stopped and all sampling configurations need to be refreshed, and only the sampling scene control register 13 needs to be simply rewritten, 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 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 changes, determining a target sampling scene needing to be changed, and determining a target sampling rule configuration corresponding to the target sampling scene in a sampling configuration group according to a preset relationship; 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 changes, the switching steps can be simplified, the sampling configuration corresponding to the sampling scene is switched rapidly, and the efficiency of switching the sampling configuration is 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: and sampling according to the sampling rule configuration, and obtaining sampling data.
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 for sampling, 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 a wearing detection sampling scenario, a sampling configuration corresponding to the wearing detection sampling scenario is selected from the sampling configuration group, and the sampling configuration is also a sampling rule configuration corresponding to the wearing detection sampling scenario.
Specifically, the sampling timing transceiving signal controller 14 selects a sampling rule configuration corresponding to the current sampling scene from a sampling configuration group pre-stored 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 pulses for sampling according to the sampling configuration corresponding to the current sampling scene in the sampling rule configuration, and further obtaining sampling data.
In one embodiment, the current sampling configuration is maintained for cycle-period sampling while the current sampling scenario remains 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. Wherein the sampling sequence is: sampling configuration PRF1, sampling configuration PRF1, and sampling configuration PRF1 … ….
Step S220: and determining sampling scene requirements according to the sampling data.
In this embodiment, step S220 may refer to step S120, and is not described again.
Step S230: and if the sampling scene requirement changes, determining a target sampling scene which needs to be changed, and determining a target sampling configuration corresponding to the target sampling scene in the sampling configuration group according to a first preset relationship.
In this embodiment, if the sampling scene requirement is not changed, the original sampling configuration is continuously used to generate sampling pulses for sampling in the next period; if the sampling scene requirement changes, determining a target sampling scene which needs to be changed, determining a target sampling configuration corresponding to the target sampling scene in a sampling configuration group according to a first preset relationship, and generating sampling pulses for sampling according to the target sampling configuration in the next period.
Specifically, the main control module 11 determines a target sampling scenario after a change is required by analyzing and processing a sampling result, and rewrites the sampling scenario control register 13 by the scenario change signal to write the target sampling scenario into the sampling scenario control register 13, and then the sampling timing transceiver signal controller 14 determines a target sampling configuration corresponding to the target sampling scenario in the sampling configuration group according to a first preset relationship. The first preset relationship is used for representing a one-to-one correspondence relationship between the sampling scene and the sampling configuration.
For example, if the sampling scene requirement is changed from the resting heart rate detection sampling scene to the 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 a target sampling configuration corresponding to the exercise heart rate detection sampling scene in the sampling configuration group according to the first preset relationship, where the target sampling configuration is also the sampling rule configuration corresponding to the exercise heart rate detection sampling scene.
Step S240: and switching the sampling rule configuration to the target sampling configuration.
Specifically, the sampling timing transceiving signal controller 14 selects a target sampling configuration from a sampling configuration group pre-stored in the scene configuration register group 12, switches the original sampling rule configuration to the target sampling configuration, and generates an actual sampling pulse according to the target sampling configuration to perform sampling of a next period.
In subsequent successive sampling processes, the sample may be sampled cyclically in the target sampling configuration. As shown in fig. 5, after switching from sampling scenario 1 to sampling scenario 2, if the sampling cycle performed by the sampling configuration PRF1 corresponding to the sampling scenario 1 changes to the sampling cycle performed by the sampling configuration PRF2 corresponding to the sampling scenario 2 during the continuous sampling process, the sampling order before and after switching of the sampling configurations is: sampling configuration PRF1, sampling configuration PRF1, sampling configuration PRF1, sampling configuration PRF2, sampling configuration PRF2, and 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 requirements change, and only needs to simply rewrite the sampling scene control register 13, so that the switching of the sampling configurations can be quickly 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 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 changes, determining a target sampling scene needing to be changed, and determining a target sampling configuration corresponding to the target sampling scene in a sampling configuration group according to a first preset relationship; 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 changes, the switching steps can be simplified, the sampling configuration corresponding to the sampling scene is quickly switched, and the efficiency of switching the sampling configuration is effectively improved.
As shown in fig. 6, the embodiment of the present 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 performing cyclic sampling according to at least two sampling configurations in the sampling configuration group to obtain 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 the sampling configuration group for sampling, and each sampling configuration corresponds to one sampling scene; the at least two sampling configurations are sampling rule configurations of current sampling, and one of the at least two sampling configurations corresponds to a current sampling scene. For example, in a resting heart rate detection sampling scenario, a sampling configuration PRF1 and a sampling configuration PRF2 are selected from a sampling configuration group for sampling, where the sampling configuration PRF1 and the sampling configuration PRF2 are sampling rule configurations corresponding to the resting heart rate detection sampling scenario, the sampling configuration PRF1 may be a sampling configuration corresponding to a wearing detection sampling scenario, and the sampling configuration PRF2 may be a sampling configuration corresponding to the resting heart rate detection sampling scenario.
Specifically, the sampling timing transceiving signal controller 14 selects a sampling rule configuration corresponding to the current sampling scene from a sampling configuration group pre-stored 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 at least one sampling configuration corresponding to other sampling scenes; and then generating actual sampling pulses 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, and further obtaining sampling data.
As an embodiment, when the sampling rule configuration includes at least two sampling configurations, the sampling rule configuration further includes cycle numbers and sequence of the at least two sampling configurations, so that the sampling timing transceiver signal controller 14 may perform sampling of corresponding cycle numbers according to the at least two sampling configurations in sequence.
In one embodiment, in the case that the current sampling scenario remains unchanged, at least two sampling configurations in the current sampling rule configuration are kept for cyclic sampling. As shown in fig. 7, when continuous sampling is performed while the sampling scene 1 remains unchanged, cyclic sampling is performed while holding the sampling arrangement PRF1 and the sampling arrangement PRF2 in the sampling rule arrangement corresponding to the sampling scene 1. Wherein the sampling sequence is: sampling configuration PRF1, sampling configuration PRF2, sampling configuration PRF1, and sampling configuration PRF2 … ….
Step S320: and determining sampling scene requirements according to the sampling data.
In this embodiment, step S320 can refer to step S120, which is not described herein.
Step S330: and if the sampling scene requirement changes, determining a target sampling scene needing to be changed, 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, the original at least two sampling configurations are continuously used to generate sampling pulses for sampling in the next period; if the sampling scene requirement changes, determining a target sampling scene which needs to be changed, 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 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 a target sampling scenario after the change is required by analyzing and processing the sampling result, and rewrites the sampling scenario control register 13 by the scenario change signal to write the target sampling scenario into the sampling scenario control register 13, and then the sampling timing transceiver signal controller 14 determines at least two target sampling configurations corresponding to the target sampling scenario 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 the resting heart rate detection sampling scene to the 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 also sampling rule configurations corresponding to the exercise heart rate detection sampling scene.
Further, different sampling scenarios may be performed corresponding to different numbers of at least two sampling configurations, and each sampling configuration may correspond to one sampling scenario separately. For example, under a resting heart rate detection sampling scenario, the sampling configuration PRF1 and the sampling configuration PRF2 may be correspondingly executed, where the sampling configuration PRF1 is a sampling configuration individually corresponding to a wearing detection sampling scenario, and the sampling configuration PRF2 is a sampling configuration individually corresponding to the resting heart rate detection sampling scenario. Therefore, under the scene of resting heart rate detection sampling, not only can the resting heart rate be sampled and the resting heart rate data can be obtained, the wearing data can also be sampled to judge whether the equipment is worn. The exercise heart rate detection and resting heart rate detection sampling scene may correspond to sampling configuration PRF1, sampling configuration PRF2, and sampling configuration PRF3, where sampling configuration PRF1 is a sampling configuration that individually corresponds to the wearing detection sampling scene, sampling configuration PRF2 is a sampling configuration that individually corresponds to the resting heart rate detection sampling scene, and sampling configuration PRF3 is a sampling configuration that individually corresponds to the exercise heart rate detection sampling scene. Therefore, under the motion heart rate detection sampling scene, not only can carry out the sampling to the motion heart rate and obtain motion heart rate data, can also sample wearing data to judge whether equipment wears, and can also sample in order to obtain rest heart rate data to the rest heart rate.
Step S340: switching the at least two sampling configurations 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 transceiving signal controller 14 selects the at least two target sampling configurations from the sampling configuration group 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 period.
In subsequent consecutive sampling, 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, the cyclic sampling by the sampling configuration PRF1 and the sampling configuration PRF2 corresponding to the sampling scene 1 changes to the cyclic sampling by the sampling configuration PRF2 and the sampling configuration PRF3 corresponding to the sampling scene 2 in the continuous sampling process, where the sampling order is: sampling configuration PRF1, sampling configuration PRF2, sampling configuration PRF1, sampling configuration PRF2, sampling configuration PRF2, sampling configuration PRF3, sampling configuration 2, and sampling 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 requirements change, and only needs to simply rewrite the sampling scene control register 13, so that the switching of the sampling configurations can be quickly completed, 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 cycle sampling of a plurality of sampling configurations in the sampling process, so that the data of the plurality of scenes can be conveniently compared and analyzed, and meanwhile, in the automatic cycle sampling process, the plurality of sampling configurations are also automatically switched without refreshing all the sampling configurations, so that the rapidity of switching the sampling configurations is ensured.
According to the sampling control method provided by the embodiment of the application, cyclic sampling is carried out according to at least two sampling configurations in a sampling configuration group, and sampling data are obtained; then determining sampling scene requirements according to the sampling data; if the sampling scene requirement changes, determining a target sampling scene needing 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 to the target sampling rule configuration, so that when the sampling scene changes, the switching step can be simplified, the sampling configuration corresponding to the sampling scene is quickly switched, and the efficiency of switching the sampling configuration is effectively improved.
As shown in fig. 9, the embodiment of the present 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 performing cyclic sampling according to at least two sampling configurations in the sampling configuration group and the cyclic configuration of the at least two sampling configurations, and obtaining sampling data.
In this embodiment, the sampling rule configurations include at least two sampling configurations in a preset sampling configuration group and a cycle configuration of the at least two sampling configurations, where the cycle configuration is used to characterize the number of sampling periods executed by each sampling configuration in the sampling rule configurations. For example, the sampling rule configuration includes sampling configuration PRF1 and sampling configuration PRF2, and the sampling configuration PRF1 × 2 and the sampling configuration PRF2 × 3 are cyclically configured, so that sampling for 2 cycles is performed according to sampling configuration PRF1 and sampling for 3 cycles is performed according to sampling configuration PRF2 in the sampling process.
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 current sampling, and one of the at least two sampling configurations corresponds to a current sampling scene.
Specifically, the sampling timing transceiving signal controller 14 selects at least two sampling configurations, which are correspondingly executed in the current sampling scene, from the sampling configuration groups pre-stored in the scene configuration register group 12 according to the current sampling scene, where the at least two sampling configurations include one sampling configuration corresponding to the current sampling scene and at least one sampling configuration corresponding to another sampling scene; and then generating actual sampling pulses for sampling according to the at least two sampling configurations and the cyclic configuration of the at least two sampling configurations, thereby obtaining sampling data.
For example, in a resting heart rate detection sampling scenario, a sampling configuration PRF1 and a sampling configuration PRF2 are selected from a sampling configuration group for sampling, where the sampling configuration PRF1 may be a sampling configuration corresponding to a wearing detection sampling scenario, a cycle configuration corresponding to the sampling configuration PRF1 is 1, the sampling configuration PRF2 may be a sampling configuration corresponding to the resting heart rate detection sampling scenario, and a cycle configuration corresponding to the sampling configuration PRF is 2, that is, the sampling configuration PRF1 executes 1 cycle period, and executes 2 cycle periods on the sampling configuration PRF 2. The actual sampling pulses are then generated according to the sampling configuration PRF1 and its cyclic configuration, and the sampling PRF2 and its cyclic configuration. This may be particularly shown in figure 10.
Further, under the condition that the current sampling scene is kept unchanged, at least two sampling configurations in the current sampling rule configuration are kept for cyclic sampling, and the cycle times corresponding to the cyclic configurations are executed during the sampling period of each sampling configuration. As shown in fig. 11, when continuous sampling is performed while the sampling scenario 1 remains unchanged, the sampling configuration PRF1 and the sampling configuration PRF2 in the sampling rule configuration corresponding to the sampling scenario 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. Wherein the sampling sequence is: sampling configuration PRF1, sampling configuration PRF2, sampling configuration PRF2, sampling configuration PRF1, sampling configuration PRF2, and sampling configuration PRF2 … ….
Step S420: and determining sampling scene requirements according to the sampling data.
In this embodiment, step S420 may refer to step S120, which is not described herein.
Step S430: if the sampling scene requirement changes, determining a target sampling scene needing to be changed, and determining at least two target sampling configurations corresponding to the target sampling scene and the cyclic configuration of the at least two target sampling configurations in a sampling configuration group according to a third preset relationship.
In this embodiment, if the sampling scene requirement is not changed, the original at least two sampling configurations and the original cyclic configuration are continuously used to generate sampling pulses for sampling in the next period; if the sampling scene requirement changes, determining a target sampling scene which needs to be changed, determining at least two target sampling configurations corresponding to the target sampling scene and the cyclic configuration of the at least two target sampling configurations in a sampling configuration group according to a third preset relationship, and generating sampling pulses for sampling according to the at least two target sampling configurations and the cyclic configuration of the at least two target sampling configurations in the next period.
Specifically, the main control module 11 determines a target sampling scenario after a change is required by analyzing and processing a sampling result, and rewrites the sampling scenario control register 13 by the scenario change signal to write the target sampling scenario into the sampling scenario control register 13, and then the sampling timing transceiver signal controller 14 determines at least two target sampling configurations corresponding to the target sampling scenario in the sampling configuration group according to a third preset relationship, and determines a cyclic configuration of the at least two target sampling configurations. The third preset corresponding relation is used for representing a first corresponding relation between a sampling scene and at least two sampling configurations in the sampling configuration group, and a second corresponding relation between the sampling scene and the cyclic configurations of the at least two sampling configurations.
For example, if the sampling scene requirement is changed from the resting heart rate detection sampling scene to the 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 corresponding relationship, 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 corresponding relationship.
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, the sampling configuration PRF1 and the sampling configuration PRF2 may be executed correspondingly. Wherein the sampling configuration PRF1 is a sampling configuration corresponding to a wearing detection sampling scenario, and the cycle configuration of the sampling configuration PRF1 in a resting heart rate detection sampling scenario is 1; the sampling configuration PRF2 is a sampling configuration corresponding to a resting heart rate detection sampling scenario, and the cycle configuration of the sampling configuration PRF2 in the resting heart rate detection sampling scenario is 2. In the motion heart rate detection sampling scenario, the sampling configuration PRF1, the sampling configuration PRF2, and the sampling configuration PRF3 may be performed correspondingly. Wherein the sampling configuration PRF1 is a sampling configuration corresponding to a wear detection sampling scenario, and the cycle configuration of the sampling configuration PRF1 in a sports heart rate detection sampling scenario 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 under a moving heart rate detection sampling scene is 1; the sampling configuration PRF3 is a sampling configuration corresponding to a motion heart rate detection sampling scenario, and the cycle configuration of the sampling configuration PRF3 in the motion heart rate detection sampling scenario is 2.
It is worth noting that, in the current sampling scenario, the cycle configuration of the sampling configuration corresponding to the current sampling scenario may be larger than the cycle configurations of the sampling configurations corresponding to other sampling scenarios, so as to ensure that the data accuracy associated with the current sampling scenario is the maximum. For example, in a resting heart rate detection sampling scenario, the sampling configuration PRF1 and the sampling configuration PRF2 may be executed correspondingly. The sampling configuration PRF1 is the sampling configuration PRF1 corresponding to the wearing detection sampling scene, the sampling configuration PRF2 is the sampling configuration corresponding to the 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 accuracy of the sampling data of the resting heart rate is guaranteed to be maximum in the resting heart rate detection sampling scene.
Step S440: 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 transceiving signal controller 14 selects the at least two target sampling configurations from the sampling configuration group 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 then generates an actual sampling pulse 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 period.
In the subsequent continuous sampling, cyclic sampling is performed with the at least two target sampling configurations, and the number of cycles corresponding to the cyclic configuration is performed during the sampling period performed by each target sampling configuration. As shown in fig. 12, after switching from sampling scene 1 to sampling scene 2, the cyclic sampling by sampling configuration PRF1 and sampling configuration PRF2 corresponding to this sampling scene 1 is changed to the 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: sampling configuration PRF1, sampling configuration PRF2, sampling configuration PRF2, sampling configuration PRF1, sampling configuration PRF2, sampling configuration PRF2, sampling configuration PRF2, sampling configuration PRF3, sampling configuration PRF3, sampling configuration PRF2, sampling configuration PRF3, and sampling 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 requirements change, and only needs to simply rewrite the sampling scene control register 13, so that the switching of the sampling configurations can be quickly completed, 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 cycle sampling of a plurality of sampling configurations in the sampling process, so that the data of the plurality of scenes can be conveniently compared and analyzed, and meanwhile, in the automatic cycle sampling process, the plurality of sampling configurations are also automatically switched without refreshing all the sampling configurations, so that the rapidity of switching the sampling configurations is ensured.
According to the sampling control method provided by the embodiment of the application, cyclic sampling is performed according to at least two sampling configurations in a sampling configuration group and cyclic configurations of the at least two sampling configurations, and sampling data are obtained; then determining sampling scene requirements according to the sampling data; if the sampling scene requirement changes, determining a target sampling scene needing to be changed, and determining at least two target sampling configurations corresponding to the target sampling scene and the cyclic configuration of the at least two target sampling configurations in a sampling configuration group according to a third preset relationship; and switching at least two sampling configurations and the cyclic configuration of the at least two sampling configurations into 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, and the sampling control device 500 may be applied to the sampling system 10 described above. The sampling control apparatus 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 perform sampling 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 to be changed if the sampling scene requirement changes, 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 embodiments, 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 comprises a sampling sub-unit, and the sampling sub-unit is 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 the sampling data.
In some embodiments, the goal determining module 530 comprises a first goal determining unit 531 and a second goal determining unit 532. The first target determining unit is used for determining a target sampling scene which needs to be changed if the sampling scene requirement changes, and determining a target sampling configuration corresponding to the target sampling scene in the sampling configuration group according to a first preset relationship; the second target determining unit 532 is configured to determine a target sampling scene that needs to be changed 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, and the second target determining subunit is configured to determine, if the sampling scenario requirement changes, a target sampling scenario after the change is required, and determine, in the sampling configuration group, at least two target sampling configurations corresponding to the target sampling scenario and a cyclic configuration of the at least two target sampling configurations 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 carries out sampling according to the configuration of a 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 changes, determining a target sampling scene needing to be changed, and determining a target sampling rule configuration corresponding to the target sampling scene in a sampling configuration group according to a preset relationship; 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 changes, the switching steps can be simplified, the sampling configuration corresponding to the sampling scene is switched rapidly, and the efficiency of switching the sampling configuration is improved effectively.
As shown in fig. 14, fig. 14 shows a block diagram of an electronic device 600 provided in 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, and the program instructions are executed by the processor 610 to implement the above-mentioned sampling control method.
The electronic device 600 includes, but is not limited to, a smart bracelet, a smart watch, a True Wireless Stereo (TWS) headset, and a mobile terminal.
The processor 610 may include one or more processing cores. The processor 610, using various interfaces and lines to interface various parts throughout the battery management system, performs various functions of the battery management system and processes 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 hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 610 may integrate one or more of a Central Processing Unit (CPU) 610, a Graphics Processing Unit (GPU) 610, a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 610, but may be implemented by a communication chip.
The Memory 620 may include a Random Access Memory (RAM) 620, and may also include a Read-Only Memory (Read-Only Memory) 620. The memory 620 may be used to store instructions, programs, code, sets of codes, or sets of instructions. 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 (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The storage data area can also store data (such as a phone book, audio and video data, chatting record data) created by the electronic device map in use 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, and the computer program instructions 710 can be called by a processor to execute 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. Alternatively, the computer-readable storage medium includes a non-volatile computer-readable storage medium. The computer-readable storage medium 700 has storage space for program code for performing 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 with reference to the preferred embodiments, it is to be understood that the present application is not limited to the disclosed embodiments, but rather, the present application is intended to cover various modifications, equivalents and alternatives falling within the spirit and scope of the present application.

Claims (10)

1. A sampling control method, characterized in that the method comprises:
sampling according to the 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 changes, determining a target sampling scene needing to be changed, and determining a target sampling rule configuration corresponding to the target sampling scene in the sampling configuration group according to a preset relationship; the preset relationship is used for representing the corresponding relationship between the sampling scene and the sampling rule configuration; and
and switching the sampling rule configuration to the target sampling rule configuration.
2. The sampling control method of claim 1, wherein the sampling rule configuration comprises one sampling configuration of the set of sampling configurations;
if the sampling scene requirement changes, determining a target sampling scene required to be changed, and determining a target sampling rule configuration corresponding to the target sampling scene in the sampling configuration group according to a preset relationship, wherein the target sampling rule configuration comprises:
if the sampling scene requirement changes, determining a target sampling scene needing to be changed, and determining a target sampling configuration corresponding to the target sampling scene in the sampling configuration group according to a first preset relationship; the first preset relationship is used for representing a one-to-one correspondence relationship between the sampling scene and the sampling configuration.
3. The sampling control method of claim 1, wherein the sampling rule configuration comprises at least two sampling configurations of the set of sampling configurations;
the sampling according to the sampling rule configuration and obtaining the sampling data comprises:
and performing cyclic sampling according to at least two sampling configurations in the sampling configuration group to obtain sampling data.
4. The sampling control method according to claim 3, wherein if the sampling scenario requirement changes, determining a target sampling scenario that needs to be changed, and determining a target sampling rule configuration corresponding to the target sampling scenario in the sampling configuration group according to a preset relationship comprises:
if the sampling scene requirement changes, determining a target sampling scene needing to be changed, 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; 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.
5. The sampling control method of claim 3, wherein the sampling rule configuration further comprises a loop configuration of the at least two sampling configurations, the loop configuration being used to characterize a number of sampling cycles performed by each of the sampling rule configurations;
the performing cyclic sampling according to at least two sampling configurations in the sampling configuration group to obtain sampling data includes:
and performing cyclic sampling according to at least two sampling configurations in the sampling configuration group and the cyclic configuration of the at least two sampling configurations, and obtaining sampling data.
6. The sampling control method according to claim 5, wherein if the sampling scenario requirement changes, determining a target sampling scenario that needs to be changed, and determining a target sampling rule configuration corresponding to the target sampling scenario in the sampling configuration group according to a preset relationship comprises:
if the sampling scene requirement changes, determining a target sampling scene needing to be changed, and determining at least two target sampling configurations corresponding to the target sampling scene and the cyclic configuration of the at least two target sampling configurations in the sampling configuration group according to a third preset relationship; 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.
7. The sampling control method of claim 6, 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.
8. A sampling control apparatus, characterized in that the apparatus comprises:
the sampling module is used for sampling according to the 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;
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 which needs to be changed if the sampling scene requirement changes, and determining a target sampling rule configuration corresponding to the target sampling scene in the sampling configuration group according to a preset relationship; 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.
9. An electronic device comprising a processor and a memory, the memory storing computer program instructions which, when invoked by the processor, perform the sampling control method of any of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a program code, wherein the program code executes the sampling control method according to any one of claims 1 to 7 when executed by a processor.
CN202111064156.2A 2021-09-10 2021-09-10 Sampling control method, device, electronic equipment and storage medium Pending CN113940643A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111064156.2A CN113940643A (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 CN113940643A (en) 2021-09-10 2021-09-10 Sampling control method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113940643A true CN113940643A (en) 2022-01-18

Family

ID=79328283

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN113940643A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150057967A1 (en) * 2013-08-26 2015-02-26 EveryFit, Inc Power efficient system and method for measuring physical activity in resource constrained devices
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150057967A1 (en) * 2013-08-26 2015-02-26 EveryFit, Inc Power efficient system and method for measuring physical activity in resource constrained devices
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
US20210161454A1 (en) * 2019-11-29 2021-06-03 Shenzhen GOODIX Technology Co., Ltd. Method for sampling biometric data and sampling and managing apparatus thereof
CN111880681A (en) * 2020-06-28 2020-11-03 北京小米移动软件有限公司 Touch screen sampling rate adjusting method and device and computer storage medium

Similar Documents

Publication Publication Date Title
CN108628652B (en) User interface rendering method and device and terminal
CN109582463B (en) Resource allocation method, device, terminal and storage medium
CN109992315B (en) Touch screen control method and device, terminal and storage medium
US20210357759A1 (en) Task processing method and device based on neural network
CN108920156A (en) Application program prediction model method for building up, device, storage medium and terminal
CN107102936A (en) The appraisal procedure and mobile terminal and storage medium of a kind of fluency
CN108762831A (en) Application program preloads method, apparatus, storage medium and terminal
CN108829456A (en) Application program preloads method, apparatus, storage medium and terminal
CN108595224A (en) Application prompts method, apparatus, storage medium and terminal
CN111124668B (en) Memory release method, memory release device, storage medium and terminal
CN108845838A (en) Application program preloads method, apparatus, storage medium and terminal
CN110795172B (en) Foreground process control method and device, electronic equipment and storage medium
US10372576B2 (en) Simulation reproduction apparatus, simulation reproduction method, and computer readable medium
CN110702346B (en) Vibration testing method and device, storage medium and terminal
CN113940643A (en) Sampling control method, device, electronic equipment and storage medium
CN111459682B (en) Frequency adjustment method, device, electronic equipment and storage medium
CN110489318A (en) Grasping means, device, storage medium and the terminal of systrace information
CN113223499B (en) Method and device for generating audio negative sample
CN111381908A (en) Timing information display method and device and storage medium
CN114647336A (en) Click delay measuring method and device, storage medium and electronic equipment
CN115878014A (en) Sampling control method, device, electronic equipment and storage medium
CN110515834B (en) Interface testing method and device, mobile terminal and storage medium
CN114222980A (en) Power consumption log processing method, device, electronic equipment and storage medium
US20220362668A1 (en) Information display method and apparatus, terminal, storage medium, and computer program product
US20220319086A1 (en) Method and apparatus for controlling animation refreshing, computer device, 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