Bluetooth filtering method and related equipment

By adding Bluetooth filtering conditions to the first chip of the electronic device, filtering and reducing the reporting of Bluetooth messages, the problem of high power consumption in the hyper-terminal service is solved, and power consumption and energy efficiency are improved.

CN119562234AActive Publication Date: 2025-03-04HONOR DEVICE CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202311084280.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-25
Publication Date
2025-03-04
Estimated Expiration
2043-08-25

AI Technical Summary

Technical Problem

In hyper-terminal service, electronic devices need to continuously discover and report peripheral Bluetooth devices, resulting in a large number of messages and extremely high power consumption.

Method used

By adding filtering conditions to the first chip of the electronic device, the Bluetooth information scanned actively and passively is filtered and reported to the application layer only when the information meets a specific condition.

Benefits of technology

Reduces the number of reported Bluetooth messages, reduces the power consumption of electronic devices, and improves the energy efficiency performance of the device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119562234A_ABST
    Figure CN119562234A_ABST
Patent Text Reader

Abstract

The invention discloses a Bluetooth filtering method and related equipment. The method is applied to a first chip in the electronic device, the electronic device is provided with the first chip and a second chip, the second chip is a chip interacting with an application layer through an operating system, and according to the method, Bluetooth information sent by a Bluetooth device is received, the Bluetooth information is information sent by the Bluetooth equipment scanned when the electronic equipment actively scans, or information sent by the Bluetooth equipment monitored when the electronic equipment passively scans; judging whether the Bluetooth information meets a Bluetooth filtering condition or not; and if the Bluetooth information meets the Bluetooth filtering condition, reporting the Bluetooth information to an application layer. Through the method, the number of reported Bluetooth messages can be reduced, and the power consumption of the electronic equipment is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of wireless communications, and in particular to a Bluetooth filtering method and related equipment. Background Art

[0002] With the rapid development of Bluetooth technology, more and more manufacturers are using Bluetooth to implement super terminal services for personal computers (PCs). For example, the mobile phone and PC provide super call services and the mobile phone and PC provide super keyboard and mouse services. The super call service between the mobile phone and PC means that after the mobile phone and PC are connected via Bluetooth, when the mobile phone receives a call request, the PC will also prompt the call request. The user can accept the call request on the mobile phone or PC and make a call through the mobile phone or PC. The super keyboard and mouse service between the mobile phone and the computer means that after the mobile phone and PC are connected via Bluetooth, the keyboard and mouse connected to the PC can be used on both the PC and the mobile phone at the same time. For example, the user can use the mouse to operate on the PC, and can also use the mouse to operate on the mobile phone.

[0003] The above-mentioned super terminal service is a self-discovery self-organizing service, that is, the electronic device needs to continuously discover and report the surrounding Bluetooth devices. Since the electronic device will report all scanned or monitored Bluetooth messages, the number of reported Bluetooth messages is large, resulting in extremely high power consumption of the electronic device. Summary of the invention

[0004] The present application provides a Bluetooth filtering method and related devices, which can reduce the number of reported Bluetooth messages and reduce the power consumption of electronic devices.

[0005] In a first aspect, some embodiments of the present application provide a Bluetooth filtering method. The method is applied to a first chip in an electronic device, the electronic device has a first chip and a second chip, the second chip is a chip that interacts with an application layer through an operating system, and the Bluetooth filtering method may include: receiving Bluetooth information sent by a Bluetooth device, the Bluetooth information is information sent by a Bluetooth device scanned by the electronic device during active scanning, or is information sent by a Bluetooth device monitored by the electronic device during passive scanning; judging whether the Bluetooth information meets the Bluetooth filtering condition; if the Bluetooth information meets the Bluetooth filtering condition, reporting the Bluetooth information to the application layer.

[0006] By using the above method, filtering conditions are added to the newly added first chip to filter both Bluetooth information scanned by the electronic device during active scanning and Bluetooth information monitored by the electronic device during passive scanning, thereby reducing the number of reported Bluetooth messages and saving power consumption of the electronic device.

[0007] In a possible implementation, the Bluetooth information is reported to the application layer through a dedicated channel between the first chip and the application layer, wherein the Bluetooth information is reported through the dedicated channel without passing through the operating system.

[0008] Through the above method, the first chip interacts with the application layer through a dedicated channel, so that when the first chip reports Bluetooth information, it is not necessary to wake up the operating system, thereby saving energy consumption during the reporting process.

[0009] In a possible implementation, the Bluetooth filtering condition is set by a user through the application layer.

