Detection method, device, electronic device and storage medium
By monitoring the current peak value when a Bluetooth device sends a signal and judging its average value, the problem of signal quality deterioration of the Bluetooth device when the battery is low is solved, and the signal quality is accurately evaluated and improved.
Patent Information
- Application Number
- CN202411259223.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-10
- Publication Date
- 2025-01-21
- Estimated Expiration
- 2044-09-10
AI Technical Summary
When the battery level of existing Bluetooth devices is insufficient or too low, the quality of the Bluetooth signal sent is worse, resulting in the signal gain being lower than the reception sensitivity of the receiving device, resulting in signal packet loss and reception failure.
By obtaining the current peak value when the Bluetooth device sends a preset Bluetooth signal, the average current peak value is determined, and based on this value, it is judged whether the signal quality meets the requirements. If not, increase the output voltage of the power supply module to improve signal quality.
It improves the accuracy of determining the signal quality, ensures that the quality of the Bluetooth signal meets the requirements, and avoids signal packet loss and reception failure.
Smart Images

Figure CN118802019B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of Bluetooth devices, and in particular, relates to a detection method, device, electronic device and storage medium. Background Art
[0002] As a widely used short-range wireless communication technology, Bluetooth communication technology has increasingly diverse application scenarios, from factory automation production lines to daily mobile phone Bluetooth headsets.
[0003] Existing Bluetooth devices usually convert electrical signals into electromagnetic wave signals for signal transmission through onboard antennas. However, the communication quality of Bluetooth products is highly dependent on the quality of the transmitted electrical signals. If the battery power is insufficient or too low, the quality of the transmitted electrical signals will deteriorate, making the gain of the transmitted Bluetooth signal lower than the Bluetooth signal receiving sensitivity of the receiving device, resulting in received signal packet loss and failure to receive Bluetooth signals.
[0004] To address this problem, in the related art, the quality of the electrical signal is determined by detecting the electrical quantity of the chip pins. However, the detection accuracy of the chip pins is low and the error is large, resulting in inaccurate signal quality. Summary of the invention
[0005] The embodiments of the present application provide a detection method, device, electronic device and storage medium, which can improve the accuracy of determined signal quality.
[0006] According to the first aspect of the present application, an embodiment of the present application provides a detection method, comprising:
[0007] Obtaining a first current peak value when the Bluetooth device sends a preset first Bluetooth signal;
[0008] determining an average current peak value based on the first current peak value;
[0009] When the average current peak value is less than the current peak value threshold, determining that the signal quality of the Bluetooth signal does not meet the requirement;
[0010] When the average current peak value is greater than or equal to the current peak value threshold, it is determined that the signal quality of the Bluetooth signal meets the quality requirement.
[0011] In some embodiments, the method further comprises:
[0012] When the average current peak value is less than the current peak threshold value, the power supply voltage provided by the power supply module to the Bluetooth device is increased so that the second current peak value of the second Bluetooth signal sent by the Bluetooth device through Bluetooth broadcast reaches the current peak threshold value.
[0013] In some embodiments, the power supply module includes: a first power supply module and a second power supply module. When the Bluetooth device sends a first Bluetooth signal, the first power supply module is used for power supply. The increasing power supply voltage provided by the power supply module to the Bluetooth device includes:
[0014] The first power supply module is stopped from supplying power to the Bluetooth device, and the second power supply module is started to supply power to the Bluetooth device.
[0015] In some embodiments, the method further comprises:
[0016] Acquire a third current peak value when the Bluetooth device sends a third Bluetooth signal;
[0017] When the third current peak value is less than the current peak threshold value, the first power supply module is turned on, so that the first power supply module and the second power supply module simultaneously supply power to the Bluetooth device.
[0018] In some embodiments, the method further comprises:
[0019] In the case where the first power supply module and the second power supply module simultaneously supply power to the Bluetooth device, a prompt message is output, where the prompt message is used to prompt a user to charge the power supply module or to prompt the user to replace the power supply module.
[0020] In some embodiments, increasing the power supply voltage provided by the power supply module to the Bluetooth device includes:
[0021] The output voltage of the power supply module is increased to increase the power supply voltage provided by the power supply module to the Bluetooth device.
[0022] In some embodiments, the method further comprises:
[0023] The current peak value when the Bluetooth device sends a Bluetooth signal is visually displayed, and / or the detection result of the signal quality of the Bluetooth signal is visually displayed.
[0024] According to a second aspect of the present application, an embodiment of the present application provides a detection device, including:
[0025] An acquisition module, used for acquiring a first current peak value when the Bluetooth device sends a preset first Bluetooth signal;
[0026] a calculation module, configured to determine an average current peak value based on the first current peak value;
[0027] A first detection module, configured to determine that the signal quality of the Bluetooth signal does not meet the requirement when the average current peak value is less than the current peak threshold value;
[0028] The second detection module is used to determine that the signal quality of the Bluetooth signal meets the quality requirement when the average current peak value is greater than or equal to the current peak threshold.
[0029] According to the third aspect of the present application, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any of the methods described above when executing the computer program.
[0030] According to a fourth aspect of the present application, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in any one of the above is implemented.
[0031] According to a fifth aspect of the present application, an embodiment of the present application provides a computer program product, which, when executed on a terminal device, enables the electronic device to execute any of the methods described above.
[0032] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0033] The detection method provided in the embodiment of the present application can improve the accuracy of the determined signal quality by obtaining a first current peak value when the Bluetooth device sends a preset first Bluetooth signal; determining an average current peak value based on the first current peak value; determining that the signal quality of the Bluetooth signal does not meet the requirements when the average current peak value is less than a current peak threshold value; and determining that the signal quality of the Bluetooth signal meets the quality requirements when the average current peak value is greater than or equal to the current peak threshold value.
[0034] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0036] Figure 1 A schematic diagram of a detection method for implementing this application;
[0037] Figure 2 A schematic diagram of the structure of a detection device provided in an embodiment of the present application;
[0038] Figure 3 A schematic diagram of a peak current display interface of a visual current display provided in an embodiment of the present application;
[0039] Figure 4 A schematic diagram of another detection method provided in an embodiment of the present application;
[0040] Figure 5 A schematic diagram of the structure of a detection device provided in an embodiment of the present application;
[0041] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0042] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0043] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0044] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0045] As used in the specification of this application and the appended claims, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting" depending on the context. Similarly, the phrases "if it is determined" or "if it is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce detected" or "in response to detecting" depending on the context.
[0046] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0047] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the phrases "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. appearing in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways.
[0048] Based on the technical problems of the related technology, the embodiments of the present application provide a detection method that can be applied to electronic devices such as mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR) / virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA), etc. The embodiments of the present application do not impose any restrictions on the specific types of electronic devices.
[0049] The functions implemented by the detection method provided in the embodiment of the present application can be implemented by calling program codes by a processor of an electronic device, wherein the program codes can be stored in a computer storage medium.
[0050] The embodiment of the present application provides a detection method that can evaluate the signal quality of a Bluetooth device when sending a signal, and is achieved by monitoring and analyzing the current peak value when the Bluetooth device sends a preset number of Bluetooth signals.
[0051] Figure 1 A schematic diagram of the implementation process of a detection method provided for the implementation of this application, such as Figure 1 As shown, the detection method includes:
[0052] Step S101, obtaining a first current peak value when a Bluetooth device sends a preset first Bluetooth signal.
[0053] In the embodiment of the present application, the preset times represent the number of times the Bluetooth device needs to send the Bluetooth signal. The selection of this number depends on many factors, such as test requirements, specifications of the Bluetooth device, etc. As an example, the preset times can be 5-20 times. For example, it can be set to send 10 or 20 Bluetooth signals to simulate the signal transmission frequency in the actual usage scenario. By obtaining multiple transmission signals sent by the Bluetooth device and measuring the corresponding current peak values to obtain the average value, more stable and representative data related to the Bluetooth device can be obtained, which can affect the accuracy of the determined signal quality.
[0054] In an embodiment of the present application, the Bluetooth signal can be any type of Bluetooth broadcast, connection request or other type of Bluetooth communication signal. Among them, these signals can be kept consistent during the test so that their current peaks can be accurately measured and analyzed. When in use, when the Bluetooth device sends a Bluetooth signal, the current in its circuit will change. In particular, at the moment of signal transmission, the current may reach a peak value. This peak current can reflect the instantaneous power consumption of the Bluetooth device when sending the signal.
[0055] In the embodiment of the present application, a current monitoring device is provided on the Bluetooth device. When the Bluetooth device sends a signal, the current monitoring device can record in real time the current change of the Bluetooth device during the process of sending a preset number of Bluetooth signals, and record the current peak value during each transmission. The electronic device communicates with the current detection device, and after the Bluetooth device sends the first Bluetooth signal for a preset number of times, the maximum value of the current, i.e., the first current peak value, is read and recorded from the current monitoring device. This peak value reflects the maximum current required by the Bluetooth device when sending a signal, and is an important indicator for evaluating the performance of the Bluetooth device.
[0056] Step S102: determining an average current peak value based on the first current peak value.
[0057] In the embodiment of the present application, by calculating and determining the average value of all recorded current peak values, representative current peak value data, namely, average current peak value, can be obtained. This average value can more accurately reflect the average power consumption of the Bluetooth device when sending signals multiple times, thereby helping to evaluate the signal quality of the Bluetooth signal. Specifically, all current peak values recorded in step S101 are added together and then divided by the preset number of transmissions to obtain the average current peak value.
[0058] Step S103: when the average current peak value is less than the current peak value threshold, it is determined that the signal quality of the Bluetooth signal does not meet the requirement.
[0059] In the embodiment of the present application, a current peak threshold is set as a criterion for judging signal quality. If the average current peak is lower than this threshold, it means that the Bluetooth device may have encountered problems when sending signals, such as signal attenuation, interference, etc., resulting in reduced power consumption, and further inferring that the signal quality does not meet the requirements.
[0060] In the embodiment of the present application, the current peak threshold can be set according to actual conditions, for example, it can be set according to the type of Bluetooth device, the receiving sensitivity of the Bluetooth product, etc. As an example, the current peak threshold can be 10mA-15mA.
[0061] Step S104: when the average current peak value is greater than or equal to the current peak value threshold, it is determined that the signal quality of the Bluetooth signal meets the quality requirement.
[0062] In the embodiment of the present application, if the average current peak reaches or exceeds the preset current peak threshold, it means that the power consumption of the Bluetooth device is normal when sending signals and the signal transmission is stable, thereby inferring that the signal quality meets the requirements.
[0063] The detection method provided in the embodiment of the present application can improve the accuracy of the determined signal quality by obtaining the first current peak value when the Bluetooth device sends a preset first Bluetooth signal; determining the average current peak value based on the first current peak value; when the average current peak value is less than the current peak value threshold, determining that the signal quality of the Bluetooth signal does not meet the requirements; when the average current peak value is greater than or equal to the current peak value threshold, determining that the signal quality of the Bluetooth signal meets the quality requirements.
[0064] According to the detection method of the present application, by monitoring the current peak value of the Bluetooth device when sending a signal, and calculating the average current peak value based on the current peak value, and then comparing it with the preset current peak threshold value, it is evaluated whether the signal quality of the Bluetooth signal meets the requirements. This method is simple and effective, and can accurately infer the signal quality of the Bluetooth signal without directly measuring the signal strength.
[0065] According to the present application, the detection method includes not only evaluating the signal quality of the Bluetooth signal, but also improving the strategy when the signal quality does not meet the requirements. Specifically, the transmission quality of the Bluetooth signal is improved mainly by enhancing the stability of the power supply, rather than by increasing the transmission power or changing the antenna design as is traditionally done. In this way, not only can the signal quality be effectively improved, but also the problems of increased power consumption, rising costs, and decreased waterproof and dustproof performance caused by traditional methods can be avoided.
[0066] In some embodiments, the detection method further comprises:
[0067] Step S105, when the average current peak value is less than the current peak threshold value, increasing the power supply voltage provided by the power supply module to the Bluetooth device, so that the second current peak value when the Bluetooth device sends the second Bluetooth signal through Bluetooth broadcast reaches the current peak threshold value.
[0068] In this step, the triggering condition of step S105 is that the average current peak value calculated in step S102 is less than the preset current peak threshold value. This means that the average power consumption of the Bluetooth device when sending signals is low, which may lead to poor signal quality. In this case, by increasing the power supply voltage of the power supply module to the Bluetooth device, the transmission power of the Bluetooth device is increased, thereby increasing the signal strength and stability, so that the Bluetooth device can reach or exceed the current peak threshold value when sending signals subsequently, thereby improving the signal quality.
[0069] In this step, the second Bluetooth signal may be the same as the first Bluetooth signal and is used to verify the effect after adjustment. Of course, it may also be a signal different from the first Bluetooth signal, and this application does not impose too many restrictions on this.
[0070] Specifically, the second current peak value is measured. The current monitoring device same as step S101 is used to measure the current peak value (i.e., the second current peak value) of the Bluetooth device when sending the second Bluetooth signal. The measured second current peak value is compared with the current peak value threshold. If the second current peak value reaches or exceeds the threshold value, it indicates that the adjustment is effective and the signal quality can be improved.
[0071] In this step, after confirming that the power supply voltage of the Bluetooth device needs to be increased, the power supply capacity of the Bluetooth device can be improved by adjusting the output voltage of the power supply module, or by adjusting the voltage converter (for example, boost converter) between the power supply module and the Bluetooth device. This adjustment process may need to be carried out step by step to avoid damage to the Bluetooth device caused by excessive voltage, and also to ensure that the adjusted voltage can meet the current demand of the Bluetooth device when sending signals.
[0072] In these embodiments, the detection method can adaptively adjust the supply voltage of the power supply module to ensure that the Bluetooth device can reach a sufficient current peak when sending a signal, thereby improving the stability and quality of the signal.
[0073] Below, the adjustment method according to the present application will be specifically described by taking adjusting the output voltage of the power supply module to adjust the power supply voltage to the Bluetooth device as an example, and other methods will not be described in detail here.
[0074] According to the present application, the output voltage of the power supply module can be adjusted in a variety of ways. For example, multiple power supply modules can be set, each of which can provide different output voltages. According to the actual current demand of the Bluetooth device or the preset current peak threshold, the electronic device can automatically or manually switch to a suitable power supply module so that the output voltage of the power supply module is different. This method is simple and direct and can quickly respond to changes in current demand. At the same time, since each power supply module is independent, they can be optimized and maintained independently. The power supply module itself can also be set as a transformer-regulated module. For example, PWM (pulse width modulation) control, linear regulation, etc. The electronic device sends a control signal to the power supply module to instruct it to adjust the output voltage to a specific level. The power supply module changes the output voltage using a built-in transformer regulation mechanism based on the received signal. This method can achieve continuous adjustment of the output voltage with fast response speed and high precision. At the same time, since all functions are integrated in a single module, the system structure is more compact and the cost may be lower.
[0075] In some embodiments, the power supply module includes a first power supply module and a second power supply module. When the Bluetooth device sends the first Bluetooth signal, the first power supply module is used for power supply. Step S105, increasing the power supply voltage of the Bluetooth device provided by the power supply module, includes:
[0076] Step S1051, stop the first power supply module from supplying power to the Bluetooth device, and start the second power supply module to supply power to the Bluetooth device.
[0077] In this step, the first power supply module is the power supply module used by the Bluetooth device when sending the first Bluetooth signal. Since the first power supply module has been used and may be insufficient in power, the second power supply module can be used for power supply at this time. The second power supply module is a spare or enhanced power supply module. Since the first power supply module is insufficient in power, the second power supply module is used at this time to increase the transmission power of the Bluetooth device to improve the signal quality.
[0078] In this step, when the average current peak value is less than the current peak value threshold, in order to increase the power supply voltage of the power supply module to the Bluetooth device, the electronic device will turn off the output of the first power supply module or switch the power supply input of the Bluetooth device to stop the first power supply module from supplying power to the Bluetooth device. Then, the electronic device will turn on the second power supply module and connect it to the Bluetooth device to supply power to it. Since the second power supply module may not be used, the power of the second power supply module is still sufficient at this time, so this change will directly lead to an increase in the current peak value of the Bluetooth device when sending a signal. After the power supply voltage increases, the Bluetooth device will send a second Bluetooth signal. This signal can be the same or different from the first Bluetooth signal, which is used to verify whether the adjusted power supply voltage has achieved the expected effect. Use a current monitoring device to measure the current peak value (i.e., the second current peak value) of the Bluetooth device when sending the second Bluetooth signal. Compare the measured second current peak value with the current peak value threshold. If the second current peak value reaches or exceeds the threshold, it indicates that the adjustment is effective and the signal quality may be improved.
[0079] In these embodiments, by switching to different power supply modules, the output voltage of the power supply modules is made different, so as to change the power supply voltage of the Bluetooth device. The structure is simple and easy to control.
[0080] In some other embodiments, step S105, increasing the power supply voltage provided by the power supply module to the Bluetooth device, includes:
[0081] Step S1052, increasing the output voltage of the power supply module to increase the power supply voltage provided by the power supply module to the Bluetooth device.
[0082] In this step, the power supply module is a variable voltage module, such as a DC-DC converter or a linear regulator. These circuits can adjust the output voltage by changing a control signal (such as a PWM duty cycle, a reference voltage, etc.).
[0083] In this step, the electronic device contains a microcontroller or a dedicated power management unit (PMU) that receives the feedback signal from the current monitor and adjusts the output voltage of the power supply module according to a preset algorithm or logic.
[0084] In these embodiments, the electronic device can flexibly adjust the supply voltage of the Bluetooth device to cope with different working conditions and signal quality requirements.
[0085] According to the present application, the electronic device can make another response strategy when the current peak of the Bluetooth device is still lower than the predetermined threshold even if the output voltage of the power supply module is increased.
[0086] In some embodiments, after step S1051, the detection method further includes:
[0087] Step S106, obtaining a third current peak value when the Bluetooth device sends a third Bluetooth signal.
[0088] In this step, since the second power supply module is used for power supply, the electronic device will let the Bluetooth device send a third Bluetooth signal, and use the current monitoring device to measure the third current peak value during the signal transmission process. The purpose of this step is to evaluate the actual effect of increasing the power supply voltage, that is, whether the Bluetooth device can send signals with a higher current peak value.
[0089] Step S107: when the third current peak value is less than the current peak value threshold, the first power supply module is turned on, so that the first power supply module and the second power supply module simultaneously supply power to the Bluetooth device.
[0090] In this step, since the second power supply module has been used for a long time, if the measured third current peak value is still less than the preset current peak threshold, it means that the output voltage of the second power supply module alone is not enough to meet the power requirement for the Bluetooth device to send high-quality signals. At this time, the electronic device will turn on the first power supply module and connect it in parallel with the second power supply module to power the Bluetooth device at the same time. Since the output voltage of the first power supply module and the second power supply module after parallel connection is greater than that of a single power supply module, parallel power supply can provide a higher total output voltage, which may enable the Bluetooth device to reach or exceed the required current peak threshold when sending signals. It should be noted that when supplying power in parallel, it is necessary to ensure that the output voltages of the first power supply module and the second power supply module are within the range allowed by the Bluetooth device to avoid damage to the device or affect the power supply effect due to excessive voltage difference.
[0091] In these embodiments, by introducing a strategy of using the first power supply module and the second power supply module simultaneously to power the Bluetooth device, the electronic device can more flexibly respond to different power supply requirements and working conditions, thereby improving the signal quality and overall performance of the Bluetooth device.
[0092] According to the present application, the electronic device can also recognize that the power supply module may be low on power or near the end of its service life when the first power supply module and the second power supply module are powering the Bluetooth device, and thus alert the user by outputting a prompt message.
[0093] In some embodiments, the detection method further comprises:
[0094] Step S108, when the first power supply module and the second power supply module are simultaneously supplying power to the Bluetooth device, outputting prompt information, the prompt information being used to prompt the user to charge the power supply module or to prompt the user to replace the power supply module.
[0095] In this step, when the electronic device detects that the first power supply module and the second power supply module need to work at the same time to meet the power supply demand of the Bluetooth device, this means that the overall power supply capacity of the power supply module has approached or reached its limit. At this time, the electronic device will issue a prompt message, where the prompt message can be output to the user in a variety of ways, including but not limited to: screen display, sound prompt, indicator light flashing, and APP notification. After receiving the prompt message, the user can take corresponding actions according to the prompt content to improve the user's experience and avoid affecting the quality of the Bluetooth signal generated by the Bluetooth device due to abnormal power supply modules.
[0096] According to the present application, the electronic device can enhance the interactivity and information transparency of the user interface. By visually displaying the current peak value when the Bluetooth device sends a Bluetooth signal and the signal quality detection result of the Bluetooth signal, it can help users understand the operating status of the Bluetooth device more intuitively and help users quickly identify potential problems or performance bottlenecks.
[0097] In some embodiments, the detection method further comprises:
[0098] Step S109: visually displaying the current peak value when the Bluetooth device sends the Bluetooth signal, and / or visually displaying the detection result of the signal quality of the Bluetooth signal.
[0099] In this step, the Bluetooth device communicates with the electronic device to visualize the current peak through the display interface of the electronic device. In addition, the user can view the current peak of the Bluetooth device when sending Bluetooth signals in real time or historically. This helps the user understand the power consumption of the device and the current changes under different workloads.
[0100] In this step, the preset current peak threshold value may be marked on the display interface of the electronic device so that the user can quickly determine whether the current current peak value is within a normal range.
[0101] In this step, the Bluetooth device communicates with the electronic device to visualize the signal quality detection results through the display interface of the electronic device. For example, the user can intuitively understand the signal quality of the Bluetooth signal, including key indicators such as signal strength, signal-to-noise ratio, and bit error rate. Specifically, the electronic device can calculate a comprehensive score based on multiple signal quality indicators such as signal strength, signal-to-noise ratio, and bit error rate, and display it to the user in an intuitive way (such as star rating).
[0102] In these embodiments, through the visual display function, the user can have a more comprehensive understanding of the operating status and performance of the Bluetooth device, thereby making more informed decisions and adjustments.
[0103] Based on the above embodiments, Figure 2 A schematic diagram of the structure of a Bluetooth device provided in an embodiment of the present application, such as Figure 2 As shown, the Bluetooth device includes: a first power supply module, a second power supply module, a Bluetooth signal generation controller (equivalent to the electronic device described above), a visual current display and a Bluetooth signal receiver. Figure 3 A schematic diagram of a peak current display interface of a visual current display provided in an embodiment of the present application, in Figure 3 In the figure, you can see the current fluctuations and current peaks of the Bluetooth device when sending signals.
[0104] Figure 4 A schematic diagram of another detection method provided in the present application embodiment, such as Figure 4 As shown, the specific implementation method of the present invention is as follows:
[0105] First, the first power supply module starts supplying power, and the Bluetooth signal generation controller transmits a Bluetooth signal data packet (for example, 10 packets of data).
[0106] Then, after receiving the power supply from the first power supply module, the Bluetooth signal generating controller starts to enter the normal working mode and sends 10 packets of Bluetooth signal data through Bluetooth broadcasting. The visual current display will convert the received electromagnetic wave signal into a visual electrical signal. At the same time, the instantaneous current values of the 10 packets of Bluetooth signal are statistically recorded as A1, A2, A3...A10 respectively. At the same time, the values of A1, A2, A3...A10 are sent to the Bluetooth signal generating controller through the serial port connected to the Bluetooth signal generating controller. After receiving the current value signal, the Bluetooth signal generating controller will process and analyze the received signal to calculate the current average value of the 10 packets of signal data, specifically: (A1+A2+A3+A4+A5+A6+A7+A8+A9+A10) / 10=A0.
[0107] The current threshold is set according to the receiving sensitivity of the Bluetooth product in the actual circuit (this threshold is the peak current size that can ensure that the transmitted Bluetooth signal can be normally received by the receiving end). This threshold is set to A11 (for example, the peak current threshold is 13mA). The Bluetooth signal generation controller determines the signal quality of the Bluetooth transmission signal at this time by comparing the size relationship between A0 and A11. When A0 is greater than or equal to A11, it is considered that the transmission current of the Bluetooth signal is appropriate and can meet the requirements of the receiving sensitivity. The power supply voltage stability of the Bluetooth signal generation controller is good. If A0 is less than A11 at this time, it proves that the transmission current of the Bluetooth signal is small at this time, which cannot meet the requirements of the Bluetooth antenna end for the Bluetooth signal receiving sensitivity, indicating that the power supply voltage of the Bluetooth signal generation controller is unstable at this time. At this time, the Bluetooth signal quality is poor and the quality of the Bluetooth signal needs to be enhanced. At this time, the Bluetooth signal generation controller sends a control signal to the control circuit, turns on the second power supply module (button battery) to power the Bluetooth signal generator, and sends a stop signal to the first power supply module. The power supply of the first module is stopped due to insufficient power. At this time, it continues to determine whether the peak current threshold is greater than 13mA. If the condition is met, it proves that the power supply of the power supply module is stable at this time. If the peak current drops to less than 13mA, the power supply module needs to be replaced. The first power supply module and the second power supply module can be used to ensure the stability of the power supply, thereby ensuring the quality of the Bluetooth transmission signal.
[0108] The method provided in the embodiment of the present application only uses devices and methods for increasing the stability of power supply to ensure the quality of Bluetooth transmission signals, and does not require additional devices. Compared with traditional design solutions, it has a cost advantage.
[0109] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0110] According to the aforementioned embodiments, the embodiments of the present application provide a detection device, and the modules included in the device and the units included in the modules can be implemented by a processor in a computer device; of course, they can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU, Central Processing Unit), a microprocessor (MPU, Microprocessor Unit), a digital signal processor (DSP, Digital Signal Processing) or a field programmable gate array (FPGA, Field Programmable Gate Array), etc.
[0111] The present application embodiment provides a detection device, Figure 5 A schematic diagram of the structure of a detection device provided in an embodiment of the present application is shown in FIG. Figure 5 As shown, the detection device 400 includes:
[0112] The acquisition module 401 is used to acquire a first current peak value when the Bluetooth device sends a preset first Bluetooth signal.
[0113] The calculation module 402 is configured to determine an average current peak value based on the first current peak value.
[0114] The first detection module 403 is used to determine that the signal quality of the Bluetooth signal does not meet the requirement when the average current peak value is less than the current peak value threshold.
[0115] The second detection module 404 is configured to determine that the signal quality of the Bluetooth signal meets the quality requirement when the average current peak value is greater than or equal to the current peak value threshold.
[0116] In some embodiments, the detection device 400 is further used to:
[0117] When the average current peak value is less than the current peak threshold value, the power supply voltage provided by the power supply module to the Bluetooth device is increased so that the second current peak value of the second Bluetooth signal sent by the Bluetooth device through Bluetooth broadcast reaches the current peak threshold value.
[0118] In some embodiments, the power supply module includes: a first power supply module and a second power supply module. When the Bluetooth device sends a first Bluetooth signal, the first power supply module is used for power supply. Increasing the power supply voltage of the Bluetooth device provided by the power supply module includes:
[0119] The first power supply module is stopped from supplying power to the Bluetooth device, and the second power supply module is started to supply power to the Bluetooth device.
[0120] In some embodiments, the detection device 400 is further used to:
[0121] Obtaining a third current peak value when the Bluetooth device sends a third Bluetooth signal;
[0122] When the third current peak value is less than the current peak value threshold, the first power supply module is turned on, so that the first power supply module and the second power supply module supply power to the Bluetooth device simultaneously.
[0123] In some embodiments, the detection device 400 is further used to:
[0124] When the first power supply module and the second power supply module are simultaneously supplying power to the Bluetooth device, a prompt message is output, where the prompt message is used to prompt the user to charge the power supply module or to prompt the user to replace the power supply module.
[0125] In some embodiments, increasing the power supply voltage provided by the power supply module to the Bluetooth device includes:
[0126] Increase the output voltage of the power supply module to increase the power supply voltage provided by the power supply module to the Bluetooth device.
[0127] In some embodiments, the detection device 400 is further used to:
[0128] The current peak value when the Bluetooth device sends a Bluetooth signal is visually displayed, and / or the detection result of the signal quality of the Bluetooth signal is visually displayed.
[0129] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0130] in addition, Figure 5 The detection device shown may be a software unit, a hardware unit, or a combination of software and hardware, which is built into an existing electronic device, or may be integrated into the electronic device as an independent pendant, or may exist as an independent terminal device.
[0131] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0132] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 6 As shown, the electronic device 3 of this embodiment may include: at least one processor 30 ( Figure 6 Only one processor 30 is shown in the figure), a memory 31, and a computer program 32 stored in the memory 31 and executable on at least one processor 30. When the processor 30 executes the computer program 32, the steps in any of the above-mentioned method embodiments are implemented, for example, Figure 1 Steps S101 to S104 in the illustrated embodiment. Alternatively, when the processor 30 executes the computer program 32, the functions of each module / unit in the above-mentioned device embodiments are implemented, for example Figure 5 Functions of modules 401 to 404 are shown.
[0133] Exemplarily, the computer program 32 may be divided into one or more modules / units, one or more modules / units are stored in the memory 31, and are executed by the processor 30 to complete the present application. One or more modules / units may be a series of computer program 32 instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program 32 in the electronic device 3.
[0134] The embodiment of the present application further provides a computer-readable storage medium, which stores a computer program 32. When the computer program 32 is executed by the processor 30, the steps in the above-mentioned method embodiments can be implemented.
[0135] An embodiment of the present application provides a computer program product. When the computer program product runs on an electronic device, the electronic device can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0136] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. According to this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program 32, and the computer program 32 can be stored in a computer-readable storage medium. When the computer program 32 is executed by the processor 30, the steps of the above-mentioned method embodiments can be implemented. Among them, the computer program 32 includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include at least: any entity or device capable of carrying the computer program code to the terminal, a recording medium, a computer memory, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a disk or an optical disk.
[0137] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0138] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0139] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0140] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0141] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A detection method, characterized in that: The method comprises: Obtaining a first current peak value when the Bluetooth device sends a preset first Bluetooth signal; determining an average current peak value based on the first current peak value; When the average current peak is less than the current peak threshold, it is determined that the signal quality of the Bluetooth signal does not meet the requirements; at the same time, the power supply voltage supplied by the power supply module to the Bluetooth device is increased so that the second current peak when the Bluetooth device sends the second Bluetooth signal through Bluetooth broadcast reaches the current peak threshold; the power supply module comprises: a first power supply module and a second power supply module; wherein, increasing the power supply voltage supplied by the power supply module to the Bluetooth device comprises: stopping the first power supply module from supplying power to the Bluetooth device, and turning on the second power supply module to supply power to the Bluetooth device; obtaining the third current peak when the Bluetooth device switches to the second power supply module and sends the third Bluetooth signal; when the third current peak is less than the current peak threshold, turning on the first power supply module so that the first power supply module and the second power supply module supply power to the Bluetooth device at the same time; When the average current peak value is greater than or equal to the current peak value threshold, it is determined that the signal quality of the Bluetooth signal meets the quality requirement.
2. The method according to claim 1, characterized in that The method further comprises: When the first power supply module and the second power supply module are supplying power to the Bluetooth device, prompt information is output, where the prompt information is used to prompt a user to charge the power supply module or to prompt a user to replace the power supply module.
3. The method according to claim 1, characterized in that The step of increasing the power supply voltage provided by the power supply module to the Bluetooth device comprises: The output voltage of the power supply module is increased to increase the power supply voltage provided by the power supply module to the Bluetooth device.
4. The method according to any one of claims 1 to 3, characterized in that The method further comprises: The current peak value when the Bluetooth device sends a Bluetooth signal is visually displayed, and / or the detection result of the signal quality of the Bluetooth signal is visually displayed.
5. A detection device, characterized in that: include: An acquisition module, used for acquiring a first current peak value when the Bluetooth device sends a preset first Bluetooth signal; a calculation module, configured to determine an average current peak value based on the first current peak value; A first detection module is used to determine that the signal quality of the Bluetooth signal does not meet the requirement when the average current peak value is less than the current peak threshold value; and at the same time, increase the power supply voltage supplied by the power supply module to the Bluetooth device so that the second current peak value when the Bluetooth device sends the second Bluetooth signal through Bluetooth broadcast reaches the current peak threshold value; The power supply module comprises: a first power supply module and a second power supply module; wherein, increasing the power supply voltage of the power supply module to the Bluetooth device comprises: stopping the first power supply module from supplying power to the Bluetooth device, and starting the second power supply module to supply power to the Bluetooth device; obtaining a third current peak value when the Bluetooth device sends a third Bluetooth signal after switching to the second power supply module; and when the third current peak value is less than the current peak threshold, starting the first power supply module, so that the first power supply module and the second power supply module supply power to the Bluetooth device at the same time; The second detection module is used to determine that the signal quality of the Bluetooth signal meets the quality requirement when the average current peak value is greater than or equal to the current peak threshold.
6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 4 is implemented.
7. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Power supply apparatus, power supply control method, electronic device, and readable storage medium
WO2023155579A1