Sampling control method and device, electronic equipment and storage medium
Patent Information
- Application Number
- CN202111143442.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-28
- Publication Date
- 2026-09-29
- Estimated Expiration
- 2041-09-28
AI Technical Summary
传统的PRF采样在一个采样时序内的采样功能较为固定,采样形式单一
[0008]本申请实施例提供的采样控制方法、装置、电子设备以及存储介质,该采样控制方法包括将单个采样时序划分成至少两个采样相位组,其中每个采样相位组对应一个采样场景;然后根据采样场景需求与预设关系确定采样相位组的采样配置,预设关系用于表征采样场景需求与采样相位组的采样配置之间的对应关系;再根据采样相位组的采样配置进行采样。本申请实施例提供的采样控制方法在单个采样时序内能够通过多个采样相位组的采样配置针对多种采样场景进行采样,从而提高在单个采样时序内采样功能的多样性。
Smart Images

Figure CN115878014B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing technology, specifically to a sampling control method, apparatus, electronic device, and storage medium. Background Technology
[0002] Electronic devices need to periodically sample external information to perceive it. In PRF (Pulse Repetition Frequency) sampling timing, different sampling sequences are required to handle different detection scenarios. Traditional PRF sampling has a relatively fixed sampling function within a single sampling sequence, resulting in a single sampling method. Summary of the Invention
[0003] In view of the above problems, embodiments of this application provide a sampling control method, apparatus, electronic device, and storage medium to solve the above technical problems.
[0004] In a first aspect, embodiments of this application provide a sampling control method. The sampling control method first divides a single sampling time sequence into at least two sampling phase groups, where each sampling phase group corresponds to a sampling scenario; then determines the sampling configuration of the sampling phase group according to the sampling scenario requirements and a preset relationship, where the preset relationship is used to characterize the correspondence between the sampling scenario requirements and the sampling configuration of the sampling phase group; and then performs sampling according to the sampling configuration of the sampling phase group.
[0005] Secondly, embodiments of this application also provide a sampling control device, which includes a division module, a determination module, and a sampling module; the division module is used to divide a single sampling time sequence into at least two sampling phase groups, wherein each sampling phase group corresponds to a sampling scenario; the determination module is used to determine the sampling configuration of the sampling phase group according to the sampling scenario requirements and a preset relationship, wherein the preset relationship is used to characterize the correspondence between the sampling scenario requirements and the sampling configuration of the sampling phase group; the sampling module is used to perform sampling according to the sampling configuration of the sampling phase group.
[0006] Thirdly, embodiments of this application also provide an electronic device, including a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are invoked by the processor, the sampling control method described above is executed.
[0007] Fourthly, embodiments of this application also provide a computer-readable storage medium storing program code, wherein the sampling control method described above is executed when the program code is run by a processor.
[0008] The sampling control method, apparatus, electronic device, and storage medium provided in this application include dividing a single sampling time sequence into at least two sampling phase groups, where each sampling phase group corresponds to a sampling scenario; then determining the sampling configuration of the sampling phase groups based on the sampling scenario requirements and a preset relationship, where the preset relationship characterizes the correspondence between the sampling scenario requirements and the sampling configuration of the sampling phase groups; and finally, performing sampling according to the sampling configuration of the sampling phase groups. The sampling control method provided in this application can perform sampling for multiple sampling scenarios within a single sampling time sequence through the sampling configuration of multiple sampling phase groups, thereby improving the diversity of sampling functions within a single sampling time sequence.
[0009] These or other aspects of this application will become more apparent in the following description of the embodiments. Attached Figure Description
[0010] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0011] Figure 1 A block diagram of a sampling system provided in an embodiment of this application is shown.
[0012] Figure 2 A schematic flowchart of a sampling control method provided in an embodiment of this application is shown.
[0013] Figure 3 A timing diagram of the sampling scenario provided in the embodiment of this application is shown.
[0014] Figure 4 A schematic diagram of the division of sampling phase groups provided in an embodiment of this application is shown.
[0015] Figure 5 A flowchart illustrating another sampling control method provided in an embodiment of this application is shown.
[0016] Figure 6 A schematic diagram of the sampling timing provided in the embodiments of this application is shown.
[0017] Figure 7 This illustration shows a sampling timing diagram provided by an embodiment of the present application under the requirements of a sampling scenario.
[0018] Figure 8 This illustration shows a timing diagram of a sampling scenario transition provided in an embodiment of this application.
[0019] Figure 9This illustration shows a timing diagram of a sampling scenario that does not change, as provided in an embodiment of this application.
[0020] Figure 10 A flowchart illustrating another sampling control method provided in an embodiment of this application is shown.
[0021] Figure 11 A timing diagram of idling provided in an embodiment of this application is shown.
[0022] Figure 12 A comparative schematic diagram of idling and non-idling provided in the embodiments of this application is shown.
[0023] Figure 13 A timing diagram of a cyclic sampling phase group provided in an embodiment of this application is shown.
[0024] Figure 14 This illustrates another timing diagram of the sampling scenario transition provided in an embodiment of this application.
[0025] Figure 15 A timing diagram illustrating the idling cancellation provided in an embodiment of this application is shown.
[0026] Figure 16 This illustrates another timing diagram showing that the sampling scenario does not change, as provided in an embodiment of this application.
[0027] Figure 17 A block diagram of a sampling control device provided in an embodiment of this application is shown.
[0028] Figure 18 A block diagram of an electronic device provided in an embodiment of this application is shown.
[0029] Figure 19 A block diagram of a computer-readable storage medium provided in an embodiment of this application is shown. Detailed Implementation
[0030] The embodiments of this application are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain this application, and should not be construed as limiting this application.
[0031] To enable those skilled in the art to better understand the solutions of this application, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.
[0032] Electronic devices need to periodically sample external information to perceive it. In PRF (Pulse Repetition Frequency) sampling timing, different sampling sequences are required to handle different sampling scenarios. For example, in a wear detection sampling scenario, sampling is performed using the first sampling sequence; in a heart rate detection sampling scenario, sampling is performed using the second sampling sequence.
[0033] Traditional PRF sampling has a relatively fixed sampling function within a sampling time sequence, typically performing one or more sets of cyclic sampling for only one function. For example, in the sampling time sequence corresponding to the wear detection scenario, one or more sets of cyclic sampling are performed for wear detection. Therefore, traditional PRF sampling has a single sampling method within a sampling time sequence.
[0034] This application provides a sampling control method, apparatus, electronic device, and storage medium. The sampling control method includes dividing a single sampling time sequence into at least two sampling phase groups, where each sampling phase group corresponds to a sampling scenario; then determining the sampling configuration of the sampling phase groups based on the sampling scenarios and a preset relationship, where the preset relationship characterizes the correspondence between the sampling scenarios and the sampling configurations of the sampling phase groups; and finally performing sampling according to the sampling configurations of the sampling phase groups. The sampling control method provided by this application can sample multiple sampling scenarios within a single sampling time sequence through the sampling configurations of multiple sampling phase groups, thereby improving the diversity of sampling functions within a single sampling time sequence.
[0035] like Figure 1 As shown, Figure 1 A block diagram of a sampling system 10 provided in an embodiment of this application is shown. The sampling system 10 includes a control module 11, a sampling configuration register group 12, a configuration selection register 13, and a sampling timing transceiver signal controller 14. The control module 11 is connected to the sampling configuration register group 12, the configuration selection register 13, and the sampling timing transceiver signal controller 14, respectively. The sampling configuration register group 12 is also connected to the configuration selection register 13 and the sampling timing transceiver signal controller 14, respectively. The configuration selection register 13 is also connected to the sampling timing transceiver signal controller 14.
[0036] In this embodiment, the control module 11 controls the sampling process in the sampling system and performs data processing. The sampling configuration register group 12 is a sampling configuration register group for sampling phase groups, used to store the sampling configurations of multiple sampling phase groups. Within a single sampling sequence, multiple sampling phase groups correspond to different sampling scenarios. Taking the application scenario of wearable devices as an example, different sampling scenarios may include, but are not limited to, at least two of the following: wear detection sampling scenario, resting heart rate detection sampling scenario, exercise heart rate detection sampling scenario, and temperature detection sampling scenario. The configuration selection register 13 is a sampling configuration selection register for sampling phase groups, used to select the sampling configuration of the corresponding sampling phase group from the sampling configuration register group 12 to form a sampling sequence. The sampling sequence transceiver signal controller 14 is used to generate sampling pulses for sampling according to the selected sampling configuration of the sampling phase group.
[0037] As an example, the control module 11 identifies the sampling scenario, and the configuration selection register 13 selects the sampling configuration of the corresponding sampling phase group from the sampling configuration register group 12 according to the current sampling scenario, forming a sampling timing sequence. After sampling begins, the sampling timing transceiver controller 14 generates actual sampling pulses for sampling according to the selected sampling phase group's sampling configuration. After sampling is completed, the sampled data can be fed back to the sampling timing transceiver controller 14, and the sampling timing transceiver controller 14 sends the sampling results to the control module 11. The control module 11 can also analyze and identify whether the current sampling scenario has changed based on the sampling results. If the current sampling scenario has changed, the configuration selection register 13 can select a new sampling configuration of the sampling phase group from the sampling configuration register group 12, forming a new sampling timing sequence. Then, the sampling timing transceiver controller 14 can generate actual sampling pulses to sample the new sampling scenario according to the selected new sampling phase group's sampling configuration. As can be seen, in the embodiments of this application, sampling is performed by sampling configuration of different sampling phase groups within a single sampling time sequence, so that the function of sampling different sampling scenarios can be performed within a single sampling time sequence. Compared with the single and fixed sampling function in a single sampling time sequence in the prior art, the sampling control method of this application can effectively improve the diversity of sampling functions within a single sampling time sequence.
[0038] like Figure 2 As shown, Figure 2 A schematic flowchart of a sampling control method 100 provided in an embodiment of this application is shown.
[0039] Step S110: Divide a single sampling timing sequence into at least two sampling phase groups.
[0040] A sampling scenario can be sampled through one or more sampling sequences, where one sampling sequence is also known as a sampling period. For example... Figure 3 As shown, taking a smart wearable device as an example, when the user is not wearing the device, the sampling scenario requirement is wear detection. In the wear detection sampling scenario, sampling can be performed using a single sampling sequence PRF1, or cyclically using multiple sampling sequences PRF1. When the user is wearing the device, the sampling scenario requirement is heart rate detection. In the heart rate detection sampling scenario, sampling can be performed using a single sampling sequence PRF2, or cyclically using multiple sampling sequences PRF2. In this embodiment, the sampling scenario may include, but is not limited to, at least two of the following: wear detection sampling scenario, resting heart rate detection sampling scenario, exercise heart rate detection sampling scenario, and temperature detection sampling scenario.
[0041] In this embodiment, a single sampling timing sequence is divided into at least two different sampling phase groups. As one approach, such as... Figure 4 As shown, the sampling timing PRF1 can include sampling phase group 1, sampling phase group 2, sampling phase group 3, and sampling phase group 4. Furthermore, a sampling phase group can be composed of multiple identical sampling phase groups cyclically. For example... Figure 4 As shown, in the sampling timing PRF2, sampling phase group 3 is actually two cycles of sampling phase group 3.
[0042] Furthermore, each sampling phase group corresponds to a sampling scenario. For example, sampling phase group 1 can correspond to the wear detection sampling scenario, sampling phase group 2 can correspond to the resting heart rate detection scenario, and sampling phase group 3 can correspond to the exercise heart rate detection scenario.
[0043] As can be seen, multiple sampling scenarios can be sampled within a single sampling time sequence. For example, in sampling time sequence PRF1, which includes sampling phase group 1, sampling phase group 2, and sampling phase group 3, sampling phase group 1 corresponds to the wear detection sampling scenario, sampling phase group 2 corresponds to the resting heart rate detection scenario, and sampling phase group 3 corresponds to the exercise heart rate detection scenario. Therefore, in sampling time sequence PRF1, wear detection, resting heart rate detection, and exercise heart rate detection can be performed respectively.
[0044] Step S120: Determine the sampling configuration of the sampling phase group according to the sampling scenario requirements and preset relationships.
[0045] In this embodiment, each sampling phase group corresponds to a sampling configuration. The sampling configuration of a sampling phase group is also the sampling configuration corresponding to that sampling phase group. In this embodiment, the sampling configuration may include, but is not limited to, parameters such as sampling current, the number of LEDs turned on, and sampling time. Different sampling phase groups have different sampling configurations, and at least one parameter differs between different sampling configurations. For example, sampling configuration 1 of sampling phase group 1 includes sampling current I1, the number of LEDs turned on A1, and sampling time S1; sampling configuration 2 of sampling phase group 2 includes sampling current I1, the number of LEDs turned on A1, and sampling time S2.
[0046] Furthermore, the sampling configuration is used to sample the sampling scenarios corresponding to the sampling phase groups. For example, if sampling phase group 1 corresponds to the wear detection sampling scenario, sampling phase group 2 corresponds to the resting heart rate sampling scenario, and sampling phase group 3 corresponds to the exercise heart rate sampling scenario, then sampling configuration 1 of sampling phase group 1 is used to sample wear detection, sampling configuration 2 of sampling phase group 2 is used to sample resting heart rate, and sampling configuration 3 of sampling phase group 3 is used to sample exercise heart rate. Therefore, in a sampling sequence, multiple sampling scenarios are sampled through the sampling configurations of multiple sampling phase groups.
[0047] In this embodiment, the sampling configuration of the sampling phase group is determined based on the current sampling scenario requirements and a preset relationship. The sampling scenario requirements can be determined based on the feedback sampling data. As an example, the sampling timing transceiver controller receives the feedback sampling data and sends the sampling results to the control module. The control module analyzes and processes the sampling results to determine the required sampling scenario, i.e., the sampling scenario requirements.
[0048] The preset relationship is used to characterize the correspondence between sampling scenario requirements and sampling configuration of sampling phase groups. That is, the sampling configuration of multiple sampling phase groups in a single sampling time series corresponding to the sampling scenario requirements can be determined based on the preset relationship.
[0049] For example, when the user is not wearing the device, the sampling scenario requirement is wear detection. According to the preset relationship, it can be determined that in a single sampling sequence under the wear detection sampling scenario, sampling is performed through sampling configuration 1 of sampling phase group 1, sampling configuration 2 of sampling phase group 2, and sampling configuration 3 of sampling phase group 3. When the user is wearing the device, the sampling scenario requirement is resting heart rate detection. According to the preset relationship, it can be determined that in a single sampling sequence under the resting heart rate sampling scenario, sampling is performed through sampling configuration 1 of sampling phase group 1, sampling configuration 2 of sampling phase group 2, sampling configuration 3 of sampling phase group 3, and sampling configuration 4 of sampling phase group 4.
[0050] Step S130: Perform sampling according to the sampling configuration of the sampling phase group.
[0051] In this embodiment, the sampling configuration of the sampling phase group is preset in the sampling configuration register group. After determining the sampling configuration of the sampling phase group according to the current sampling scenario requirements and the preset relationship, the configuration selection register selects the sampling configuration of the sampling phase group corresponding to the current sampling scenario requirements from the sampling configuration register group to form a sampling timing sequence. Then, the sampling timing transceiver signal controller generates the actual sampling pulse for sampling according to the sampling configuration in the sampling timing sequence.
[0052] As an example, in a wear-detection sampling scenario, sampling is performed using sampling configuration 1 of sampling phase group 1, sampling configuration 2 of sampling phase group 2, and sampling configuration 3 of sampling phase group 3 within a single sampling time sequence. Sampling phase group 1 corresponds to the wear-detection sampling scenario, sampling phase group 2 corresponds to the resting heart rate sampling scenario, and sampling phase group 3 corresponds to the exercise heart rate sampling scenario. The configuration selection register selects sampling configuration 1, sampling configuration 2, and sampling configuration 3 from the sampling configuration register group to form a sampling time sequence. Then, the sampling time sequence transceiver controller generates actual sampling pulses based on sampling configuration 1, sampling configuration 2, and sampling configuration 3 within the sampling time sequence for sampling. In the wear-detection sampling scenario, sampling can be performed based on one of these sampling time sequences or cyclically based on multiple of these sampling time sequences. Furthermore, within a single sampling time sequence in the wear-detection sampling scenario, wear detection, resting heart rate, and exercise heart rate can be sampled separately.
[0053] As another example, in a resting heart rate sampling scenario, sampling is determined to be performed within a single sampling sequence using sampling configuration 1 of sampling phase group 1, sampling configuration 2 of sampling phase group 2, sampling configuration 3 of sampling phase group 3, and sampling configuration 4 of sampling phase group 4. Sampling phase group 1 corresponds to the wear detection sampling scenario, sampling phase group 2 to the resting heart rate sampling scenario, sampling phase group 3 to the exercise heart rate sampling scenario, and sampling phase group 4 to the device temperature sampling scenario. The configuration selection register then selects sampling configuration 1, sampling configuration 2, sampling configuration 3, and sampling configuration 4 from the sampling configuration register group to form a sampling sequence. The sampling sequence transceiver signal controller then generates actual sampling pulses based on sampling configuration 1, sampling configuration 2, sampling configuration 3, and sampling configuration 4 within the sampling sequence for sampling. In the resting heart rate sampling scenario, sampling can be performed based on one of these sampling sequences or cyclically based on multiple of these sampling sequences. Furthermore, within a single sampling sequence in the resting heart rate sampling scenario, wear detection, resting heart rate, exercise heart rate, and device temperature can be sampled separately.
[0054] Therefore, the sampling control method of this application samples different sampling scenarios through the sampling configuration of different sampling phase groups within a single sampling time sequence, and realizes the arrangement of multiple sampling function points within a single sampling time sequence. Compared with the single and fixed sampling function in a single sampling time sequence in the prior art, the sampling control method of this application can effectively improve the diversity of sampling functions within a single sampling time sequence.
[0055] The sampling control method provided in this application divides a single sampling time sequence into at least two sampling phase groups, where each sampling phase group corresponds to a sampling scenario; then, it determines the sampling configuration of the sampling phase group according to the sampling scenario and a preset relationship, where the preset relationship is used to characterize the correspondence between the sampling scenario and the sampling configuration of the sampling phase group; and then, it performs sampling according to the sampling configuration of the sampling phase group. This enables sampling for multiple sampling scenarios within a single sampling time sequence through the sampling configuration of multiple sampling phase groups, thereby improving the diversity of sampling functions within a single sampling time sequence.
[0056] like Figure 5 As shown, Figure 5 A flowchart of another sampling control method 200 provided in an embodiment of this application is shown. The sampling control method 200 can be applied to the sampling system 10 described above. In this embodiment, the sampling control method 200 may specifically include the following steps S210 to S240.
[0057] Step S210: Divide a single sampling timing sequence into at least two sampling phase groups.
[0058] In this embodiment, step S210 can be referred to the aforementioned step S110, and will not be repeated here.
[0059] Step S220: Determine the sampling configuration of the sampling phase group according to the sampling scenario requirements and preset relationships.
[0060] In this embodiment, step S220 can be referred to the aforementioned step S120, and will not be repeated here.
[0061] Step S230: Enable the sampling configuration of the sampling phase group corresponding to the first sampling scene, and disable the sampling configuration of the sampling phase group corresponding to non-first sampling scenes.
[0062] In this embodiment, after determining the sampling configuration of the sampling phase group based on the sampling scenario requirements and preset relationships, the sampling configuration of the sampling phase group corresponding to the first sampling scenario is enabled in the sampling configuration register group through the configuration selection register, while the sampling configuration of the sampling phase group corresponding to non-first sampling scenarios is disabled. It is worth noting that disabling the sampling configuration of the sampling phase group corresponding to non-first sampling scenarios is equivalent to disabling the sampling configuration of the sampling phase group corresponding to non-first sampling scenarios.
[0063] The first set of sampling scenarios includes one or more sampling scenarios from among multiple sampling scenarios corresponding to the sampling scenario requirements. Specifically, since multiple different sampling scenarios can be sampled through sampling configurations of multiple different sampling phase groups under the sampling scenario requirements, multiple different sampling scenarios can be sampled under the sampling scenario requirements. The first set of sampling scenarios is one or more sampling scenarios from among the multiple different sampling scenarios corresponding to the sampling scenario requirements.
[0064] Furthermore, the configuration selection register enables the sampling configuration of the sampling phase group corresponding to the first sampling scenario, so that the sampling configuration of the sampling phase group corresponding to the first sampling scenario constitutes the sampling timing.
[0065] As an example, in a wear detection sampling scenario, sampling is performed using sampling configuration 1 of sampling phase group 1, sampling configuration 2 of sampling phase group 2, sampling configuration 3 of sampling phase group 3, and sampling configuration 4 of sampling phase group 4. Specifically, sampling configuration 1 of sampling phase group 1 is used for wear detection sampling; sampling configuration 2 of sampling phase group 2 is used for resting heart rate sampling; sampling configuration 3 of sampling phase group 3 is used for exercise heart rate sampling; and sampling configuration 4 of sampling phase group 4 is used for device temperature sampling. Therefore, the first set of sampling scenarios can include one or more of the following: wear detection sampling scenario, resting heart rate sampling scenario, exercise heart rate sampling scenario, and device temperature sampling scenario. For example, it can include wear detection sampling scenario, resting heart rate sampling scenario, and exercise heart rate sampling scenario. The configuration selection register only enables sampling configuration 1, sampling configuration 2, and sampling configuration 3, but not sampling configuration 4. In this case, sampling configuration 1, sampling configuration 2, and sampling configuration 3 constitute a single sampling timing sequence.
[0066] It's worth noting that the control module can analyze and process the sampling results to determine the first set of sampling scenarios under the current sampling scenario requirements. For example, in a wear detection sampling scenario, sampling should be performed for wear detection, resting heart rate, exercise heart rate, and device temperature. If the control module analyzes and processes the sampling results and determines that wear detection, resting heart rate, exercise heart rate, and device temperature need to be sampled in the wear detection sampling scenario, then the first set of sampling scenarios can include the wear detection sampling scenario, resting heart rate sampling scenario, exercise heart rate sampling scenario, and temperature sampling scenario. If the control module analyzes and processes the sampling results and determines that only wear detection, resting heart rate, and exercise heart rate need to be sampled in the wear detection sampling scenario, then the first set of sampling scenarios can include the wear detection sampling scenario, resting heart rate sampling scenario, and exercise heart rate sampling scenario. Therefore, the first set of sampling scenarios can include all sampling scenarios from multiple sampling scenarios corresponding to the sampling scenario requirements, or it can include only some of the sampling scenarios from multiple sampling scenarios corresponding to the sampling scenario requirements.
[0067] To more clearly illustrate the sampling timing of the sampling phase group corresponding to the first sampling scenario in this embodiment, please refer to... Figure 6 .exist Figure 6 In the above, sampling timing PRF1 is: when the first set of sampling configurations includes all sampling scenarios in multiple sampling scenarios corresponding to the sampling scenario requirements, the sampling timing is formed by enabling the sampling configuration of all sampling phase groups corresponding to the sampling scenario requirements; sampling timing PRF2 is: when the first set of sampling configurations includes some sampling scenarios in multiple sampling scenarios corresponding to the sampling scenario requirements, the sampling timing is formed by enabling the sampling configuration of some sampling phase groups corresponding to the sampling scenario requirements.
[0068] In some implementations, the first set of sampling scenarios may include one or more sampling scenarios pre-stored in the sampling configuration register group. Similarly, the control module may analyze and process the sampling results to determine the first set of sampling scenarios required by the current sampling scenario. For example, if the control module analyzes and processes the sampling results and determines that wearing detection, resting heart rate, and exercise heart rate need to be sampled in the wearing detection sampling scenario, then the first set of sampling scenarios may include the wearing detection sampling scenario, the resting heart rate sampling scenario, and the exercise heart rate sampling scenario; if the control module analyzes and processes the sampling results and determines that wearing detection and resting heart rate need to be sampled in the wearing detection sampling scenario, then the first set of sampling scenarios may include the wearing detection sampling scenario and the resting heart rate sampling scenario.
[0069] Step S240: Perform sampling according to the sampling configuration of the sampling phase group corresponding to the first sampling scenario.
[0070] In this embodiment, the sampling timing transceiver signal controller generates an actual sampling pulse for sampling based on the sampling configuration of the sampling phase group corresponding to the first sampling scenario. This actual sampling pulse is an actual sampling timing sequence.
[0071] As can be seen, the sampling control method of this application samples different sampling scenarios through the sampling configuration of different sampling phase groups within a single sampling time sequence, realizes the arrangement of multiple sampling function points within a single sampling time sequence, and can flexibly configure sampling function points within a single sampling time sequence. Compared with the single and fixed sampling function in a single sampling time sequence in the prior art, the sampling control method of this application can effectively improve the diversity of sampling functions within a single sampling time sequence.
[0072] Furthermore, given the requirements of the current sampling scenario, sampling can be performed through multiple sampling time sequences. For example... Figure 7 As shown, in the scenario of wearing detection sampling, sampling can be performed through sampling time sequence PRF1a, sampling time sequence PRF1b, sampling time sequence PRF1c, etc.
[0073] Within each sampling sequence, the sampling configuration can be the same or different. Specifically, when switching sampling sequences, the control module determines whether the sampling configuration needs to be changed in the next sampling sequence based on the analysis and processing results of the sampling results; that is, it determines whether the functional points of the sampling scenario need to be changed under the current sampling scenario requirements. If a change is needed, the first group of sampling scenarios in the previous sampling sequence is transformed into the second group of sampling scenarios in the next sampling sequence, and the sampling configuration in the next sampling sequence is different from that in the previous sampling sequence. If no change is needed, the first group of sampling scenarios in the previous sampling sequence remains unchanged, and the first group of sampling scenarios in the next sampling sequence continues to use the same first group of sampling scenarios as in the previous sampling sequence, and the sampling configuration in the next sampling sequence is the same as that in the previous sampling sequence.
[0074] As an example, in a wear detection sampling scenario, the first set of sampling scenarios corresponding to sampling sequence PRF1a can be a wear detection sampling scenario, a resting heart rate sampling scenario, and an exercise heart rate detection scenario. In sampling sequence PRF1a, wear detection, resting heart rate, and exercise heart rate are sampled respectively through sampling configuration 1, sampling configuration 2, and sampling configuration 3 of the sampling phase group corresponding to the first set of sampling scenarios. The control module can determine whether the sampling function points in the current wear detection sampling scenario need to be changed based on the analysis and processing results of the sampling results of sampling sequence PRF1a. If a change is needed, then wear detection, resting heart rate, and device temperature need to be sampled, but exercise heart rate does not need to be sampled. In this case, the first set of sampling scenarios is transformed into the second set of sampling scenarios, which includes wear detection sampling scenario, resting heart rate sampling scenario, and temperature detection scenario. Then, in the next sampling sequence PRF1b, wear detection, resting heart rate, and device temperature are sampled respectively through sampling configuration 1, sampling configuration 2, and sampling configuration 4 of the sampling phase group corresponding to the second set of sampling scenarios. If no changes are needed, the first set of sampling scenarios will not change. In the next sampling sequence PRF1b, the wearing detection, resting heart rate and exercise heart rate will be sampled by sampling configuration 1, sampling configuration 2 and sampling configuration 3 of the sampling phase group corresponding to the first set of sampling scenarios, respectively.
[0075] Furthermore, when the first sampling scenario changes to the second sampling scenario, the sampling configuration of the sampling phase group corresponding to the second sampling scenario is enabled, and the sampling configuration of the sampling phase group not corresponding to the second sampling scenario is disabled; then sampling is performed according to the sampling configuration of the sampling phase group corresponding to the second sampling scenario. Specifically, when the first sampling scenario changes to the second sampling scenario, the configuration selection register is reselected in the sampling configuration register group and enables the sampling configuration of the sampling phase group corresponding to the second sampling scenario to form a new sampling timing sequence. Then, the sampling timing transceiver signal controller generates the actual sampling pulse according to the sampling configuration in the new sampling timing sequence, and sampling is performed according to the new sampling pulse in the next sampling timing sequence. Figure 8 As shown, when the first set of sampling scenarios changes to the second set of sampling scenarios, the sampling timing changes from sampling timing PRF1a to sampling timing PRF1b.
[0076] When the first set of sampling scenarios remains unchanged, cyclic sampling is performed according to the sampling configuration of the sampling phase group corresponding to the first set of sampling scenarios. Specifically, when the first set of sampling scenarios remains unchanged, the sampling pulses generated by the sampling timing transceiver signal controller remain unchanged, and cyclic sampling is performed in the next sampling timing sequence based on the original sampling pulses. Figure 9 As shown, when the first set of sampling scenarios does not change, the sampling timing remains unchanged, and sampling is performed cyclically according to the sampling timing PFR1a.
[0077] As can be seen, in this embodiment, when the sampling configuration needs to be switched in the sampling timing, it is only necessary to select the sampling configuration of the corresponding sampling phase group in the sampling configuration register group through the configuration selection register. Compared with the prior art, where the control module needs to refresh the sampling configuration data and call the new sampling configuration again, this embodiment can effectively improve the efficiency of sampling configuration switching.
[0078] The sampling control method provided in this application divides a single sampling time sequence into at least two sampling phase groups, where each sampling phase group corresponds to a sampling scenario; then, it determines the sampling configuration of the sampling phase group according to the sampling scenario and a preset relationship, where the preset relationship is used to characterize the correspondence between the sampling scenario and the sampling configuration of the sampling phase group; and then, it performs sampling according to the sampling configuration of the sampling phase group. This enables sampling for multiple sampling scenarios within a single sampling time sequence through the sampling configuration of multiple sampling phase groups, thereby improving the diversity of sampling functions within a single sampling time sequence.
[0079] like Figure 10 As shown, Figure 10 A flowchart illustrating another sampling control method 300 provided in this application embodiment is shown. The sampling control method 300 can also be applied to the sampling system 10 described above. In this embodiment, the sampling control method 300 specifically includes the following steps S310 to S340.
[0080] Step S310: Divide a single sampling timing sequence into at least two sampling phase groups.
[0081] In this embodiment, step S310 can be referred to the aforementioned step S110, and will not be repeated here.
[0082] Step S320: Determine the sampling configuration of the sampling phase group based on the sampling scenario requirements and preset relationships.
[0083] In this embodiment, step S320 can be referred to the aforementioned step S120, and will not be repeated here.
[0084] Step S330: Enable the sampling configuration of all sampling phase groups within the sampling time sequence.
[0085] In this embodiment, after determining the sampling configuration of the sampling phase group according to the sampling scenario requirements and the preset relationship, the sampling configuration of all sampling phase groups corresponding to the sampling scenario requirements is enabled in the sampling configuration register group by configuring the selection register.
[0086] As an example, in a wear detection sampling scenario, the sampling configurations for all sampling phase groups corresponding to this scenario are determined as sampling configuration 1 for sampling phase group 1, sampling configuration 2 for sampling phase group 2, sampling configuration 3 for sampling phase group 3, and sampling configuration 4 for sampling phase group 4. Specifically, sampling configuration 1 for sampling phase group 1 is used for sampling wear detection; sampling configuration 2 for sampling phase group 2 is used for sampling resting heart rate; sampling configuration 3 for sampling phase group 3 is used for sampling exercise heart rate; and sampling configuration 4 for sampling phase group 4 is used for sampling device temperature. The configuration selection register selects and enables all sampling configurations of the phase groups in the sampling configuration register group, that is, selects and enables sampling configuration 1 for sampling phase group 1, sampling configuration 2 for sampling phase group 2, sampling configuration 3 for sampling phase group 3, and sampling configuration 4 for sampling phase group 4.
[0087] Step S340: Sampling configuration of the sampling phase group corresponding to the idling non-third group sampling scenario.
[0088] The third group of sampling scenarios refers to the sampling scenarios that require function point sampling under the current sampling scenario requirements, while the other three groups of sampling scenarios do not require function point sampling under the current sampling scenario requirements.
[0089] Furthermore, the control module can analyze and process the sampling results to determine a third set of sampling scenarios required by the current sampling scenario. For example, in a wear detection sampling scenario, wear detection, resting heart rate, exercise heart rate, and device temperature should be sampled. If the control module analyzes and processes the sampling results and determines that wear detection, resting heart rate, and exercise heart rate need to be sampled in the wear detection sampling scenario, then the third set of sampling scenarios can include the wear detection sampling scenario, the resting heart rate sampling scenario, and the exercise heart rate sampling scenario. Sampling scenarios not in the third set are temperature sampling scenarios. If the control module analyzes and processes the sampling results and determines that wear detection, resting heart rate, and device temperature need to be sampled in the wear detection sampling scenario, then the third set of sampling scenarios can include the wear detection sampling scenario, the resting heart rate sampling scenario, and the temperature sampling scenario.
[0090] In this embodiment, idling refers to occupying a certain time period without performing sampling operations while the device is enabled. For example... Figure 11 As shown, the sampling timing PRF1 includes sampling configuration 1 for sampling phase group 1, sampling configuration 2 for sampling phase group 2, sampling configuration 3 for sampling phase group 3, and sampling configuration 4 for sampling phase group 4. Sampling configurations 2 and 3 are idle. Therefore, in this sampling timing PRF1, sampling operations are performed during the time periods occupied by sampling configuration 1 and sampling configuration 4, while no sampling operations are performed during the time periods occupied by sampling configuration 2 and sampling configuration 3.
[0091] To more clearly explain the meaning of idling, such as Figure 12 As shown, a comparison is made between sampling timing PRF1 with idle time and sampling timing PRF2 without idle time. It can be seen that the similarities between sampling timing PRF1 and sampling timing PRF2 include, but are not limited to: identical sampling configuration, identical arrangement of sampling configurations, and identical sampling duration. The difference between sampling timing PRF1 and sampling timing PRF2 is that the idle sampling configuration of sampling timing PRF1 does not perform sampling operations during the corresponding time period.
[0092] It is worth noting that the idling sampling configuration in this embodiment is based on the condition that it is enabled. If the sampling configuration is not enabled, the sampling configuration will not be in the sampling sequence, that is, the idling configuration cannot be performed.
[0093] Furthermore, based on the sampling configuration of all sampling phase groups within the enabled sampling time sequence, the sampling configuration of the sampling phase groups corresponding to non-third sampling scenarios is idled. Specifically, the configuration selection register selects from the sampling configurations of all sampling phase groups corresponding to the sampling scenario requirements and idles the sampling configuration of the sampling phase groups corresponding to non-third sampling scenarios, so that the sampling configurations of the sampling phase groups corresponding to the third sampling scenario and the sampling configurations of the sampling phase groups corresponding to non-third sampling scenarios together constitute a sampling time sequence.
[0094] As an example, in a wear-detection sampling scenario, the sampling configurations for all corresponding sampling phase groups include sampling configuration 1 for sampling phase group 1, sampling configuration 2 for sampling phase group 2, sampling configuration 3 for sampling phase group 3, and sampling configuration 4 for sampling phase group 4. Sampling configuration 1 is used for sampling wear detection; sampling configuration 2 is used for sampling resting heart rate; sampling configuration 3 is used for sampling exercise heart rate; and sampling configuration 4 is used for sampling device temperature. If the sampling configurations for the sampling phase groups corresponding to the third sampling scenario include sampling configuration 1 for sampling phase group 1 and sampling configuration 2 for sampling phase group 2, then the sampling configurations for the sampling phase groups corresponding to scenarios other than the third sampling scenario include sampling configuration 3 for sampling phase group 3 and sampling configuration 4 for sampling phase group 4. When the sampling configurations for all sampling phase groups corresponding to the wear-detection sampling scenario are enabled, the configuration selection register selects and idles sampling configuration 3 and sampling configuration 4. At this time, a single sampling sequence still includes sampling configuration 1, sampling configuration 2, sampling configuration 3, and sampling configuration 4, but no sampling operation is performed during the time periods corresponding to sampling configuration 3 and sampling configuration 4. That is, in this sampling sequence, only the wearing detection and resting heart rate are sampled, and the exercise heart rate and device temperature are not sampled.
[0095] A sampling phase group can be composed of multiple identical sampling phase groups cyclically. In some implementations, the sampling configuration of the sampling phase group corresponding to the third sampling scenario may also include the sampling configuration of one or more sampling phase groups from the cyclic sampling phase group. For example... Figure 13 As shown, the sampling phase groups corresponding to the sampling scenario requirements include sampling phase group 1, sampling phase group 2, sampling phase group 3, and sampling phase group 4. Sampling phase group 2 consists of three sampling phase groups: sampling phase group 2a, sampling phase group 2b, and sampling phase group 2c. The sampling configuration of the sampling phase groups corresponding to the third sampling scenario can include sampling configuration 1 of sampling phase group 1, sampling configuration 2a of sampling phase group 2a, sampling configuration 2c of sampling phase group 2c, and sampling configuration 3 of sampling phase group 3. The sampling configuration of the sampling phase groups not corresponding to the third sampling scenario can include sampling configuration 2b of sampling phase group 2b and sampling configuration 4 of sampling phase group 4. It is worth noting that the sampling configurations in the cyclic sampling phase groups are the same, that is, sampling configuration 2a, sampling configuration 2b, and sampling configuration 2c are identical.
[0096] In this embodiment, the sampling configuration of one or more sampling phase groups in the idling cyclic sampling phase group can be configured. For example... Figure 13 As shown, the sampling configuration of the sampling phase group corresponding to the idling non-third sampling scenario is shown, namely the sampling configuration 2b of the idling sampling phase group 2b and the sampling configuration 4 of the sampling phase group 4.
[0097] Step S350: Perform sampling according to the sampling configuration of the sampling phase group corresponding to the third sampling scenario.
[0098] In this embodiment, the sampling timing transceiver signal controller generates actual sampling pulses based on the sampling configurations of all enabled sampling phase groups. These actual sampling pulses constitute an actual sampling timing sequence. Furthermore, sampling is performed according to the sampling configurations of the sampling phase groups corresponding to the third sampling scenario; sampling is not performed on sampling configurations of sampling phase groups not corresponding to the third sampling scenario.
[0099] Furthermore, under the current sampling scenario requirements, sampling can be performed through multiple sampling sequences. The sampling configuration is the same in each sampling sequence, but the idle sampling configuration within each sequence can be the same or different. Specifically, when switching sampling sequences, the control module determines whether the idle sampling configuration in the next sampling sequence needs to be changed based on the analysis and processing results of the sampling results; that is, it determines whether the functional points of the sampling scenario need to be changed under the current sampling scenario requirements. If a change is needed, the third group of sampling scenarios in the previous sampling sequence is transformed into the fourth group of sampling scenarios in the next sampling sequence, and the idle sampling configuration in the next sampling sequence is different from that in the previous sampling sequence. If no change is needed, the third group of sampling scenarios in the previous sampling sequence remains unchanged, and the next sampling sequence continues to use the third group of sampling scenarios from the previous sampling sequence, with the idle sampling configuration in the next sampling sequence being the same as that in the previous sampling sequence.
[0100] Furthermore, when the third sampling scenario transitions to the fourth sampling scenario, the sampling configuration of all sampling phase groups in the next sampling time sequence is enabled, and the sampling configuration of sampling phase groups not corresponding to the fourth sampling scenario is idled. Then, sampling is performed according to the sampling configuration of the sampling phase group corresponding to the fourth sampling scenario. Specifically, when the third sampling scenario transitions to the fourth sampling scenario, the configuration selection register reselects and enables the sampling configuration of all sampling phase groups corresponding to the sampling scenario requirements in the sampling configuration register group. Then, the sampling of sampling phase groups not corresponding to the fourth sampling scenario in the sampling configuration of all sampling phase groups is idled. Then, the sampling timing transceiver signal controller also generates the actual sampling pulse according to all sampling configurations in the sampling time sequence, and performs sampling in the next sampling time sequence according to the sampling configuration in the fourth sampling scenario. Figure 14 As shown, when the third sampling scenario changes to the fourth sampling scenario, the sampling timing changes from sampling timing PRF1a to sampling timing PRF1b. The sampling configuration of the idle sampling phase group in sampling timing PRF1a is different from that in sampling timing PRF1b.
[0101] Furthermore, during sampling timing switching, the sampling configuration of the sampling phase group that was idle in the previous sampling timing can be cancelled in the next sampling timing. For example... Figure 15 As shown, in sampling timing PRF1a, sampling configuration 2 of sampling phase group 2 and sampling configuration 4 of sampling phase group 4 are idle. After switching from sampling timing PRF1a to sampling timing PRF1b, the idle configuration of sampling configuration 2 of sampling phase group 2 and sampling configuration 4 of sampling phase group 4 is canceled. That is, in sampling timing PRF1b, sampling is re-enacted in the time periods corresponding to sampling configuration 2 of sampling phase group 2 and sampling configuration 4 of sampling phase group 4. Figure 15It can be seen that after the sampling configuration of the idle sampling phase group is re-enabled, the sampling interval of the same sampling phase group in sampling timing PRF1b and sampling timing PRF1a remains equally distributed without change, which can improve the sampling accuracy.
[0102] When the third sampling scenario remains unchanged, cyclic sampling is performed according to the sampling configuration of the sampling phase group corresponding to the third sampling scenario. Specifically, when the third sampling scenario remains unchanged, the sampling pulses generated by the sampling timing transceiver signal controller remain unchanged, and the sampling configuration in the idling sampling phase group in the next sampling timing remains unchanged, and then cyclic sampling is performed. Figure 16 As shown, when the third set of sampling scenarios does not change, the sampling configuration of the idle sampling phase group in the sampling timing remains unchanged, and sampling is performed cyclically according to the sampling timing PFR1a.
[0103] As can be seen, in this embodiment, when the sampling configuration needs to be switched in the sampling timing sequence, it is only necessary to select the sampling configuration of the corresponding sampling phase group in the sampling configuration register group through the configuration selection register. Compared with the prior art, where the control module needs to refresh the sampling configuration data and call the new sampling configuration again, this embodiment can effectively improve the efficiency of sampling configuration switching. Furthermore, by idling the sampling configuration of the corresponding sampling phase group, precise power consumption management can be performed on each sampling phase group in the sampling timing sequence, improving the power consumption control efficiency of the sampling timing sequence; at the same time, when switching the sampling timing sequence, it can ensure that the sampling interval of the same sampling phase group remains evenly distributed without change, improving the sampling accuracy.
[0104] The sampling control method provided in this application divides a single sampling time sequence into at least two sampling phase groups, where each sampling phase group corresponds to a sampling scenario; then, it determines the sampling configuration of the sampling phase group according to the sampling scenario and a preset relationship, where the preset relationship is used to characterize the correspondence between the sampling scenario and the sampling configuration of the sampling phase group; and then, it performs sampling according to the sampling configuration of the sampling phase group. This enables sampling for multiple sampling scenarios within a single sampling time sequence through the sampling configuration of multiple sampling phase groups, thereby improving the diversity of sampling functions within a single sampling time sequence.
[0105] like Figure 17As shown, this application embodiment also provides a sampling control device 400, which can be applied to the sampling system 10 described above. The sampling control device 400 includes a partitioning module 410, a determination module 420, and a sampling module 430. The partitioning module 410 is used to divide a single sampling sequence into at least two sampling phase groups; the determination module 420 is used to determine the sampling configuration of the sampling phase groups according to the sampling scenario requirements and a preset relationship; and the sampling module 430 is used to perform sampling according to the sampling configuration of the sampling phase groups.
[0106] In some embodiments, the sampling module 430 includes a first enabling unit 431, a first sampling unit 432, a second enabling unit 433, an idle unit 434, and a second sampling unit 435. Specifically, the first enabling unit 431 enables the sampling configuration of the sampling phase group corresponding to the first set of sampling scenarios and disables the sampling configuration of the sampling phase group corresponding to non-first set of sampling scenarios; the first sampling unit 432 performs sampling according to the sampling configuration of the sampling phase group corresponding to the first set of sampling scenarios; the second enabling unit 433 enables the sampling configuration of all sampling phase groups within the sampling time sequence; the idle unit 434 idles the sampling configuration of the sampling phase group not corresponding to the third set of sampling scenarios; and the second sampling unit 435 performs sampling according to the sampling configuration of the sampling phase group corresponding to the third set of sampling scenarios.
[0107] The sampling control device provided in this application divides a single sampling time sequence into at least two sampling phase groups, where each sampling phase group corresponds to a sampling scenario; then, it determines the sampling configuration of the sampling phase group according to the sampling scenario and a preset relationship, where the preset relationship is used to characterize the correspondence between the sampling scenario and the sampling configuration of the sampling phase group; and then, it performs sampling according to the sampling configuration of the sampling phase group, thereby enabling sampling for multiple sampling scenarios through the sampling configuration of multiple sampling phase groups within a single sampling time sequence, thus improving the diversity of sampling functions within a single sampling time sequence.
[0108] like Figure 18 As shown, Figure 18 The diagram shows a module block diagram of an electronic device 500 provided in an embodiment of this application. The electronic device 500 includes a processor 510 and a memory 520. The memory 520 stores program instructions, which, when executed by the processor 510, implement the sampling control method described above.
[0109] Electronic devices 500 include, but are not limited to, smart bracelets, smartwatches, true wireless stereo (TWS) earphones, and mobile terminals.
[0110] The processor 510 may include one or more processing cores. The processor 510 connects to various parts of the entire battery management system using various interfaces and lines, and performs various functions and processes data of the battery management system by running or executing instructions, programs, code sets, or instruction sets stored in the memory 520, and by calling data stored in the memory 520. Optionally, the processor 510 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 510 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the displayed content; and the modem handles wireless communication. It is understood that the modem may also not be integrated into the processor 510 and may be implemented separately using a communication chip.
[0111] The memory 520 may include random access memory (RAM) or read-only memory (ROM). The memory 520 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 520 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as touch functionality, sound playback functionality, image playback functionality, etc.), and instructions for implementing the various method embodiments described below. The data storage area may also store data created during the use of the electronic device (such as phonebook data, audio / video data, chat log data, etc.).
[0112] like Figure 19 As shown, this application embodiment also provides a computer-readable storage medium 600, which stores computer program instructions 610, which can be called by a processor to execute the methods described in the above embodiments.
[0113] Computer-readable storage media can be electronic storage devices such as flash memory, EEPROM (Electrically Erasable Programmable Read-Only Memory), EPROM, hard disk, or ROM. Optionally, computer-readable storage media includes non-transitory computer-readable storage media. Computer-readable storage medium 700 has storage space for program code that performs any of the method steps described above. This program code can be read from or written to one or more computer program products. The program code can be compressed, for example, in a suitable form.
[0114] The above are merely preferred embodiments of this application and are not intended to limit this application in any way. Although this application has disclosed preferred embodiments as above, it is not intended to limit this application. Any person skilled in the art can make some modifications or alterations to the above-disclosed technical content to create equivalent embodiments without departing from the scope of the technical solution of this application. Any simple modifications, equivalent changes and alterations made to the above embodiments based on the technical essence of this application without departing from the scope of the technical solution of this application shall still fall within the scope of the technical solution of this application.
Claims
1. A sampling control method, characterized in that, An application is made in a sampling system, the sampling system including a control module, a sampling configuration register group, a configuration selection register, and a sampling timing transceiver signal controller, wherein the control module is connected to the sampling configuration register group, the configuration selection register, and the sampling timing transceiver signal controller respectively; the sampling configuration register group is also connected to the configuration selection register and the sampling timing transceiver signal controller respectively; the configuration selection register is also connected to the sampling timing transceiver signal controller; the method includes: A single sampling time sequence is divided into at least two sampling phase groups, each of which corresponds to a sampling scenario; wherein a single sampling time sequence corresponds to a sampling period; the sampling scenario includes at least a third sampling scenario group, and the sampling phase group corresponding to the third sampling scenario group includes one or more sampling phase groups in a cyclic sampling phase group, the cyclic sampling phase group including multiple sampling phase groups with the same sampling configuration; the sampling configuration includes at least a sampling time. The sampling configuration of the sampling phase group is determined based on the sampling scenario requirements and a preset relationship, whereby the preset relationship characterizes the correspondence between the sampling scenario requirements and the sampling configuration of the sampling phase group. The sampling configuration of the sampling phase group is preset in the sampling configuration register group. After determining the sampling configuration of the sampling phase group based on the sampling scenario requirements and the preset relationship, the configuration selection register selects the sampling configuration of the sampling phase group corresponding to the sampling scenario requirements from the sampling configuration register group, thus forming the sampling timing sequence. Sampling is performed according to the sampling configuration of the sampling phase group; when the sampling timing is switched, it is determined whether the idling sampling configuration in the next sampling timing needs to be changed based on the analysis and processing results of the sampling results; if it needs to be changed, the third sampling scenario is transformed into the fourth sampling scenario. When the third group of sampling scenarios changes to the fourth group of sampling scenarios, enable the sampling configuration of all the sampling phase groups in the next sampling time sequence; Sampling configuration of the sampling phase group corresponding to the fourth sampling scenario; and Sampling is performed according to the sampling configuration of the sampling phase group corresponding to the fourth sampling scenario.
2. The sampling control method as described in claim 1, characterized in that, The sampling according to the sampling configuration of the sampling phase group includes: Enable the sampling configuration of the sampling phase group corresponding to the first sampling scenario and disable the sampling configuration of the sampling phase group not corresponding to the first sampling scenario. The sampling phase group not corresponding to the first sampling scenario includes the other sampling phase groups in the sampling time sequence other than the sampling phase group corresponding to the first sampling scenario. Sampling is performed according to the sampling configuration of the sampling phase group corresponding to the first set of sampling scenarios.
3. The sampling control method as described in claim 2, characterized in that, The method further includes: When the first group of sampling scenarios changes to the second group of sampling scenarios, enable the sampling configuration of the sampling phase group corresponding to the second group of sampling scenarios, and disable the sampling configuration of the sampling phase group that does not correspond to the second group of sampling scenarios. Sampling is performed according to the sampling configuration of the sampling phase group corresponding to the second set of sampling scenarios.
4. The sampling control method as described in claim 2, characterized in that, The method further includes: when the first group of sampling scenarios does not change, performing cyclic sampling according to the sampling configuration of the sampling phase group corresponding to the first group of sampling scenarios.
5. The sampling control method as described in claim 1, characterized in that, The sampling according to the sampling configuration of the sampling phase group includes: Enable the sampling configuration of all sampling phase groups within the sampling time sequence; Sampling configuration of the sampling phase group corresponding to the idling non-third group sampling scenario; and Sampling is performed according to the sampling configuration of the sampling phase group corresponding to the third set of sampling scenarios.
6. The sampling control method as described in claim 1, characterized in that, The method further includes: when the third set of sampling scenarios does not change, performing cyclic sampling according to the sampling configuration of the sampling phase group corresponding to the third set of sampling scenarios.
7. A sampling control device, characterized in that, An application is made in a sampling system, the sampling system including a control module, a sampling configuration register group, a configuration selection register, and a sampling timing transceiver signal controller, wherein the control module is connected to the sampling configuration register group, the configuration selection register, and the sampling timing transceiver signal controller respectively; the sampling configuration register group is also connected to the configuration selection register and the sampling timing transceiver signal controller respectively; the configuration selection register is also connected to the sampling timing transceiver signal controller; the device includes: A partitioning module is used to divide a single sampling time sequence into at least two sampling phase groups, wherein each sampling phase group corresponds to a sampling scenario; wherein a single sampling time sequence corresponds to a sampling period; the sampling scenario includes at least a third sampling scenario group, and the sampling phase group corresponding to the third sampling scenario group includes one or more sampling phase groups in a cyclic sampling phase group, wherein the cyclic sampling phase group includes multiple sampling phase groups with the same sampling configuration; the sampling configuration includes at least a sampling time. The determination module is used to determine the sampling configuration of the sampling phase group based on the sampling scenario requirements and a preset relationship, wherein the preset relationship characterizes the correspondence between the sampling scenario requirements and the sampling configuration of the sampling phase group; the sampling configuration of the sampling phase group is preset in the sampling configuration register group; after determining the sampling configuration of the sampling phase group based on the sampling scenario requirements and the preset relationship, the configuration selection register selects the sampling configuration of the sampling phase group corresponding to the sampling scenario requirements from the sampling configuration register group to form the sampling timing sequence; and The sampling module is used to perform sampling according to the sampling configuration of the sampling phase group; it is also used to determine whether the idle sampling configuration in the next sampling sequence needs to be changed based on the analysis and processing results of the sampling results when the sampling timing is switched; if it needs to be changed, the third sampling scenario is transformed into the fourth sampling scenario; when the third sampling scenario is transformed into the fourth sampling scenario, the sampling configuration of all the sampling phase groups in the next sampling timing is enabled; the sampling configuration of the sampling phase group that is not corresponding to the fourth sampling scenario is idled; and sampling is performed according to the sampling configuration of the sampling phase group corresponding to the fourth sampling scenario.
8. An electronic device, characterized in that, It includes a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are invoked by the processor, they execute the sampling control method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that... The computer-readable storage medium stores program code, wherein the sampling control method according to any one of claims 1 to 6 is executed when the program code is run by a processor.
Citation Information
Patent Citations
Biological characteristic data sampling method and sampling management device thereof
CN111095430A
Dynamic adjustment of sampling rate based on a state of the user
US20160301581A1
Method, system, and apparatus for sample rate conversion
WO2007110839A2