[0010] Through the above method, the user can customize the Bluetooth filtering conditions, making the Bluetooth filtering conditions more flexible and rich.

[0011] In a possible implementation, the Bluetooth filtering condition includes that the account information of the Bluetooth device is the same as the account information of the electronic device, and the Bluetooth information is the account information of the Bluetooth device.

[0012] Through the above method, the devices logged in with the same account are usually the devices of the same user. Therefore, setting the Bluetooth filtering condition to the same account information of the Bluetooth device and the electronic device can accurately filter the Bluetooth information.

[0013] In one possible implementation, the Bluetooth information includes a device identifier corresponding to the Bluetooth device; before determining whether the Bluetooth information meets the Bluetooth filtering conditions, the Bluetooth filtering method also includes: determining whether the device identifier corresponding to the Bluetooth device exists in a Bluetooth discard list; if it exists in the Bluetooth discard list, discarding the Bluetooth information; if it does not exist in the Bluetooth discard list, determining whether the Bluetooth information meets the Bluetooth filtering conditions.

[0014] Through the above method, before determining whether the Bluetooth information meets the Bluetooth filtering condition, it is first determined whether the Bluetooth information exists in the Bluetooth discard list, and multiple filtering is performed to make the filtered Bluetooth information more accurate.

[0015] In a possible implementation, after the Bluetooth information is reported to the application layer, the device identifier in the Bluetooth discard list is the device identifier of the Bluetooth device that the user chooses to disconnect the Bluetooth connection with the electronic device.

[0016] Through the above method, when a user manually disconnects a Bluetooth device connected to an electronic device, the disconnected Bluetooth device is added to the Bluetooth discard list to prevent the electronic device from automatically connecting to the Bluetooth device after the user manually disconnects the Bluetooth device.

[0017] In one possible implementation, the device identifiers of the Bluetooth devices in the Bluetooth discard list correspond one-to-one to the timers; the first timer corresponding to the device identifier of the first Bluetooth device is started when the device identifier of the first Bluetooth device is added to the Bluetooth discard list; the device identifier of the first Bluetooth device is the device identifier of any Bluetooth device in the Bluetooth discard list; the method also includes: if the first timer times out, deleting the device identifier of the first Bluetooth device from the Bluetooth discard list.

[0018] Through the above method, the device identification of the Bluetooth device in the Bluetooth discard list has time validity, so that after a period of time, the electronic device can still establish a Bluetooth connection with the Bluetooth device in the Bluetooth discard list.

[0019] In a possible implementation, if the Bluetooth information does not meet the Bluetooth filtering condition, the Bluetooth information is discarded.

[0020] In a second aspect, the present application provides an electronic device. The electronic device includes: one or more processors, and one or more memories; the one or more memories are coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the terminal device to perform the method described in the first aspect or any one of the implementations of the first aspect.

[0021] In a third aspect, the present application provides a computer storage medium, which includes computer instructions, and when the computer instructions are executed on a terminal device, the terminal device executes the method described in the first aspect or any one of the implementations of the first aspect.

[0022] In a fourth aspect, an embodiment of the present application provides a chip. The chip can be applied to a terminal device, and the chip includes one or more processors, and the processor is used to call a computer instruction to enable the terminal device to execute the method described in the first aspect or any implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1A A system architecture diagram of Bluetooth filtering provided in an embodiment of the present application;

[0024] Figure 1B A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;

[0025] Figure 1C A schematic diagram of the software structure of an electronic device provided in an embodiment of the present application;

[0026] Figure 2 A schematic diagram of a flow chart of a Bluetooth filtering method provided in an embodiment of the present application;

[0027] Figure 3A A schematic diagram of a Bluetooth setting interface provided in an embodiment of the present application;

[0028] Figure 3B A schematic diagram of another Bluetooth setting interface provided in an embodiment of the present application;

[0029] Figure 4 A schematic diagram of another Bluetooth filtering method provided in an embodiment of the present application;

[0030] Figure 5 A schematic diagram of another Bluetooth filtering method provided in an embodiment of the present application;

[0031] Figure 6 A schematic diagram of the interface for disconnecting a Bluetooth device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0032] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in the text is only a description of the association relationship of the associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.

[0033] It should be understood that the terms "first", "second", etc. in the specification, claims and drawings of the present application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.

[0034] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments.

[0035] In order to better understand the embodiments of the present application, some professional terms involved in the embodiments of the present application are first introduced below:

