Bluetooth connection method, apparatus, device, and storage medium
Patent Information
- Application Number
- CN202410189956.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-19
- Publication Date
- 2026-10-20
- Estimated Expiration
- 2044-02-19
AI Technical Summary
[0023]在本申请实施例中,在监听到第二设备的蓝牙广播时,确定第一设备与第二设备之间的距离;第二设备为第一设备的回连设备;当第一设备与第二设备之间的距离满足预设距离条件时,将针对第二设备的寻呼扫描模式由第一寻呼扫描模式切换为第二寻呼扫描模式,第二寻呼扫描模式的扫描频次与第一寻呼扫描模式的扫描频次不同。
Smart Images

Figure CN117881008B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic device technology, and in particular to a Bluetooth connection method, apparatus, device and storage medium. Background Technology
[0002] Bluetooth backconnection refers to the process of two devices that have already been paired via Bluetooth re-establishing a data transmission channel. How to achieve personalized Bluetooth backconnection has become a pressing technical problem for the industry. Summary of the Invention
[0003] This application provides a Bluetooth connection method, apparatus, device, and storage medium that enables personalized Bluetooth reconnection.
[0004] The first aspect of this application provides a Bluetooth connection method, the method being applicable to a first device, comprising:
[0005] Upon detecting a Bluetooth broadcast from the second device, the distance between the first device and the second device is determined; the second device is the reconnection device of the first device.
[0006] When the distance meets the preset distance condition, the paging scanning mode for the second device will be switched from the first paging scanning mode to the second paging scanning mode. The scanning frequency of the second paging scanning mode is different from that of the first paging scanning mode.
[0007] A second aspect of this application provides a Bluetooth connection method, applicable to a second device, comprising:
[0008] A Bluetooth broadcast is sent so that when the first device hears the Bluetooth broadcast, it determines the distance between the first device and the second device, and when the distance meets a preset distance condition, it switches the paging scan mode for the second device from the first paging scan mode to the second paging scan mode. The scanning frequency of the second paging scan mode is different from that of the first paging scan mode. The second device is the reconnection device of the first device.
[0009] A third aspect of this application provides a Bluetooth connection device, the device being a first device, the device comprising:
[0010] The distance measurement unit is used to determine the distance between the first device and the second device when a Bluetooth broadcast from the second device is detected, wherein the second device is the reconnection device of the first device;
[0011] The mode switching unit is used to switch the paging scanning mode for the second device from the first paging scanning mode to the second paging scanning mode when the distance meets the preset distance condition. The scanning frequency of the second paging scanning mode is different from that of the first paging scanning mode.
[0012] A fourth aspect of this application provides a Bluetooth connection device, the device being a second device, the device comprising:
[0013] A broadcasting unit is configured to send a Bluetooth broadcast so that when the first device hears the Bluetooth broadcast, it determines the distance between the first device and the second device, and when the distance meets a preset distance condition, it switches the paging scanning mode for the second device from a first paging scanning mode to a second paging scanning mode, wherein the scanning frequency of the second paging scanning mode is different from that of the first paging scanning mode; wherein the second device is a reconnection device of the first device.
[0014] A fifth aspect of this application provides an electronic device, including:
[0015] Memory containing executable program code;
[0016] and the processor coupled to the memory;
[0017] The processor calls the executable program code stored in the memory, and when the executable program code is executed by the processor, the processor implements the method as described in the first or second aspect of the embodiments of this application.
[0018] A sixth aspect of this application provides a computer-readable storage medium having executable program code stored thereon, wherein when the executable program code is executed by a processor, it implements the method described in the first or second aspect of this application.
[0019] A seventh aspect of this application provides a chip including a processor and a memory, wherein the memory is used to store code instructions and the processor is used to execute the code instructions to perform the method as described in the first or second aspect of this application.
[0020] The eighth aspect of this application discloses a computer program product that, when run on a computer, causes the computer to execute the method described in the first or second aspect of this application.
[0021] The ninth aspect of this application discloses an application publishing platform for publishing computer program products, wherein when the computer program product is run on a computer, the computer executes the method described in the first or second aspect of this application.
[0022] As can be seen from the above technical solutions, the embodiments of this application have the following advantages:
[0023] In this embodiment of the application, when the Bluetooth broadcast of the second device is detected, the distance between the first device and the second device is determined; the second device is the reconnection device of the first device; when the distance between the first device and the second device meets the preset distance condition, the paging scanning mode for the second device is switched from the first paging scanning mode to the second paging scanning mode, and the scanning frequency of the second paging scanning mode is different from that of the first paging scanning mode.
[0024] By implementing this method, the first device can dynamically adjust the paging scanning mode for the second device based on the distance between the first and second devices. This makes the scanning of paging messages from the second device by the first device more flexible, enabling personalized Bluetooth reconnection and thus better meeting user needs. Attached Figure Description
[0025] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments and the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application, and other drawings can be obtained based on these drawings.
[0026] Figure 1A This is a scenario illustration of the Bluetooth connection method disclosed in an embodiment of this application;
[0027] Figure 1B This is a paging timing diagram disclosed in an embodiment of this application;
[0028] Figure 2 This is a flowchart illustrating a Bluetooth connection method disclosed in an embodiment of this application;
[0029] Figure 3 This is another flowchart illustrating the Bluetooth connection method disclosed in the embodiments of this application;
[0030] Figure 4 This is another scenario illustration of the Bluetooth connection method disclosed in the embodiments of this application;
[0031] Figure 5 This is another flowchart illustrating the Bluetooth connection method disclosed in the embodiments of this application;
[0032] Figure 6This is another scenario illustration of the Bluetooth connection method disclosed in the embodiments of this application;
[0033] Figure 7 This is another flowchart illustrating the Bluetooth connection method disclosed in the embodiments of this application;
[0034] Figure 8 This is a structural illustration of a Bluetooth connection device disclosed in an embodiment of this application;
[0035] Figure 9 This is another structural illustration of the Bluetooth connection device disclosed in the embodiments of this application;
[0036] Figure 10 This is a structural illustration of the first device disclosed in the embodiments of this application;
[0037] Figure 11 This is a structural illustration of a second device disclosed in an embodiment of this application. Detailed Implementation
[0038] This application provides a Bluetooth connection method, apparatus, device, and storage medium that can enable personalized Bluetooth reconnection to better meet user needs.
[0039] To enable those skilled in the art to better understand the present application, the technical solutions of the embodiments of the present application will be described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. All embodiments based on the present application should fall within the scope of protection of the present application.
[0040] It should be noted that, in this application, the words "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplarily" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of words such as "exemplarily" or "for example" is intended to present the relevant concepts in a concrete manner.
[0041] "At least one" means one or more, while "more" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, and c can mean: a, or b, or c, or a and b, or a and c, or b and c, or a, b, and c, where a, b, and c can be single or multiple.
[0042] Please see Figure 1A , Figure 1A This is a scenario illustration of the Bluetooth connection method disclosed in an embodiment of this application. For example... Figure 1A The scenario illustration shows a first device 10 and a second device 20. The first device 10 and the second device 20 are two devices that have already been paired via Bluetooth. The process of the second device 20 re-establishing a data transmission channel with the first device 10 is called Bluetooth backconnection, and the second device 20 is referred to as the backconnection device of the first device 10.
[0043] In the process of the second device 20 re-establishing a data transmission channel with the first device 10, it is often necessary to page the first device 10. The following will combine... Figure 1B The paging timing diagram shown illustrates the paging process. Figure 1B The paging timing diagram shown includes the following 6 steps:
[0044] Step 1: The second device 20 is in paging mode, the first device 10 is in paging scan mode, and the second device 20 sends a paging message;
[0045] Step 2: When the first device 10 receives the paging message, it will enter the slave response state and send the first reply message (RESPONSE) in response to the paging message.
[0046] Step 3: After the second device 20 receives the first reply message, the second device 20 will enter the master response state and send a frequency hop synchronization (FHS) data packet;
[0047] Step 4: The first device 10 receives the FHS data packet from the second device 20 and replies with a second reply message (RESPONSE) for the FHS data packet;
[0048] Step 5: After receiving the second reply message from the first device 10, the second device 20 will also enter the connection state and then send a protocol POLL data packet to the first device 10;
[0049] Step 6: After receiving the POLL data packet, the first device 10 can reply with a data stream.
[0050] Currently, the first device 10 often scans the paging messages sent by the second device 20 using a fixed paging scanning mode, which results in the Bluetooth back-connection between the first device 10 and the second device 20 being less personalized and usually failing to meet user needs.
[0051] To address this issue, in this technical solution, the first device can dynamically adjust its paging scanning mode for the second device based on the distance between the first and second devices. This makes the scanning of paging messages from the second device by the first device more flexible, thereby enabling personalized Bluetooth connections to better meet user needs.
[0052] The first device 10 and the second device 20 may include general handheld screen electronic devices, such as mobile phones, smartphones, portable terminals, terminals, personal digital assistants (PDAs), portable media players (PMPs), laptops, notebooks, wireless broadband (Wibro) terminals, tablet computers (PCs), smart PCs, point of sale (POS) terminals, and in-vehicle computers, etc.
[0053] The first device 10 and the second device 20 may also include wearable devices. Wearable devices are portable electronic devices that can be worn directly on the user's body or integrated into the user's clothing or accessories. Wearable devices are not only hardware devices, but can also achieve powerful intelligent functions through software support and data interaction and cloud server interaction, such as computing functions, positioning functions, and alarm functions. They can also connect to mobile phones and various terminals. Wearable devices can include, but are not limited to, wrist-supported watch-type products (such as watches, wristbands, etc.), foot-supported shoe-type products (such as shoes, socks, or other leg-wearing products), head-supported glass-type products (such as glasses, helmets, headbands, etc.), as well as smart clothing, backpacks, canes, accessories, and other non-mainstream product forms.
[0054] The present application solution will be further described below with reference to specific embodiments.
[0055] Please see Figure 2 , Figure 2 This is a flowchart illustrating a Bluetooth connection method disclosed in an embodiment of this application. Figure 2 The Bluetooth connection method shown may include the following steps:
[0056] 201. The second device sends a Bluetooth broadcast.
[0057] In some embodiments, the second device sends a Bluetooth broadcast, which may include, but is not limited to, the following methods:
[0058] The second device detects whether it is in motion; and when the second device is in motion, it sends a Bluetooth broadcast.
[0059] or,
[0060] When the target time is reached, the second device sends a Bluetooth broadcast. The target time can be preset by the user or determined by the second device based on the user's historical usage habits. This application embodiment does not limit the target time.
[0061] For example, if the target time is determined by the second device based on the user's historical usage habits, then if the user has been using the second device since 10 PM for the past week, the target time is 10 PM. If the user has been using the second device since 9 PM for 6 days in the past week, then the target time is 9 PM.
[0062] or,
[0063] Send a Bluetooth broadcast when the second device is powered on.
[0064] 202. When the first device hears the Bluetooth broadcast sent by the first device, it determines the distance between the first device and the second device.
[0065] The determination of the distance between the first device and the second device by the first device may include:
[0066] The first device determines the target signal strength of the Bluetooth broadcast sent by the second device;
[0067] The first device determines the distance between the first device and the second device based on the target signal strength.
[0068] In some embodiments, the first device may have a preset signal strength relationship table, which may include at least one signal strength interval and the distance corresponding to each signal strength interval. The first device can determine the target signal strength interval in which the target signal strength is located from the above signal strength relationship table, and use the distance corresponding to the target signal strength interval as the distance between the first device and the second device.
[0069] The detection cycle of the distance between the first device and the second device can be 5 seconds (s) to 10 seconds, which can avoid the first device frequently switching paging scanning modes.
[0070] 203. When the distance between the first device and the second device meets the preset distance condition, the first device will switch the paging scanning mode for the second device from the first paging scanning mode to the second paging scanning mode.
[0071] The scanning frequency of the second paging scanning mode differs from that of the first paging scanning mode. Scanning frequency refers to the number of times a paging message is scanned per unit of time.
[0072] It is understandable that the scanning frequency of the second paging scanning mode is greater than that of the first paging scanning mode, or the scanning frequency of the second paging scanning mode is less than that of the first paging scanning mode.
[0073] The first paging scan mode refers to the current paging scan mode of the first device. The first paging scan mode can be the default paging scan mode of the first device, or it can be a paging scan mode determined based on the distance between the first device and the second device. This application embodiment does not limit the specific paging scan mode.
[0074] The distance between the first device and the second device meets a preset distance condition, which may include:
[0075] The distance between the first device and the second device is less than a first distance threshold; correspondingly, the scanning frequency of the second paging scanning mode is greater than the scanning frequency of the first paging scanning mode.
[0076] or,
[0077] When the distance between the first device and the second device is greater than the second distance threshold, the scanning frequency of the second paging scanning mode is less than the scanning frequency of the first paging scanning mode.
[0078] It is understandable that the smaller the distance between the first and second devices, the higher the scanning frequency of the corresponding second paging scanning mode; the greater the distance between the first and second devices, the lower the scanning frequency of the corresponding second paging scanning mode, and the lower the power consumption of the devices.
[0079] In this embodiment, the parameters corresponding to the paging scan mode (e.g., the first paging scan mode, the second paging scan mode) may include the page scan interval, the page scan window, and the scan type. The scan window refers to the scan duration; the page scan interval refers to the time interval between the start times of two scans; and the scan type may include a normal scan and an interlaced scan.
[0080] Standard scanning refers to a process where, if a paging message is received during a single scan, the device enters a slave response state; otherwise, it enters a standby state. Interleaved scanning, on the other hand, involves a second scan if no paging message is received in the first scan. If a paging message is received in the second scan, the device enters a slave response state; if no paging message is received in the second scan, it enters a sleep state. Understandably, interleaved scanning can save half the connection time compared to standard scanning, but its power consumption is often twice that of standard scanning.
[0081] The scanning window is directly proportional to the scanning frequency, while the scanning time interval is inversely proportional to the scanning frequency.
[0082] For example, when the scanning type of the first paging scanning mode is the same as that of the second paging scanning mode, and the scanning window of the first paging scanning mode is the same as that of the second paging scanning mode, if the distance between the first device and the second device is less than a first distance threshold, then the scanning time interval of the first paging scanning mode is greater than the scanning time interval of the second paging scanning mode; if the distance between the first device and the second device is greater than a second distance threshold, then the scanning time interval of the first paging scanning mode is less than the scanning time interval of the second paging scanning mode.
[0083] For example, when the scanning type of the first paging scan mode is the same as that of the second paging scan mode, if the distance between the first device and the second device is less than a first distance threshold, then the scanning time interval of the first paging scan mode is greater than the scanning time interval of the second paging scan mode, and the scanning window of the first paging scan mode is smaller than the scanning window of the second paging scan mode; if the distance between the first device and the second device is greater than a second distance threshold, then the scanning time interval of the first paging scan mode is less than the scanning time interval of the second paging scan mode, and the scanning window of the first paging scan mode is larger than the scanning window of the second paging scan mode.
[0084] For example, the paging scanning mode preset by the first device can be found in Table 1 below.
[0085] Paging Scanning Mode 1 Tgap(107) Tgap(107) Standard Scan Paging Scanning Mode 2 Tgap(106) Tgap(101) Interlaced scanning Paging Scanning Mode 3 Tgap(107) Tgap(101) Interlaced scanning Paging Scanning Mode 4 Tgap(107) Tgap(101) Standard Scan Paging Scanning Mode 5 Tgap(108) Tgap(101) Interlaced scanning Paging Scanning Mode 6 Tgap(108) Tgap(101) Standard Scan
[0086] Table 1
[0087] Table 1 includes the parameters corresponding to Paging Scan Mode 1, Paging Scan Mode 2, Paging Scan Mode 3, Paging Scan Mode 4, Paging Scan Mode 5, and Paging Scan Mode 6. Specifically, Tgap(107) is 1.28s, Tgap(101) is 10.625 milliseconds (ms), Tgap(106) is 100ms, Tgap(108) is 2.56s, Tgap(107) is 1.28s, Tgap(106) is 100ms, and Tgap(101) is 10.625ms.
[0088] For example, when the distance between the first device and the second device is less than a first distance threshold, the first paging scan mode can be paging scan mode 3, and the second paging scan mode can be paging scan mode 2. When the distance between the first device and the second device is greater than a second distance threshold, the first paging scan mode can be paging scan mode 2, and the second paging scan mode can be paging scan mode 3.
[0089] By implementing this method, the first device can dynamically adjust the paging scanning mode for the second device based on the distance between the first and second devices, making the scanning of paging messages from the second device by the first device more flexible, thereby achieving personalized Bluetooth connection and better meeting user needs (such as high-speed connection needs and power saving needs).
[0090] Please see Figure 3 , Figure 3 This is another flowchart illustrating the Bluetooth connection method disclosed in the embodiments of this application. Figure 3 The Bluetooth connection method shown may include the following steps:
[0091] 301. The second device sends a Bluetooth broadcast.
[0092] 302. When the first device hears the Bluetooth broadcast sent by the first device, it determines the distance between the first device and the second device.
[0093] For a detailed description of steps 301-302, please refer to the above description of steps 201-202, which will not be repeated here.
[0094] 303. When the distance between the first device and the second device is less than the first distance threshold, the first device will switch the paging scanning mode for the second device from the first paging scanning mode to the second paging scanning mode.
[0095] The second paging scan mode has a higher scan frequency than the first paging scan mode.
[0096] In some embodiments, switching the paging scanning mode of the first device for the second device from a first paging scanning mode to a second paging scanning mode may include:
[0097] The first device detects the current battery level of the first device;
[0098] When the current battery level is greater than the battery threshold, the paging scan mode for the second device will be switched from the first paging scan mode to the second paging scan mode.
[0099] It should be noted that the higher the frequency with which the first device scans the paging messages sent by the second device, the greater the power consumption of the first device. Based on the above description, switching the paging scanning mode when the first device has sufficient power can improve the Bluetooth reconnection speed while also helping to ensure the battery life of the first device.
[0100] In some embodiments, prior to step 302, the first device may further determine a second paging scan mode from at least one preset target paging scan mode. The scanning frequency of the target paging scan mode is greater than the scanning frequency of the first paging scan mode.
[0101] When there is only one target paging scan mode, the first device can determine the target paging scan mode as the second paging scan mode.
[0102] When there are multiple target paging scan modes, the first device can determine any one of the multiple target paging scan modes as the second paging scan mode.
[0103] When there are multiple target paging scan modes, the first device can determine the target paging scan mode with the highest corresponding scanning frequency among the multiple target paging scan modes as the second paging scan mode.
[0104] When there are multiple target paging scan modes, the first device can determine the target paging scan mode with the smallest corresponding scan frequency among the multiple target paging scan modes as the second paging scan mode.
[0105] When there are multiple target paging scan modes, when the first device detects that it is being paged by other backlink devices, it can also determine a second paging scan mode from the multiple target paging scan modes based on the number of other backlink devices. The number of other backlink devices corresponds to different target paging scan modes. The more other backlink devices there are, the lower the scanning frequency of the corresponding target paging scan mode.
[0106] For example, the aforementioned multiple target paging scanning modes include a third paging scanning mode, a fourth paging scanning mode, and a fifth paging scanning mode. The third paging scanning mode has the lowest scanning frequency, followed by the fourth paging scanning mode, and the fifth paging scanning mode has the highest scanning frequency. If there is only one other backlink device, the fifth paging scanning mode is designated as the second paging scanning mode. If there are two other backlink devices, the fourth paging scanning mode is designated as the second paging scanning mode. If there are three other backlink devices, the third paging scanning mode is designated as the second paging scanning mode.
[0107] It is understandable that if the first device increases the scanning frequency of the second device during the process of the first device connecting to other back-connection devices, it will usually affect the scanning frequency of the first device to other back-connection devices. The first device determines the second paging scanning mode based on the number of other back-connection devices, which can effectively reduce the back-connection impact on other back-connection devices.
[0108] By implementing the above method, when the distance between the first device and the second device becomes smaller, the second paging scanning mode with a higher scanning frequency can be switched to scan the paging messages of the second device. In this way, the second device can quickly page the first device, which helps to improve the reconnection speed of the second device.
[0109] In some embodiments, the second device is an audio playback device inside a closed case, such as headphones inside a closed headphone case (as follows). Figure 4 (The scene shown). The following combination Figure 5 This section introduces the Bluetooth connection method for this scenario. Please refer to [link / reference]. Figure 5 , Figure 5This is another flowchart illustrating the Bluetooth connection method disclosed in the embodiments of this application. For example... Figure 5 The Bluetooth connection method shown may include the following steps:
[0110] 501. The second device sends a Bluetooth broadcast.
[0111] 502. When the first device hears the Bluetooth broadcast sent by the first device, it determines the distance between the first device and the second device.
[0112] 503. When the distance between the first device and the second device meets the preset distance condition, the first device will switch the paging scanning mode for the second device from the first paging scanning mode to the second paging scanning mode.
[0113] For a detailed explanation of steps 501-503, please refer to the description of steps 201-203 above, which will not be repeated here.
[0114] 504. If the first device receives a paging message from the second device in the second paging scanning mode, then a Bluetooth Low Energy (BLE) link is established with the second device.
[0115] The establishment of a BLE link between the first device and the second device may include: the first device sending a third request to the second device to establish a BLE link, and the second device responding to the third request to establish a BLE link with the first device.
[0116] 505. When the first device is in audio playback mode, send an instruction message to the second device via the BLE link to indicate the initiation of establishing a physical link.
[0117] Before step 505, the first device can determine whether there is an audio stream in the audio channel of the first device. If there is, it is determined that the first device is in the audio playback state; if there is no audio stream, it is determined that the first device is not in the audio playback state.
[0118] 506. Upon receiving the aforementioned instruction information, the second device sends a first request to the first device to establish a physical link.
[0119] 507. The first device responds to the first request and establishes a physical link with the second device.
[0120] In some embodiments, when the first device determines that it is in an audio playback state, it can also determine the type of the audio stream. If the type of the audio stream is a real-time audio stream, the first device is determined to be in a real-time audio playback state; if the type of the audio stream is a non-real-time audio stream, the first device is determined to be in a non-real-time audio playback state.
[0121] Real-time audio streams refer to audio data with high real-time requirements, such as the audio data for a Bluetooth call. Correspondingly, real-time audio playback status refers to the state of playing audio data with high real-time requirements. Non-real-time audio streams refer to audio data with lower real-time requirements, such as the Advanced Audio Distribution Description (A2DP) file for a song. Correspondingly, non-real-time audio playback status refers to the state of playing audio data with lower real-time requirements.
[0122] Based on this, if the first device is in audio playback mode, it sends an indication message to the second device via the BLE link to indicate the initiation of establishing a physical link, which may include:
[0123] When the first device is in a non-real-time audio playback state, it sends an indication message to the second device via the BLE link to indicate the initiation of establishing an asynchronous connectionless (ACL) link;
[0124] or,
[0125] When the first device is in real-time audio playback mode, it sends an instruction message to the second device via the BLE link to indicate the initiation of establishing a Synchronous Connection Oriented (SCO) link.
[0126] Correspondingly, the first device responds to the first request by establishing a physical link with the second device, which may include:
[0127] In response to the first request, the first device establishes an ACL link with the second device.
[0128] or,
[0129] The first device responds to the first request and establishes an SCO link with the second device.
[0130] Understandably, SCO links are primarily used to transmit audio data with high real-time requirements, while ACL links are mainly used to transmit audio data with less stringent real-time requirements.
[0131] In some embodiments, when the first device receives the paging information from the second device, it may also send a Bluetooth broadcast carrying the aforementioned indication information. When the second device hears the Bluetooth broadcast, it may send a first request to the first device to establish a physical link, and then continue to execute step 507.
[0132] By implementing this method, the first device can send the aforementioned indication information to the second device via broadcast, without the need to establish a BLE link, which can improve the efficiency of sending the indication information.
[0133] In some embodiments, when the second device determines that the storage box is in an open state, such as Figure 6 In the scenario shown, the second device can also send a second request to the first device to establish an application protocol link. The first device responds to the second request and establishes an application protocol link with the second device.
[0134] By implementing this method, the first device can dynamically adjust its paging scanning mode for the second device based on the distance between the first and second devices. This makes the scanning of paging messages from the first device more flexible, enabling personalized Bluetooth reconnection and better meeting user needs (such as high-speed reconnection and power-saving requirements). Furthermore, when the first device is playing audio and the second device is inside a closed storage box, a physical link can be established beforehand. An application protocol link can be established only when the storage box is open. This means that the time-consuming physical link establishment is completed before the storage box is opened, and only the application protocol link needs to be established after the box is opened, effectively improving the sound output efficiency of the second device.
[0135] In some embodiments, the first device is a mobile phone, and the second device is an earphone, as described below. Figure 7 Instructions for connecting mobile phones and headphones via Bluetooth are provided. Please refer to [link / reference]. Figure 7 , Figure 7 This is another flowchart illustrating the Bluetooth connection method disclosed in the embodiments of this application. For example... Figure 7 The Bluetooth connection method shown may include the following steps:
[0136] 701. The first paging scan mode of the mobile phone is set to the default paging scan mode.
[0137] 702. The headset sends a Bluetooth broadcast.
[0138] 703. When the mobile phone detects the Bluetooth broadcast sent by the earphone, it determines the distance between the mobile phone and the earphone.
[0139] 704. When the distance between the mobile phone and the headset is less than the first distance threshold, the mobile phone will switch the paging scanning mode for the second device from the first paging scanning mode to the second paging scanning mode.
[0140] It should be noted that when the distance between the phone and the earphone is greater than the first distance threshold, the paging scanning mode will not be switched, and the earphone will be paged in the first paging scanning mode.
[0141] 705. When the mobile phone receives the paging information from the headset in the second paging scan mode, it sends a third request to the headset to establish a BLE link.
[0142] 706. The headset responds to the third request and establishes a BLE link with the first device.
[0143] 707. When in a non-real-time audio playback state, the mobile phone sends an instruction message to the headset via the BLE link to indicate the initiation of establishing an ACL link.
[0144] 708. Upon receiving this instruction, the headset sends a first request to the mobile phone to establish an ACL link.
[0145] 709. The mobile phone responds to the first request and establishes an ACL link with the headset.
[0146] 710. When the earphone case is opened, the earphone sends a second request to the mobile phone to establish an application protocol link.
[0147] 711. The mobile phone responds to the second request and establishes an application protocol link with the headset.
[0148] Please see Figure 8 , Figure 8 This is a structural illustration of a Bluetooth connection device disclosed in an embodiment of this application. Figure 8 The Bluetooth connectivity device shown may include a distance measurement unit 801 and a mode switching unit 802; wherein:
[0149] The distance measurement unit 801 is used to determine the distance between the first device and the second device when the Bluetooth broadcast of the second device is detected; the second device is the reconnection device of the first device.
[0150] The mode switching unit 802 is used to switch the paging scanning mode for the second device from the first paging scanning mode to the second paging scanning mode when the distance meets the preset distance condition. The scanning frequency of the second paging scanning mode is different from that of the first paging scanning mode.
[0151] In some embodiments, the distance satisfies a preset distance condition, including: the distance is less than a first distance threshold; wherein the scanning frequency of the second paging scanning mode is greater than the scanning frequency of the first paging scanning mode.
[0152] In some embodiments, the mode switching unit 802 is further configured to, before switching the paging scanning mode for the second device from the first paging scanning mode to the second paging scanning mode, determine the second paging scanning mode from multiple target paging scanning modes based on the number of other backlink devices when the first device is detected to be paging by other backlink devices; wherein the scanning frequency of the target paging scanning mode is greater than the scanning frequency of the first paging scanning mode.
[0153] In some embodiments, the mode switching unit 802 may specifically include the following methods for switching the paging scanning mode for the second device from the first paging scanning mode to the second paging scanning mode:
[0154] The mode switching unit 802 is used to detect the current battery level of the first device; and, when the current battery level is greater than the battery level threshold, to switch the paging scan mode for the second device from the first paging scan mode to the second paging scan mode.
[0155] In some embodiments, the second device is an audio playback device inside a storage box in a closed state; the mode switching unit 802 is further configured to establish a Bluetooth Low Energy (BLE) link with the second device if a paging message of the second device is received in a second paging scanning mode; and, when the first device is in an audio playback state, send an indication message to the second device via the BLE link to indicate the initiation of establishing a physical link, so that the second device sends a first request to the first device to establish a physical link upon receiving the indication message; and, in response to the first request, establish a physical link with the second device.
[0156] In some embodiments, the mode switching unit 802 is used to send indication information for initiating the establishment of a physical link to the second device via the BLE link when the first device is in audio playback mode. Specifically, this may include:
[0157] The mode switching unit 802 is used to send indication information to the second device to instruct the initiation of establishing an asynchronous linkless ACL link when the first device is in a non-real-time audio playback state.
[0158] Furthermore, the mode switching unit 802, in response to the first request, may establish a physical link with the second device in the following specific ways:
[0159] The mode switching unit 802 is used to establish an ACL link with the second device in response to the first request.
[0160] In some embodiments, the mode switching unit 802 is used to send indication information for initiating the establishment of a physical link to the second device via the BLE link when the first device is in audio playback mode. Specifically, this may include:
[0161] The mode switching unit 802 is used to send indication information to the second device when the first device is in real-time audio playback state, indicating the initiation of establishing a synchronous directional link (SCO link).
[0162] Furthermore, the mode switching unit 802, in response to the first request, may establish a physical link with the second device in the following specific ways:
[0163] The mode switching unit 802 is used to establish an SCO link with the second device in response to the first request.
[0164] In some embodiments, the mode switching unit 802 is further configured to, in response to the first request, after establishing a physical link with the second device, receive a second request from the second device for establishing an application protocol link; wherein the second request is sent by the second device when it determines that the storage box is in an open state; and, in response to the second request, establish an application protocol link with the second device.
[0165] Please see Figure 9 , Figure 9 This is another structural illustration of the Bluetooth connection device disclosed in the embodiments of this application. For example... Figure 9 The Bluetooth connection device shown may include: a broadcast transmitting unit 901; wherein:
[0166] The broadcasting unit 901 is used to send a Bluetooth broadcast so that when the first device hears the Bluetooth broadcast, it can determine the distance between the first device and the second device, and when the distance meets a preset distance condition, it can switch the paging scanning mode for the second device from the first paging scanning mode to the second paging scanning mode. The scanning frequency of the second paging scanning mode is different from that of the first paging scanning mode. The second device is the reconnection device of the first device.
[0167] In some embodiments, the second device is an audio playback device located inside a storage box with the lid closed, such as... Figure 9 The Bluetooth connectivity device shown may further include a paging unit (not shown), which is configured to send paging information to enable the first device to establish a BLE link with the second device when the first device receives the paging information in a second paging scan mode, and to send an instruction message to the second device via the BLE link to instruct the initiation of establishing a physical link when it is determined that the first device is in an audio playback state; and to send a first request to the first device to establish a physical link when the instruction message is received, so that the first device responds to the first request and establishes a physical link with the second device.
[0168] In some embodiments, the physical link includes an ACL link or an SCO link.
[0169] In some embodiments, the paging unit is further configured to send a second request to the first device to establish an application protocol link when it is determined that the storage box is in an open state, so that the first device responds to the second request and establishes an application protocol link with the second device.
[0170] Please see Figure 10 , Figure 10 This is a structural illustration of the first device disclosed in an embodiment of this application. For example... Figure 10The first device shown may include components such as a processor 1010, a memory 1020, a display unit 1030, an input unit 1040, a sensor 1050, and an audio circuit 1060.
[0171] The processor 1010 is the control center of the first device. It connects various parts of the first device via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 1020, and by calling data stored in the memory 1020, it performs various functions and processes data of the first device, thereby providing overall monitoring of the first device. Optionally, the processor 1010 may include one or more processing units; optionally, the processor 1010 may integrate an application processor, which mainly handles operating devices, user interfaces, and applications, etc. Of course, it may also include other processors, which are not listed here.
[0172] The memory 1020 can be used to store software programs and modules. The processor 1010 executes various functional applications and data processing of the first device by running the software programs and modules stored in the memory 1020. The memory 1020 may mainly include a program storage area and a data storage area. The program storage area may store applications required for operating the device and at least one function (such as sound playback function, image playback function, etc.); the data storage area may store data created according to the use of the first device (such as audio data, telephone book, etc.). In addition, the memory 1020 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0173] The display unit 1030 can be used to display information input by the user or information provided to the user, as well as various menus of the first device. The display unit 1030 may include a display panel, optionally configured as a Liquid Crystal Display (LCD), Organic Light-Emitting Diode (OLED), or similar display panel. Further, a touch panel may cover the display panel. When the touch panel detects a touch operation on or near it, it transmits the information to the processor 1010 to determine the type of touch event. Subsequently, the processor 1010 provides corresponding visual output on the display panel according to the type of touch event. The touch panel and the display panel are not located on the same surface. Figure 10 As shown above, the touch panel and the display panel can be used as two separate components to realize the input and output functions of the first device, or the touch panel and the display panel can be integrated to realize the input and output functions of the first device.
[0174] The input unit 1040 can be used to receive input numerical or character information and generate key signal inputs related to user settings and function control of the first device. Specifically, the input unit 1040 may include a touch panel and other input devices. A touch panel, also known as a touchscreen, can collect touch operations performed by the user on or near it (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near the touch panel) and drive corresponding connection devices according to a pre-set program. Furthermore, touch panels can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel, the input unit 1040 may also include other input devices. Specifically, other input devices may include, but are not limited to, one or more of function keys (such as volume control buttons, power buttons, etc.), trackballs, joysticks, etc.
[0175] The first device may also include at least one sensor 1050, such as a magnetometer, a gyroscope sensor, a motion sensor, and other sensors. Specifically, the magnetometer is used to determine the orientation of the first device, and the gyroscope sensor can be used to determine the motion posture of the first device, which can be used for image stabilization, navigation, and motion-sensing game scenarios. As a type of motion sensor, the accelerometer can detect the magnitude of acceleration in various directions, and when stationary, it can detect the magnitude and direction of gravity, which can be used for applications that identify the posture of the first device, such as landscape / portrait switching, related games, magnetometer posture calibration, etc. Other sensors that may be configured on the first device, such as pressure gauges, barometers, hygrometers, thermometers, and infrared sensors, will not be described in detail here.
[0176] The audio circuit 1060 may include a speaker and a microphone, providing an audio interface between the user and the first device. The audio circuit 1060 can convert received audio data into electrical signals and transmit them to the speaker, where the speaker converts them into sound signals for output. Conversely, the microphone converts collected sound signals into electrical signals, which are then received by the audio circuit 1060, converted back into audio data, and output to the processor 1010 for processing. The audio data is then transmitted via a video circuit to, for example, another device, or output to the memory 1020 for further processing.
[0177] Although not shown, the first device may also include a power supply and a camera. Optionally, the camera may be positioned in the front or rear of the first device, and this application embodiment does not limit this.
[0178] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the first device. In other embodiments of this application, the first device may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0179] In this embodiment of the application, the processor 1010 also has the following functions:
[0180] Upon detecting a Bluetooth broadcast from the second device, the distance between the first and second devices is determined; the second device is the reconnection device of the first device.
[0181] When the distance meets the preset distance condition, the paging scanning mode for the second device will be switched from the first paging scanning mode to the second paging scanning mode. The scanning frequency of the second paging scanning mode is different from that of the first paging scanning mode.
[0182] In this embodiment of the application, the distance satisfies a preset distance condition, including: the distance is less than a first distance threshold;
[0183] The second paging scan mode has a higher scan frequency than the first paging scan mode.
[0184] In this embodiment of the application, the processor 1010 also has the following functions:
[0185] When the first device is detected to be paged by other backlink devices, a second paging scan mode is determined from multiple target paging scan modes based on the number of other backlink devices; wherein the scanning frequency of the target paging scan mode is greater than the scanning frequency of the first paging scan mode.
[0186] In this embodiment of the application, the processor 1010 also has the following functions:
[0187] Detect the current battery level of the first device;
[0188] When the current battery level is greater than the battery threshold, the paging scan mode for the second device will be switched from the first paging scan mode to the second paging scan mode.
[0189] In this embodiment of the application, the second device is an audio playback device inside a storage box in a closed state, and the processor 1010 also has the following functions:
[0190] If a paging message from the second device is received in the second paging scan mode, a Bluetooth Low Energy (BLE) link is established with the second device.
[0191] When the first device is in audio playback mode, it sends an indication message to the second device via the BLE link to indicate the initiation of establishing a physical link, so that when the second device receives the indication message, it sends a first request to the first device to establish a physical link.
[0192] In response to the first request, a physical link is established with the second device.
[0193] In this embodiment of the application, the processor 1010 also has the following functions:
[0194] When the first device is in a non-real-time audio playback state, send an instruction message to the second device to indicate the initiation of establishing an asynchronous connectionless ACL link;
[0195] Furthermore, in response to the first request, an ACL link is established with the second device.
[0196] In this embodiment of the application, the processor 1010 also has the following functions:
[0197] When the first device is in real-time audio playback mode, it sends an indication message to the second device to instruct the initiation of establishing a Synchronous Directed Link (SCO) link.
[0198] Furthermore, in response to the first request, an SCO link is established with the second device.
[0199] In this embodiment of the application, the processor 1010 also has the following functions:
[0200] Receive a second request from the second device to establish an application protocol link; wherein the second request is sent by the second device when it determines that the storage box is in an open state;
[0201] In response to the second request, an application protocol link is established with the second device.
[0202] Please see Figure 11 , Figure 11 This is a structural illustration of a second device disclosed in an embodiment of this application. For example... Figure 11 The second device shown may include a processor 1110 and a memory 1120: For an explanation of processors 1110 and 1120, please refer to the above description of... Figure 10 The descriptions of the processor 1010 and memory 1020 are omitted here.
[0203] In this embodiment of the application, the processor 1110 also has the following functions:
[0204] Send a Bluetooth broadcast so that when the first device hears the Bluetooth broadcast, it can determine the distance between the first device and the second device, and when the distance meets a preset distance condition, it can switch the paging scanning mode for the second device from the first paging scanning mode to the second paging scanning mode. The scanning frequency of the second paging scanning mode is different from that of the first paging scanning mode. The second device is the reconnection device of the first device.
[0205] In this embodiment, the second device is an audio playback device inside a storage box in a closed state, and the processor 1110 also has the following functions:
[0206] Sending paging information so that when the first device receives the paging information in the second paging scanning mode, it establishes a BLE link with the second device, and when it is determined that the first device is in an audio playback state, it sends an indication message to the second device through the BLE link to indicate the initiation of establishing a physical link;
[0207] Upon receiving the instruction information, a first request for establishing a physical link is sent to the first device, so that the first device responds to the first request and establishes a physical link with the second device.
[0208] In this embodiment, the physical link includes an ACL link or an SCO link.
[0209] In this embodiment of the application, the processor 1110 also has the following functions:
[0210] When it is determined that the storage box is in the open state, a second request for establishing an application protocol link is sent to the first device, so that the first device responds to the second request and establishes an application protocol link with the second device.
[0211] This application discloses a computer-readable storage medium storing executable program code thereon. When the executable program code is executed by a processor, it implements the method described by the first device or the second device in this application.
[0212] This application discloses a chip including a processor and a memory. The memory is used to store code instructions, and the processor is used to run the code instructions to perform the method described by the first device or the second device in this application.
[0213] This application discloses a computer program product that, when run on a computer, enables the computer to implement the method described by the first device or the second device in this application.
[0214] This application discloses an application publishing platform for publishing computer program products. When the computer program product is run on a computer, the computer enables the computer to implement the method described by the first device or the second device in this application.
[0215] It should be noted that the descriptions of the storage medium and device embodiments above are similar to the descriptions of the method embodiments above, and have similar beneficial effects. For technical details not disclosed in the storage medium, storage medium, and device embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.
[0216] It should be understood that the phrases "one embodiment," "an embodiment," or "some embodiments" mentioned throughout the specification mean that a specific feature, structure, or characteristic related to an embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment," "in one embodiment," or "in some embodiments" appearing throughout the specification do not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of this application, the sequence numbers of the above-described processes do not imply a sequential 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 this application. The sequence numbers of the above-described embodiments are merely for descriptive purposes and do not represent the superiority or inferiority of the embodiments. The descriptions of the various embodiments above tend to emphasize the differences between the various embodiments; their similarities or commonalities can be referred to mutually, and for the sake of brevity, they will not be repeated here.
[0217] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that there can be three kinds of relationships. For example, object A and / or object B can represent three situations: object A exists alone, object A and object B exist simultaneously, and object B exists alone.
[0218] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0219] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are merely illustrative. For example, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple modules or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection between devices or modules can be electrical, mechanical, or other forms.
[0220] The modules described above as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules. They may be located in one place or distributed across multiple network units. Some or all of the modules may be selected to achieve the purpose of this embodiment according to actual needs.
[0221] In addition, each functional module in the various embodiments of this application can be integrated into one processing unit, or each module can be a separate unit, or two or more modules can be integrated into one unit; the integrated modules can be implemented in hardware or in the form of hardware plus software functional units.
[0222] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media that can store program code, such as mobile storage devices, read-only memory (ROM), magnetic disks, or optical disks.
[0223] Alternatively, if the integrated units described above are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, or the parts that contribute to related technologies, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause an electronic device to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0224] The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0225] The features disclosed in the several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0226] The features disclosed in the several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method or device embodiments.
[0227] The above description is merely an embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A Bluetooth connection method, characterized in that, The method is applicable to a first device and includes: When the Bluetooth broadcast of the second device is detected, the distance between the first device and the second device is determined; the second device is the reconnection device of the first device, and the second device is the audio playback device inside the storage box with the lid closed; When the distance meets the preset distance condition, the paging scanning mode for the second device will be switched from the first paging scanning mode to the second paging scanning mode. The scanning frequency of the second paging scanning mode is different from that of the first paging scanning mode. If a paging message from the second device is received in the second paging scanning mode, a Bluetooth Low Energy (BLE) link is established with the second device. When the first device is in audio playback mode, it sends an indication message to the second device via the BLE link to indicate the initiation of establishing a physical link, so that when the second device receives the indication message, it sends a first request to the first device to establish the physical link. In response to the first request, the physical link is established with the second device.
2. The method according to claim 1, characterized in that, The distance satisfies a preset distance condition, including: the distance is less than a first distance threshold; wherein the scanning frequency of the second paging scanning mode is greater than the scanning frequency of the first paging scanning mode.
3. The method according to claim 2, characterized in that, Before switching the paging scanning mode for the second device from the first paging scanning mode to the second paging scanning mode, the method further includes: When the first device is detected to be paged by other backlink devices, a second paging scan mode is determined from multiple target paging scan modes based on the number of other backlink devices; wherein the scanning frequency of the target paging scan mode is greater than the scanning frequency of the first paging scan mode.
4. The method according to claim 2, characterized in that, The step of switching the paging scanning mode for the second device from the first paging scanning mode to the second paging scanning mode includes: Detect the current battery level of the first device; When the current battery level is greater than the battery threshold, the paging scan mode for the second device will be switched from the first paging scan mode to the second paging scan mode.
5. The method according to claim 1, characterized in that, When the first device is in audio playback mode, sending indication information to the second device via the BLE link to instruct the initiation of establishing a physical link includes: When the first device is in a non-real-time audio playback state, an instruction message is sent to the second device to instruct the initiation of establishing an asynchronous linkless ACL link; Establishing the physical link with the second device in response to the first request includes: In response to the first request, the ACL link is established with the second device.
6. The method according to claim 1, characterized in that, When the first device is in audio playback mode, sending indication information to the second device via the BLE link to instruct the initiation of establishing a physical link includes: When the first device is in real-time audio playback state, it sends an indication message to the second device to instruct the initiation of establishing a Synchronous Directional Link (SCO) link; In response to the first request, establishing the physical link with the second device includes: In response to the first request, the SCO link is established with the second device.
7. The method according to claim 1, characterized in that, After establishing the physical link with the second device in response to the first request, the method further includes: Receive a second request from the second device for establishing an application protocol link; wherein the second request is sent by the second device when it determines that the storage box is in an open state; In response to the second request, the application protocol link is established with the second device.
8. A Bluetooth connection method, characterized in that, The method is applicable to a second device, which is an audio playback device inside a storage box in a closed state, including: A Bluetooth broadcast is sent so that when the first device hears the Bluetooth broadcast, it determines the distance between the first device and the second device, and when the distance meets a preset distance condition, it switches the paging scanning mode for the second device from the first paging scanning mode to the second paging scanning mode. The scanning frequency of the second paging scanning mode is different from that of the first paging scanning mode. The second device is the reconnection device of the first device. Sending paging information so that when the first device receives the paging information in the second paging scanning mode, it establishes a BLE link with the second device, and when it is determined that the first device is in an audio playback state, it sends an indication message to the second device through the BLE link to indicate the initiation of establishing a physical link; Upon receiving the instruction information, a first request for establishing the physical link is sent to the first device, so that the first device responds to the first request and establishes the physical link with the second device.
9. The method according to claim 8, characterized in that, The method further includes: When it is determined that the storage box is in the open state, a second request for establishing an application protocol link is sent to the first device, so that the first device responds to the second request and establishes the application protocol link with the second device.
10. A Bluetooth connection device, characterized in that, The device is located in a first apparatus, the device comprising: The distance measurement unit is used to determine the distance between the first device and the second device when the Bluetooth broadcast of the second device is detected. The second device is the reconnection device of the first device and the second device is an audio playback device inside the storage box in the closed state. The mode switching unit is used to switch the paging scanning mode for the second device from the first paging scanning mode to the second paging scanning mode when the distance meets the preset distance condition. The scanning frequency of the second paging scanning mode is different from that of the first paging scanning mode. The mode switching unit is further configured to: establish a Bluetooth Low Energy (BLE) link with the second device if a paging message from the second device is received in the second paging scanning mode; and, when the first device is in an audio playback state, send an indication message to the second device via the BLE link to indicate the initiation of establishing a physical link, so that the second device, upon receiving the indication message, sends a first request to the first device to establish the physical link; and, in response to the first request, establish the physical link with the second device.
11. A Bluetooth connection device, characterized in that, The device is located within a second device, which is an audio playback device inside a storage box in a closed state. The device includes: A broadcasting unit is configured to broadcast a Bluetooth broadcast, enabling the first device to determine the distance between itself and the second device upon hearing the Bluetooth broadcast, and to switch the paging scanning mode for the second device from a first paging scanning mode to a second paging scanning mode when the distance meets a preset distance condition. The scanning frequency of the second paging scanning mode is different from that of the first paging scanning mode. The second device is a reconnection device of the first device. The paging unit is used to send paging information so that when the first device receives the paging information in the second paging scanning mode, it establishes a BLE link with the second device, and when it is determined that the first device is in an audio playback state, it sends an indication message to the second device through the BLE link to indicate the initiation of establishing a physical link. Upon receiving the instruction information, a first request for establishing the physical link is sent to the first device, so that the first device responds to the first request and establishes the physical link with the second device.
12. An electronic device, characterized in that, include: Memory containing executable program code; and the processor coupled to the memory; The processor calls the executable program code stored in the memory, and when the executable program code is executed by the processor, the processor implements the method as described in any one of claims 1-7 or 8-9.
13. A computer-readable storage medium having executable program code stored thereon, characterized in that, When the executable program code is executed by the processor, it implements the method as described in any one of claims 1-7 or 8-9.
14. A chip, characterized in that, It includes a processor and a memory, the memory being used to store code instructions, and the processor being used to execute the code instructions to perform the method as described in any one of claims 1-7 or 8-9.
Citation Information
Patent Citations
Managing connectivity between wireless devices
CN103716905A
Device connection method and apparatus, and device, storage medium and chip
WO2023134386A1