Method for adjusting transmission power, method for triggering operation and electronic device
By adjusting the transmit power in the Bluetooth module, the actual time is calculated using the timestamp data of the mobile terminal, and the signal strength is adjusted adaptively, solving the problem of inaccurate signal strength indication in Bluetooth ranging technology, improving user experience and operation accuracy.
Patent Information
- Application Number
- CN202411852418.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-16
- Publication Date
- 2025-03-04
- Estimated Expiration
- 2044-12-16
AI Technical Summary
In Bluetooth ranging technology, the accuracy of Bluetooth received signal strength indication is easily affected by environmental factors, which leads to the inability to accurately identify the user's usage scenarios, which may incorrectly trigger the operation or adaptively adjust the usage scenarios.
By implementing a method of adjusting the transmit power in the Bluetooth module, the mobile terminal detects the signal timestamp of different transmit powers, calculates the actual time and compares it with the expected time, and adaptively adjusts the transmit power of the first signal.
This method can accurately identify the complexity and usage habits of the user's usage scenarios, reduce the situation of false triggering, improve the user experience, and realize adaptive adjustments to the usage scenarios.
Smart Images

Figure CN119316918B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Bluetooth, and in particular to a method for adjusting transmission power, a method for triggering operation and electronic equipment. Background Art
[0002] In the related technologies of Bluetooth ranging, the distance between the Bluetooth module and the mobile terminal is calculated through the Bluetooth received signal strength indication, and then various operations are implemented based on the distance. However, since the Bluetooth signal in wireless communication is easily affected by environmental factors, the accuracy of the Bluetooth received signal strength indication is easily affected, and the user's usage scenario cannot be accurately identified, resulting in false triggering. At the same time, it is also impossible to adaptively adjust the user's usage scenario. Summary of the invention
[0003] The technical problem to be solved by the present invention is that, in view of at least one defect existing in the related technology mentioned in the above background technology: in the related technology of Bluetooth ranging, the accuracy of the Bluetooth received signal strength indication is easily affected, and the user's usage scenario cannot be accurately identified, and the user's usage scenario cannot be adaptively adjusted. A method for adjusting the transmission power, a method for triggering operation and an electronic device are provided.
[0004] The technical solution adopted by the present invention to solve the technical problem is: construct a method for adjusting the transmission power, which is applied to the Bluetooth module, comprising the following steps:
[0005] broadcasting a first signal at a first transmit power and broadcasting a second signal at a second transmit power, wherein the second transmit power is greater than the first transmit power;
[0006] Establishing wireless communication with at least one bound mobile terminal;
[0007] Receiving first information sent by the mobile terminal, where the first information is a timestamp of when the mobile terminal detects the second signal;
[0008] receiving second information sent by the mobile terminal, where the second information is a timestamp of when the mobile terminal detects the first signal;
[0009] Calculate the actual time according to the first information and the second information;
[0010] The actual time is compared with the estimated time, and the first transmission power is adaptively adjusted according to the comparison result.
[0011] In some embodiments, adaptively adjusting the first transmit power according to the comparison result includes:
[0012] If the actual time is less than the expected time, the first transmission power is increased; if the actual time is greater than the expected time, the first transmission power is reduced.
[0013] In some embodiments, if the actual time is less than the expected time, the first transmit power is increased; if the actual time is greater than the expected time, the first transmit power is decreased, including:
[0014] If the actual time is less than the time obtained by multiplying the estimated time by the first coefficient, the first transmission power is increased; if the actual time is greater than the time obtained by multiplying the estimated time by the second coefficient, the first transmission power is reduced.
[0015] In some embodiments, if the actual time is less than the expected time, the first transmission power is increased, and then the method further includes:
[0016] The actual travel speed is calculated based on the travel distance between the first signal coverage edge and the second signal coverage edge before the power is increased and the actual time before the power is increased;
[0017] A new estimated time is calculated based on the travel distance between the first signal coverage edge and the second signal coverage edge after the power is increased and the actual travel speed;
[0018] If the actual time is greater than the expected time, the first transmission power is reduced, and then the method further includes:
[0019] The actual travel speed is calculated based on the travel distance between the first signal coverage edge and the second signal coverage edge before the power reduction and the actual time before the power reduction;
[0020] A new estimated time is calculated based on the travel distance and actual travel speed between the first signal coverage edge and the second signal coverage edge after power reduction.
[0021] In some embodiments, wireless communication is established with at least one bound mobile terminal, and then the method further includes:
[0022] Automatically detect and identify the identity of the mobile terminal;
[0023] The actual time is compared with the estimated time, and the first transmission power is adaptively adjusted according to the comparison result, and then the method further includes:
[0024] According to the identifier of the mobile terminal, the estimated time corresponding to the identifier of the mobile terminal and the adjusted first transmission power are saved.
[0025] In some embodiments, after automatically detecting and identifying the identifier of the mobile terminal and before receiving the second information sent by the mobile terminal, the method further includes:
[0026] If the estimated time and the first transmission power corresponding to the identifier of the mobile terminal are saved, the first transmission power is set to the first transmission power corresponding to the identifier of the mobile terminal, and the estimated time is set to the estimated time corresponding to the identifier of the mobile terminal.
[0027] In some embodiments, establishing wireless communication with at least one bound mobile terminal includes:
[0028] Establishing wireless communication with at least two bound mobile terminals;
[0029] Adaptively adjusting the first transmit power according to the comparison result includes:
[0030] The first transmission power is adaptively adjusted according to the priority of the mobile terminal and the comparison result.
[0031] In some embodiments, comparing the actual time with the estimated time includes:
[0032] Compare the actual time for a calculation cycle with the estimated time.
[0033] The present invention also constructs a method for triggering an operation, which is applied to a Bluetooth module of an electronic device, wherein the electronic device has a first state and a second state, and comprises the following steps:
[0034] In a first state, a first signal is broadcast at a first transmission power and a second signal is broadcast at a second transmission power, wherein the second transmission power is greater than the first transmission power;
[0035] Establishing wireless communication with at least one bound mobile terminal;
[0036] Receiving first information sent by the mobile terminal, where the first information is a timestamp of when the mobile terminal detects the second signal;
[0037] receiving second information sent by the mobile terminal and triggering a first operation, wherein the first operation is used to switch the first state to the second state, and the second information is a timestamp of the mobile terminal detecting the first signal;
[0038] Calculate the actual time according to the first information and the second information;
[0039] The actual time is compared with the estimated time, and the first transmission power is adaptively adjusted according to the comparison result.
[0040] The present invention also constructs an electronic device, including a Bluetooth module, and the Bluetooth module is used to implement the triggering operation method.
[0041] By implementing the present invention, the following beneficial effects are achieved:
[0042] The Bluetooth module of the present invention calculates the actual time according to the timestamps of the second signal and the first signal detected by the mobile terminal, and compares the actual time with the expected time, so as to accurately identify the complexity of the user's usage scenario and usage habits, and then adaptively adjust the first transmission power of the first signal to improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] The present invention will be further described below with reference to the accompanying drawings and embodiments, in which:
[0044] Figure 1 A flow chart of an embodiment of a method for adjusting transmit power of the present invention is shown;
[0045] Figure 2 A flow chart of an embodiment of a method for triggering an operation of the present invention is shown;
[0046] Figure 3 A schematic diagram showing the coverage of the first signal, the second signal and the third signal broadcast by the Bluetooth module of the present invention is shown;
[0047] Figure 4 A flowchart showing a method for adjusting transmit power and a method for triggering an operation according to an embodiment of the present invention for completing binding with at least one mobile terminal in advance;
[0048] Figure 5 A flowchart showing an embodiment of a method for adjusting transmission power and a method for triggering operation of the present invention for completing authentication with a mobile terminal is shown;
[0049] Figure 6 A flow chart after increasing the first transmission power in an embodiment of the method for adjusting the transmission power and the method for triggering the operation of the present invention is shown;
[0050] Figure 7 A flow chart after reducing the first transmission power in an embodiment of the method for adjusting the transmission power and the method for triggering the operation of the present invention is shown;
[0051] Figure 8 A logical structure diagram of an embodiment of the electronic device of the present invention is shown. DETAILED DESCRIPTION
[0052] In order to have a clearer understanding of the technical features, purposes and effects of the present invention, specific embodiments of the present invention are now described in detail with reference to the accompanying drawings.
[0053] It should be noted that the flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor do they have to be executed in the order described. For example, some operations / steps can be decomposed, while some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0054] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0055] RSSI (Received Signal Strength Indicator) is an indicator used to measure signal strength. It indicates the power strength of the received wireless signal. It is usually measured in decibel milliwatts (dBm). The higher the RSSI value, the higher the signal strength. Conversely, the lower the RSSI value, the lower the signal strength.
[0056] In wireless communication systems, RSSI values are often used to evaluate the signal strength changes, quality, and stability of wireless signals in different environments. For example, in Bluetooth and Wi-Fi networks, RSSI values are used to determine the signal strength between devices to determine whether it is necessary to adjust the signal transmission power or switch to a more stable channel.
[0057] RSSI value ranges are usually as follows:
[0058] -30 dBm to -50 dBm: Very strong signal, little interference, high reliability.
[0059] -50 dBm to -70 dBm: The signal is good and a stable connection is usually possible.
[0060] -70 dBm to -85 dBm: The signal is moderate and the connection may have some interference but is generally still usable.
[0061] Below -85 dBm: The signal is weak and unstable connection may occur.
[0062] Bluetooth signals are electromagnetic waves, which can theoretically propagate very far, but the actual coverage range is easily affected by environmental factors, the transmission power of the device, etc. For example, environmental factors are obstacles (such as walls, metal objects), signal interference, etc. The Bluetooth broadcast range referred to in the present invention refers to a reliable and stable signal coverage range, such as the radius range where the RSSI value is greater than -85.
[0063] TXPower is the abbreviation of the transmission power of wireless communication devices, which indicates the transmission power (also known as output power) of a device (such as a Bluetooth module) when sending a signal. Transmission power is usually measured in milliwatts (mW) or decibel milliwatts (dBm). In wireless communication, transmission power is a key parameter that directly affects the coverage and signal strength of the signal.
[0064] In terms of coverage, higher transmit power can increase the transmission distance of the signal, allowing the device to cover a larger area. In terms of signal quality, when the signal is weak, increasing the transmit power can improve the quality of signal reception. In terms of interference and power consumption, too high a transmit power may cause the signal to interfere with adjacent frequency bands and increase the energy consumption of the device. Therefore, in wireless communications, it is very important to set the transmit power reasonably, both to ensure sufficient signal coverage and quality, and to avoid unnecessary interference and power consumption.
[0065] Specifically, the propagation of the broadcast signal of the Bluetooth module in space can be regarded as a gradual attenuation process. The higher the transmission power, the higher the initial signal strength, and the signal can still maintain sufficient strength at a longer distance, thereby increasing the radius of the coverage range (also known as the coverage radius) so that it can be detected by other Bluetooth devices. On the contrary, the lower the transmission power, the lower the initial signal strength, causing the signal to be more easily attenuated by obstacles, noise or other interference in the environment during the propagation process, and at a shorter distance it will be attenuated to a level that is not enough to be reliably received by other devices, thereby reducing the coverage radius.
[0066] In theoretical models, the relationship between signal strength and distance usually follows the free space propagation model, where the signal strength decreases inversely as the square of the distance. Therefore, higher transmit power can extend the distance at which the signal reaches a given attenuation threshold, that is, increase the coverage radius.
[0067] The relationship between the transmission power and coverage radius of a Bluetooth module can usually be described by a radio wave propagation model. One of the most commonly used models is the Free-Space Path Loss (FSPL) model, which describes the attenuation of signal strength with distance in free space. This model assumes that there are no obstacles and reflections, which is idealized, but it provides a basis for understanding the relationship between transmission power and coverage radius.
[0068] Among them, the free space path loss model (FSPL), according to the free space path loss model, the signal strength P r The relationship between and distance d can be expressed as:
[0069]
[0070] in:
[0071] ·P r (d) is the signal strength (RSSI, expressed in dBm) at distance d.
[0072] ·P t is the transmit power (TX Power, expressed in dBm).
[0073] n is the path loss exponent (typically 2 in free space, but may be higher in real environments).
[0074] d is the distance between the transmitter and the receiver (usually in meters).
[0075] ·L f It is other losses, such as antenna loss, equipment loss, etc.
[0076] In order to determine the coverage radius R, it is usually necessary to set a signal strength threshold P min (i.e., the minimum power at which the Bluetooth module can reliably receive signals). According to the above formula, the coverage radius R can be expressed as:
[0077]
[0078] This formula shows that:
[0079] Transmit power (P t ) increases, the coverage radius R increases in logarithmic proportion.
[0080] When the path loss exponent (n) increases, the coverage radius R decreases because the signal attenuates faster during propagation.
[0081] Signal strength threshold (P min ) increases, the coverage radius R decreases because the device needs a stronger signal to work.
[0082] Table 1 below is a hypothetical example showing the coverage radius corresponding to different transmit powers. These data are based on the free space path loss model and assume that the path loss exponent n=2 (under free space conditions). Signal strength threshold P min Set to -90 dBm, a common Bluetooth receive sensitivity threshold.
[0083] Assuming other losses L f is 0 (ideal case), we can use the formula Calculate the coverage radius R.
[0084] Table 1
[0085]
[0086] A normal adult's walking speed is usually between 4 and 5 kilometers per hour. Specifically:
[0087] Normal walking: The average speed is about 4.5 kilometers per hour (about 1.25 meters per second).
[0088] Brisk walking: The average speed may be closer to 5 to 6 kilometers per hour (about 1.4 to 1.7 meters per second).
[0089] Slow walking: The average speed is usually less than 4 kilometers per hour (about 1.1 meters per second).
[0090] These values can vary depending on a person's physical strength, height, age, terrain, and other factors.
[0091] The time t (in seconds) required to complete the entire coverage radius R can be calculated using the following formula:
[0092]
[0093] When the transmission power is at 0 dBm, the corresponding coverage radius is 10 meters. The time it takes for a normal adult to walk from the outer edge of the radius to the center of the circle (i.e. close to the transmitting device) at normal walking speed is: Second.
[0094] Similarly, different transmission power levels can be obtained. The corresponding table of the time for a normal adult to walk from the outer edge of the radius to the center of the circle (i.e. close to the transmitting device) at a normal walking speed is shown in Table 2.
[0095] Table 2
[0096]
[0097] like Figure 1 As shown, some embodiments of the present invention disclose a method for adjusting transmission power, which is applied to a Bluetooth module and includes the following steps:
[0098] broadcasting a first signal at a first transmit power and broadcasting a second signal at a second transmit power, wherein the second transmit power is greater than the first transmit power;
[0099] Establishing wireless communication with at least one bound mobile terminal. It is understandable that the at least one may be one, two, three or any number, for example, the mobile terminal may be a mobile phone, a tablet computer, a watch, etc.;
[0100] Receiving first information sent by the mobile terminal, where the first information is a timestamp of when the mobile terminal detects the second signal;
[0101] receiving second information sent by the mobile terminal, where the second information is a timestamp of when the mobile terminal detects the first signal;
[0102] Calculate the actual time according to the first information and the second information;
[0103] The actual time is compared with the estimated time, and the first transmission power is adaptively adjusted according to the comparison result.
[0104] The Bluetooth module of this embodiment calculates the actual time based on the timestamps of the second signal and the first signal detected by the mobile terminal, and compares the actual time with the expected time, so as to accurately identify the complexity of the user's usage scenario and usage habits, and then adaptively adjust the first transmission power of the first signal to improve the user experience.
[0105] In some other embodiments, Figure 2 As shown, the present invention discloses a method for triggering an operation, which is applied to a Bluetooth module of an electronic device, and the electronic device has a first state and a second state, and includes the following steps:
[0106] In a first state, a first signal is broadcast at a first transmission power and a second signal is broadcast at a second transmission power, wherein the second transmission power is greater than the first transmission power;
[0107] Establishing wireless communication with at least one bound mobile terminal;
[0108] Receiving first information sent by the mobile terminal, where the first information is a timestamp of when the mobile terminal detects the second signal;
[0109] receiving second information sent by the mobile terminal and triggering a first operation, wherein the first operation is used to switch the first state to the second state, and the second information is a timestamp of the mobile terminal detecting the first signal;
[0110] Calculate the actual time according to the first information and the second information;
[0111] The actual time is compared with the estimated time, and the first transmission power is adaptively adjusted according to the comparison result.
[0112] In some embodiments, the method for adjusting the transmit power and the method for triggering the operation further include:
[0113] The third signal is broadcasted at a third power, wherein the third transmission power is greater than the second transmission power. Initially, the mobile terminal is outside the coverage of the third signal broadcasted by the Bluetooth module, and when the mobile terminal moves into the coverage of the third signal, the mobile terminal detects the third signal, but ignores and filters the signal, and the mobile terminal continues to move until the second signal broadcasted by the Bluetooth module is detected.
[0114] Specifically, the theoretical basis for the Bluetooth module to broadcast the first signal, the second signal and the third signal is mainly based on the broadcast mechanism, time slicing, channel utilization strategy in the Bluetooth protocol specification and the multi-tasking processing capability of the Bluetooth chip.
[0115] The Bluetooth module of the present invention is first configured with 3 different connectable Beacon broadcasts, as follows:
[0116] The first Beacon broadcast includes a UUID unique identifier (for example, AAAAAAAA-AAAA-BBBB-BBBB-111111111).
[0117] The second Beacon broadcast includes a UUID unique identifier (for example, AAAAAAAA-AAAA-BBBB-BBBB-222222222).
[0118] The third Beacon broadcast broadcasts the basic information of the Bluetooth module, including the name and UUID unique identifier (for example, AAAAAAAA-AAAA-BBBB-BBBB-333333333).
[0119] Then, by configuring different transmission powers for different broadcasts, a first signal corresponding to the first Beacon broadcast, a second signal corresponding to the second Beacon broadcast, and a third signal corresponding to the third Beacon broadcast are obtained. The coverage ranges of the first signal, the second signal, and the third signal are as follows: Figure 3 shown.
[0120] like Figure 3 As shown, the wake-up zone is the area from when the mobile terminal detects the third signal to when it detects the second signal. The pre-trigger zone is the area from when the mobile terminal does not detect the first signal but can detect the second signal. The trigger zone is the area from when the mobile terminal detects the first signal to when the Bluetooth module is connected. The end zone is the area from when the mobile terminal cannot search for both the first signal and the second signal.
[0121] In some embodiments, in the method for adjusting the transmission power and the method for triggering the operation, wireless communication is established with at least one bound mobile terminal, and the method also includes:
[0122] Pre-binding with at least one mobile terminal. That is, when a user uses or initializes the Bluetooth module for the first time, it needs to be pre-binded with the user's mobile terminal so that the Bluetooth module can establish wireless communication with the bound mobile terminal when used later.
[0123] Among them, Figure 4 As shown, binding is completed with at least one mobile terminal in advance, specifically including:
[0124] Establishing wireless communication with at least one mobile terminal; specifically, establishing low-power Bluetooth communication (i.e., BLE communication) with at least one mobile terminal through the Bluetooth GATT protocol after at least one mobile terminal detects the third signal or the second signal through the Bluetooth detection function;
[0125] Receive a randomly generated key sent by at least one mobile terminal, and save the key locally to establish a binding state. Specifically, receive a randomly generated 128-bit AES key sent by a mobile terminal through low-power Bluetooth communication, and save the key locally to establish a binding state. The mobile terminal will also save this key locally. This key will be used to encrypt and decrypt data in subsequent communications to ensure communication security. The 128-bit AES key here is only an example and is not a limitation of this application. It can also be other.
[0126] In some embodiments, Figure 4 As shown, binding is completed in advance with at least one mobile terminal, and specifically also includes:
[0127] The signal identifier to be broadcast is sent to the mobile terminal for local storage, and the signal identifier is used by the mobile terminal for broadcast detection.
[0128] Accordingly, the mobile terminal matches the detected signal identifier of the second signal with the locally stored signal identifier, and after the match is successful, wireless communication is established with at least one bound mobile terminal. After the match is successful on the mobile terminal, an APP is also activated, and the APP is used to control an electronic device with the Bluetooth module, such as a lock device.
[0129] In some embodiments, establishing wireless communication with at least one bound mobile terminal specifically includes: after at least one bound mobile terminal (specifically an APP activated in the mobile terminal) detects a third signal or a second signal through a Bluetooth detection function, establishing low-power Bluetooth communication with at least one mobile terminal through the Bluetooth GATT protocol.
[0130] In some embodiments, the method for adjusting the transmission power and the method for triggering the operation, after establishing wireless communication with at least one bound mobile terminal and before receiving the first information sent by the mobile terminal, also include: completing authentication with the mobile terminal.
[0131] Among them, Figure 5 As shown, the authentication is completed with the mobile terminal, specifically including:
[0132] Generate a random string, encrypt the string using a locally stored key, and send the encrypted string to the mobile terminal via low-power Bluetooth communication;
[0133] Receiving a decrypted character string returned by the mobile terminal, where the decrypted character string is obtained by the mobile terminal decrypting the encrypted character string using a key stored locally;
[0134] Determine whether the decrypted string is consistent with the original generated string. If they are consistent, the authentication is successful and secure communication is established with the mobile terminal; if they are inconsistent, the authentication fails and the Bluetooth connection with the mobile terminal is immediately disconnected.
[0135] In some embodiments, the encrypted string is sent to the mobile terminal via low-power Bluetooth communication, and then the process further includes: starting a local countdown;
[0136] Accordingly, it is determined whether the decrypted string is consistent with the original generated string. If they are consistent, the authentication is successful and secure communication is established with the mobile terminal; if they are inconsistent, the authentication fails and the Bluetooth connection with the mobile terminal is immediately and actively disconnected, specifically including:
[0137] Determine whether the decrypted string is consistent with the original generated string. If it is judged to be consistent before the countdown ends, the authentication is successful and secure communication is established with the mobile terminal; if it is still judged to be inconsistent at the end of the countdown, the authentication fails and the Bluetooth connection with the mobile terminal is immediately disconnected.
[0138] In some embodiments, in the method for adjusting the transmit power and the method for triggering the operation, binding is completed with at least one mobile terminal in advance, and the method also includes:
[0139] Initialize to be in an unbound state. The Bluetooth module is powered on and all previous binding information is cleared by hard reset (long press the reset button on the Bluetooth module). This operation ensures that the Bluetooth module is in an unbound state and is ready to be bound to a new mobile terminal.
[0140] In some embodiments, in the method for adjusting the transmit power and the method for triggering the operation, adaptively adjusting the first transmit power according to the comparison result includes:
[0141] If the actual time is less than the expected time, the first transmission power is increased; if the actual time is greater than the expected time, the first transmission power is reduced.
[0142] It can be understood that the earlier the mobile terminal detects the first signal, the shorter the actual time. That is, when the transmission power of the second signal and the third signal remains unchanged, the higher the first transmission power of the first signal, the larger the coverage of the first signal, and the earlier the mobile terminal can detect the first signal. On the contrary, if the first transmission power of the first signal is lower, the coverage of the first signal is smaller, and the mobile terminal detects the first signal later.
[0143] The actual time is the actual time required for the mobile terminal to cross the distance between the second signal coverage edge and the first signal coverage edge, and the estimated time is the estimated time required for the mobile terminal to cross the distance between the second signal coverage edge and the first signal coverage edge.
[0144] Among them, according to the first transmission power of the first signal and the second transmission power of the second signal, the coverage radius of the first signal and the second signal can be calculated respectively, and then according to the coverage radius of the first signal and the second signal respectively, the distance between the coverage edge of the second signal and the coverage edge of the first signal can be calculated, that is, the coverage radius difference, and by dividing the distance by the speed, the time required for the mobile terminal to cross this distance can be obtained.
[0145] In the above calculations, the normal walking speed of a normal adult (about 1.25 m / s) is usually used as the benchmark speed, and the time calculated based on this is the estimated time.
[0146] When receiving the first information and the second information, the Bluetooth module can obtain the actual time by subtracting the time in the first information from the time in the second information according to the timestamp contained therein. By comparing the actual time with the estimated time, the complexity of the user's usage scenario and usage habits, that is, the time spent by the mobile terminal in the pre-trigger area, can be judged, and the first transmission power of the first signal can be adaptively adjusted.
[0147] If the actual time is less than the estimated time, it means that the user's usage scenario is simple and the purpose is clear. At this time, the Bluetooth module can increase the first transmission power of the first signal to complete the operation trigger faster.
[0148] If the actual time is longer than the estimated time, it means that the user's usage scenario is complex and he may stay in the pre-trigger area. At this time, the Bluetooth module can reduce the first transmission power of the first signal so that the operation is triggered only when the user is closer to the Bluetooth module, reducing false triggering.
[0149] In some embodiments, if the actual time is less than the expected time, the first transmission power is increased, specifically including: if the actual time is less than the time obtained by multiplying the expected time by the first coefficient, the first transmission power is increased. By setting the first coefficient, the situation of mis-upgrading (i.e., increasing the first transmission power) can be reduced, the difficulty of upshifting can be increased, and frequent upshifting can be avoided.
[0150] The calculation of the first coefficient includes: calculating the upshift speed ratio according to the first passing speed and the reference passing speed, the inverse of the upshift speed ratio being the first coefficient, wherein the first passing speed is greater than the reference passing speed.
[0151] For example, the first passing speed is defined as a brisk walking speed of 1.55 m / s, and the reference passing speed is defined as a normal walking speed of 1.25 m / s. The 1.55 m / s and 1.25 m / s here are only examples and are not intended to limit the present application. Other speeds are possible.
[0152] Upshift speed ratio = brisk walking speed / normal walking speed = 1.55 / 1.25 = 1.24.
[0153] The first coefficient = 1 / upshift speed ratio = 1 / 1.24 ≈ 0.8.
[0154] In some embodiments, Figure 6 As shown, if the actual time is less than the expected time, the first transmission power is increased, and then the method further includes:
[0155] The actual travel speed is calculated based on the travel distance between the first signal coverage edge and the second signal coverage edge before the power is increased and the actual time before the power is increased;
[0156] A new estimated time is calculated based on the travel distance between the first signal coverage edge and the second signal coverage edge after the power is increased and the actual travel speed.
[0157] In some embodiments, if the actual time is greater than the expected time, reducing the first transmit power includes: if the actual time is greater than the time obtained by multiplying the expected time by the second coefficient, reducing the first transmit power. By setting the second coefficient, the situation of erroneous downshifting (i.e., reducing the first transmit power) can be reduced, the difficulty of downshifting can be increased, and frequent downshifting can be avoided.
[0158] The calculation of the second coefficient includes:
[0159] Calculating a downshift speed ratio according to a second passing speed and a reference passing speed, wherein the second passing speed is less than the reference passing speed;
[0160] The second coefficient is calculated based on the inverse of the downshift speed ratio and the environmental coefficient, wherein the environmental coefficient is used to reduce frequent downshifts caused by environmental factors, improve the fault tolerance rate, and provide sufficient fault tolerance time.
[0161] For example, the second passing speed is defined as a slow walking speed of 1.1 m / s, the reference passing speed is a normal walking speed of 1.25 m / s, and the environmental coefficient is 3. 1.1 m / s, 1.25 m / s and 3 are only examples and are not intended to limit the present application. Other values are possible.
[0162] Downshift speed ratio = slow walking speed / normal walking speed = 1.1 / 1.25.
[0163] The second coefficient = (1 / downshift speed ratio) × environmental coefficient = 1.25 / 1.1 × 3 ≈ 3.4.
[0164] In some embodiments, Figure 7 As shown, if the actual time is greater than the expected time, the first transmission power is reduced, and then the method further includes:
[0165] The actual travel speed is calculated based on the travel distance between the first signal coverage edge and the second signal coverage edge before the power reduction and the actual time before the power reduction;
[0166] A new estimated time is calculated based on the travel distance and actual travel speed between the first signal coverage edge and the second signal coverage edge after power reduction.
[0167] In some embodiments, in the method for adjusting the transmission power and the method for triggering the operation, wireless communication is established with at least one bound mobile terminal, and then further includes: automatically detecting and identifying the identifier of the mobile terminal.
[0168] Accordingly, the actual time is compared with the estimated time, and the first transmit power is adaptively adjusted according to the comparison result, and then the method further includes:
[0169] According to the identifier of the mobile terminal, the estimated time corresponding to the identifier of the mobile terminal and the adjusted first transmission power are saved.
[0170] In some embodiments, after automatically detecting and identifying the identifier of the mobile terminal and before receiving the second information sent by the mobile terminal, the method further includes:
[0171] If the estimated time and the first transmission power corresponding to the identifier of the mobile terminal are saved, the first transmission power is set to the first transmission power corresponding to the identifier of the mobile terminal, and the estimated time is set to the estimated time corresponding to the identifier of the mobile terminal.
[0172] Specifically, in a multi-user scenario, in order to meet the personal habits of each user, based on the unique MAC address of the mobile terminal as the identification of the mobile terminal, the Bluetooth module will save the estimated time and the adjusted first transmission power corresponding to the identification of the mobile terminal. After identifying the identification of the mobile terminal, it will dynamically adjust the first transmission power and estimated time of the first signal to achieve a personalized experience.
[0173] In some embodiments, in the method for adjusting the transmit power and the method for triggering the operation, establishing wireless communication with at least one bound mobile terminal specifically includes:
[0174] Establishing wireless communication with at least two bound mobile terminals;
[0175] Accordingly, adaptively adjusting the first transmit power according to the comparison result specifically includes:
[0176] The first transmission power is adaptively adjusted according to the priority of the mobile terminal and the comparison result.
[0177] Specifically, in a multi-user environment, the Bluetooth module can identify multiple mobile terminals at the same time, and adjust the corresponding first transmission power and estimated time for each mobile terminal.
[0178] Furthermore, when the Bluetooth module saves the estimated time corresponding to the identifier of the mobile terminal and the adjusted first transmission power, the habit record and broadcast setting of each user are independent, ensuring that the settings of different users do not affect each other.
[0179] When multiple users enter the third signal coverage area at the same time, the adjustment order of the first transmit power may be determined according to the priorities of the mobile terminals, such as the order in which the mobile terminals enter the third signal coverage area or other preset rules.
[0180] The priority determination of the mobile terminal includes:
[0181] receiving third information respectively sent by at least two mobile terminals, where the third information is a timestamp when the mobile terminal detects the third signal;
[0182] According to at least two third information, the order in which the at least two mobile terminals enter the third signal coverage area is determined, and the priorities of the at least two mobile terminals are determined according to the order.
[0183] In some embodiments, in the method for adjusting the transmission power and the method for triggering the operation, the actual time is compared with the expected time, which specifically includes: comparing the actual time within a calculation cycle with the expected time.
[0184] Specifically, in order to better adapt to the actual usage habits of users, the first transmission power is dynamically adjusted by calculating the period, thereby optimizing the experience.
[0185] The calculation cycle can adopt a sliding window mechanism, that is, every 10 actual time data are grouped as a sliding window. The first group: the first 10 actual time data are used as the initial group. The next group: starting from the second actual time data, the next 10 actual time data are used as the next group, sliding in sequence. Each group of actual time data is used to evaluate whether the current actual time meets expectations.
[0186] In each set of 10 real-time data, evaluation is performed according to the following rules:
[0187] If 7 or more of the 10 actual time data have actual times exceeding 20.78 seconds (estimated time) multiplied by 3.4 (second coefficient) = 70.65 seconds, it is considered that the actual time is too long, and the first transmission power of the first signal needs to be reduced to reduce the coverage radius of the first signal, so that the user needs to be closer to the Bluetooth module to trigger the operation.
[0188] If the actual time of 7 or more of the 10 actual time data is less than 20.78 seconds (estimated time) multiplied by 0.8 (first coefficient) = 16.62 seconds, it is considered that the actual time is too short, and it is necessary to increase the first transmission power of the first signal and expand the coverage radius of the first signal to make the trigger operation more advanced.
[0189] Alternatively, the maximum and minimum values are removed from each group of valid actual time data, and then the average value is taken. For example, for 8 valid actual time data, the average value of the 6 actual time data after removing the maximum and the minimum value is taken as the actual time.
[0190] It should be noted that 10, 7, 8, 6, 20.78 seconds, 3.4 and 0.8 are only examples and are not intended to limit the present application. Other values are possible.
[0191] Each time after the first transmission power of the first signal is adjusted, a new estimated time is calculated and applied to the next calculation cycle.
[0192] In the next calculation cycle, the sliding window continues to evaluate the new 10 actual time data, and further adjusts the first transmission power of the first signal based on the new estimated time. Every 10 actual time data is a window, that is, 1-10 is a window, 11-20 is the next window, and data judgment is performed.
[0193] Through continuous evaluation and adjustment of the sliding window, the first transmission power setting of the first signal is gradually optimized to make it more in line with the actual usage habits of users and improve the accuracy and efficiency of triggering.
[0194] Feedback loop: The estimated time and actual time after each adjustment will enter the sliding window again to form a feedback loop so that the first transmit power can be adaptively adjusted. As the usage time increases, the first transmit power configuration of each user will be gradually optimized to adapt to the changing user behavior patterns, making the experience more personalized and efficient.
[0195] In some embodiments, the method for triggering an operation further includes:
[0196] If the fourth information sent by the mobile terminal is received, the second operation is set to be triggered after the delay time, and the second operation is used to switch the second state to the first state, wherein the fourth information is information that the mobile terminal cannot detect the first signal, for example, a timestamp of the failure to detect the first signal. At this time, the mobile terminal is still within the coverage of the second signal, and the device is in the second state.
[0197] In some embodiments, the method for triggering an operation further includes:
[0198] If the fifth information sent by the mobile terminal is received within the delay time, the triggering of the second operation is canceled, wherein the fifth information is the information that the mobile terminal re-detects the first signal, for example, the timestamp of the re-detection of the first signal.
[0199] In some embodiments, the method for triggering an operation further includes:
[0200] If the sixth information sent by the mobile terminal is received, the second operation is triggered immediately, wherein the sixth information is information that the mobile terminal cannot detect the second signal, for example, a timestamp of the second signal being unable to be detected.
[0201] In some embodiments, the method for triggering an operation further includes:
[0202] When communication with the mobile terminal cannot be established, the second operation is triggered by default to ensure security.
[0203] In some embodiments, in the related technology based on Bluetooth ranging induction unlocking, since the Bluetooth signal in wireless communication is easily affected by environmental factors, the accuracy of the Bluetooth received signal strength indication is easily affected, and thus the user's usage scenario cannot be accurately identified, resulting in frequent false triggering of unlocking or locking operations, and it is also impossible to adaptively adjust the user's usage scenario.
[0204] Therefore, in the trigger operation method, the electronic device is a lock device, the first state is a locked state, the second state is an unlocked state, the first operation is an unlocking operation, and the second operation is a locking operation. In some other embodiments, the electronic device can also be other electronic devices that require a trigger operation to switch states.
[0205] That is, the trigger operation method includes the following steps:
[0206] In the locked state, broadcasting a first signal at a first transmission power and broadcasting a second signal at a second transmission power, wherein the second transmission power is greater than the first transmission power;
[0207] Establishing wireless communication with at least one bound mobile terminal;
[0208] Receiving first information sent by the mobile terminal, where the first information is a timestamp of when the mobile terminal detects the second signal;
[0209] receiving second information sent by the mobile terminal and triggering an unlocking operation, the unlocking operation being used to switch a locked state to an unlocked state, the second information being a timestamp of the mobile terminal detecting the first signal;
[0210] Calculate the actual time according to the first information and the second information;
[0211] The actual time is compared with the estimated time, and the first transmission power is adaptively adjusted according to the comparison result.
[0212] For example, the specific adaptive unlocking scheme is as follows:
[0213] (1) Factory settings:
[0214] Third signal: The third transmission power is 20 dBm and the coverage radius is 100 meters.
[0215] Second signal: The second transmission power is 15 dBm and the coverage radius is 56.23 meters.
[0216] First signal: The first transmission power is 0 dBm and the coverage radius is 10 meters.
[0217] (2) Estimated time calculation
[0218] S (coverage radius difference) = coverage radius of the second signal - coverage radius of the first signal = 56.23 meters - 10 meters = 46.23 meters.
[0219] v (baseline speed) = normal walking speed of a normal adult, which is 1.25 m / s.
[0220] t (estimated time) = coverage radius difference / baseline speed = 46.23 meters / 1.25 meters / second ≈ 36.98 seconds.
[0221] (3) Upshift logic
[0222] Upshift condition: If the actual time is always less than 0.8 times the expected time (36.98 seconds * 0.8 = 29.59 seconds) within a calculation cycle, the upshift logic is triggered, that is, the first transmission power of the first signal is increased.
[0223] After upshifting:
[0224] 1. The first transmission power of the first signal is adjusted to 5 dBm, and the coverage radius is increased to 17.78 meters.
[0225] 2. Recalculate the coverage radius difference after the upshift: S = coverage radius of the second signal - coverage radius of the first signal = 56.23 meters - 17.78 = 38.45 meters.
[0226] 3. Calculate the new estimated time after upshifting:
[0227] New estimated time t = coverage radius difference after upshifting / actual passing speed (1.85 m / s) = 38.45 m / 1.85 m / s ≈ 20.78 seconds.
[0228] (4) Next round of upshift: If the actual time in the next calculation cycle continues to be less than 0.8 times the new estimated time (20.78 seconds * 0.8 = 16.62 seconds), the upshift logic will continue to be executed.
[0229] like Figure 8 As shown, some embodiments of the present invention disclose an electronic device, including a Bluetooth module, and the Bluetooth module is used to implement the triggering operation method described in the above embodiment, which will not be repeated here.
[0230] By implementing the present invention, the following beneficial effects are achieved:
[0231] The Bluetooth module of the present invention calculates the actual time according to the timestamps of the second signal and the first signal detected by the mobile terminal, and compares the actual time with the expected time, so as to accurately identify the complexity of the user's usage scenario and usage habits, and then adaptively adjust the first transmission power of the first signal to improve the user experience.
[0232] It is understandable that the above embodiments only express some implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that for ordinary technicians in this field, without departing from the concept of the present invention, the above embodiments or technical features can be freely combined, and several deformations and improvements can be made, which all belong to the protection scope of the present invention, that is, the embodiments described in "some embodiments" can be freely combined with any of the above and below embodiments. Therefore, all equivalent changes and modifications made to the scope of the claims of the present invention should belong to the scope of the claims of the present invention.
Claims
1. A method for adjusting transmission power, characterized in that: Applied to the Bluetooth module, including the following steps: broadcasting a first signal at a first transmit power and broadcasting a second signal at a second transmit power, wherein the second transmit power is greater than the first transmit power; Establishing wireless communication with at least one bound mobile terminal; Receiving first information sent by the mobile terminal, where the first information is a timestamp of when the mobile terminal detects the second signal; receiving second information sent by the mobile terminal, where the second information is a timestamp of when the mobile terminal detects the first signal; Calculate the actual time according to the first information and the second information; Comparing the actual time with the estimated time, and adaptively adjusting the first transmit power according to the comparison result; The actual time is calculated based on the first information and the second information, including: the actual time is the actual time required for the mobile terminal to cross the distance between the second signal coverage edge and the first signal coverage edge, and the actual time is obtained by subtracting the time in the timestamp of the first information from the time in the timestamp of the second information; The estimated time is the estimated time required for the mobile terminal to cross the distance between the second signal coverage edge and the first signal coverage edge, and the estimated time required for the mobile terminal to cross this distance is obtained by dividing the distance between the second signal coverage edge and the first signal coverage edge by the speed; Adaptively adjusting the first transmit power according to the comparison result includes: if the actual time is less than the expected time, increasing the first transmit power; if the actual time is greater than the expected time, reducing the first transmit power.
2. The method for adjusting transmission power according to claim 1, characterized in that: If the actual time is less than the estimated time, increasing the first transmission power; If the actual time is greater than the expected time, reducing the first transmission power, including: If the actual time is less than the estimated time multiplied by the first coefficient, increasing the first transmission power; If the actual time is greater than the estimated time multiplied by the second coefficient, the first transmission power is reduced.
3. The method for adjusting transmission power according to claim 1, characterized in that: If the actual time is less than the expected time, the first transmission power is increased, and then the method further includes: The actual travel speed is calculated based on the travel distance between the first signal coverage edge and the second signal coverage edge before the power is increased and the actual time before the power is increased; A new estimated time is calculated based on the travel distance between the first signal coverage edge and the second signal coverage edge after the power is increased and the actual travel speed; If the actual time is greater than the expected time, the first transmission power is reduced, and then the method further includes: The actual travel speed is calculated based on the travel distance between the first signal coverage edge and the second signal coverage edge before the power reduction and the actual time before the power reduction; A new estimated time is calculated based on the travel distance and actual travel speed between the first signal coverage edge and the second signal coverage edge after power reduction.
4. The method for adjusting transmission power according to claim 1, characterized in that: Establishing wireless communication with at least one bound mobile terminal, and then further comprising: Automatically detect and identify the identity of the mobile terminal; The actual time is compared with the estimated time, and the first transmission power is adaptively adjusted according to the comparison result, and then the method further includes: According to the identifier of the mobile terminal, the estimated time corresponding to the identifier of the mobile terminal and the adjusted first transmission power are saved.
5. The method for adjusting transmission power according to claim 1 or 4, characterized in that: After automatically detecting and identifying the identifier of the mobile terminal and before receiving the second information sent by the mobile terminal, the method further includes: If the estimated time and the first transmission power corresponding to the identifier of the mobile terminal are saved, the first transmission power is set to the first transmission power corresponding to the identifier of the mobile terminal, and the estimated time is set to the estimated time corresponding to the identifier of the mobile terminal.
6. The method for adjusting transmission power according to claim 1, characterized in that: Establishing wireless communication with at least one bound mobile terminal, comprising: Establishing wireless communication with at least two bound mobile terminals; Adaptively adjusting the first transmit power according to the comparison result includes: The first transmission power is adaptively adjusted according to the priority of the mobile terminal and the comparison result.
7. The method for adjusting transmission power according to claim 1, characterized in that: Compare actual times to estimated times, including: Compare the actual time for a calculation cycle with the estimated time.
8. A method for triggering an operation, characterized in that: A Bluetooth module applied to an electronic device, wherein the electronic device has a first state and a second state, comprises the following steps: In a first state, a first signal is broadcast at a first transmission power and a second signal is broadcast at a second transmission power, wherein the second transmission power is greater than the first transmission power; Establishing wireless communication with at least one bound mobile terminal; Receiving first information sent by the mobile terminal, where the first information is a timestamp of when the mobile terminal detects the second signal; receiving second information sent by the mobile terminal and triggering a first operation, wherein the first operation is used to switch the first state to the second state, and the second information is a timestamp of the mobile terminal detecting the first signal; Calculate the actual time according to the first information and the second information; Comparing the actual time with the estimated time, and adaptively adjusting the first transmit power according to the comparison result; The actual time is calculated based on the first information and the second information, including: the actual time is the actual time required for the mobile terminal to cross the distance between the second signal coverage edge and the first signal coverage edge, and the actual time is obtained by subtracting the time in the timestamp of the first information from the time in the timestamp of the second information; The estimated time is the estimated time required for the mobile terminal to cross the distance between the second signal coverage edge and the first signal coverage edge, and the estimated time required for the mobile terminal to cross this distance is obtained by dividing the distance between the second signal coverage edge and the first signal coverage edge by the speed; Adaptively adjusting the first transmit power according to the comparison result includes: if the actual time is less than the expected time, increasing the first transmit power; if the actual time is greater than the expected time, reducing the first transmit power.
9. An electronic device, characterized in that: It includes a Bluetooth module, and the Bluetooth module is used to implement the method for triggering operation as claimed in claim 8.
Citation Information
Patent Citations
Low-power-consumption Bluetooth transmission method and device
CN115314873A
Position acquisition method and related equipment
CN116074736A