[0036] Bluetooth: Bluetooth technology is an open global specification for wireless data and voice communications. It is a special short-range wireless technology connection based on low-cost short-range wireless connections to establish a communication environment for fixed and mobile devices. It supports radio technology for short-range communication between devices (generally within 10m) and can exchange wireless information between many devices including mobile phones, wireless headphones, laptops, and related peripherals. Using Bluetooth technology can effectively simplify the communication between mobile communication terminal devices.

[0037] Active scanning and passive scanning: Active scanning and passive scanning are steps in the process of establishing a connection in Bluetooth Low Energy (BLE). Active scanning means that the central device initiates scanning to search for peripheral devices around it. Passive scanning means that the peripheral device is discovered by the central device when it broadcasts its own information. Through scanning, you can obtain information such as the unique identifier and device name of the device.

[0038] HyperTerminal: A hyperterminal is a terminal that integrates the capabilities of multiple terminals through distributed technology and stores them in a virtual hardware resource pool. It manages, schedules, and integrates the capabilities of each terminal in a unified manner according to business needs to provide services to the outside world, enabling fast connections, mutual assistance in capabilities, and resource sharing between different terminals.

[0039] The super terminal may include core devices / central devices, and collaborative devices / associated devices. The core device is the control center of the super terminal system, carrying functions such as device management, service management, and service scheduling. The core device is connected to one or more associated devices to form a super terminal. An associated device may be an electronic device that is located in the same communication network as the core device (such as a mobile phone), for example, an electronic device that is located in the same WiFi network. An associated device may also be an electronic device whose login account is the same as that of the core device, or an electronic device whose login account belongs to the same group as that of the core device (such as a family account). An associated device may also be an electronic device that establishes a trusted relationship (or pairing) with a core device by other means, such as an electronic device that has been paired with Bluetooth, an electronic device that has been connected to a hotspot shared by a mobile phone, or a mobile phone that has been connected to the hotspot of the electronic device.

[0040] Different associated devices are connected to the core device and work together to realize different functions. For example, the core device mobile phone and the associated device laptop form a super terminal, which can realize the function of projecting the mobile phone interface to the laptop; the core device mobile phone and the associated device smart speaker form a super terminal, which can realize the function of remotely controlling the smart speaker by the mobile phone, etc.

[0041] The following is an introduction to the Bluetooth system involved in the embodiments of the present application:

[0042] Figure 1A A possible, non-limiting system architecture diagram of a Bluetooth filtering method is shown. Figure 1A As shown, the system includes an electronic device and three Bluetooth devices: Bluetooth device 1, Bluetooth device 2, and Bluetooth device 3. The electronic device and Bluetooth device 1, Bluetooth device 2, and Bluetooth device 3 all have Bluetooth functions. The electronic device and Bluetooth device 1, Bluetooth device 2, and Bluetooth device 3 can perform data transmission respectively. The electronic device can discover Bluetooth device 1, Bluetooth device 2, and Bluetooth device 3 by active scanning or passive scanning. Figure 1A Only three Bluetooth devices are shown in the figure. More Bluetooth devices may be included in the Bluetooth system. This application does not limit the number of Bluetooth devices.

[0043] The electronic device may also be referred to as a terminal, a user equipment (UE), a mobile station, a mobile terminal, etc. The electronic device may be widely used in various scenarios, for example, device-to-device (D2D), vehicle-to-everything (V2X) communication, machine-type communication (MTC), Internet of Things (IOT), virtual reality, augmented reality, industrial control, autonomous driving, telemedicine, smart grid, smart furniture, smart office, smart wear, smart transportation, smart city, etc. The electronic device may be a mobile phone, a tablet computer, a computer with wireless transceiver function, a wearable device, a vehicle, a drone, a helicopter, an airplane, a ship, a robot, a robotic arm, a smart home device, etc. The Bluetooth device may be a mobile phone, a keyboard, a mouse, a tablet computer, a computer, a wearable device, a vehicle, a drone, etc., which has a Bluetooth function.

[0044] The electronic device and the Bluetooth device can perform a super terminal service, specifically, a super call service and a super key and mouse service. The super terminal service can refer to the introduction of the super terminal mentioned above.

[0045] A hardware structure of an electronic device such as Figure 1B As shown, it may include: a first chip, a second chip, a wireless communication module 1 and a wireless communication module 2.

[0046] It is to be understood that the structures illustrated in the embodiments of the present application do not constitute specific limitations on the electronic device. In other embodiments, the electronic device may include more components than those shown in the figure, for example, the electronic device may also include a battery, a display screen, a speaker, an earphone jack, etc., or combine certain components, or separate certain components, or arrange the components differently. Figure 1B The components shown may be implemented in hardware, software or a combination of software and hardware.

