Bluetooth communication method, system and electronic device
By negotiating frequency information between Bluetooth devices and shortening the Page process, the problem of low Bluetooth connection efficiency caused by the unknown Page Scan clock on the Page side is solved, thereby improving connection efficiency and user experience.
Patent Information
- Application Number
- CN202110462478.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-27
- Publication Date
- 2025-09-05
- Estimated Expiration
- 2041-04-27
AI Technical Summary
In the classic Bluetooth protocol, the Page end does not know the local clock of the Page Scan end, so it needs to perform paging based on 32 frequency modulation sequences. This results in a longer Page process and affects the efficiency of Bluetooth connection establishment.
By negotiating frequency information, the electronic device receives a paging message within the quick paging scan receiving window, and when re-establishing a Bluetooth connection after being disconnected, it performs paging based on the negotiated frequency, reducing the number of frequency hopping points and shortening the paging process time.
Improves the overall efficiency of Bluetooth connection establishment, reduces user waiting time, and improves user experience.
Smart Images

Figure CN115250451B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of communications, and in particular to a Bluetooth communication method, system, and electronic device. Background Art
[0002] In the existing classic Bluetooth protocol, the Page (paging) end can generate a frequency modulation sequence based on the Bluetooth address device of the Page Scan (paging scanning) end. The Page end can page on the frequency modulation sequence to establish a Bluetooth connection with the Page Scan end.
[0003] However, since the Page end is unknown to the Page Scan end's local clock, the Page end and the Page Scan end need to perform Page based on the 32 frequency modulation sequences generated by the Page Scan address, resulting in a longer Page process and affecting the overall efficiency of Bluetooth connection establishment. Summary of the Invention
[0004] To solve the above technical problems, the present application provides a Bluetooth communication method, system, and electronic device. In this method, the electronic device can perform Page based on the negotiated frequency point to shorten the Page process time, thereby improving the overall efficiency of Bluetooth connection establishment.
[0005] In a first aspect, embodiments of the present application provide a Bluetooth communication system. The system includes a first electronic device and a second electronic device. The first electronic device is configured to enable at least one first Fast Page Scan Window based on first negotiated frequency information. The first negotiated frequency information includes at least one frequency, which is negotiated between the first and second electronic devices during a previous Bluetooth communication. The second electronic device is configured to send a paging message to the first electronic device based on the at least one frequency included in the first negotiated frequency information. The first electronic device is further configured to, upon receiving a paging message from the second electronic device within the at least one first Fast Page Scan Window, exchange Bluetooth data with the second electronic device in response to the received paging message. In this way, the first and second electronic devices can obtain the at least one negotiated frequency during the previous Bluetooth data exchange. Furthermore, after the first and second electronic devices disconnect, when reestablishing a Bluetooth connection, Page and Page Scan operations can be performed based on the at least one negotiated frequency. This reduces the number of frequency hopping required by the Page end, effectively shortening the duration of the Page process. In addition, it can further improve the overall efficiency of establishing Bluetooth connections, reduce user waiting time, and thus enhance user experience.
[0006] For example, during the current Bluetooth data exchange process, the first electronic device and the second electronic device may renegotiate to update the negotiated frequency information. After the first electronic device and the second electronic device disconnect from the Bluetooth connection, the next time they connect, they may perform the Page process based on the updated negotiated frequency information.
[0007] Exemplarily, the first electronic device is a Page Scan terminal, and the second electronic device is a Page Scan terminal.
[0008] For example, after the Bluetooth connection between the first electronic device and the second electronic device is disconnected, the first electronic device can automatically perform page based on the negotiated frequency information within a preset time period. After the preset time period has passed, the first electronic device can perform page according to the negotiated frequency information based on the received user operation.
[0009] Exemplarily, the paging message optionally includes address information of the first electronic device.
[0010] For example, the first electronic device may send a paging message on each negotiated frequency point in turn, and monitor whether the second electronic device returns a paging response message on each negotiated frequency point.
[0011] According to a first aspect, a first electronic device is further configured to transmit first preset frequency information, the first preset frequency information including at least one frequency, the number of frequencies included in the first preset frequency information being greater than or equal to the number of frequencies included in the first negotiated frequency information; open at least one second Fast Page Scan Window based on the first preset frequency information, and open at least one standard Page Scan Window based on at least one frequency included in the standard frequency information; the at least one frequency included in the standard frequency information is obtained based on the address information of the first electronic device. A second electronic device is further configured to receive the first preset frequency information and send a paging message to the first electronic device based on the at least one frequency included in the first preset frequency information. The first electronic device is further configured to, upon receiving a paging message from the second electronic device within at least one first Fast Page Scan Window or within at least one standard Page Scan Window, perform Bluetooth data exchange with the second electronic device in response to the received paging message. During the Bluetooth data exchange with the second electronic device, the first electronic device negotiates with the second electronic device to obtain the first negotiated frequency information. In this way, when the first electronic device and the second electronic device establish a Bluetooth connection for the first time, or when the first electronic device and the second electronic device do not store the corresponding negotiated frequency, the Page process can be executed based on the preset frequency information.
[0012] For example, the preset frequency information can be set for different devices before leaving the factory. For example, a mobile phone may have 7 preset frequencies. However, since the Bluetooth headset and the Bluetooth headset box are usually close to each other during the Page process, the possibility of interference is small. Therefore, the preset frequency information of the Bluetooth headset box may be 2.
[0013] According to the first aspect, or any implementation of the first aspect above, the length of the first Fast Page Scan Window is greater than or equal to the length of the first negotiated frequency information, and the length of the first negotiated frequency information is the duration of paging of the second electronic device at at least one frequency included in the first negotiated frequency information. Thus, the Page Scan end in the embodiment of the present application can shorten the hit duration of the Page process by opening a Fast Page Scan Window that is shorter than the standard Page Scan Window, thereby effectively improving Bluetooth connection efficiency.
[0014] According to the first aspect, or any implementation of the first aspect above, the length of the second Fast Page Scan Window is greater than or equal to the length of the first preset frequency information, where the length of the first preset frequency information is the duration of paging performed by the second electronic device at at least one frequency included in the first preset frequency information. Thus, the Page Scan end in this embodiment of the present application can shorten the duration of the Page phase during the initial Bluetooth connection establishment process by opening a Fast Page Scan Window that is shorter than the standard Page Scan Window, thereby effectively improving Bluetooth connection efficiency.
[0015] According to the first aspect, or any implementation of the first aspect above, the standard frequency information includes 32 frequencies; the length of the standard Page Scan Window is greater than or equal to the length of the standard frequency information, and the length of the standard frequency information is the duration of paging by the second electronic device on 16 of the 32 frequencies included in the standard frequency information. Thus, when the Page Scan end in the embodiment of the present application first establishes a Bluetooth connection with the Page end, it can alternately enable the Standard Page Scan Window and the Fast Page Scan Window, thereby shortening the overall duration of the Page phase regardless of whether the other end (i.e., the Page end) is a preset device or a non-preset device.
[0016] According to the first aspect, or any implementation method of the first aspect above, the first electronic device determines the first negotiated frequency information based on at least one of the following conditions: communication quality parameters of each working frequency supported by the first electronic device, communication quality parameters of each working frequency supported by the second electronic device, occupancy status of each working frequency supported by the first electronic device, and occupancy status of each working frequency supported by the second electronic device.
[0017] According to the first aspect, or any implementation of the first aspect above, the first negotiated frequency information includes two or more frequencies; the first electronic device is specifically configured to, within a current preset period, open at least one first Fast Page Scan Window, wherein the frequency of the at least one first Fast Page Scan Window opened within the current preset period is one of the frequencies included in the first negotiated frequency information. And, within a next preset period, open at least one first Fast Page Scan Window, wherein the frequency of the at least one first Fast Page Scan Window opened within the next preset period is another of the frequencies included in the first negotiated frequency information.
[0018] Illustratively, multiple Fast Page Scan Windows may be evenly distributed within the cycle.
[0019] For example, the number of opened Fast Page Scan Windows may be preset or may be set based on the current power of the electronic device.
[0020] In a second aspect, an embodiment of the present application provides a Bluetooth communication method. The method is applied to a first electronic device and includes: opening at least one first fast paging scan receiving window Fast Page Scan Window based on first negotiated frequency information; the first negotiated frequency information includes at least one frequency, and the at least one frequency included in the first negotiated frequency information is obtained by negotiation between the first electronic device and the second electronic device during the last Bluetooth communication; when the first electronic device receives a paging message sent by the second electronic device within the at least one first Fast Page Scan Window, in response to the received paging message, performing Bluetooth data interaction with the second electronic device.
[0021] According to a second aspect, before opening at least one first fast page scan receiving window Fast Page Scan Window based on the first negotiated frequency information, the method further includes: sending first preset frequency information, the first preset frequency information including at least one frequency, the first preset frequency information being used to instruct the second electronic device to send a paging message to the first electronic device based on the at least one frequency included in the first preset frequency information; wherein the number of frequencies included in the first preset frequency information is greater than or equal to the number of frequencies included in the first negotiated frequency information; opening at least one second Fast Page Scan Window based on the first preset frequency information, and opening at least one standard Page Scan Window based on at least one frequency included in the standard frequency information; the at least one frequency included in the standard frequency information is obtained based on the address information of the first electronic device; when the first electronic device receives a paging message sent by the second electronic device within the at least one first Fast Page Scan Window, or receives a paging message sent by the second electronic device within the at least one standard Page Scan Window, in response to the received paging message, exchanging Bluetooth data with the second electronic device; and during the Bluetooth data interaction with the second electronic device, negotiating with the second electronic device to obtain the first negotiated frequency information.
[0022] According to the second aspect, or any implementation method of the above second aspect, the length of the first Fast Page ScanWindow is greater than or equal to the length of the first negotiated frequency information, and the length of the first negotiated frequency information is the time taken for the second electronic device to perform paging at at least one frequency included in the first negotiated frequency information.
[0023] According to the second aspect, or any implementation of the above second aspect, the length of the second Fast Page ScanWindow is greater than or equal to the length of the first preset frequency information, and the length of the first preset frequency information is the time taken for the second electronic device to perform paging at at least one frequency included in the first preset frequency information.
[0024] According to the second aspect, or any implementation method of the above second aspect, the standard frequency information includes 32 frequencies; the length of the standard Page Scan Window is greater than or equal to the length of the standard frequency information, and the length of the standard frequency information is the time taken for the second electronic device to perform paging on 16 of the 32 frequencies included in the standard frequency information.
[0025] According to the second aspect, or any implementation method of the above second aspect, the first electronic device obtains the first negotiated frequency information based on at least one of the following conditions: communication quality parameters of each working frequency supported by the first electronic device, communication quality parameters of each working frequency supported by the second electronic device, occupancy status of each working frequency supported by the first electronic device, and occupancy status of each working frequency supported by the second electronic device.
[0026] According to the second aspect, or any implementation method of the above second aspect, the first negotiated frequency information includes two or more frequency points; based on the first negotiated frequency point information, at least one first fast paging scan receiving window Fast Page Scan Window is opened, including: within the current preset period, at least one first Fast Page Scan Window is opened, wherein the frequency point of the at least one first Fast Page Scan Window opened within the current preset period is one of the frequency points included in the first negotiated frequency point information; within the next preset period, at least one first Fast Page Scan Window is opened, wherein the frequency point of the at least one first Fast Page Scan Window opened within the next preset period is another of the frequency points included in the first negotiated frequency point information.
[0027] The second aspect and any implementation of the second aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the second aspect and any implementation of the second aspect can be referred to the technical effects corresponding to the first aspect and any implementation of the first aspect, and will not be repeated here.
[0028] In a third aspect, an embodiment of the present application provides a Bluetooth communication method. The method is applied to a second electronic device, and the method includes: sending a paging message to the first electronic device based on first negotiated frequency information; the first negotiated frequency information includes at least one frequency, and the at least one frequency included in the first negotiated frequency information is obtained by negotiation between the second electronic device and the first electronic device during the last Bluetooth communication; upon receiving a paging response message sent by the first electronic device, performing Bluetooth data interaction with the second electronic device; the paging response message is sent to the second electronic device after the first electronic device receives the paging message sent by the second electronic device within at least one first fast paging scan receiving window Fast Page Scan Window opened based on the first negotiated frequency information.
[0029] According to a third aspect, before sending a paging message to the first electronic device based on the first negotiated frequency information, the method further includes: receiving first preset frequency information sent by the first electronic device; the first preset frequency information includes at least one frequency, and the number of frequencies included in the first preset frequency information is greater than or equal to the number of frequencies included in the first negotiated frequency information; sending a paging message to the first electronic device based on the at least one frequency included in the first preset frequency information; when receiving the paging response message sent by the first electronic device, interacting with the second electronic device through Bluetooth data; the paging response message is sent to the second electronic device after the first electronic device receives the paging message sent by the second electronic device in at least one second Fast Page Scan Window opened based on the first preset frequency information, or the paging response message is sent to the second electronic device after the first electronic device receives the paging message sent by the second electronic device in at least one standard Page Scan Window opened based on at least one frequency included in the standard frequency information; wherein the at least one frequency included in the standard frequency information is obtained based on the address information of the first electronic device; during the process of interacting with the first electronic device through Bluetooth data, negotiating with the first electronic device to obtain the first negotiated frequency information.
[0030] According to the third aspect, or any implementation method of the above third aspect, the length of the first Fast Page ScanWindow is greater than or equal to the length of the first negotiated frequency information, and the length of the first negotiated frequency information is the time taken for the second electronic device to perform paging at at least one frequency included in the first negotiated frequency information.
[0031] According to the third aspect, or any implementation method of the above third aspect, the length of the second Fast Page ScanWindow is greater than or equal to the length of the first preset frequency information, and the length of the first preset frequency information is the time taken for the second electronic device to perform paging at at least one frequency included in the first preset frequency information.
[0032] According to the third aspect, or any implementation method of the third aspect above, the standard frequency information includes 32 frequencies; the length of the standard Page Scan Window is greater than or equal to the length of the standard frequency information, and the length of the standard frequency information is the time it takes for the second electronic device to perform paging on 16 of the 32 frequencies included in the standard frequency information.
[0033] According to the third aspect, or any implementation method of the third aspect above, obtaining the first negotiated frequency point information includes: obtaining the first negotiated frequency point information based on at least one of the following conditions: communication quality parameters of each working frequency point supported by the first electronic device, communication quality parameters of each working frequency point supported by the second electronic device, occupancy status of each working frequency point supported by the first electronic device, and occupancy status of each working frequency point supported by the second electronic device.
[0034] The third aspect and any implementation of the third aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the third aspect and any implementation of the third aspect can be referred to the technical effects corresponding to the first aspect and any implementation of the first aspect, and will not be repeated here.
[0035] In a fourth aspect, an embodiment of the present application provides a first electronic device. The first electronic device includes a memory and a processor; the memory is coupled to the processor; the memory stores program instructions; when the program instructions are executed by the processor, the first electronic device performs the following steps: based on first negotiated frequency information, opening at least one first fast paging scan receiving window Fast Page Scan Window; the first negotiated frequency information includes at least one frequency, and the at least one frequency included in the first negotiated frequency information is obtained by negotiation between the first electronic device and the second electronic device during the last Bluetooth communication; when the first electronic device receives a paging message sent by the second electronic device within the at least one first Fast Page Scan Window, in response to the received paging message, performing Bluetooth data exchange with the second electronic device.
[0036] According to the fourth aspect, when the program instructions are executed by the processor, the first electronic device performs the following steps: sending first preset frequency point information, the first preset frequency point information includes at least one frequency point, and the first preset frequency point information is used to instruct the second electronic device to send a paging message to the first electronic device based on the at least one frequency point included in the first preset frequency point information; wherein the number of frequencies included in the first preset frequency point information is greater than or equal to the number of frequencies included in the first negotiated frequency point information; based on the first preset frequency point information, at least one second Fast Page Scan Window is opened, and based on at least one frequency point included in the standard frequency point information, at least one standard Page Scan Window is opened; the at least one frequency point included in the standard frequency point information is obtained based on the address information of the first electronic device; when the first electronic device receives a paging message sent by the second electronic device within at least one first Fast Page Scan Window, or receives a paging message sent by the second electronic device within at least one standard Page Scan Window, in response to the received paging message, interacting with the second electronic device via Bluetooth data; during the process of interacting with the second electronic device via Bluetooth data, negotiating with the second electronic device to obtain the first negotiated frequency point information.
[0037] According to the fourth aspect, or any implementation method of the above fourth aspect, the length of the first Fast Page ScanWindow is greater than or equal to the length of the first negotiated frequency information, and the length of the first negotiated frequency information is the time taken for the second electronic device to perform paging at at least one frequency included in the first negotiated frequency information.
[0038] According to the fourth aspect, or any implementation method of the above fourth aspect, the length of the second Fast Page ScanWindow is greater than or equal to the length of the first preset frequency information, and the length of the first preset frequency information is the time taken for the second electronic device to perform paging at at least one frequency included in the first preset frequency information.
[0039] According to the fourth aspect, or any implementation method of the above fourth aspect, the standard frequency information includes 32 frequencies; the length of the standard Page Scan Window is greater than or equal to the length of the standard frequency information, and the length of the standard frequency information is the time taken for the second electronic device to perform paging on 16 of the 32 frequencies included in the standard frequency information.
[0040] According to the fourth aspect, or any implementation method of the above fourth aspect, when the program instructions are executed by the processor, the first electronic device performs the following steps: based on at least one of the following conditions, obtain the first negotiated frequency information: communication quality parameters of each working frequency supported by the first electronic device, communication quality parameters of each working frequency supported by the second electronic device, occupancy status of each working frequency supported by the first electronic device, and occupancy status of each working frequency supported by the second electronic device.
[0041] According to the fourth aspect, or any implementation method of the above fourth aspect, the first negotiated frequency information includes two or more frequency points; when the program instructions are executed by the processor, the first electronic device performs the following steps: within the current preset period, open at least one first Fast Page Scan Window, wherein the frequency point of the at least one first Fast Page Scan Window opened within the current preset period is one of the frequency points included in the first negotiated frequency point information; within the next preset period, open at least one first Fast Page Scan Window, wherein the frequency point of the at least one first Fast Page Scan Window opened within the next preset period is another of the frequency points included in the first negotiated frequency point information.
[0042] The fourth aspect and any implementation of the fourth aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the fourth aspect and any implementation of the fourth aspect can be referred to the technical effects corresponding to the first aspect and any implementation of the first aspect, and will not be repeated here.
[0043] In a fifth aspect, an embodiment of the present application provides a second electronic device. The second electronic device includes: a memory and a processor; the memory is coupled to the processor; the memory stores program instructions; when the program instructions are executed by the processor, the second electronic device performs the following steps: based on first negotiated frequency information, sending a paging message to the first electronic device; the first negotiated frequency information includes at least one frequency, and the at least one frequency included in the first negotiated frequency information is obtained by negotiation between the second electronic device and the first electronic device during the last Bluetooth communication; upon receiving a paging response message sent by the first electronic device, performing Bluetooth data interaction with the second electronic device; the paging response message is sent to the second electronic device after the first electronic device receives the paging message sent by the second electronic device within at least one first fast paging scan receiving window Fast Page Scan Window opened based on the first negotiated frequency information.
[0044] According to the fifth aspect, when the program instructions are executed by the processor, the second electronic device performs the following steps: receiving first preset frequency information sent by the first electronic device; the first preset frequency information includes at least one frequency, and the number of frequencies included in the first preset frequency information is greater than or equal to the number of frequencies included in the first negotiated frequency information; sending a paging message to the first electronic device based on the at least one frequency included in the first preset frequency information; when receiving the paging response message sent by the first electronic device, interacting with the second electronic device through Bluetooth data; the paging response message is sent to the second electronic device after the first electronic device receives the paging message sent by the second electronic device in at least one second Fast Page Scan Window opened based on the first preset frequency information, or the paging response message is sent to the second electronic device after the first electronic device receives the paging message sent by the second electronic device in at least one standard Page Scan Window opened based on at least one frequency included in the standard frequency information; wherein, the at least one frequency included in the standard frequency information is obtained based on the address information of the first electronic device; in the process of interacting with the first electronic device through Bluetooth data, negotiating with the first electronic device to obtain the first negotiated frequency information.
[0045] According to the fifth aspect, or any implementation method of the above fifth aspect, the length of the first Fast Page ScanWindow is greater than or equal to the length of the first negotiated frequency information, and the length of the first negotiated frequency information is the time taken for the second electronic device to perform paging at at least one frequency included in the first negotiated frequency information.
[0046] According to the fifth aspect, or any implementation method of the above fifth aspect, the length of the second Fast Page ScanWindow is greater than or equal to the length of the first preset frequency information, and the length of the first preset frequency information is the time taken for the second electronic device to perform paging at at least one frequency included in the first preset frequency information.
[0047] According to the fifth aspect, or any implementation method of the above fifth aspect, the standard frequency information includes 32 frequencies; the length of the standard Page Scan Window is greater than or equal to the length of the standard frequency information, and the length of the standard frequency information is the time taken for the second electronic device to perform paging on 16 of the 32 frequencies included in the standard frequency information.
[0048] According to the fifth aspect, or any implementation method of the above fifth aspect, when the program instructions are executed by the processor, the second electronic device performs the following steps: based on at least one of the following conditions, obtain the first negotiated frequency information: communication quality parameters of each working frequency supported by the first electronic device, communication quality parameters of each working frequency supported by the second electronic device, occupancy status of each working frequency supported by the first electronic device, and occupancy status of each working frequency supported by the second electronic device.
[0049] The fifth aspect and any implementation of the fifth aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the fifth aspect and any implementation of the fifth aspect can be referred to the technical effects corresponding to the first aspect and any implementation of the first aspect, and will not be repeated here.
[0050] In the sixth aspect, an embodiment of the present application provides a chip comprising one or more interface circuits and one or more processors; the interface circuit is used to receive signals from a memory of an electronic device and send signals to the processor, the signals including computer instructions stored in the memory; when the processor executes the computer instructions, the electronic device executes the Bluetooth communication method in the second aspect or any possible implementation of the second aspect.
[0051] In the seventh aspect, an embodiment of the present application provides a chip comprising one or more interface circuits and one or more processors; the interface circuit is used to receive signals from a memory of an electronic device and send signals to the processor, the signals including computer instructions stored in the memory; when the processor executes the computer instructions, the electronic device executes the Bluetooth communication method in the third aspect or any possible implementation of the third aspect.
[0052] In an eighth aspect, an embodiment of the present application provides a computer storage medium, wherein the computer-readable storage medium stores a computer program. When the computer program runs on a computer or a processor, the computer or the processor executes the Bluetooth communication method in the second aspect or any possible implementation of the second aspect.
[0053] In the ninth aspect, an embodiment of the present application provides a computer storage medium, wherein the computer-readable storage medium stores a computer program. When the computer program runs on a computer or a processor, the computer or the processor executes the Bluetooth communication method in the third aspect or any possible implementation of the third aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 is a schematic diagram of the hardware structure of an electronic device shown as an example;
[0055] Figure 2is a schematic diagram of the software structure of an electronic device shown as an example;
[0056] Figure 3 is a schematic diagram of an exemplary application scenario;
[0057] Figure 4 This is a schematic diagram illustrating exemplary Bluetooth communication between a mobile phone and a tablet;
[0058] Figure 5 is a schematic diagram of an exemplary user interface;
[0059] Figure 6 This is a flowchart illustrating the Page stage for mobile phones and tablets;
[0060] Figure 7 Schematic diagram of the Page stage shown as an example;
[0061] Figure 8 Schematic diagram of the Page stage shown as an example;
[0062] Figure 9 Schematic diagram of the Page stage shown as an example;
[0063] Figure 10 is a schematic diagram illustrating exemplary Bluetooth message transmission;
[0064] Figure 11 is a schematic diagram showing exemplary channel occupancy;
[0065] Figure 12 A schematic diagram of a Bluetooth communication method flow chart provided in an embodiment of the present application;
[0066] Figure 13a is a schematic diagram of an exemplary application scenario;
[0067] Figure 13b Schematic diagram of the Page stage shown as an example;
[0068] Figure 13c is a schematic diagram of an exemplary application scenario;
[0069] Figure 13d Schematic diagram of the Page stage shown as an example;
[0070] Figure 14 This is a schematic diagram illustrating an exemplary process of Bluetooth communication between a mobile phone and a tablet;
[0071] Figure 15 is a schematic diagram of an exemplary user interface;
[0072] Figure 16 Schematic diagram of the Page stage shown as an example;
[0073] Figure 17a Schematic diagram of the Page stage shown as an example;
[0074] Figure 17b Schematic diagram of the Page stage shown as an example;
[0075] Figure 18 is a schematic diagram of an exemplary application scenario;
[0076] Figure 19 is a schematic diagram of an exemplary application scenario;
[0077] Figure 20 is a schematic diagram of an exemplary application scenario;
[0078] Figure 21 A schematic diagram of a Bluetooth communication method flow chart provided in an embodiment of the present application;
[0079] Figure 22 Schematic diagram of the structure of the device shown as an example. DETAILED DESCRIPTION
[0080] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0081] The term "and / or" in this article is merely a description of the association relationship between associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0082] In the description and claims of the embodiments of this application, the terms "first" and "second" are used to distinguish different objects, rather than to describe a specific order of objects. For example, the terms "first target object" and "second target object" are used to distinguish different objects, rather than to describe a specific order of objects.
[0083] In the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.
[0084] In the description of the embodiments of this application, unless otherwise specified, "multiple" means two or more. For example, "multiple processing units" means two or more processing units; "multiple systems" means two or more systems.
[0085] Figure 1 1 shows a schematic diagram of the structure of the electronic device 100. It should be understood that, Figure 1 The illustrated electronic device 100 is merely one example of an electronic device, and the electronic device 100 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. Figure 1 The various components shown in the drawings may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application specific integrated circuits.
[0086] The electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0087] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.
[0088] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0089] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.
[0090] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.
[0091] The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C bus lines. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, and the like via different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 180K via the I2C interface, enabling communication between the processor 110 and the touch sensor 180K via the I2C bus interface, thereby implementing the touch function of the electronic device 100.
[0092] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the I2S interface, enabling the function of answering calls through a Bluetooth headset.
[0093] The PCM interface can also be used for audio communication, sampling, quantizing, and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface, enabling the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0094] The UART interface is a universal serial data bus used for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 via the UART interface to implement Bluetooth functionality. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the UART interface, enabling the function of playing music through Bluetooth headphones.
[0095] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display 194 and the camera 193. MIPI interfaces include the camera serial interface (CSI) and the display serial interface (DSI). In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the camera function of the electronic device 100. The processor 110 and the display 194 communicate via the DSI interface to implement the display function of the electronic device 100.
[0096] The GPIO interface can be configured via software. The GPIO interface can be configured as either a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to the camera 193, display 194, wireless communication module 160, audio module 170, sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0097] The USB interface 130 is an interface that complies with USB standards and may be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. The USB interface 130 can be used to connect a charger to charge the electronic device 100, or to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio. This interface can also be used to connect other electronic devices, such as augmented reality devices.
[0098] It is understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is merely an illustrative illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.
[0099] The charging management module 140 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also provide power to the electronic device via the power management module 141.
[0100] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0101] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0102] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0103] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0104] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0105] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0106] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0107] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.
[0108] Display screen 194 is used to display images, videos, and the like. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-oLed, or a quantum dot light-emitting diode (QLED). In some embodiments, electronic device 100 may include one or N display screens 194, where N is a positive integer greater than one.
[0109] The electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
[0110] The ISP processes data fed back by camera 193. For example, when taking a photo, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, which is then passed to the ISP for processing and converted into a visible image. The ISP can also perform algorithmic optimization on image noise, brightness, and skin tone. It can also optimize parameters such as exposure and color temperature of the captured scene. In some embodiments, the ISP can be located within camera 193.
[0111] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then passes the electrical signal to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0112] The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0113] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. This allows electronic device 100 to play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, and MPEG4.
[0114] The NPU is a neural network (NN) computing processor. Drawing on the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it rapidly processes input information and can continuously self-learn. The NPU can enable intelligent cognitive applications in electronic device 100, such as image recognition, face recognition, speech recognition, and text comprehension.
[0115] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 via the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.
[0116] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area can store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0117] The electronic device 100 can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0118] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be provided in the processor 110, or some functional modules of the audio module 170 can be provided in the processor 110.
[0119] The software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present application, the Android system with a layered architecture is used as an example to illustrate the software structure of the electronic device 100.
[0120] Figure 2 It is a software structure block diagram of the electronic device 100 according to an embodiment of the present application.
[0121] The layered architecture of electronic device 100 divides the software into several layers, each with a clear role and division of labor. Layers communicate with each other via software interfaces. In some embodiments, the Android system is divided into four layers: from top to bottom, the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.
[0122] The application layer can include a series of application packages.
[0123] like Figure 2 As shown, the application package can include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, multi-screen collaboration, Huawei share, short message and other applications.
[0124] The application framework layer provides an application programming interface (API) and programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0125] like Figure 2 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
[0126] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, take screenshots, etc.
[0127] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0128] The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.
[0129] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including answering, hanging up, etc.).
[0130] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0131] The Notification Manager allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically without user interaction. For example, the Notification Manager is used to notify users of completed downloads and message reminders. The Notification Manager can also display notifications in the top status bar of the system as icons or scrolling text, such as notifications from background applications, or as dialog windows on the screen. Examples include text messages in the status bar, beeps, vibrations on electronic devices, and flashing indicator lights.
[0132] Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.
[0133] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.
[0134] The application layer and application framework layer run in a virtual machine. The virtual machine executes Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.
[0135] The system library can include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0136] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
[0137] The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0138] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0139] A 2D graphics engine is a drawing engine for 2D drawings.
[0140] The kernel layer is the layer between hardware and software. The kernel layer includes at least display drivers, Bluetooth drivers, Wi-Fi drivers, audio drivers, sensor drivers, etc.
[0141] It is understandable that Figure 2 The components included in the illustrated system framework layer, system library, and runtime layer do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or split certain components, or arrange the components differently.
[0142] Figure 3 This is a schematic diagram of an exemplary application scenario. Figure 3 , in this scenario, including mobile phones and tablets. Exemplarily, the mobile phone and the tablet can exchange data based on a Bluetooth connection. It should be noted that in the embodiments of the present application, only the Bluetooth communication between a mobile phone and a tablet is used as an example for explanation. In other embodiments, it can also be communication between any two or more devices with Bluetooth capabilities, such as mobile phones, tablets, wearable devices, smart home devices (such as Bluetooth speakers, TVs), and car-mounted devices. Figure 3 The types and quantities of the devices are only illustrative examples and are not limited in this application.
[0143] Combine Figure 3 ,like Figure 4 Schematic diagram of exemplary Bluetooth communication between a mobile phone and a tablet. For example, the Bluetooth communication between the mobile phone and the tablet is maintained via the classic Bluetooth protocol. Figure 4 ,include:
[0144] S401, mobile phones and tablets enter the discovery phase.
[0145] For example, Figure 5 This is a schematic diagram of an exemplary user interface. Figure 5(1), illustratively, the Bluetooth setting interface 502 of the mobile phone includes one or more controls. The controls include, but are not limited to: a Bluetooth setting control 504, a power control, a network control, etc. illustratively, the user can click on the Bluetooth setting control 504 to enable the Bluetooth function.
[0146] For example, the mobile phone responds to the received user operation and turns on the Bluetooth function. Figure 5 (2), illustratively, the mobile phone may display a Bluetooth icon on the network control on the Bluetooth setting interface 502 to indicate that the Bluetooth function has been activated.
[0147] For example, after the mobile phone activates the Bluetooth function, it can enter the discovery phase to discover nearby devices with the Bluetooth function activated. It should be noted that in the embodiments of the present application, only the process of establishing a Bluetooth connection after the mobile phone activates the Bluetooth function is used as an example. In other embodiments, the Bluetooth connection process can also be executed at any time after the Bluetooth function is activated.
[0148] It should be noted that the embodiments of this application are only described by taking the user turning on the Bluetooth application through the Bluetooth settings interface as an example. In other embodiments, other applications can also trigger the mobile phone to start the Bluetooth function and enter the discovery phase. For example, after the Huawei Share, Multi-Screen Collaboration and other applications in the mobile phone are turned on, the mobile phone can also be triggered to start the Bluetooth function and enter the discovery phase. For example, the mobile phone and the tablet can be touched to turn on the Bluetooth function at the same time and enter the discovery phase, which is not limited in this application.
[0149] For example, the tablet has also turned on the Bluetooth function. The method of turning on the Bluetooth function of the tablet can refer to the above, and other methods can also be used, which will not be repeated in this application.
[0150] For example, after the tablet and mobile phone have their Bluetooth functions enabled, they can periodically broadcast and monitor Bluetooth on designated Bluetooth channels to discover nearby Bluetooth-enabled devices (hereinafter referred to as Bluetooth devices). For example, the designated Bluetooth channels can be Bluetooth channel 37, Bluetooth channel 38, and Bluetooth channel 39.
[0151] For example, after the tablet activates the Bluetooth function, it broadcasts Bluetooth on a designated Bluetooth channel. For example, after the mobile phone activates the Bluetooth function, it can monitor on the designated Bluetooth channel and receive Bluetooth broadcast messages sent by the tablet. Optionally, the Bluetooth broadcast message sent by the tablet includes but is not limited to the tablet's Bluetooth address information and device identification information. Optionally, the device identification information can be the tablet's device name, device type, etc., which is not limited in this application. In other words, during the discovery phase, the mobile phone can obtain information such as the tablet's Bluetooth address and device identification information.
[0152] It should be noted that, based on different protocols, after receiving the Bluetooth broadcast message sent by the tablet, the mobile phone may send a response message to the tablet or may not reply, and this application does not limit this.
[0153] Please continue to refer to Figure 5 (2), illustratively, the Bluetooth setting interface 502 also includes but is not limited to: a paired device list 506 and an available device list 508.
[0154] Exemplarily, the paired device list 506 includes identification information of one or more paired devices, wherein the identification information may be the name, type, etc. of the device.
[0155] It should be noted that a paired device may optionally be a device that has previously communicated with the mobile phone via Bluetooth and for which the mobile phone has stored fingerprint information. For example, the fingerprint information may include, but is not limited to, the device's Bluetooth address information, the device's identification information (e.g., device name or device type), etc.
[0156] It should be further explained that if an electronic device has been connected to a mobile phone via Bluetooth and the mobile phone does not store the fingerprint information of the electronic device (for example, the stored fingerprint information was cleared after the mobile phone was initialized), then the electronic device is not a paired device. In other words, if the mobile phone scans the device again during the discovery phase, the device will not appear in the paired device list, but in the available device list.
[0157] It should be further explained that paired devices can be further divided into online devices and offline devices. Among them, online devices are optionally electronic devices scanned by the mobile phone in the discovery phase. For example, if the mobile phone receives a Bluetooth broadcast message sent by an electronic device (such as HUAWEI P30) in the paired device during the discovery phase, then the device is an online device. Exemplarily, an offline device is optionally an electronic device that was not scanned during the discovery phase. For example, if the mobile phone does not receive a Bluetooth broadcast message sent by an electronic device (such as HUAWEIP30) in the paired device list within a predetermined time (which can be set according to actual needs) during the discovery phase, the device is determined to be an offline device.
[0158] It should be further explained that, when the mobile phone finds that a paired device is online, the mobile phone may optionally automatically establish a Bluetooth connection with the device that has performed Bluetooth communication most recently among the paired devices.
[0159] Still refer to Figure 5(2), illustratively, the available device list 508 optionally includes identification information of one or more available devices. Among them, the optional device is optionally a discovered and non-paired device (or can be called a Bluetooth device, that is, a device that also has the Bluetooth function turned on). It can be understood that the available device is optionally a device that has never established a Bluetooth connection with the mobile phone, or a device that has established a Bluetooth connection with the mobile phone, but the mobile phone does not store the fingerprint information of the device. For example, the tablet has established a Bluetooth connection with the mobile phone, but after the mobile phone is initialized, the fingerprint information of the tablet is deleted. Accordingly, the tablet is a non-paired device for the mobile phone. It can be understood that the way to distinguish whether it is a paired device is whether the mobile phone stores the fingerprint information of the other end.
[0160] For example, in the following embodiments, the paired devices are not online. For example, the user can click on the device that needs to communicate with Bluetooth. For example, please refer to Figure 5 (2) For example, the user clicks on the identification information of the tablet. In response to the received user operation, the mobile phone can perform Bluetooth communication with the tablet.
[0161] S402, the mobile phone and tablet enter the Page stage.
[0162] For example, Figure 5 As shown in (2), in response to the user clicking on the identification information of the tablet, the mobile phone establishes a Bluetooth connection with the tablet, that is, enters the Page stage.
[0163] It should be noted that in the embodiment of the present application, the Page stage is used as the starting point for establishing the Bluetooth connection. After the Page stage is completed, that is, after the mobile phone and the tablet have successfully performed the Page, the Bluetooth connection can be considered to be successfully established. Conversely, if the mobile phone fails to successfully perform the Page with the tablet, it can be considered that the Bluetooth connection between the mobile phone and the tablet has failed. Optionally, in other embodiments, the discovery stage or the data transmission stage can also be considered as the starting point for establishing the Bluetooth connection. This application does not limit this.
[0164] The following is a detailed explanation of the Page stage for mobile phones and tablets.
[0165] Figure 6 This is a flowchart showing the Page stage for mobile phones and tablets. Figure 6 , specifically including:
[0166] S601: The mobile phone sends an ID (identity) data packet to the tablet.
[0167] For example, the Page stage can be understood as the information required for subsequent Bluetooth communication between the mobile phone and the tablet, including but not limited to information such as Access Code.
[0168] In the Page stage, the mobile phone acts as the Page end and pages the tablet (for example, sends a Bluetooth message to the tablet), and the tablet acts as the Page Scan end to monitor. When the mobile phone receives the response message sent by the tablet, that is, the tablet successfully receives the Bluetooth message sent by the mobile phone and returns a response message to the mobile phone, the first handshake in the Page stage is successful. The mobile phone and the tablet can perform subsequent multiple handshake processes, that is, continue to exchange the information required for Bluetooth communication. After the Page process is completed, that is, the mobile phone and the tablet complete multiple interactions and obtain the required information for Bluetooth communication, it can be considered that the Bluetooth connection is established, and the mobile phone can communicate with the tablet based on the Bluetooth connection.
[0169] Exemplarily, in the Page stage, the mobile phone acts as the Page end and pages the tablet. Exemplarily, the mobile phone sends an ID (identity) data packet. Optionally, the ID data packet includes but is not limited to the device access code information of the tablet. Exemplarily, the device access code information of the tablet is generated by the mobile phone based on the Bluetooth address information of the tablet obtained in the discovery stage. The specific generation method can refer to the relevant content in the existing Bluetooth protocol and will not be repeated here.
[0170] However, since the mobile phone cannot obtain the tablet's Bluetooth clock, it cannot predict the tablet's window opening timing and window opening frequency. For example, if the mobile phone starts to page, but the tablet has not yet opened the window, the tablet cannot receive the Bluetooth message sent by the mobile phone, and the mobile phone cannot receive the tablet's response message. For another example, the mobile phone is paged at frequency 1, that is, it sends Bluetooth messages on the frequency band to which frequency 1 belongs, and the tablet opens a window at frequency 2, that is, it listens to the Bluetooth messages sent by the mobile phone at frequency 2. In this case, the tablet cannot receive the Bluetooth messages sent by the mobile phone, and the mobile phone cannot receive the tablet's response message. Therefore, the mobile phone needs to repeatedly hop across the entire frequency band to successfully page the tablet, that is, so that the tablet receives the Bluetooth message sent by the mobile phone and receives the response message returned by the tablet. Among them, the full frequency band mentioned above can optionally be a page hopping sequence (Page hopping sequence) generated based on the tablet's Bluetooth address, which can also be called a frequency hopping sequence.
[0171] Exemplarily, the frequency hopping sequence is generated by the Page end (e.g., a mobile phone) based on the Bluetooth address of the Page Scan end (e.g., a tablet). Optionally, the frequency hopping sequence includes 32 frequency points, which are represented as frequency point 1 to frequency point 32 in the embodiment of the present application. Among them, the 32 frequency points correspond to different frequencies. Among them, the Bluetooth address of the tablet is obtained by the mobile phone during the discovery phase (for details, please refer to the description of the discovery phase above).
[0172] Figure 7 This is an example diagram of the Page stage. Figure 7 For example, for the Page end (such as a mobile phone), as described above, since the Page end cannot obtain the Bluetooth clock of the Page Scan end, it needs to perform frequency hopping on the frequency hopping sequence (including 32 frequency points) generated based on the Bluetooth address information of the Page Scan end.
[0173] For example, the Page end divides the 32 frequency points into train (sequence) A and train B. Optionally, train A includes frequency points 1 to 16, and train B includes frequency points 17 to 32. The above division method is only an illustrative example and is not limited in this application. For example, train A may include frequency points 1 to 13, and train B includes frequency points 14 to 32. The same will be explained below and will not be repeated.
[0174] For example, as described above, the Page side does not know when the Page Scan side wakes up. Therefore, the Page side optionally repeats frequency hopping on trainA, which can also be understood as repeatedly paging on frequencies 1 to 16 of trainA. The number of repetitions is N. Optionally, N can be set based on actual conditions, for example, N can be 128.
[0175] For example, after repeating the Page function N times on the frequency of trainA, the Page end may switch to the frequency of trainB for paging. For example, trainB may optionally include frequencies 17 to 32. The Page end may optionally repeat frequency hopping on trainB, which can also be understood as repeatedly paging on frequencies 17 to 32 of trainB, also repeating N times.
[0176] Optionally, in the embodiment of the present application, the length of trainA and trainB (ie, the duration they occupy) is 10ms. It can also be understood that the duration spent by the Page end on paging on all frequencies of trainA (or trainB) is 10ms.
[0177] For example, after the Page end has paged on trainB N times, it can switch to paging on trainA again, and cycle in sequence until it receives a response message sent by the Page Scan end, or reaches the preset Page duration. Among them, the preset Page duration can be set according to actual needs and is not limited in this application. It should be noted that if the response message returned by the Page Scan end is not received within the preset Page duration, the Page end determines that the Bluetooth connection establishment has failed.
[0178] Please continue to refer to Figure 7 For example, for the Page Scan end, it is also unable to obtain the current frequency hopping point of the Page end and the Page timing of the Page end (the concept can be referred to above). For example, after the discovery phase is over, the Page Scan end opens the Page Scan Window (paging scan window), which can also be called the receiving window. Among them, the length of the Page Scan Window is greater than or equal to the length of trainA (for example, 10ms). The specific length can be set according to actual needs and is not limited in this application.
[0179] For example, the Page Scan end can open a window according to the Page Scan cycle. Optionally, the cycle duration can be equal to the duration of trainA repeating N times Page, for example, equal to 1.28s, that is, 10ms*N, where N=128 and 10ms is the length of trainA. It should be noted that the cycle duration can be configured based on actual needs. This is only an example in this application and is not limited in this application.
[0180] For example, during the Page Scan cycle, at least one Page Scan Window may be opened. For example, Figure 7 As shown, the Page end opens Page Scan Window A1 and Page Scan Window B1 in the first Page Scan cycle. Page Scan Window A1 and Page Scan Window B1 are two consecutive receiving windows. Optionally, multiple Page Scan Windows can be continuous or discontinuous. Optionally, the number and distribution of multiple Page Scan Windows are merely illustrative examples and are not limited in this application.
[0181] Exemplarily, the frequencies of multiple Page Scan Windows in the same Page Scan cycle are different, and the operating frequencies belong to different trains. For example, the frequency of Page Scan WindowA1 is frequency 1 (i.e., the frequency belonging to the trainA sequence). The frequency of Page Scan WindowB2 is frequency 20 (i.e., the frequency belonging to the trainB sequence). In other words, the Page Scan end can receive the Bluetooth message sent by the Page end at frequency 1 in Page Scan WindowA1, or the Page Scan end can receive the Bluetooth message sent by the Page end at frequency 20 in Page Scan WindowB1.
[0182] It should be noted that Figure 7 The alignment of the Page frequency and the Page Scan window is for illustrative purposes only. As mentioned above, due to the inconsistent wake-up times of the Page and Page Scan, even at the same frequency, the Page Scan may still not receive Bluetooth messages sent by the Page.
[0183] For example, Figure 8 As shown, for example, the wake-up interval between the Page Scan end starting Page Scan and the Page end starting Page. That is, after the Page Scan starts to open the window, the Page end starts to paging after the wake-up interval (which can also be called the wake-up interval, the starting delay between Page and Page Scan, or the clock offset between Page and Page Scan, etc.). Therefore, even if the frequency of the Page Scan end in the Page Scan Window belongs to trainA (for example, frequency 1), the Page Scan end also needs to wait for the time Figure 8 After the wake-up time shown, the Bluetooth message sent by the Page end on frequency 1 can be received.
[0184] Please continue to refer to Figure 7, exemplarily, the Page Scan end switches the window opening frequency in the next Page Scan cycle. Optionally, take the example that the receiving windows opened by the Page Scan end in the next Page Scan cycle include: Page ScanWindowA2 and Page Scan WindowB2. Exemplarily, the frequency of Page Scan WindowA2 belongs to trainA, and the frequency is different from Page Scan WindowA1. Exemplarily, the frequency of Page Scan WindowB2 belongs to trainB, and the frequency is different from Page Scan WindowB2. For example, the frequency of Page Scan WindowA2 is frequency 2, and the frequency of PageScan WindowB2 is 21. Optionally, the selection of the window opening frequency can be set according to actual needs, and this application does not limit it.
[0185] For example, the Page Scan end may open multiple Page Scan Windows in each Page Scan cycle to monitor Bluetooth messages sent by the Page end. Optionally, the frequency of the Page Scan Windows in each cycle is different.
[0186] The Page side performs frequency hopping based on the frequency hopping sequence, which can be understood as the Page side sending Bluetooth messages on each frequency point according to the frequency point order in the frequency hopping sequence. For example, Figure 9 This is an example diagram of the Page stage interaction. Figure 9Exemplarily, the Page end may send a Bluetooth message in the sending time slot of frequency 1, such as the ID data packet of the device access code information of the tablet mentioned above. Exemplarily, the Page end sends a Bluetooth message in the sending time slot of frequency 2. Exemplarily, the Page end waits for the message returned by the Page Scan end in the receiving time slot of frequency 1. Exemplarily, the frequency of the Page Scan Window of the Page Scan end is frequency 3, that is, the Page Scan end can only receive the Bluetooth message sent by the Page end on frequency 3 within the receiving window. Correspondingly, the Page end fails to receive the response message from the Page Scan end in the receiving time slot of frequency 1, and the Page end continues to wait for the response message from the Page Scan end in the receiving time slot of frequency 2. Similarly, the Page end does not receive the response message from the Page Scan end in the receiving time slot of frequency 2. Exemplarily, the Page end sends Bluetooth data packets in the sending time slots of frequencies 3 and 4, respectively. As described above, the Page Scan Window frequency of the Page Scan terminal is frequency 3. Therefore, the Page Scan terminal can receive Bluetooth messages sent by the Page terminal on frequency 3. For example, the Page Scan terminal can send a response message on frequency 3 during the transmit time slot, such as the ID packet containing the tablet device access code described in S602 below. Accordingly, the Page terminal can receive the response message sent by the Page Scan terminal during the receive time slot of frequency 3.
[0187] Exemplarily, the Bluetooth message (or Bluetooth message, Bluetooth frame, Bluetooth data packet, etc.) sent by the Page end includes a frame header and a frame body. Figure 10 This is a schematic diagram showing an exemplary Bluetooth message transmission. Figure 10 For example, as described above, the Page end sends Bluetooth messages on a frequency point, that is, the Page end sends Bluetooth messages on a specified bandwidth with a specified frequency point (e.g., frequency point 3) as the center frequency. Optionally, in the classic Bluetooth protocol, the specified bandwidth can be 1 MHz, that is, the Page end sends Bluetooth messages on a frequency band with a center frequency corresponding to frequency point 3 and a bandwidth of 1 MHz. Correspondingly, when the Page Scan end can open a window on this frequency band, it can receive the message sent by the Page end.
[0188] S602: The tablet sends an ID data packet to the mobile phone.
[0189] For example, as described above, when a tablet acts as a Page Scan end and receives a Bluetooth message (i.e., an ID packet) from a Page end (i.e., a mobile phone), it can send a Bluetooth message to the mobile phone on the corresponding frequency. This Bluetooth message can optionally contain an ID packet. The ID packet includes, but is not limited to, the tablet's device access code information.
[0190] S603: The mobile phone sends an FHS (Frequency Hop Synchronization) data packet to the tablet.
[0191] For example, after receiving a Bluetooth message from the tablet, the mobile phone can determine the frequency at which the Bluetooth message was received, for example, if the message was successfully paged to the tablet on frequency 3. The mobile phone can then synchronize its Bluetooth clock with the tablet based on frequency 3. For example, the mobile phone can send an FHS packet on the next hopping frequency based on a predetermined frequency hopping pattern. For example, the FHS packet includes, but is not limited to, the mobile phone's Bluetooth address information.
[0192] S604: The tablet sends an ID data packet to the mobile phone.
[0193] For example, the tablet can also send an ID packet at the next hopping frequency based on a predetermined frequency hopping pattern. Optionally, the ID packet may include, but is not limited to, the phone's channel access code. Because the Bluetooth clocks of the phone and tablet are synchronized, the next hopping frequency of the tablet and phone are both pre-agreed upon. The phone and tablet can then hop on the agreed-upon hopping frequency and exchange data.
[0194] S605: The mobile phone sends an empty packet to the tablet.
[0195] S606: The tablet sends an arbitrary packet to the mobile phone.
[0196] For example, after the mobile phone receives any packet sent by the tablet, it can determine that a Bluetooth connection has been successfully established with the tablet, and data can be exchanged with the tablet based on the Bluetooth connection. The above interaction methods all follow the existing Bluetooth protocol. For specific details, please refer to the description of the existing Bluetooth protocol, and this application will not repeat them here.
[0197] In the Page phase described above, the conditions for Page Scan to successfully receive the Bluetooth message sent by Page are: Page Scan opens a window when Page sends a Bluetooth message, and the frequency of the receiving window is consistent with the current frequency hopping of Page. Therefore, if any of the above two conditions is not met, Page Scan will not be able to receive the Bluetooth message sent by Page, and Page and Page Scan will follow the Figure 7The Page process in is executed cyclically until the above two conditions are met, or the preset Page duration or Page Scan duration is reached.
[0198] For example, since neither the Page Scan end nor the Page end can predict when the other end will enter the Page phase, that is, they cannot obtain the wake-up time of the other end. Therefore, the Page end needs to send trainA and trainB in a loop so that after the Page Scan end wakes up, it can receive the Bluetooth message sent by the Page end. For a specific description, please refer to Figure 8 Related content.
[0199] Let’s take another example. Figure 7 As shown in the figure, since neither the Page end nor the Page Scan end can know the other end's current operating frequency, the Page end needs to hop across 32 frequencies, while the Page Scan end needs to cyclically open a window and switch the receiving frequency after the reception period expires. For example, when the Page Scan end's windowing frequency is frequency 20 (i.e., belonging to trainB), both parties can only successfully page when the Page end begins hopping on tainB. In other words, the maximum hit duration between the Page Scan end and the Page end may be 1.28s. This maximum hit duration is achieved when the channel is free of interference.
[0200] For example, Figure 11 As shown in the figure, when the Page end enters the Page phase, when the Page end is talking to other terminals, since the call service has a higher service priority, it will take priority to occupy the air interface resources. For example, when the Page end needs to send a Bluetooth message on frequency 3, the antenna is occupied by the call service, and the Page end cannot send the Bluetooth message on frequency 3. Figure 11 As shown, when the Page phase is operating on at least one frequency in trainA, it is occupied by the call line. Therefore, the maximum hit duration is longer, for example, greater than 1.29 seconds. The longer the Page phase is occupied, the longer it takes to establish the Bluetooth connection, resulting in longer waiting times for users, which will affect the user experience.
[0201] S403, the mobile phone and the tablet perform data transmission.
[0202] For example, refer to Figure 4 ,After the Page stage is completed, the mobile phone and tablet can interact with Bluetooth data based on the Bluetooth connection.
[0203] The embodiment of the present application provides a Bluetooth communication method, which effectively shortens the Page phase time in the classic Bluetooth protocol by negotiating the frequency hopping sequence in advance, thereby speeding up the Bluetooth connection efficiency and improving the user experience.
[0204] Scene 1
[0205] Figure 12 This is a flow chart of a Bluetooth communication method provided in an embodiment of the present application. Figure 12 , specifically including:
[0206] S1201a, the tablet starts the Bluetooth function.
[0207] Exemplarily, the tablet starts the Bluetooth function. For specific details, please refer to the above and will not be repeated here.
[0208] S1201b, the mobile phone activates the Bluetooth function.
[0209] For example, the method of activating the Bluetooth function of the mobile phone can be referred to above and will not be described in detail here. It should be noted that the order of S1201a and S1201b is only an illustrative example and is not limited in this application.
[0210] S1202: The tablet sends a Bluetooth broadcast message.
[0211] For example, as described above, after the tablet turns on the Bluetooth function, it can periodically send Bluetooth broadcast messages. Optionally, the Bluetooth broadcast messages include but are not limited to the tablet's Bluetooth address information, tablet identification information (such as the tablet's name, device model), and other information.
[0212] During the discovery phase, the phone and tablet interact with each other, obtaining device information, such as Bluetooth address information and identification information, of paired electronic devices (refer to the concept above) to determine whether the paired electronic device is online. Optionally, the phone can also obtain device information, such as Bluetooth address information and identification information, of non-paired devices (refer to the concept above).
[0213] Exemplarily, after a mobile phone activates the Bluetooth function, it enters the discovery phase. Optionally, the mobile phone periodically sends Bluetooth broadcast messages (not shown) to enable other terminals to scan the mobile phone. Furthermore, the mobile phone periodically listens for Bluetooth broadcast messages sent by other devices to discover other devices. Exemplarily, during the discovery phase, the mobile phone may receive Bluetooth broadcast messages sent by a tablet and obtain the tablet's Bluetooth address information, tablet identification information, and the like.
[0214] S1203a-S1203n: The tablet sends preset frequency information to the mobile phone.
[0215] For example, the present embodiment takes a tablet as the preset device. For example, the preset device may be a device that supports the Page mode in the present embodiment.
[0216] Exemplarily, the tablet may be pre-configured with frequency information (referred to as preset frequency information). Exemplarily, the preset frequency information includes at least one frequency from 32 frequency hopping frequencies generated based on the tablet's Bluetooth address information. For example, as described above, the tablet may generate 32 frequency hopping frequencies based on the tablet's own Bluetooth address information, and the tablet may select 12 of these frequencies (e.g., frequency 1 to frequency 12) as the preset frequencies.
[0217] Exemplarily, the preset frequency point selected by the tablet may be selected by the tablet according to the current channel status of each frequency point, or may be randomly selected, or may be factory set, which is not limited in this application.
[0218] It should be noted that the number and frequencies of the preset frequencies described in this application are merely illustrative examples and are not limited in this application.
[0219] For example, during the discovery phase, the tablet may send a Bluetooth broadcast message, which includes but is not limited to the preset frequency information.
[0220] Optionally, the discovery phase is implemented based on Bluetooth Low Energy (BLE) broadcasting. For example, the Bluetooth broadcast message described above is optionally sent by the tablet on a designated channel, such as Bluetooth channel 37, Bluetooth channel 38, and Bluetooth channel 39. Optionally, the tablet may send at least one Bluetooth broadcast message carrying preset frequency information on the designated channel.
[0221] In one possible implementation, the tablet may also send the preset frequency information to the mobile phone through other means. For example, the tablet may send the preset frequency information to the mobile phone through any means, such as a Near Field Communication (NFC) tag or a network cloud. This application does not limit this.
[0222] In the embodiment of the present application, an example is taken in which a tablet sends a Bluetooth message carrying preset frequency information at least once on Bluetooth channel 37, Bluetooth channel 38, and Bluetooth channel 39 respectively.
[0223] S1204: The mobile phone receives a user operation.
[0224] For example, as described above, after the mobile phone activates the Bluetooth function, it can search for nearby Bluetooth devices (such as tablets) during the discovery phase. In this embodiment, the mobile phone has not established a Bluetooth connection with the tablet, that is, the mobile phone does not store the tablet's fingerprint information. Accordingly, the mobile phone displays the tablet's identification information in the list of available devices in the Bluetooth settings interface.
[0225] For example, the user can click on the identification information of the tablet. In response to the received user operation, the mobile phone triggers the Page stage. Figure 4 The relevant content in the description will not be repeated here. It should be noted that the user operations described in the embodiments of this application are all described by taking the user clicking on the identification information of the device as an example. In other embodiments, the user operations corresponding to different devices may be different. For example, in the process of establishing a Bluetooth connection between a Bluetooth headset and a mobile phone, the user operation may be opening the headset box or wearing the headset, etc. This application does not limit this.
[0226] S1205a, the flatbed performs Page Scan.
[0227] For example, after the discovery phase is completed, the tablet may enter the Page phase, ie, perform Page Scan. It should be noted that S1205a may be before or after S1204, and this application does not limit this.
[0228] S1205b, the mobile phone performs Page.
[0229] In the embodiment of the present application, the tablet can determine that it is a preset device. However, the tablet cannot determine whether the mobile phone is a preset device. In other words, the mobile phone may be a preset device or a non-preset device. The following describes two different scenarios:
[0230] In one example, if Figure 13a As shown, if the mobile phone is also a preset device, the mobile phone can correctly read the preset frequency information carried in the Bluetooth message. The mobile phone can perform Page based on the received preset frequency information.
[0231] For example, after the tablet sends a Bluetooth message carrying preset frequency information, Page Scan can be performed based on the preset frequency information.
[0232] Combine Figure 13a , Figure 13b This is an example diagram of the Page stage. Figure 13bFor example, for a Page end that is a preset device, the Page end can perform frequency hopping based on the obtained preset frequency. For example, the preset frequency set indicated by the preset frequency information includes frequency 1 to frequency 12. For example, the Page end can repeatedly perform paging on each frequency in the preset frequency set.
[0233] For example, the Page end (e.g., a mobile phone) sends ID packets in the transmission time slots of the preset frequency set, i.e., frequency 1 to frequency 12, and waits for the response message returned by the Page Scan end in the corresponding receiving time slot. Optionally, the ID packet includes but is not limited to the device access code information of the tablet. For details, please refer to Figure 9 The relevant description will not be repeated here.
[0234] For example, if the response message returned by the Page Scan end is still not received in the receiving time slot of frequency 12, the Page end repeats the paging on the preset frequency set, that is, repeats the above process, continues to send ID data packets on frequency 1 to frequency 12 respectively, and waits for the response message returned by the Page Scan end in the corresponding receiving time slot.
[0235] For example, the Page end may be set with a Page duration. If the Page end does not receive a response message returned by the Page Scan end within the Page duration, the Page end determines that the Bluetooth connection with the Page Scan end has failed.
[0236] Optionally, if the Bluetooth connection fails, the mobile phone may display a prompt box including a prompt message. The prompt message is used to indicate that the Bluetooth connection with the tablet has failed.
[0237] Optionally, during the page process between the mobile phone and the tablet, a prompt message may be displayed in the Bluetooth settings interface of the mobile phone. This prompt message can be used to indicate that the connection with the tablet is currently in progress. The location of the prompt message can be anywhere in the Bluetooth settings interface, and this application does not limit it.
[0238] Please continue to refer to Figure 13bFor example, for the Page Scan end, it is also a preset device. However, since the Page Scan end cannot determine whether the Page end is a preset device, accordingly, the Page Scan end cannot determine whether the Page end performs frequency hopping according to 32 frequency hopping sequences or according to a preset frequency point set. Accordingly, Page Scan can periodically and alternately open the Page Scan Window corresponding to the 32 frequency hopping sequences and the Page Scan Window corresponding to the preset frequency point set. Among them, the length of the Page Scan Window corresponding to the 32 frequency hopping sequences is greater than or equal to the length of trainA (the concept can be seen above) (for example, 10ms). The length of the Page Scan Window corresponding to the preset frequency point set is greater than or equal to the length of the preset frequency point set. For example, the preset frequency point set includes frequency points 1 to 12, and the time taken by the Page end to perform paging on frequency points 1 to 12 is 7.5ms. Then the length of the Page Scan Window corresponding to the preset frequency point set can optionally be greater than or equal to 7.5ms, for example, it can be 7.5ms or 8ms, which is not limited in this application.
[0239] To distinguish the Page Scan Window corresponding to 32 frequency hopping sequences from the Page Scan Window corresponding to a preset frequency point set, in the following embodiments, the Page Scan Window corresponding to 32 frequency hopping sequences is referred to as the standard Page Scan Window, and the Page Scan Window corresponding to the preset frequency point set is referred to as the Fast Page Scan Window.
[0240] Please continue to refer to Figure 13b , exemplarily, the Page Scan end starts Page Scan, which can open a window according to the set Page Scan period. Optionally, the Page Scan period is equal to the duration of trainA repeating Page N times, for example, equal to 1.28s, that is, 10ms*N, where N=128 and 10ms is the length of trainA. Optionally, the Page Scan period can also be set based on actual needs (for example, according to device power consumption), for example, greater than or less than 1.28s, which is not limited in this application.
[0241] For example, the Page Scan end opens at least one standard Page Scan Window and at least one Fast Page Scan Window in the first Page Scan cycle. Figure 13bStandard Page Scan Window 1402a and standard Page Scan Window 1402b in .
[0242] For example, the frequency points of the standard Page Scan Window 1402a and the Page Scan Window 1402b are set based on a frequency hopping sequence including 32 frequency points. Figure 7 , for example, the frequency of the standard Page ScanWindow1402a can be Figure 7 For any frequency point in trainA (e.g., frequency point 1), the frequency point of the standard Page ScanWindow 1402b can be Figure 7 Any frequency point in trainB (for example, frequency point 20).
[0243] For example, after the standard window ends, the Page Scan end (e.g., tablet) can open m Fast Page Scan Windows, for example Figure 13b Fast Page Scan Window1404a~Fast Page ScanWindow1404m in. Optionally, m is an integer greater than 0, and the specific value can be set according to actual needs (such as the power consumption of the device), which is not limited in this application. Optionally, the value of m can be variable in different cycles or different connection processes, which is not limited in this application. For example, when the tablet is communicating with the mobile phone through Bluetooth, the value of m can be 10. When the tablet is communicating with the TV through Bluetooth, if the current power of the tablet is low, the value of m can be 4. The above values and judgment conditions are only illustrative examples and are not limited in this application.
[0244] Exemplarily, the frequencies of Fast Page Scan Window 1404a to Fast Page Scan Window 1404m may be the same or different. Exemplarily, the frequencies of Fast Page Scan Window 1404a to Fast Page Scan Window 1404m are included in a preset frequency set (ie, frequency 1 to frequency 12).
[0245] Optionally, the frequency point of any receiving window of Fast Page Scan Window 1404a to Fast Page Scan Window 1404m may be the same as that of Standard Page Scan Window 1402a or Standard Page Scan Window 1402b, which is not limited in this application.
[0246] For example, Fast Page Scan Window 1404 a - Fast Page Scan Window 1404 m may be continuous or discontinuous, which is not limited in this application.
[0247] For example, the Fast Page Scan Windows 1404 a - 1404 m may be evenly distributed to increase the probability of a successful page scan.
[0248] Exemplarily, the Page Scan end switches the frequency in each cycle according to the above-mentioned window opening method, and alternately uses the standard Page Scan Window and the Fast Page Scan Window. For example, in the second Page Scan cycle, the Page Scan end optionally opens at least one standard Page Scan Window (e.g., standard Page Scan Window 1406a and standard Page Scan Window 1406b). The frequency of the standard Page Scan Window in the second Page Scan cycle is different from the frequency of the standard Page Scan Window in the first cycle. For a detailed description, please refer to Figure 7 , which will not be described here. Exemplarily, in the second Page Scan cycle, the Page Scan end opens at least one Fast Page Scan Window (for example, Fast Page Scan Window1408a). Exemplarily, the frequency of the Fast Page Scan Window in the second Page Scan cycle may be the same as or different from the frequency of any Fast Page Scan Window in the first cycle. This is not limited in the present application. Optionally, if the frequency of the Fast Page Scan Window in the first cycle is the same, for example, frequency 1, optionally, the frequency of the Fast Page Scan Window in the second cycle is different from the frequency of the Fast Page Scan Window in the first cycle, for example, frequency 4, thereby adopting different frequencies to avoid the wake-up time due to the Page end and the Page Scan end (the concept can be referred to Figure 8 ), or the frequency point on the Page side is occupied, resulting in an increase in the hit duration, in order to improve the success probability of the Page.
[0249] In another example, Figure 13cAs shown, if the mobile phone is not a preset device, the mobile phone cannot correctly read the preset frequency information carried in the Bluetooth message. Optionally, the mobile phone can page on a frequency hopping sequence including 32 frequencies after the discovery phase. Optionally, the mobile phone is a non-preset device and can optionally receive a Bluetooth message carrying the preset frequency information. Since the mobile phone is a non-preset device, it cannot read the preset frequency information after receiving the Bluetooth message, but the Bluetooth message can still trigger the mobile phone to page.
[0250] Combine Figure 13c , Figure 13d This is an example diagram of the Page stage. Figure 13d For example, for the Page end, frequency hopping is performed based on a frequency hopping sequence including 32 frequency points. Figure 7 The relevant description will not be repeated here.
[0251] For example, for the Page Scan end, it still periodically opens the standard Page Scan Window (for example Figure 13d Page Scan Window 1410a and Page Scan Window 141b, Page Scan Window 1414a and Page Scan Window 1414b, and Fast Page Scan Window (e.g. Figure 13d For detailed description, please refer to Page Scan Window 1412a to Page Scan Window 1412m and Page Scan Window 1416a. Figure 13b The relevant content will not be repeated here.
[0252] It should be noted that the above description is based on the example of opening the standard Page Scan Window first after the Page Scan end enters the Page stage. In other embodiments, the Page Scan end may also open the Fast Page Scan Window first, then the standard Page Scan Window, and alternate in sequence, which is not limited in this application.
[0253] In one possible implementation, if the mobile phone and the tablet are in the discovery phase, it can be determined that the other end is a preset device. For example, the tablet sends a Bluetooth broadcast message, which can carry information indicating that the tablet is a preset device. After the mobile phone receives the Bluetooth broadcast message, it can send a response message to the tablet, which can carry information indicating that the mobile phone is a preset device. For example, after determining that the other end is a preset device, the tablet can only open the Fast Page Scan Window. For a specific description, please refer to Figure 16 The window opening method of the Page Scan end will not be described here.
[0254] S1206, Page successful, the mobile phone and tablet successfully establish a Bluetooth connection.
[0255] For example, as described above, during the Page process, if the mobile phone receives a response message from the tablet, it can perform frequency hopping based on the frequency of the received Bluetooth message to execute the subsequent process of the Page stage. After the Page stage ends, the mobile phone and the tablet have successfully established a Bluetooth connection. For details, please refer to Figure 6 The relevant description will not be repeated here.
[0256] For example, after the Bluetooth connection is established, the mobile phone can save the tablet's fingerprint information, such as the tablet's Bluetooth address, identification information, and preset device indication information, etc. The preset device indication information is used to indicate that the tablet is a preset device.
[0257] Optionally, the mobile phone and tablet can interact at any time after the Page is successful, or after the first handshake of the Page, to determine whether the other end is the preset device. For example, in an embodiment of the present application, the mobile phone and tablet can carry the preset device information in the ID data packet of the Page stage to indicate that they are the preset device.
[0258] S1207, the mobile phone and the tablet perform data transmission.
[0259] For example, the mobile phone and the tablet can perform data transmission based on the established Bluetooth connection. For example, the mobile phone can transmit data such as pictures to the tablet via the Bluetooth connection.
[0260] It should be noted that, after the Page stage ends, the Page end can be optionally a Master (master device) end, and the PageScan end can be optionally a Slave (slave device) end.
[0261] S1208: The mobile phone negotiates with the tablet to determine a negotiation frequency.
[0262] For example, when the mobile phone and the tablet maintain a Bluetooth connection, the mobile phone can negotiate with the tablet to determine a negotiation frequency set.
[0263] In one example, the Master end (e.g., a mobile phone) may send a request message to the Slave end (e.g., a tablet) to request the Slave end's channel classification information. The channel classification information is used to indicate the current status of each channel. Optionally, in an embodiment of the present application, the current status of the channel can be divided into levels, from high to low: Good, Unknown, Bad. The classification method in the embodiment of the present application is only an illustrative example and can be set according to actual needs. It is intended to divide the channels for subsequent frequency hopping. For example, the Slave end may evaluate the channels in response to the request received from the Master end and determine the level of each channel, i.e., the channel classification information. The Slave end sends the channel classification information to the Master end. Optionally, the Master end may evaluate each channel of its own end to obtain the level of each channel of its own end, i.e., the channel classification information. The Master end may further evaluate each channel based on the channel classification information of its own end and the channel classification information sent by the Slave end to obtain the negotiated frequency information. The negotiated frequency information includes a negotiated frequency set, which includes at least one frequency (also referred to as a negotiated frequency). Optionally, the master end may also determine the negotiated frequency information based on the channel classification information sent by the slave end. Exemplarily, the master end stores the correspondence between the slave end and the negotiated frequency information. The slave end stores the correspondence between the master end and the negotiated frequency information.
[0264] For example, the channel classification information obtained by the slave end includes: frequencies 1 to 7 are rated Good, frequencies 8 to 25 are rated Unknown, and frequencies 26 to 32 are rated Bad. The channel classification information obtained by the master end includes: frequencies 1 to 20 are rated Good, frequencies 21 to 27 are rated Unknown, and frequencies 28 to 32 are rated Bad. Accordingly, the master can intersect the slave end's channel classification information with its own channel classification information to obtain the negotiated frequency combination, which includes frequencies 1 to 7. In other words, the negotiated frequency is the frequency with a Good rating.
[0265] In another example, the master can obtain its own channel classification information and determine the negotiated frequency information based on it. The master saves the correspondence between the slave and the negotiated frequency information and sends the negotiated frequency information to the slave. The slave saves the correspondence between the master and the negotiated frequency information.
[0266] For example, if both the phone and tablet move during Bluetooth communication, or if the tablet moves, the current channel conditions of the phone and tablet may be different. The phone can request the tablet to evaluate the frequency and obtain the negotiated frequency information based on its own evaluation results. For another example, if neither phone nor tablet moves during Bluetooth communication, the phone can obtain the negotiated frequency information based on its own channel classification information.
[0267] For example, in the embodiment of the present application, the Master or Slave end may obtain the channel classification information in at least one of the following ways:
[0268] 1) During the data interaction process, the terminal evaluates each channel to record the data transmission status on each channel, such as packet error rate, retransmission rate, etc. The terminal can classify the channels based on the acquired transmission parameters and the preset thresholds. For example, taking the packet error rate as an example, if the error rate of the data received on frequency 1 is greater than the first threshold, the corresponding level of the channel is Bad. If the packet error rate is less than the second threshold, the corresponding level of the channel is Good. The specific correspondence between thresholds and levels can be set according to actual needs, and this application does not limit it.
[0269] 2) Channels are classified based on their occupancy. For example, the frequency occupied by Wi-Fi is classified as Bad.
[0270] 3) During data exchange, obtain the communication quality parameters of the Bluetooth connection. Communication quality parameters include, but are not limited to, RSSI (Received Signal Strength Indicator) and SNR (Signal-to-Noise Ratio) to evaluate the channel. For example, a communication quality parameter threshold can be set (this setting can be based on actual needs and is not limited in this application) to obtain the corresponding channel level.
[0271] It should be noted that during the negotiation process, the mobile phone and tablet can reuse Bluetooth messages used to transmit Bluetooth data, for example, carrying the negotiated frequency combination in the frame body of the Bluetooth message. Optionally, the mobile phone and tablet can also perform frequency negotiation through separate Bluetooth messages, which is not limited in this application.
[0272] For example, the mobile phone and tablet do not exchange Bluetooth information within a predetermined period of time (for example, the mobile phone and tablet are far apart and cannot receive the Bluetooth information from the other end), or the user manually turns off the Bluetooth function of the mobile phone and / or tablet, and the mobile phone and tablet disconnect the Bluetooth connection.
[0273] Figure 14 This is a flow chart showing an exemplary process of a mobile phone and a tablet communicating with Bluetooth again. Figure 14 , specifically including:
[0274] S1401: The mobile phone receives a user operation.
[0275] Exemplarily, the mobile phone and the tablet have established a Bluetooth connection, and the mobile phone has saved the fingerprint information of the tablet, that is, the tablet is a paired device of the mobile phone (the concept can be referred to above).
[0276] like Figure 15 As shown, the mobile phone's Bluetooth settings interface 1502 includes, but is not limited to, a paired device list 1506 and an available device list 1508. Exemplarily, during the discovery phase, the mobile phone discovers a nearby tablet and, based on the tablet's Bluetooth address information, determines that the tablet is a paired device, i.e., that the tablet's fingerprint information is stored. Exemplarily, the mobile phone displays the tablet's identification information in the paired devices list.
[0277] For example, if the user wants to reestablish a Bluetooth connection between the mobile phone and the tablet, the user can click the identification information of the tablet in the paired device list 1506. In response to the received user operation, the mobile phone can execute S1402b, that is, execute the Page process.
[0278] In one possible implementation, after the mobile phone is disconnected from the tablet, the mobile phone can execute S1402b, i.e., perform Page, to automatically reconnect the Bluetooth device. Optionally, if the mobile phone fails to successfully Page with the tablet within a set time (e.g., 5 minutes, which can be set according to actual needs and is not limited by this application), the Page process is stopped.
[0279] S1402a, the flatbed performs Page Scan.
[0280] S1402b, the mobile phone performs Page.
[0281] For example, in response to the received user operation, the mobile phone can perform Page based on the negotiated frequency information saved in the last connection (for related content, please refer to the description in S1208). Figure 15 As shown, during the page process between the mobile phone and the tablet, a prompt message may be displayed to indicate that a Bluetooth connection is being established with the tablet.
[0282] For example, in the embodiment of the present application, the negotiation frequency set indicated by the negotiation frequency information includes frequency 1 to frequency 3 as an example for description. Figure 16 This is an example diagram of the Page stage. Figure 15 For example, the Page end (i.e., the mobile phone) performs paging based on the negotiated frequency set (i.e., including frequency 1 to frequency 3) indicated by the stored negotiated frequency information. The specific paging process can be referred to above and will not be repeated here.
[0283] Exemplarily, the Page end may repeatedly perform paging on each frequency point in the negotiated frequency point set. Specifically, the Page end may send a Bluetooth message carrying the Access Code of the Page end (e.g., a mobile phone) on the transmit time slot of frequency point 1, and wait for the response message returned by the Page Scan end (e.g., a tablet) on the receive time slot of frequency point 1. If the response message returned by the Page Scan end is not received on the receive time slot, the Page end continues to send a Bluetooth message carrying the Access Code of the Page end (e.g., a mobile phone) on the next frequency point, such as the transmit time slot of frequency point 2. The Page end cycles in sequence, and if the response message returned by the Page Scan end is still not received on the receive time slot of frequency point 3, the Page end repeats paging on the negotiated frequency point set, i.e., repeats the above process, continues to send Bluetooth messages carrying the Access Code of the Page end on frequencies 1 to 3, and waits for the response message returned by the Page Scan end on the corresponding receive time slots.
[0284] For example, the Page end may be set with a Page duration. If the Page end does not receive a response message returned by the Page Scan end within the Page duration, the Page end determines that the Bluetooth connection with the Page Scan end has failed.
[0285] Please continue to refer to Figure 16 For example, for the Page Scan end (i.e., the tablet), the Bluetooth address and preset device indication information of the mobile phone have been stored correspondingly during the last connection process. The tablet can determine that the mobile phone is the preset device based on the stored information. For example, after the tablet is disconnected from the mobile phone, the tablet enters the Page Scan process. It should be noted that the mobile phone also enters the Page Scan process before receiving the identification information of the user clicking on the tablet. That is to say, in the embodiment of the present application, after the mobile phone enters the Page Scan process, if the user triggers the tablet to communicate with the mobile phone through Bluetooth from the tablet end (the specific triggering method is similar to that of the mobile phone end and will not be repeated here), the tablet will act as the Page end and execute the process executed by the mobile phone below. Correspondingly, the mobile phone, as the Page Scan end, will execute the process executed by the tablet below.
[0286] For example, in the embodiment of the present application, the Page Scan end may perform Page Scan based on the stored negotiated frequency points. For example, the Page Scan end may only open the Fast Page Scan Window.
[0287] For example, take the first Page Scan cycle of the Page Scan end as an example. For example, the Page Scan end opens Fast Page Scan Window1602a~Fast Page Scan Window1602n in the first Page Scan cycle. Optionally, Fast Page Scan Window1602a~Fast Page Scan Window1602n are evenly distributed in the first Page Scan cycle. For example, three Fast Page Scan Windows are set at the beginning, middle and end of the first cycle. The value of n can be set according to actual conditions and is not limited in this application. It should be noted that the more Page Scan Windows there are, the greater the probability of Page success, but at the same time the power of the electronic device is also greater. Therefore, considering the power consumption of the electronic device, the number of Page Scan Windows can be appropriately increased or decreased.
[0288] For example, Fast Page Scan Window 1602a to Fast Page Scan Window 1602n can be continuous or non-continuous. Figure 13b The description related to Fast Page Scan Window in
[15] will not be repeated here.
[0289] Illustratively, the frequency point of Fast Page Scan Window 1602 a - Fast Page Scan Window 1602 n may be a negotiated frequency point set, that is, any frequency point from frequency point 1 to frequency point 3 .
[0290] Illustratively, the length of each Fast Page Scan Window of Fast Page Scan Window 1602a through Fast Page Scan Window 1602n is greater than or equal to the length of the negotiated frequency set. For example, the negotiated frequency set includes frequencies 1 through 3, and the duration of paging on frequencies 1 through 3 by the Page end is 1 ms. The length of the Page Scan Window corresponding to the negotiated frequency set may optionally be greater than or equal to 1 ms, for example, 1 ms or 2 ms, although this application does not impose any limitations thereon.
[0291] For example, in the next Page Scan cycle, for example, the second Page Scan cycle, the Page Scan end may optionally open one or more Fast Page Scan Windows. Figure 16Fast Page Scan Window 1604a to Fast Page Scan Window 1604n in the first period. Exemplarily, the frequency points of Fast Page Scan Window 1604a to Fast Page Scan Window 1604n can be any frequency point in the preset frequency point set, except for the frequency points of the receiving window in the first period, for example, frequency point 2. For other descriptions, please refer to the relevant content of the Fast Page Scan Window in the first period and will not be repeated here.
[0292] The following describes several possible Page processes:
[0293] Figure 17a This is a schematic diagram of the Page process. Figure 17a For example, as mentioned above, the wake-up timing of the Page end and the Page Scan end may be different. For example, if the Page Scan end starts PageScan, the Page Scan end starts Page. Figure 17a As shown, when the Page opens Fast Page Scan Window 1704a, the Page Scan side does not wake up, so it does not receive the Bluetooth message sent by the Page side. After the Page side wakes up, it begins paging, but the Page Scan side does not open the Fast Page Scan Window at this time, so it still does not receive the Bluetooth message sent by the Page side. The Page side continues to page on the negotiated frequency set until the Page Scan side opens Fast Page Scan Window 1704b. The Page Scan side can receive the Bluetooth message sent by the Page side within Fast Page Scan Window 1704b and return a response message to the Page side.
[0294] Figure 17b This is a schematic diagram of the Page process. Figure 17bExemplarily, as described above, when the Page end is performing a Page, its frequency may be occupied or interfered with. For example, when the Page end is performing a Page on frequency 1 to frequency 3, frequency 2 is interfered with, making it impossible for the Page end to send Bluetooth messages on frequency 2. Exemplarily, let's take the frequency of Fast Page Scan Window 1706a to Fast Page Scan Window 1706n opened by the Page end as frequency 2. Since the Page end cannot send Bluetooth messages on frequency 2, the Page Scan end cannot receive Bluetooth messages sent by the Page end during the current cycle. In the next cycle, the Page Scan end switches the receiving window frequency, for example, opening Fast Page Scan Window 1708a, and the frequency of Fast Page Scan Window 1708a is frequency 3. Exemplarily, when the Page end is performing a Page on frequency 3, that is, sending Bluetooth messages on frequency 3, the Page Scan end can receive the Bluetooth messages sent by the Page end within Fast Page Scan Window 1708a and return a response message to the Page end.
[0295] In a possible implementation, if the Page end and / or Page Scan end does not receive the Bluetooth message sent by the other end within a preset time, the Page end and / or Page Scan end may Figure 8 If the Bluetooth message sent by the other end is still not received after the preset time, it can be determined that the Bluetooth connection establishment has failed.
[0296] S1403, Page successful, the mobile phone and tablet successfully establish a Bluetooth connection.
[0297] S1404, the mobile phone and the tablet perform data transmission.
[0298] The specific process of S1403 to S1404 can refer to the relevant content of S1206 to S1207, which will not be repeated here.
[0299] S1405: The mobile phone negotiates with the tablet and updates the negotiated frequency.
[0300] Optionally, the mobile phone and the tablet renegotiate to update the stored negotiated frequency. Optionally, the updated negotiated frequency may be the same as or different from the last saved negotiated frequency, which is not limited in this application.
[0301] For example, Figure 18 The application scenario shown. The mobile phone and tablet communicated with each other via Bluetooth last time (i.e. Figure 12During the process shown in the figure), the mobile phone and tablet are in office area A. When the mobile phone and tablet interact with each other via Bluetooth, the negotiated frequency set includes frequency points 1 to 3. After the mobile phone and tablet are disconnected, the user moves the mobile phone and tablet to office area B. When the mobile phone and tablet are in office area B and the Bluetooth connection is established again, during the Page stage, the Page Scan end may not open the Fast Page Scan Window on frequency point 1 because the Wi-Fi in office area B occupies frequency point 1, and the Page end cannot send Bluetooth messages on frequency point 1. Optionally, the mobile phone and tablet can successfully Page on frequency point 2. After the mobile phone and tablet establish a Bluetooth connection, data can be exchanged based on the Bluetooth connection. During the data exchange process, the mobile phone and tablet can negotiate again. The specific negotiation process can be referred to above and will not be repeated here. For example, the negotiated frequency set after this negotiation includes frequency points 2 to 4. Accordingly, after the mobile phone and tablet are disconnected and the Bluetooth connection is established again, the mobile phone and tablet can perform Page and Page Scan based on the negotiated frequency set (including frequency points 2 to 4) negotiated this time.
[0302] In one possible implementation, Figure 19 As shown, mobile phone A can establish a Bluetooth connection with mobile phone B, negotiate and save the correspondence between mobile phone B's device information (such as Bluetooth address information) and negotiated frequency set A. After mobile phone A is disconnected from mobile phone B, it can establish a Bluetooth connection with the tablet, negotiate and save the correspondence between the tablet's device information and negotiated frequency set B. Exemplarily, the paired devices of mobile phone A include mobile phone B and a tablet. If mobile phone A receives an operation in which the user clicks on the tablet's identification information, mobile phone A can page with the tablet based on the negotiated frequency set B based on the saved correspondence between the tablet's device information and the negotiated frequency set B.
[0303] In another possible implementation, while mobile phone A is interacting with mobile phone B via Bluetooth, mobile phone A can also establish a Bluetooth connection with the tablet. It should be noted that the Bluetooth connection between mobile phone A and mobile phone B is independent of the Bluetooth connection between mobile phone A and the tablet. In other words, the process of establishing a Bluetooth connection between mobile phone A and the tablet can be referred to in the following example: Figure 12 or Figure 14The process shown. Exemplarily, if the Bluetooth connection between mobile phone A and mobile phone B is disconnected, and mobile phone A maintains a Bluetooth connection with the tablet. Mobile phone A can perform Page based on the negotiated frequency corresponding to mobile phone B. At the same time, mobile phone B performs Page Scan based on the corresponding negotiated frequency. As mentioned above, within a preset time (for example, within 5 minutes), if mobile phone A and mobile phone B do not successfully Page, mobile phone A stops Page. Afterwards, if the Bluetooth connection between mobile phone A and the tablet is disconnected, similarly, mobile phone A can perform Page based on the negotiated frequency corresponding to the tablet. Correspondingly, the tablet can perform Page Scan based on the corresponding negotiated frequency. If mobile phone A and the tablet do not successfully Page, mobile phone A stops Page. Exemplarily, if mobile phone A receives an operation in which the user clicks on the identification information of the tablet, mobile phone A can perform Page Scan based on the corresponding negotiated frequency. Figure 14 For example, if mobile phone A receives the user's click on the identification information of mobile phone B, mobile phone A can Figure 14 In the process, proceed to Page according to the negotiated frequency corresponding to mobile phone B.
[0304] Scene 2
[0305] Figure 20 This is a schematic diagram of an exemplary application scenario. Figure 20 For example, the application scenario includes an earphone box and earphones. For example, the earphone box is opened, that is, after the user lifts the earphone cover of the earphone box, the earphone box triggers the earphones, that is, a Bluetooth connection is established between the left earphone and the right earphone.
[0306] Combine Figure 20 , Figure 21 This is a flow chart of a Bluetooth communication method provided in an embodiment of the present application. Figure 21 , specifically including:
[0307] S2101, unboxing the earphones.
[0308] S2102a-S2102n: The earphone box sends preset frequency information to the earphone.
[0309] Exemplarily, the earphone box receives a user operation, that is, after the user opens the cover of the earphone box, the earphone box can send preset frequency information to the left earphone and the right earphone respectively.
[0310] For example, since the left earphone and the right earphone are closer in the earphone box, the possibility of interference is smaller. Therefore, the preset frequency point set may include a smaller number of frequency points, for example, only frequency point 1, or frequency point 1 and frequency point 2.
[0311] For other undescribed contents, please refer to the above text and will not be repeated here.
[0312] S2103a, the left earphone performs Page Scan.
[0313] S2013b, right earphone for Page.
[0314] For example, the left earphone and the right earphone can be paged based on a preset frequency set, such as frequency 1. For example, the left earphone and the right earphone can store the Bluetooth address of the other end when they leave the factory, and it is known that the other end is a preset device. Therefore, in the embodiment of the present application, even if the left earphone and the right earphone are in the Page stage for the first time, the Page process of the left earphone and the right earphone can be based on Figure 16 The Page method described in .
[0315] That is to say, in the embodiment of the present application, when it is known that the other end is a preset device, the Page Scan end can follow Figure 16 Perform Page Scan using the Page method described in , that is, only open the Fast Page Scan Window.
[0316] S2104, Page successful, the mobile phone and tablet successfully establish a Bluetooth connection.
[0317] S2105, data transmission between the mobile phone and the tablet.
[0318] The specific process of S2104 to S2105 can refer to the relevant content of S1206 to S1207, which will not be repeated here.
[0319] Exemplarily, each time the earphone box is opened, the above steps S2101 to S2105 may be repeatedly executed.
[0320] Optionally, after the left earphone and the right earphone Page are successfully connected, they can establish a Bluetooth connection with nearby Bluetooth devices. For example, the earphones can establish a Bluetooth connection with a mobile phone. The process of establishing a Bluetooth connection between the earphones and the mobile phone can refer to the description in scenario 1 and will not be repeated here.
[0321] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the interaction between various network elements. It can be understood that in order to realize the above functions, the electronic device includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in a hardware or computer software-driven hardware manner depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0322] The embodiment of the present application can divide the functional modules of the electronic device according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0323] In one example, Figure 22 A schematic block diagram of a device 2200 according to an embodiment of the present application is shown. The device 2200 may include: a processor 2201 and a transceiver / transceiver pin 2202 , and optionally, a memory 2203 .
[0324] The various components of the device 2200 are coupled together via a bus 2204, wherein the bus 2204 includes, in addition to a data bus, a power bus, a control bus, and a status signal bus. However, for the sake of clarity, the various buses are collectively referred to as bus 2204 in the figure.
[0325] Optionally, the memory 2203 may be used for instructions in the aforementioned method embodiment. The processor 2201 may be used to execute instructions in the memory 2203 and control the receiving pin to receive a signal and control the transmitting pin to send a signal.
[0326] The apparatus 2200 may be the electronic device or a chip of the electronic device in the above method embodiment.
[0327] Among them, all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.
[0328] This embodiment further provides a computer storage medium, in which computer instructions are stored. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the Bluetooth communication method in the above-mentioned embodiment.
[0329] This embodiment further provides a computer program product. When the computer program product is run on a computer, the computer is caused to execute the above-mentioned related steps to implement the Bluetooth communication method in the above-mentioned embodiment.
[0330] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor can execute the computer-executable instructions stored in the memory to enable the chip to execute the Bluetooth communication method in the above-mentioned method embodiments.
[0331] Among them, the electronic device, computer storage medium, computer program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.
[0332] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0333] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0334] Units described as separate components may or may not be physically separate, and components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0335] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0336] Any content of each embodiment of this application, as well as any content of the same embodiment, can be freely combined. Any combination of the above content is within the scope of this application.
[0337] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0338] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.
[0339] The steps of the method or algorithm described in conjunction with the disclosure of the embodiments of the present application can be implemented in a hardware manner, or can be implemented by a processor executing a software instruction. The software instruction can be composed of corresponding software modules, and the software module can be stored in a random access memory (Random Access Memory, RAM), a flash memory, a read-only memory (Read Only Memory, ROM), an erasable programmable read-only memory (Erasable Programmable ROM, EPROM), an electrically erasable programmable read-only memory (Electrically EPROM, EEPROM), a register, a hard disk, a mobile hard disk, a read-only compact disc (CD-ROM) or any other form of storage medium well known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and can write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC.
[0340] Those skilled in the art will appreciate that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media include any media that facilitates the transmission of computer programs from one place to another. The storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer.
[0341] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.
Claims
1. A Bluetooth communication system, characterized in that: comprising a first electronic device and a second electronic device; The first electronic device is used to: Based on the first negotiated frequency information, at least one first fast page scan receiving window Fast Page Scan Window is opened; the first negotiated frequency information includes at least one frequency, and the at least one frequency included in the first negotiated frequency information is obtained by negotiation between the first electronic device and the second electronic device during a previous Bluetooth communication; The second electronic device is configured to: Sending a paging message to the first electronic device based on at least one frequency included in the first negotiated frequency information; The first electronic device is further used for: When the first electronic device receives the paging message sent by the second electronic device within the at least one first Fast Page Scan Window, the first electronic device performs Bluetooth data interaction with the second electronic device in response to the received paging message.
2. The system according to claim 1, wherein: The first electronic device is further configured to: Sending first preset frequency information, where the first preset frequency information includes at least one frequency, and the number of frequencies included in the first preset frequency information is greater than or equal to the number of frequencies included in the first negotiated frequency information; Based on the first preset frequency information, at least one second Fast Page Scan Window is opened, and based on at least one frequency included in the standard frequency information, at least one standard Page Scan Window is opened; the at least one frequency included in the standard frequency information is obtained based on the address information of the first electronic device; The second electronic device is further configured to: Receiving the first preset frequency point information; Sending a paging message to the first electronic device based on at least one frequency included in the first preset frequency information; The first electronic device is further used for: When the first electronic device receives a paging message sent by the second electronic device within the at least one first Fast Page Scan Window, or receives a paging message sent by the second electronic device within the at least one standard Page Scan Window, the first electronic device performs Bluetooth data interaction with the second electronic device in response to the received paging message; During Bluetooth data interaction with the second electronic device, negotiation is performed with the second electronic device to obtain the first negotiation frequency information.
3. The system according to claim 1, wherein: The length of the first Fast Page Scan Window is greater than or equal to the length of the first negotiated frequency information. The length of the first negotiated frequency information is the duration of paging of the second electronic device at at least one frequency included in the first negotiated frequency information.
4. The system according to claim 2, wherein: The length of the second Fast Page Scan Window is greater than or equal to the length of the first preset frequency information. The length of the first preset frequency information is the duration of paging of the second electronic device at at least one frequency included in the first preset frequency information.
5. The system according to claim 2, wherein: The standard frequency point information includes 32 frequency points; The length of the standard Page Scan Window is greater than or equal to the length of the standard frequency information. The length of the standard frequency information is the duration of paging of the second electronic device on 16 of the 32 frequency points included in the standard frequency information.
6. The system according to claim 2, wherein: The first electronic device determines the first negotiated frequency information based on at least one of the following conditions: The communication quality parameters of each working frequency point supported by the first electronic device, the communication quality parameters of each working frequency point supported by the second electronic device, the occupancy status of each working frequency point supported by the first electronic device, and the occupancy status of each working frequency point supported by the second electronic device.
7. The system according to claim 1, wherein: The first negotiated frequency point information includes two or more frequency points; The first electronic device is specifically used for: In a current preset period, at least one first Fast Page Scan Window is opened, wherein the frequency point of the at least one first Fast Page Scan Window opened in the current preset period is one of the frequencies included in the first negotiated frequency point information; In a next preset period, at least one first Fast Page Scan Window is opened, wherein the frequency point of the at least one first Fast Page Scan Window opened in the next preset period is another frequency point included in the first negotiated frequency point information.
8. A Bluetooth communication method, characterized in that: Applied to a first electronic device, the method includes: Based on the first negotiated frequency information, at least one first fast page scan receiving window Fast Page Scan Window is opened; the first negotiated frequency information includes at least one frequency, and the at least one frequency included in the first negotiated frequency information is obtained by negotiation between the first electronic device and the second electronic device during the last Bluetooth communication; When the first electronic device receives the paging message sent by the second electronic device within the at least one first Fast Page Scan Window, the first electronic device performs Bluetooth data interaction with the second electronic device in response to the received paging message.
9. The method according to claim 8, wherein Before opening at least one first fast paging scan receiving window Fast Page Scan Window based on the first negotiated frequency information, the method further includes: Sending first preset frequency information, where the first preset frequency information includes at least one frequency, and the first preset frequency information is used to instruct the second electronic device to send a paging message to the first electronic device based on the at least one frequency included in the first preset frequency information; wherein the number of frequencies included in the first preset frequency information is greater than or equal to the number of frequencies included in the first negotiated frequency information; Based on the first preset frequency information, at least one second Fast Page Scan Window is opened, and based on at least one frequency included in the standard frequency information, at least one standard Page Scan Window is opened; the at least one frequency included in the standard frequency information is obtained based on the address information of the first electronic device; When the first electronic device receives a paging message sent by the second electronic device within the at least one first Fast Page Scan Window, or receives a paging message sent by the second electronic device within the at least one standard Page Scan Window, the first electronic device performs Bluetooth data interaction with the second electronic device in response to the received paging message; During Bluetooth data interaction with the second electronic device, negotiation is performed with the second electronic device to obtain the first negotiation frequency information.
10. The method according to claim 8, wherein The length of the first Fast Page Scan Window is greater than or equal to the length of the first negotiated frequency information. The length of the first negotiated frequency information is the duration of paging of the second electronic device at at least one frequency included in the first negotiated frequency information.
11. The method according to claim 9, characterized in that The length of the second Fast Page Scan Window is greater than or equal to the length of the first preset frequency information. The length of the first preset frequency information is the duration of paging of the second electronic device at at least one frequency included in the first preset frequency information.
12. The method according to claim 9, characterized in that The standard frequency point information includes 32 frequency points; The length of the standard Page Scan Window is greater than or equal to the length of the standard frequency information. The length of the standard frequency information is the duration of paging of the second electronic device on 16 of the 32 frequency points included in the standard frequency information.
13. The method according to claim 9, characterized in that The first electronic device obtains the first negotiated frequency information based on at least one of the following conditions: The communication quality parameters of each working frequency point supported by the first electronic device, the communication quality parameters of each working frequency point supported by the second electronic device, the occupancy status of each working frequency point supported by the first electronic device, and the occupancy status of each working frequency point supported by the second electronic device.
14. The method according to claim 8, wherein The first negotiated frequency point information includes two or more frequency points; and the step of opening at least one first fast page scan receiving window FastPage Scan Window based on the first negotiated frequency point information includes: In a current preset period, at least one first Fast Page Scan Window is opened, wherein the frequency point of the at least one first Fast Page Scan Window opened in the current preset period is one of the frequencies included in the first negotiated frequency point information; In a next preset period, at least one first Fast Page Scan Window is opened, wherein the frequency point of the at least one first Fast Page Scan Window opened in the next preset period is another frequency point included in the first negotiated frequency point information.
15. A Bluetooth communication method, characterized in that: Applied to a second electronic device, the method includes: Sending a paging message to the first electronic device based on first negotiated frequency information, where the first negotiated frequency information includes at least one frequency, where the at least one frequency included in the first negotiated frequency information is obtained by negotiation between the second electronic device and the first electronic device during a previous Bluetooth communication; When receiving the paging response message sent by the first electronic device, Bluetooth data interaction is performed with the second electronic device; the paging response message is sent to the second electronic device by the first electronic device after receiving the paging message sent by the second electronic device in at least one first fast paging scan receiving window Fast Page Scan Window opened based on the first negotiated frequency information.
16. The method according to claim 15, characterized in that Before sending the paging message to the first electronic device based on the first negotiated frequency information, the method further includes: receiving first preset frequency information sent by the first electronic device; the first preset frequency information including at least one frequency, the number of frequencies included in the first preset frequency information being greater than or equal to the number of frequencies included in the first negotiated frequency information; Sending a paging message to the first electronic device based on at least one frequency included in the first preset frequency information; upon receiving a paging response message sent by the first electronic device, performing Bluetooth data exchange with the second electronic device; the paging response message is sent by the first electronic device to the second electronic device after receiving the paging message sent by the second electronic device within at least one second Fast Page Scan Window opened based on the first preset frequency information, or the paging response message is sent by the first electronic device to the second electronic device after receiving the paging message sent by the second electronic device within at least one standard Page Scan Window opened based on at least one frequency included in the standard frequency information; wherein the at least one frequency included in the standard frequency information is obtained based on the address information of the first electronic device; During Bluetooth data interaction with the first electronic device, negotiation is performed with the first electronic device to obtain the first negotiated frequency information.
17. The method according to claim 15, wherein The length of the first Fast Page Scan Window is greater than or equal to the length of the first negotiated frequency information. The length of the first negotiated frequency information is the duration of paging of the second electronic device at at least one frequency included in the first negotiated frequency information.
18. The method according to claim 16, characterized in that The length of the second Fast Page Scan Window is greater than or equal to the length of the first preset frequency information. The length of the first preset frequency information is the duration of paging of the second electronic device at at least one frequency included in the first preset frequency information.
19. The method according to claim 16, wherein The standard frequency point information includes 32 frequency points; The length of the standard Page Scan Window is greater than or equal to the length of the standard frequency information. The length of the standard frequency information is the duration of paging of the second electronic device on 16 of the 32 frequency points included in the standard frequency information.
20. The method according to claim 16, wherein The acquiring the first negotiated frequency point information includes: The first negotiated frequency information is obtained based on at least one of the following conditions: The communication quality parameters of each working frequency point supported by the first electronic device, the communication quality parameters of each working frequency point supported by the second electronic device, the occupancy status of each working frequency point supported by the first electronic device, and the occupancy status of each working frequency point supported by the second electronic device.
21. A first electronic device, characterized in that: include: A memory and a processor; the memory is coupled to the processor; The memory stores program instructions; when the program instructions are executed by the processor, the first electronic device performs the following steps: Based on the first negotiated frequency information, at least one first fast page scan receiving window Fast Page Scan Window is opened; the first negotiated frequency information includes at least one frequency, and the at least one frequency included in the first negotiated frequency information is obtained by negotiation between the first electronic device and the second electronic device during the last Bluetooth communication; When the first electronic device receives the paging message sent by the second electronic device within the at least one first Fast Page Scan Window, the first electronic device performs Bluetooth data interaction with the second electronic device in response to the received paging message.
22. The electronic device according to claim 21, wherein: When the program instructions are executed by the processor, the first electronic device performs the following steps: Sending first preset frequency information, where the first preset frequency information includes at least one frequency, and the first preset frequency information is used to instruct the second electronic device to send a paging message to the first electronic device based on the at least one frequency included in the first preset frequency information; wherein the number of frequencies included in the first preset frequency information is greater than or equal to the number of frequencies included in the first negotiated frequency information; Based on the first preset frequency information, at least one second Fast Page Scan Window is opened, and based on at least one frequency included in the standard frequency information, at least one standard Page Scan Window is opened; the at least one frequency included in the standard frequency information is obtained based on the address information of the first electronic device; When the first electronic device receives a paging message sent by the second electronic device within the at least one first Fast Page Scan Window, or receives a paging message sent by the second electronic device within the at least one standard Page Scan Window, the first electronic device performs Bluetooth data interaction with the second electronic device in response to the received paging message; During Bluetooth data interaction with the second electronic device, negotiation is performed with the second electronic device to obtain the first negotiation frequency information.
23. The electronic device according to claim 21, wherein The length of the first Fast Page Scan Window is greater than or equal to the length of the first negotiated frequency information. The length of the first negotiated frequency information is the duration of paging of the second electronic device at at least one frequency included in the first negotiated frequency information.
24. The electronic device according to claim 22, wherein: The length of the second Fast Page Scan Window is greater than or equal to the length of the first preset frequency information. The length of the first preset frequency information is the duration of paging of the second electronic device at at least one frequency included in the first preset frequency information.
25. The electronic device according to claim 22, wherein: The standard frequency point information includes 32 frequency points; The length of the standard Page Scan Window is greater than or equal to the length of the standard frequency information. The length of the standard frequency information is the duration of paging of the second electronic device on 16 of the 32 frequency points included in the standard frequency information.
26. The electronic device according to claim 22, wherein: When the program instructions are executed by the processor, the first electronic device performs the following steps: The first negotiated frequency information is obtained based on at least one of the following conditions: The communication quality parameters of each working frequency point supported by the first electronic device, the communication quality parameters of each working frequency point supported by the second electronic device, the occupancy status of each working frequency point supported by the first electronic device, and the occupancy status of each working frequency point supported by the second electronic device.
27. The electronic device according to claim 21, wherein The first negotiated frequency point information includes two or more frequency points; when the program instructions are executed by the processor, the first electronic device performs the following steps: In a current preset period, at least one first Fast Page Scan Window is opened, wherein the frequency point of the at least one first Fast Page Scan Window opened in the current preset period is one of the frequencies included in the first negotiated frequency point information; In a next preset period, at least one first Fast Page Scan Window is opened, wherein the frequency point of the at least one first Fast Page Scan Window opened in the next preset period is another frequency point included in the first negotiated frequency point information.
28. A second electronic device, characterized in that: include: A memory and a processor; the memory is coupled to the processor; The memory stores program instructions; when the program instructions are executed by the processor, the second electronic device performs the following steps: Sending a paging message to the first electronic device based on first negotiated frequency information, where the first negotiated frequency information includes at least one frequency, where the at least one frequency included in the first negotiated frequency information is obtained by negotiation between the second electronic device and the first electronic device during a previous Bluetooth communication; When receiving the paging response message sent by the first electronic device, Bluetooth data interaction is performed with the second electronic device; the paging response message is sent to the second electronic device by the first electronic device after receiving the paging message sent by the second electronic device in at least one first fast paging scan receiving window Fast Page Scan Window opened based on the first negotiated frequency information.
29. The electronic device according to claim 28, wherein When the program instructions are executed by the processor, the second electronic device performs the following steps: receiving first preset frequency information sent by the first electronic device; the first preset frequency information including at least one frequency, the number of frequencies included in the first preset frequency information being greater than or equal to the number of frequencies included in the first negotiated frequency information; Sending a paging message to the first electronic device based on at least one frequency included in the first preset frequency information; upon receiving a paging response message sent by the first electronic device, performing Bluetooth data exchange with the second electronic device; the paging response message is sent by the first electronic device to the second electronic device after receiving the paging message sent by the second electronic device within at least one second Fast Page Scan Window opened based on the first preset frequency information, or the paging response message is sent by the first electronic device to the second electronic device after receiving the paging message sent by the second electronic device within at least one standard Page Scan Window opened based on at least one frequency included in the standard frequency information; wherein the at least one frequency included in the standard frequency information is obtained based on the address information of the first electronic device; During Bluetooth data interaction with the first electronic device, negotiation is performed with the first electronic device to obtain the first negotiated frequency information.
30. The electronic device according to claim 28, wherein The length of the first Fast Page Scan Window is greater than or equal to the length of the first negotiated frequency information. The length of the first negotiated frequency information is the duration of paging of the second electronic device at at least one frequency included in the first negotiated frequency information.
31. The electronic device according to claim 29, wherein The length of the second Fast Page Scan Window is greater than or equal to the length of the first preset frequency information. The length of the first preset frequency information is the duration of paging of the second electronic device at at least one frequency included in the first preset frequency information.
32. The electronic device according to claim 29, wherein The standard frequency point information includes 32 frequency points; The length of the standard Page Scan Window is greater than or equal to the length of the standard frequency information. The length of the standard frequency information is the duration of paging of the second electronic device on 16 of the 32 frequency points included in the standard frequency information.
33. The electronic device according to claim 29, wherein: When the program instructions are executed by the processor, the second electronic device performs the following steps: The first negotiated frequency information is obtained based on at least one of the following conditions: The communication quality parameters of each working frequency point supported by the first electronic device, the communication quality parameters of each working frequency point supported by the second electronic device, the occupancy status of each working frequency point supported by the first electronic device, and the occupancy status of each working frequency point supported by the second electronic device.
34. A chip, characterized in that: The present invention comprises one or more interface circuits and one or more processors; the interface circuit is used to receive a signal from a memory of an electronic device and send the signal to the processor, wherein the signal includes a computer instruction stored in the memory; when the processor executes the computer instruction, the electronic device executes the Bluetooth communication method according to any one of claims 8 to 14.
35. A chip, characterized in that: The device comprises one or more interface circuits and one or more processors; the interface circuit is used to receive a signal from a memory of an electronic device and send the signal to the processor, wherein the signal includes a computer instruction stored in the memory; when the processor executes the computer instruction, the electronic device executes the Bluetooth communication method according to any one of claims 15 to 20.
36. A computer storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program runs on a computer or a processor, the computer or the processor executes the Bluetooth communication method according to any one of claims 8 to 14.
37. A computer storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program runs on a computer or a processor, the computer or the processor executes the Bluetooth communication method according to any one of claims 15 to 20.
Citation Information
Patent Citations
Bluetooth connection method and device, Bluetooth equipment and Bluetooth system
CN111132100A