Self-adaption method for volume following voltage and electronic equipment
By using the volume following voltage adaptation method in the wrist-type electronic blood pressure meter, the volume level is adjusted according to the voltage value of the battery and voice driver, the problem of voice broadcast stuttering or stopping caused by the battery voltage is solved, and the low voltage is achieved effective voice broadcast and volume adjustment.
Patent Information
- Application Number
- CN202411079043.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-07
- Publication Date
- 2024-12-06
AI Technical Summary
In a wrist-type electronic blood pressure meter with voice, when the battery voltage decreases, the maximum volume setting value does not adjust with the change of voltage, resulting in the voice broadcast stuttering or stopping at low voltage, affecting the user experience.
Adaptive method of volume following voltage is adopted, and by presetting multiple volume levels and corresponding voltage values, adjusting according to the battery voltage and the voice driver supply voltage to ensure that the appropriate volume is maintained at low voltage and avoiding lag or stopping.
Effectively maintain voice broadcast at low voltage, ensuring that the volume is close to the high volume level, and avoiding voice broadcast stuttering or stopping abnormalities when the battery approaches the warning voltage.
Smart Images

Figure CN119094955A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a field, and in particular to a volume-following voltage adaptive method and electronic equipment. Background Art
[0002] Some wrist electronic blood pressure monitors with voice control have two volume settings, large and small. The maximum volume setting is fixed. When the battery voltage decreases, the maximum volume setting value will not be adjusted as the voltage decreases. If the volume is not adaptive, the high volume is used at only one level without adjustment. When the voltage is low, due to the high broadcast volume, large current, and large drop in battery voltage, the instantaneous voltage is lower than the normal working voltage of the voice driver IC, and the voice broadcast will be stuck or stopped midway, resulting in a bad user experience. Therefore, an adaptive method and electronic device for volume following voltage are very necessary. Summary of the invention
[0003] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention provides a volume-following voltage adaptive method and an electronic device.
[0004] An embodiment of the present invention solves the technical problem by adopting a technical solution: a volume-following voltage adaptive method, comprising:
[0005] Presetting a plurality of gradually increasing volume levels and a plurality of volume adjustment voltage values corresponding to the volume levels;
[0006] Obtain a first voltage value, a second voltage value, and a third voltage value, wherein the first voltage value is a voltage value of a battery, the second voltage value is a power supply voltage value of a voice driver, and the third voltage value is a minimum operating voltage value of the voice driver;
[0007] When the first voltage value is greater than the volume adjustment voltage value and the second voltage value is greater than the third voltage value, playing is performed at the current volume level;
[0008] When the first voltage value is less than the volume adjustment voltage value and the second voltage value is greater than the third voltage value, the audio is played at a second volume level, which is less than the current volume level.
[0009] As one of the preferred embodiments of the present invention, several volume levels in the front section are used as the low volume interval, and several volume levels in the back section are used as the high volume interval;
[0010] When the first voltage value is less than the volume adjustment voltage value, it is determined whether the current volume level is in the high volume interval. If so, the music is played at the second volume level, which is less than the current volume level. If not, the music is played at the current volume level.
[0011] As one of the preferred embodiments of the present invention, the low volume interval and the high volume interval are divided according to the middle values of several volume levels.
[0012] As one of the preferred embodiments of the present invention, a fourth voltage value is preset, and the size of the first voltage value and the fourth voltage value when playing at the current volume level is determined. If the first voltage value is greater than the fourth voltage value, the size of the first voltage value and the volume adjustment voltage value is determined; if the first voltage value is less than the fourth voltage value, the current volume level is discarded and the music is played at the second volume level, which is less than the current volume level.
[0013] As one of the preferred embodiments of the present invention, a fifth voltage value is preset, and the size of the first voltage value and the fifth voltage value is determined. If the first voltage value is greater than the fifth voltage value, the size of the first voltage value and the volume adjustment voltage value is determined; if the first voltage value is less than the fifth voltage value, a low battery prompt is given and the voice broadcast is turned off.
[0014] As one of the preferred embodiments of the present invention, a sixth voltage value is preset to determine the magnitude of the first voltage value and the sixth voltage value. If the first voltage value is greater than the sixth voltage value, the magnitude of the first voltage value and the volume adjustment voltage value is determined; if the first voltage value is less than the sixth voltage value, the power is turned off.
[0015] An electronic device comprises a memory and a processor, wherein the memory stores a computer program and the processor implements the steps of the method when executing the computer program.
[0016] A computer-readable storage medium stores a computer program, which implements the steps of the method when executed by a processor.
[0017] Beneficial effects of the present invention:
[0018] 1. Finely divide the volume level so that when the battery is close to the warning voltage, the voice can be effectively broadcast, and this sound is closer to the loud volume level.
[0019] 2. When the volume is set to a high value, the volume adapts to the voltage to avoid abnormalities such as voice playback freezing or stopping when the battery is close to the warning voltage after setting a high volume level. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0021] Figure 1 is a flow chart of an adaptive method for volume following voltage;
[0022] Figure 2 Research firmware test flow chart for volume;
[0023] Figure 3 This is a schematic diagram of the test points of the test prototype;
[0024] Figure 4 A design flow chart of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0025] This section will describe in detail the specific embodiments of the present invention. The preferred embodiments of the present invention are shown in the accompanying drawings. The purpose of the accompanying drawings is to supplement the description of the text part of the specification with graphics, so that people can intuitively and vividly understand each technical feature and the overall technical solution of the present invention, but it cannot be understood as a limitation on the scope of protection of the present invention.
[0026] In the description of the present invention, the meaning of "above", "below", "exceed", etc. is not inclusive of the number itself, and the meaning of "above", "below", "within", etc. is inclusive of the number itself. If there is a description of "first" or "second", it is only used to distinguish the technical features, and cannot be understood as indicating or implying the relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.
[0027] In the description of the present invention, it should be understood that descriptions involving orientations, such as up, down, front, back, left, right, etc., and orientations or positional relationships indicated are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.
[0028] In the present invention, unless otherwise clearly defined, the words "set", "install", "connect" and the like should be understood in a broad sense, for example, they can be directly connected or indirectly connected through an intermediate medium; they can be fixedly connected or detachably connected or integrally formed; they can be mechanically connected; they can be the internal connection of two elements or the interaction relationship between two elements. Those skilled in the art can reasonably determine the specific meanings of the above words in the present invention in combination with the specific content of the technical solution.
[0029] In the present invention, reference is made to Figure 4 , use dedicated volume research firmware to burn into the test prototype to study the matching relationship between volume and voltage; first burn the dedicated volume research firmware into the test prototype, perform voltage drop tests at different volumes on different voltage points of the test prototype battery, and after analyzing the test data, adjust the volume and voltage threshold parameters before and after, and output the normal version of the firmware after modification and burn it into the test prototype.
[0030] Specifically, solder the test leads from the battery voltage test point VB of the test sample, the voice IC power supply voltage test point SPK_VDD, and the voice IC power supply enable test point SPK_EN. Figure 3 As shown;
[0031] Among them, the test prototype is a wrist voice blood pressure monitor using a Shuanglu 2*AAA battery, and the wrist voice blood pressure monitor has two volume settings, large and small. In the early preliminary test, the second large volume appeared when the battery voltage was low, such as around 2.7V, and the sound was stuck or stopped. According to these situations, the following test plan table (Table 1) was designed:
[0032] Table 1
[0033]
[0034] Use a high-precision oscilloscope to build a test environment and perform tests according to the test plan. For example, when the battery voltage is 2.8V, test the voltage drop of each voltage test point at 8-15 volume levels respectively; after the test, organize the test data as shown in Table 2:
[0035] Table 2
[0036]
[0037] According to the above test method, continue to complete the voltage drop of each voltage test voltage when the battery voltage is 2.7V and 2.6V. The specific data is not described in detail here. After the voltage drop of each test point at 8-15 levels of volume is completed at 2.8V, 2.7V, and 2.6V, the data is analyzed.
[0038] In one embodiment, by presetting the fourth voltage value, the magnitude of the first voltage value and the fourth voltage value when playing at the current volume level is determined. If the first voltage value is greater than the fourth voltage value, the magnitude of the first voltage value and the volume adjustment voltage value is determined; if the first voltage value is less than the fourth voltage value, the current volume level is discarded and the second volume level is played, and the second volume level is less than the current volume level; for the same voltage, as the volume increases, if the voltage drops too much, it is not suitable as the second level of high volume. For example, at 2.8V, level 15, the VB voltage drops 0.70V (lower than the set low voltage standard of 2.2V), which is obviously not suitable as a high volume level.
[0039] Reference Figure 1-2 , an adaptive method of volume following voltage, comprising:
[0040] Presetting a plurality of gradually increasing volume levels and a plurality of volume adjustment voltage values corresponding to the volume levels;
[0041] Obtain a first voltage value, a second voltage value, and a third voltage value, wherein the first voltage value is a battery voltage value (VB), the second voltage value is a power supply voltage value (SPK_VDD) of a voice driver, and the third voltage value is a minimum operating voltage value of the voice driver;
[0042] When the first voltage value is greater than the volume adjustment voltage value and the second voltage value is greater than the third voltage value, playing is performed at the current volume level;
[0043] When the first voltage value is less than the volume adjustment voltage value and the second voltage value is greater than the third voltage value, the audio is played at a second volume level, which is less than the current volume level.
[0044] For example, when the electronic device is turned on, it plays at the 14th volume level. When the first voltage value is lower than the volume adjustment voltage threshold (2.7V), the voice broadcast will be adaptively adjusted to the 13th volume level. When the first voltage value is lower than the volume adjustment voltage threshold (2.6V), the voice broadcast will be adaptively adjusted to the 12th volume level. And so on. It should be noted that the adjustment of the volume level needs to take into account the minimum operating voltage of the voice driver (voice driver IC U8) to ensure that during voice broadcast, the voltage of SPK_VDD is greater than the minimum voltage and has a margin of more than 0.1V, while also considering the available capacity of the battery.
[0045] In one embodiment, several volume levels in the front section are used as low volume intervals, and several volume levels in the back section are used as high volume intervals; specifically, 15 subdivided volume levels are designed in the voice driver, and the volume corresponding to the level increasing from 1 to 15 gradually increases, and the first level low volume (low volume interval) and the second level high volume (high volume interval) are divided by level 8, that is, levels 1-8 are the first level low volume (low volume interval), and levels 9-15 are the second level high volume (high volume interval);
[0046] When the first voltage value is less than the volume adjustment voltage value, it is determined whether the current volume level is in a large volume interval. If so, the music is played at a second volume level which is less than the current volume level; if not, the music is played at the current volume level; that is, after the electronic device is turned on and it is determined that the first voltage value is less than the volume adjustment voltage value, the volume interval is determined. If the music is in a large volume interval (e.g., the 14th volume level), the music is adjusted to be played at the 13th volume level; if the music is in a small volume interval (e.g., the 8th volume level), the music is played directly at the 8th volume level; in a further embodiment, the small volume interval and the large volume interval are divided according to the middle values of several volume levels.
[0047] In one embodiment, referring to Figure 1-2, preset the fifth voltage value, judge the size of the first voltage value and the fifth voltage value, if the first voltage value is greater than the fifth voltage value, then judge the size of the first voltage value and the volume adjustment voltage value; if the first voltage value is less than the fifth voltage value, then prompt low battery and turn off voice broadcast; the fifth voltage value is a warning voltage value, after the electronic device is turned on, first detect whether the first voltage value is greater than the fifth voltage value, if so, then enter the judgment of the size between the first voltage value and the volume adjustment voltage value, otherwise it is judged that the battery of the electronic device is in a low power state, and the low power is prompted by flashing the battery symbol, and voice broadcast is prohibited at this time.
[0048] In one embodiment, referring to Figure 1-2 , preset the sixth voltage value, judge the size of the first voltage value and the sixth voltage value, if the first voltage value is greater than the sixth voltage value, then judge the size of the first voltage value and the volume adjustment voltage value; if the first voltage value is less than the sixth voltage value, shut down; the sixth voltage value is the low-power shutdown voltage value. After the electronic device is turned on, it first detects whether the first voltage value is greater than the fifth voltage value. If so, then judge the size between the first voltage value and the volume adjustment voltage value, otherwise judge the size of the first voltage value and the sixth voltage value. If the first voltage value is greater than the sixth voltage value, it is judged that the battery of the electronic device is in a low-power state, and the low-power prompt is prompted by flashing the battery symbol. At this time, voice broadcasting is prohibited; if the first voltage value is less than the sixth voltage value, it is judged that the power has reached the shutdown threshold, and the prompt BAT Lo is given at this time and then the power is shut down.
[0049] The advantages of the present invention are: 1. The volume level is finely divided, and when the battery is close to the warning voltage, the voice can be effectively broadcast, and the sound is relatively close to the level of the high volume; 2. When the volume is at the high volume setting value, the volume adapts to the voltage, avoiding abnormalities such as voice broadcast jamming or stopping when the battery is close to the warning voltage after the high volume level is set.
[0050] An electronic device includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method when executing the computer program; the electronic device may be a wrist blood pressure monitor, an arm blood pressure monitor, a blood glucose meter, or other device with a voice broadcast function.
[0051] A computer-readable storage medium stores a computer program, which implements the steps of the method when executed by a processor.
[0052] Of course, the present invention is not limited to the above-mentioned embodiments, and those skilled in the art may make equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications and substitutions are all included in the scope defined by the claims of this application.
Claims
1. A volume-follows-voltage adaptive method, characterized in that: include Presetting a plurality of gradually increasing volume levels and a plurality of volume adjustment voltage values corresponding to the volume levels; Obtain a first voltage value, a second voltage value, and a third voltage value, wherein the first voltage value is a voltage value of a battery, the second voltage value is a power supply voltage value of a voice driver, and the third voltage value is a minimum operating voltage value of the voice driver; When the first voltage value is greater than the volume adjustment voltage value and the second voltage value is greater than the third voltage value, playing at the current volume level; When the first voltage value is less than the volume adjustment voltage value and the second voltage value is greater than the third voltage value, the audio is played at a second volume level that is less than the current volume level.
2. The volume-follows-voltage adaptive method according to claim 1, characterized in that: The volume levels in the front section are regarded as the low volume interval, and the volume levels in the back section are regarded as the high volume interval; When the first voltage value is less than the volume adjustment voltage value, it is determined whether the current volume level is in the high volume interval. If so, the music is played at a second volume level which is less than the current volume level; if not, the music is played at the current volume level.
3. The volume-follows-voltage adaptive method according to claim 2, characterized in that: The low volume interval and the high volume interval are divided according to the middle values of several volume levels.
4. The volume-following voltage adaptive method according to claim 1, characterized in that: A fourth voltage value is preset, and the magnitude of the first voltage value and the fourth voltage value when playing at the current volume level is determined; if the first voltage value is greater than the fourth voltage value, the magnitude of the first voltage value and the volume adjustment voltage value is determined; if the first voltage value is less than the fourth voltage value, the current volume level is discarded and the music is played at a second volume level, which is less than the current volume level.
5. The volume-follows-voltage adaptive method according to claim 1, characterized in that: Preset a fifth voltage value, determine the size of the first voltage value and the fifth voltage value, if the first voltage value is greater than the fifth voltage value, determine the size of the first voltage value and the volume adjustment voltage value; if the first voltage value is less than the fifth voltage value, prompt low battery and turn off voice broadcast.
6. The volume-following voltage adaptive method according to claim 1, characterized in that: Preset a sixth voltage value, determine the size of the first voltage value and the sixth voltage value, if the first voltage value is greater than the sixth voltage value, determine the size of the first voltage value and the volume adjustment voltage value; if the first voltage value is less than the sixth voltage value, shut down.
7. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