[0047] Among them, the first chip includes a processor 1, and the processor 1 may include one or more processing units, for example: the processor may include an application processor (Application Processor, AP), a modem processor (Modem, also known as a baseband processor), a graphics processor (Graphics Processing Unit, GPU), an image signal processor (Image Signal Processor, ISP), a controller, a video codec, a digital signal processor (DigitalSignal Processor, DSP), and / or a neural network processor (Neural-network Processing Unit, NPU), etc. Among them, different processing units can be independent devices or integrated in one or more processors. The processor is the nerve center and command center of the terminal. The controller can generate an operation control signal according to the instruction opcode and the timing signal to complete the control of fetching and executing instructions.

[0048] The second chip includes a processor 2, which may be the same processor as the processor 1, or a processor different from the processor 1 and having a greater computing power than the processor 1. Similarly, the processor 2 may also include one or more processing units. This application will not go into detail about the processing unit.

[0049] The wireless communication function of the electronic device can be realized by a wireless communication module. In some embodiments, the electronic device further includes an antenna 1 and an antenna 2, wherein the antenna 1 of the electronic device is coupled to the wireless communication module 1, and the antenna 2 of the electronic device is coupled to the wireless communication module 2, so that the electronic device can communicate with other terminals through wireless communication technology.

[0050] The wireless communication module 1 and the wireless communication module 2 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) and the like applied to electronic devices. The wireless communication module can be one or more devices integrating at least one communication processing module. The wireless communication module receives electromagnetic waves via an antenna, modulates and filters the electromagnetic wave signals, and sends the processed signals to a processor. The wireless communication module can also receive the signal to be sent from the processor, modulate the frequency of the signal, amplify it, and convert it into electromagnetic waves for radiation through the antenna.

[0051] In addition, an operating system runs on the above components, such as the OS operating system developed by Apple and the Windows operating system developed by Microsoft.

[0052] A software structure of an electronic device such as Figure 1C As shown. Figure 1C As shown, the top layer of the software structure is the application layer, which may include a series of application packages. The application package may include applications such as gallery, calendar, Bluetooth, music, video, etc. In the electronic device, data is transmitted between the first chip and the application layer through a dedicated channel. For example, the first chip reports to the application layer through an application programming interface (API), and data is transmitted between the second chip and the application layer through an operating system. The operating system may be a Windows operating system developed by Microsoft Corporation, etc.

[0053] The first chip includes a Bluetooth module that provides Bluetooth function and a WIFI module that provides WIFI function. Similarly, the second chip also includes a Bluetooth module that provides Bluetooth function and a WIFI module that provides WIFI function. In the first chip, the Bluetooth module of the first chip includes a Bluetooth driver, a Bluetooth protocol stack and a Bluetooth firmware. Among them, the Bluetooth driver is a driver software for a computer to connect to other Bluetooth devices. The Bluetooth protocol stack is a set of protocol specifications defined, and the goal is to allow Bluetooth applications that follow the specifications to operate with each other. The Bluetooth firmware is a program written into a programmable read-only memory.

[0054] The following is a further introduction to the Bluetooth filtering method provided in the embodiment of the present application:

[0055] See also Figure 2 , Figure 2 1 is a flow chart of a Bluetooth filtering method provided in an embodiment of the present application. The Bluetooth filtering method is applied to a first chip in an electronic device, the electronic device having a first chip and a second chip, the second chip being a chip that interacts with an application layer through an operating system.

[0056] 201. A first chip receives Bluetooth information sent by a Bluetooth device, where the Bluetooth information is information sent by a Bluetooth device scanned by the electronic device during active scanning, or information sent by a Bluetooth device monitored by the electronic device during passive scanning.

[0057] Among them, active scanning and passive scanning can refer to the above introduction, and this application will not be repeated here. The Bluetooth device and the electronic device both have Bluetooth function. The Bluetooth device can be a mobile phone, keyboard, mouse, tablet computer, watch and other devices with Bluetooth function.

[0058] The Bluetooth information of the Bluetooth device may be one or more of the following information: device name of the Bluetooth device, account information of the Bluetooth device, device identification, physical address (Media Access Control, MAC) of the Bluetooth device, etc. Specifically, the Bluetooth information of the Bluetooth device is information that needs to be reported in the information sent by the Bluetooth device.

[0059] 202. The first chip determines whether the Bluetooth information meets the Bluetooth filtering condition.

[0060] In a possible embodiment, the Bluetooth filtering condition includes that the account information of the Bluetooth device is the same as the account information of the electronic device, and the Bluetooth information is the account information of the Bluetooth device.

[0061] The account information of the Bluetooth device is the brand account logged in by the Bluetooth device. When the Bluetooth device and the electronic device log in to the same brand account of the same brand, the account information of the Bluetooth device is the same as the account information of the electronic device, and the Bluetooth information meets the Bluetooth filtering condition.

[0062] Through the above method, the devices logged in with the same account are usually the devices of the same user. Therefore, setting the Bluetooth filtering condition to the same account information of the Bluetooth device and the electronic device can accurately filter the Bluetooth information.

[0063] Optionally, the Bluetooth filtering condition also includes account information of the Bluetooth device and account information of the electronic device as associated account information.

[0064] The account information of the Bluetooth device can be found in the above introduction, which will not be repeated here. When the brand account logged in by the Bluetooth device is a family sharing account of the brand account logged in by the electronic device, the account information of the Bluetooth device and the account information of the electronic device are associated account information.

[0065] For example, the brand account logged into the electronic device is brand account A, and the electronic device is specifically the computer of the mother in the family. The brand account logged into the Bluetooth device is brand account B, and the electronic device is specifically the mobile phone of the father in the family. Since the mother sets brand account B as the family sharing account of brand account A, the account information of the Bluetooth device and the account information of the electronic device are associated account information.

[0066] Optionally, in addition to the above two filtering conditions, the Bluetooth filtering condition may also be other filtering conditions, for example, the device name of the Bluetooth device and the device name of the electronic device have the same key nouns, for example, the device name of the Bluetooth device is user A's mobile phone, the device name of the electronic device is user A's computer, and the device name of the Bluetooth device and the device name of the electronic device have the same key noun: user A, then the Bluetooth information is considered to meet the Bluetooth filtering condition. On the contrary, if the device name of the Bluetooth device is user A's mobile phone, the device name of the electronic device is user B's computer, and the device name of the Bluetooth device and the device name of the electronic device do not have the same key nouns, then the Bluetooth information is considered to not meet the Bluetooth filtering condition. This application does not limit the filtering conditions.

[0067] Optionally, the Bluetooth filtering condition can also be multiple Bluetooth filtering conditions. When there are multiple Bluetooth filtering conditions, there are two situations: one is that when the Bluetooth information satisfies multiple Bluetooth filtering conditions at the same time, the Bluetooth information will not be filtered; the other is that when the Bluetooth information satisfies any one of the multiple Bluetooth filtering conditions, the Bluetooth information will not be filtered. The following are examples of the two situations:

[0068] When a Bluetooth message satisfies multiple Bluetooth filtering conditions at the same time, the Bluetooth message will not be filtered out. For example, the multiple Bluetooth filtering conditions are Bluetooth filtering condition A, Bluetooth filtering condition B, and Bluetooth filtering condition C. If the Bluetooth message only satisfies Bluetooth filtering condition A and Bluetooth filtering condition B, the Bluetooth message will be filtered; if the Bluetooth message only satisfies Bluetooth filtering condition A, the Bluetooth message will be filtered; if the Bluetooth message satisfies Bluetooth filtering condition A, Bluetooth filtering condition B, and Bluetooth filtering condition C, the Bluetooth message will not be filtered.

[0069] When the Bluetooth information meets any one of the multiple Bluetooth filtering conditions, the Bluetooth information will not be filtered out. For example, the multiple Bluetooth filtering conditions are Bluetooth filtering condition A, Bluetooth filtering condition B, and Bluetooth filtering condition C. If the Bluetooth information only meets Bluetooth filtering condition A and Bluetooth filtering condition B, the Bluetooth information will not be filtered; if the Bluetooth information only meets Bluetooth filtering condition A, the Bluetooth information will not be filtered; if the Bluetooth information does not meet Bluetooth filtering condition A, Bluetooth filtering condition B, and Bluetooth filtering condition C, the Bluetooth information will be filtered.

[0070] In a possible embodiment, the Bluetooth filtering condition is set by a user through an application layer.

[0071] Exemplarily, the user sets the Bluetooth devices with MAC addresses A and B to meet the Bluetooth filtering condition through the application layer. If the MAC address of the Bluetooth device is MAC address A, the Bluetooth information of the Bluetooth device meets the Bluetooth filtering condition.

[0072] In a possible embodiment, the user can determine one or more Bluetooth filter conditions from a plurality of pre-set filter conditions through the Bluetooth setting interface of the electronic device. For example, the pre-set conditions include: Bluetooth filter condition A, Bluetooth filter condition B, and Bluetooth filter condition C. The user can select Bluetooth filter condition A, and the application layer sends the Bluetooth filter condition A to the first chip through a dedicated channel.

[0073] The Bluetooth settings interface above can be Figure 3A As shown, the user can turn on the switches corresponding to the preset multiple filtering conditions (such as Figure 3A 301 in the figure) to set the filtering condition in the first chip of the electronic device. Figure 3B As shown, users can select the corresponding Bluetooth filter conditions (such as Figure 3B Option marked with 302 in the figure) to set the filtering condition in the first chip of the electronic device.

[0074] Among the above Figure 3A and Figure 3B This is for example only, and this application does not limit the specific interface diagram of the Bluetooth setting interface.

[0075] Optionally, the Bluetooth filtering condition may be a filtering condition pre-set in the system by a developer.

[0076] Optionally, the Bluetooth filter condition can also be a combination of the Bluetooth filter condition pre-set in the system by the developer and the Bluetooth filter condition customized by the user. For example, the developer pre-sets Bluetooth filter condition A, and the user customizes and supplements the Bluetooth filter condition. Alternatively, the developer pre-sets the Bluetooth filter condition, and the user customizes and supplements the Bluetooth filter condition. The following are examples of the two situations:

[0077] Case 1: The developer pre-sets Bluetooth filter condition A, and the user customizes and supplements Bluetooth filter condition B.

[0078] The Bluetooth information meets the Bluetooth filtering condition preset by the developer, or meets the Bluetooth filtering condition customized by the user.

[0079] For example, the developer pre-sets the Bluetooth filtering condition in the system as the account information of the Bluetooth device being the same as the account information of the electronic device, and the user-defined Bluetooth filtering condition is the Bluetooth devices with MAC addresses of MAC address A and MAC address B. If the account information of the Bluetooth device is the same as the account information of the electronic device, and the MAC address of the Bluetooth device is MAC address C, then the Bluetooth information of the Bluetooth device meets the Bluetooth filtering condition; if the account information of the Bluetooth device is different from the account information of the electronic device, and the MAC address of the Bluetooth device is MAC address A, then the Bluetooth information of the Bluetooth device meets the Bluetooth filtering condition.

[0080] Alternatively, the Bluetooth information meets the Bluetooth filtering condition preset by the developer and meets the Bluetooth filtering condition customized by the user.

[0081] For example, the developer pre-sets the Bluetooth filtering condition in the system as the account information of the Bluetooth device being the same as the account information of the electronic device, and the user-defined Bluetooth filtering condition is the Bluetooth devices with MAC addresses of MAC address A and MAC address B. If the account information of the Bluetooth device is the same as the account information of the electronic device, and the MAC address of the Bluetooth device is MAC address C, then the Bluetooth information of the Bluetooth device does not meet the Bluetooth filtering condition; if the account information of the Bluetooth device is the same as the account information of the electronic device, and the MAC address of the Bluetooth device is MAC address A, then the Bluetooth information of the Bluetooth device meets the Bluetooth filtering condition.

[0082] Case 2: The developer presets Bluetooth filter condition A, and the user-defined Bluetooth filter condition B overrides the developer's preset Bluetooth filter condition A.

[0083] For example, the developer pre-sets the Bluetooth filtering condition in the system as the account information of the Bluetooth device is the same as the account information of the electronic device, and the user customizes the Bluetooth filtering condition as the Bluetooth device with MAC address A and MAC address B. If the account information of the Bluetooth device is the same as the account information of the electronic device, and the MAC address of the Bluetooth device is MAC address C, then the Bluetooth information of the Bluetooth device does not meet the Bluetooth filtering condition; if the account information of the Bluetooth device is different from the account information of the electronic device, and the MAC address of the Bluetooth device is MAC address A, then the Bluetooth information of the Bluetooth device meets the Bluetooth filtering condition. In other words, the Bluetooth filtering condition after the overwriting is Bluetooth filtering condition B, and the Bluetooth information only needs to meet Bluetooth filtering condition B.

[0084] 203. If the Bluetooth information meets the Bluetooth filtering condition, the first chip reports the Bluetooth information to the application layer.

[0085] In a possible embodiment, the first chip reports the Bluetooth information to the application layer through a dedicated channel between the first chip and the application layer, wherein the Bluetooth information is reported through the dedicated channel without passing through the operating system.

[0086] When the operating system is in a dormant state, the operating system will not be awakened without the operating system reporting Bluetooth information. The dedicated channel is used to transmit data between the first chip and the application layer.

[0087] Optionally, if the Bluetooth information does not satisfy the Bluetooth filtering condition, the Bluetooth information is discarded.

[0088] For example, Figure 4 As shown, Figure 4 A schematic diagram of another Bluetooth filtering provided in an embodiment of the present application, wherein the first chip includes a Bluetooth driver, a Bluetooth protocol stack and Bluetooth firmware. Figure 4 The arc marked with 401 indicates that when the Bluetooth information does not meet the Bluetooth filtering condition, the Bluetooth information is discarded. Figure 4 The straight line marked with 402 indicates that when the Bluetooth information meets the Bluetooth filtering condition, the Bluetooth information is reported.

[0089] See also Figure 5 , Figure 5 A schematic diagram of another Bluetooth filtering method provided in an embodiment of the present application. The Bluetooth information includes a device identifier corresponding to the Bluetooth device.

[0090] 501. The first chip receives Bluetooth information sent by a Bluetooth device, where the Bluetooth information is information sent by the Bluetooth device scanned by the electronic device during active scanning, or information sent by the Bluetooth device monitored by the electronic device during passive scanning.

[0091] Please refer to the description of step 201 above for this step, which will not be elaborated in this application.

[0092] 502. The first chip determines whether the device identifier corresponding to the Bluetooth device exists in the Bluetooth discard list.

[0093] The Bluetooth discard list may be an empty list. If the Bluetooth discard list is not an empty list, the Bluetooth discard list includes at least one device identifier.

[0094] In a possible embodiment, the device identifier in the Bluetooth discard list is the device identifier of the Bluetooth device that the user chooses to disconnect the Bluetooth connection with the electronic device.

[0095] Exemplarily, the electronic device is connected to Bluetooth device A, Bluetooth device B, and Bluetooth device C. The user chooses to disconnect the electronic device from Bluetooth device C. The device identifier of Bluetooth device C is added to the Bluetooth discard list.

[0096] The interface where the user chooses to disconnect the Bluetooth device C can be as follows: Figure 6 As shown, Figure 6 The interface diagram shown is only for example, and the present application does not limit the interface for the user to choose to disconnect the connection of the Bluetooth device C. Figure 6 As shown, Bluetooth device C is Figure 6 A Bluetooth watch 601 marked with 601 in the figure. Click the icon of the Bluetooth watch 601 to display a pop-up window 602. Click the disconnect option in the pop-up window 602 to disconnect the Bluetooth watch 601 from the electronic device. After disconnection, the icon of the Bluetooth watch 601 no longer exists in the interface, or the icon of the Bluetooth watch 601 turns gray.

[0097] Through the above method, when a user manually disconnects a Bluetooth device connected to an electronic device, the disconnected Bluetooth device is added to the Bluetooth discard list to prevent the electronic device from automatically connecting to the Bluetooth device after the user manually disconnects the Bluetooth device.

[0098] In a possible embodiment, the device identifiers of the Bluetooth devices in the Bluetooth discard list correspond one-to-one to the timers; the first timer corresponding to the device identifier of the first Bluetooth device is started when the device identifier of the first Bluetooth device is added to the Bluetooth discard list; the device identifier of the first Bluetooth device is the device identifier of any Bluetooth device in the Bluetooth discard list; the method also includes: if the first timer times out, the first chip deletes the device identifier of the first Bluetooth device from the Bluetooth discard list.

[0099] Among them, the device identification of each Bluetooth device in the Bluetooth discard list corresponds to a timer. For example, the Bluetooth discard list includes Bluetooth device A and Bluetooth device B. Bluetooth device A corresponds to timer A, and timer A starts counting when Bluetooth device A is added to the Bluetooth discard list; Bluetooth device B corresponds to timer B, and timer B starts counting when Bluetooth device B is added to the Bluetooth discard list.

[0100] Exemplarily, when the device identifier of Bluetooth device C is added to the Bluetooth discard list, a timer is started. The timer starts counting from when the device identifier of Bluetooth device C is added to the Bluetooth discard list. The timer is preset to time out after 1 hour. Then, the device identifier of Bluetooth device C is deleted from the Bluetooth discard list one hour after being added to the Bluetooth discard list.

[0101] Through the above method, the device identification of the Bluetooth device in the Bluetooth discard list has time validity, so that after a period of time, the electronic device can still establish a Bluetooth connection with the Bluetooth device in the Bluetooth discard list.

[0102] 503. If the Bluetooth information exists in the Bluetooth discard list, the first chip discards the Bluetooth information.

[0103] 504. If the Bluetooth information does not exist in the Bluetooth discard list, the first chip determines whether the Bluetooth information meets the Bluetooth filtering condition.

[0104] 505. The first chip determines whether the Bluetooth information meets the Bluetooth filtering condition.

[0105] Please refer to the description of step 202 above for this step, which will not be elaborated in this application.

[0106] 506. If the Bluetooth information meets the Bluetooth filtering condition, the first chip reports the Bluetooth information to the application layer.

[0107] Please refer to the description of step 203 above for this step, which will not be elaborated in this application.

[0108] Some embodiments of the present application provide a chip system, which is applied to a terminal device. The chip system includes at least one processor and an interface, and the interface is used to receive instructions and transmit them to at least one processor; at least one processor executes the instructions so that the terminal device executes the above-mentioned paging message processing method. Among them, the chip system can be a modem, or a system on chip (System on Chip, Soc) including a modem, and the above-mentioned method can be implemented by a modem.

[0109] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

[0110] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A Bluetooth filtering method, characterized in that: A first chip is applied to an electronic device, the electronic device has a first chip and a second chip, the second chip is a chip that interacts with an application layer through an operating system, and the method includes: Receiving Bluetooth information sent by a Bluetooth device, where the Bluetooth information is information sent by the Bluetooth device scanned by the electronic device during active scanning, or information sent by the Bluetooth device monitored by the electronic device during passive scanning; Determining whether the Bluetooth information meets the Bluetooth filtering condition; If the Bluetooth information meets the Bluetooth filtering condition, the Bluetooth information is reported to the application layer.

2. The method according to claim 1, characterized in that The reporting the Bluetooth information to the application layer includes: The Bluetooth information is reported to the application layer through a dedicated channel between the first chip and the application layer, wherein the Bluetooth information is reported through the dedicated channel without passing through an operating system.

3. The method according to claim 1 or 2, characterized in that: The Bluetooth filtering condition is set by the user through the application layer.

4. The method according to any one of claims 1 to 3, characterized in that: The Bluetooth information includes account information of the Bluetooth device, and the Bluetooth filtering condition includes that the account information of the Bluetooth device is the same as the account information of the electronic device.

5. The method according to any one of claims 1 to 4, characterized in that: The Bluetooth information includes a device identifier corresponding to the Bluetooth device; Before determining whether the Bluetooth information satisfies the Bluetooth filtering condition, the method further includes: Determine whether the device identifier corresponding to the Bluetooth device exists in the Bluetooth discard list; If the Bluetooth information exists in the Bluetooth discard list, the Bluetooth information is discarded; If the Bluetooth information does not exist in the Bluetooth discard list, it is determined whether the Bluetooth information meets the Bluetooth filtering condition.

6. The method according to claim 5, characterized in that The device identifiers in the Bluetooth discard list are device identifiers of Bluetooth devices that the user chooses to disconnect the Bluetooth connection with the electronic device.

7. The method according to claim 6, characterized in that The device identifiers of the Bluetooth devices in the Bluetooth discard list correspond to the timers one by one; the first timer corresponding to the device identifier of the first Bluetooth device is started when the device identifier of the first Bluetooth device is added to the Bluetooth discard list; the device identifier of the first Bluetooth device is the device identifier of any Bluetooth device in the Bluetooth discard list; The method further comprises: If the first timer times out, the device identification of the first Bluetooth device is deleted from the Bluetooth discard list.

8. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: If the Bluetooth information does not meet the Bluetooth filtering condition, the Bluetooth information is discarded.

9. An electronic device, comprising one or more memories and one or more processors, characterized in that: The memory is used to store a computer program; the processor is used to call the computer program so that the electronic device executes the method according to any one of claims 1 to 8.

10. A computer storage medium, characterized in that: include: Computer instructions; when the computer instructions are executed on an electronic device, the electronic device executes the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Data processing method, Bluetooth module, electronic equipment and readable storage medium

    CN110784830A

  • Display device and method for scanning external Bluetooth device

    CN112073954A

  • Bluetooth connection method and device and electronic equipment

    CN112929860A

  • Bluetooth device pairing connection method, electronic device, Bluetooth device and terminal system

    CN113490158A

  • Data processing method, filtering information quantity determination and configuration method, equipment and medium

    CN113965889A