Bluetooth filtering method and related device

By introducing a Bluetooth filtering method into the first chip of an electronic device, unnecessary Bluetooth message transmissions are reduced, solving the high power consumption problem caused by Bluetooth device scanning and listening, and achieving power saving and accurate information transmission.

CN119562234BActive Publication Date: 2026-05-19HONOR DEVICE CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HONOR DEVICE CO LTD
Filing Date
2023-08-25
Publication Date
2026-05-19

AI Technical Summary

Technical Problem

Bluetooth devices generate a large number of Bluetooth messages during scanning and listening, resulting in excessive power consumption.

Method used

By introducing a Bluetooth filtering method into the first chip of the electronic device, it is possible to determine whether Bluetooth information meets the filtering conditions, and report the information to the application layer when the conditions are met, thereby reducing unnecessary Bluetooth message transmission.

Benefits of technology

It reduces the power consumption of electronic devices and improves the efficiency and accuracy of Bluetooth information transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119562234B_ABST
    Figure CN119562234B_ABST
Patent Text Reader

Abstract

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

Description

Technical Field

[0001] This application relates to the field of wireless communication, and in particular to Bluetooth filtering methods and related devices. Background Technology

[0002] With the rapid development of Bluetooth technology, more and more manufacturers are using Bluetooth to enable personal computers (PCs) to perform super terminal services. For example, this includes super calling services between mobile phones and PCs, and super keyboard and mouse services between mobile phones and PCs. In the super calling service, after the mobile phone and PC are connected via Bluetooth, when the mobile phone receives a call request, the PC will also be notified of the call request. The user can accept the call request on either the mobile phone or the PC and conduct the call. In the super keyboard and mouse service, after the mobile phone and PC are connected via Bluetooth, the keyboard and mouse connected to the PC can be used simultaneously on both the PC and the mobile phone. For example, a user can use the mouse to operate on the PC, or use the mouse to operate on the mobile phone.

[0003] The aforementioned super terminal service is a self-discovery and self-organizing network service, meaning that electronic devices need to continuously discover nearby Bluetooth devices and report them. Because the electronic device reports all scanned or monitored Bluetooth packets, the large number of reported Bluetooth packets results in extremely high power consumption. Summary of the Invention

[0004] This application provides a Bluetooth filtering method and related equipment, 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 this application provide a Bluetooth filtering method. This method is applied to a first chip in an electronic device, which has a first chip and a second chip. The second chip is a chip that interacts with the application layer through an operating system. The Bluetooth filtering method may include: receiving Bluetooth information sent by a Bluetooth device, wherein 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 listened to by the electronic device during passive scanning; determining whether the Bluetooth information meets Bluetooth filtering conditions; and if the Bluetooth information meets the Bluetooth filtering conditions, reporting the Bluetooth information to the application layer.

[0006] By adding filtering conditions to the newly added first chip using the above method, both Bluetooth information scanned by the electronic device during active scanning and Bluetooth information listened to during passive scanning are filtered. This reduces the number of reported Bluetooth messages and saves power consumption for the electronic device.

[0007] In one possible implementation, Bluetooth information is reported to the application layer through a dedicated channel between the first chip and the application layer, wherein the reporting of Bluetooth information through the dedicated channel does not go through the operating system.

[0008] Using the above method, the first chip interacts with the application layer through a dedicated channel, so that the first chip does not need to wake up the operating system when reporting Bluetooth information, thus saving energy consumption during the reporting process.

[0009] In one possible implementation, Bluetooth filtering conditions are set by the user through the application layer.

[0010] Using the methods described above, users can customize Bluetooth filtering conditions, making them more flexible and comprehensive.

[0011] In one possible implementation, the Bluetooth filtering conditions include the Bluetooth device's account information being the same as the electronic device's account information, and the Bluetooth information being the Bluetooth device's account information.

[0012] Using the methods described above, devices logged in with the same account are usually belonging to the same user. Therefore, setting the Bluetooth filter to match the account information of the Bluetooth device with that of the electronic device can accurately filter Bluetooth information.

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

[0014] By using the above method, before determining whether Bluetooth information meets the Bluetooth filtering conditions, it is first determined whether the Bluetooth information exists in the Bluetooth discard list. Multiple filtering processes make the selected Bluetooth information more accurate.

[0015] In one possible implementation, after reporting Bluetooth information to the application layer, the device identifier in the Bluetooth drop list is the device identifier of the Bluetooth device that the user selected to disconnect from the electronic device's Bluetooth connection.

[0016] Using 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, preventing the electronic device from automatically reconnecting to the Bluetooth device after the user manually disconnects it.

[0017] In one possible implementation, the device identifiers of Bluetooth devices in the Bluetooth discard list correspond one-to-one with timers; the first timer corresponding to the device identifier of the first Bluetooth device starts 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 includes: if the first timer times out, the device identifier of the first Bluetooth device is deleted from the Bluetooth discard list.

[0018] Using the method described above, the device identifiers of Bluetooth devices in the Bluetooth discard list have an expiration date. This allows electronic devices to re-establish Bluetooth connections with these discarded Bluetooth devices after a certain period of time.

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

[0020] In a second aspect, this 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 memories being used to store computer program code, the computer program code including computer instructions, and the one or more processors invoking the computer instructions to cause the terminal device to perform the method described in the first aspect or any implementation thereof.

[0021] Thirdly, this application provides a computer storage medium. The computer storage medium includes computer instructions that, when executed on a terminal device, cause the terminal device to perform the method described in the first aspect or any implementation thereof.

[0022] Fourthly, embodiments of this application provide a chip. This chip can be applied to a terminal device. The chip includes one or more processors, which are used to invoke computer instructions to cause the terminal device to perform the method described in the first aspect or any implementation thereof. Attached Figure Description

[0023] Figure 1A A system architecture diagram for Bluetooth filtering provided in this application embodiment;

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

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

[0026] Figure 2 A schematic flowchart illustrating a Bluetooth filtering method provided in an embodiment of this application;

[0027] Figure 3A A schematic diagram of a Bluetooth settings interface provided in an embodiment of this application;

[0028] Figure 3B A schematic diagram of another Bluetooth settings interface provided in an embodiment of this application;

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

[0030] Figure 5 A flowchart illustrating another Bluetooth filtering method provided in an embodiment of this application;

[0031] Figure 6 This is a schematic diagram of the interface when disconnecting a Bluetooth device, as provided in an embodiment of this application. Detailed Implementation

[0032] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B; "and / or" in the text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more than two.

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

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

[0035] To better understand the embodiments of this application, some technical terms involved in the embodiments of this application will be introduced below:

[0036] Bluetooth: Bluetooth technology is an open, global standard for wireless data and voice communication. It's a special short-range wireless technology that establishes a communication environment for fixed and mobile devices based on low-cost, short-range wireless connectivity. It supports short-range communication (typically within 10 meters) between devices, enabling wireless information exchange between numerous devices, including mobile phones, wireless headsets, laptops, and related peripherals. Bluetooth technology effectively simplifies communication between mobile communication terminal devices.

[0037] Active and passive scanning: Active and passive scanning are steps in the Bluetooth Low Energy (BLE) connection establishment process. Active scanning refers to the central device initiating a scan to search for surrounding peripheral devices. Passive scanning occurs when peripheral devices are discovered by the central device while broadcasting their information. Scanning allows the central device to obtain information such as the device's unique identifier and device name.

[0038] Super Terminal: A super terminal refers to a device 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 different terminals to achieve rapid connection, mutual assistance, and resource sharing.

[0039] A super terminal can include a core device / central device and collaborative devices / associative devices. The core device is the control center of the super terminal system, responsible for device management, service management, and service scheduling. The core device connects to one or more associated devices to form a super terminal. Associated devices can be electronic devices located on the same communication network as the core device (such as a mobile phone), for example, electronic devices located on the same WiFi network. Associated devices can also be electronic devices whose login account is the same as the core device's login account, or whose login account belongs to the same group as the core device's login account (such as a family account). Associated devices can also be electronic devices that have established a trusted relationship (or pairing) with the core device through other means, such as electronic devices paired with Bluetooth, electronic devices that have connected to a hotspot shared by a mobile phone, or mobile phones that have connected to the hotspot of that electronic device.

[0040] Different connected devices can connect to and collaborate with the core device to achieve different functions. For example, a mobile phone (core device) and a laptop (connected device) can form a super terminal, enabling screen mirroring of the mobile phone interface onto the laptop; a mobile phone (core device) and a smart speaker (connected device) can form a super terminal, enabling remote control of the smart speaker via mobile phone, and so on.

[0041] The Bluetooth system involved in the embodiments of this application is described below:

[0042] Figure 1A A schematic diagram of the system architecture for a possible, non-limiting 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 has Bluetooth functionality with all three devices. The electronic device can transmit data with each of these devices. The electronic device can discover Bluetooth device 1, Bluetooth device 2, and Bluetooth device 3 through active or passive scanning. Figure 1A Only three Bluetooth devices are shown in this application. More Bluetooth devices can be included in a Bluetooth system. This application does not limit the number of Bluetooth devices.

[0043] This electronic device can also be called a terminal, user equipment (UE), mobile station, mobile terminal, etc. It can be widely used in various scenarios, such as 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 grids, smart furniture, smart offices, smart wearables, smart transportation, and smart cities. Electronic devices can include mobile phones, tablets, computers with wireless transceiver capabilities, wearable devices, vehicles, drones, helicopters, airplanes, ships, robots, robotic arms, smart home devices, etc. This Bluetooth device can be a mobile phone, keyboard, mouse, tablet, computer, wearable device, vehicle, drone, or other Bluetooth-enabled electronic device.

[0044] This electronic device can communicate with Bluetooth devices via HyperTerminal services. Specifically, it can communicate with Bluetooth devices via HyperCall and HyperKey / Mouse services. For details on HyperTerminal services, please refer to the HyperTerminal section above.

[0045] A hardware structure of electronic devices, 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 understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device. In other embodiments, the electronic device may include more components than those illustrated, such as a battery, display screen, speaker, headphone jack, etc., or combine some components, separate some components, or arrange different components. Figure 1B The components shown can be implemented in hardware, software, or a combination of both.

[0047] The first chip includes a processor 1, which may include one or more processing units. For example, the processor may include an application processor (AP), a modem (also known as a baseband processor), a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), and / or a neural network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors. The processor is the nerve center and command center of the terminal. The controller generates operation control signals based on instruction opcodes and timing signals to control instruction fetching and execution.

[0048] The second chip includes a processor 2, which can be the same processor as processor 1, or a different processor with greater computing power. Similarly, processor 2 can also include one or more processing units. This application will not elaborate on the processing units.

[0049] The wireless communication function of this electronic device can be implemented through a wireless communication module. In some embodiments, the electronic device further includes antenna 1 and antenna 2, with antenna 1 coupled to wireless communication module 1 and antenna 2 coupled to wireless communication module 2, enabling the electronic device to communicate with other terminals via wireless communication technology.

[0050] Wireless communication module 1 and wireless communication module 2 can provide solutions for wireless communication applications in electronic devices, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. 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 signal, and sends the processed signal to the processor. The wireless communication module can also receive signals to be transmitted from the processor, modulate and amplify them, and then convert them into electromagnetic waves for radiation via the antenna.

[0051] In addition, an operating system runs on top of the aforementioned components. Examples include Apple's OS and Microsoft's Windows operating system.

[0052] A software architecture of electronic devices, such as Figure 1C As shown. Figure 1C As shown, the top layer of this software architecture is the application layer, which can include a series of application packages. These application packages can include applications such as gallery, calendar, Bluetooth, music, and video. In this electronic device, the first chip and the application layer transmit data through a dedicated channel. For example, the first chip reports to the application layer through an Application Programming Interface (API), while the second chip and the application layer transmit data through the operating system. This operating system can be Windows, developed by Microsoft, or similar.

[0053] The first chip includes a Bluetooth module providing Bluetooth functionality and a Wi-Fi module providing Wi-Fi functionality. Similarly, the second chip also includes a Bluetooth module providing Bluetooth functionality and a Wi-Fi module providing Wi-Fi functionality. In the first chip, the Bluetooth module includes a Bluetooth driver, a Bluetooth protocol stack, and Bluetooth firmware. The Bluetooth driver is software that allows a computer to connect to other Bluetooth devices. The Bluetooth protocol stack is a defined set of protocol specifications aimed at allowing Bluetooth applications that conform to the specifications to interoperate with each other. The Bluetooth firmware is a program written to a programmable read-only memory.

[0054] The Bluetooth filtering method provided in the embodiments of this application is further described below:

[0055] Please see Figure 2 , Figure 2 This is a flowchart illustrating a Bluetooth filtering method provided in an embodiment of this application. The Bluetooth filtering 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 being the chip that interacts with the application layer through the operating system. Wherein:

[0056] 201. The first chip receives Bluetooth information sent by a Bluetooth device. The Bluetooth information is either information sent by a Bluetooth device that the electronic device actively scans, or information sent by a Bluetooth device that the electronic device passively scans.

[0057] The active and passive scanning methods are described above and will not be repeated here. This Bluetooth device, like other electronic devices, has Bluetooth functionality. It can be a mobile phone, keyboard, mouse, tablet computer, or watch, and other devices with Bluetooth capabilities.

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

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

[0060] In one possible embodiment, the Bluetooth filtering condition includes the fact 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 for the Bluetooth device refers to the brand account it logged into. When the Bluetooth device and the electronic device log into the same brand account, the account information of the Bluetooth device is identical to that of the electronic device, and this Bluetooth information meets the Bluetooth filtering criteria.

[0062] Using the methods described above, devices logged in with the same account are usually belonging to the same user. Therefore, setting the Bluetooth filter to match the account information of the Bluetooth device with that of the electronic device can accurately filter Bluetooth information.

[0063] Optionally, the Bluetooth filtering criteria may also include account information that is associated with the account information of the Bluetooth device and the electronic device.

[0064] The account information for Bluetooth devices can be found in the above description and will not be repeated here. When the brand account logged into by the Bluetooth device is the same family-shared account of the brand account logged into 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 electronic device is logged into brand account A, specifically the mother's computer in the family. The Bluetooth device is logged into brand account B, specifically the father's mobile phone in the family. Because the mother sets brand account B as a family-shared account for 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 two filtering conditions mentioned above, other filtering conditions can also be used. For example, if the device name of the Bluetooth device and the device name of the electronic device share the same keyword, such as "User A's mobile phone" and "User A's computer," then the Bluetooth information is considered to meet the Bluetooth filtering conditions. Conversely, if the device name of the Bluetooth device is "User A's mobile phone" and the device name of the electronic device is "User B's computer," then the Bluetooth information is considered not to meet the Bluetooth filtering conditions. This application does not limit the filtering conditions.

[0067] Optionally, there can be multiple Bluetooth filtering conditions. When there are multiple Bluetooth filtering conditions, there are two scenarios: one is that the Bluetooth information meets multiple Bluetooth filtering conditions simultaneously, in which case the Bluetooth information will not be filtered; the other is that the Bluetooth information meets any one of the multiple Bluetooth filtering conditions, in which case the Bluetooth information will not be filtered. Examples of these two scenarios are provided below:

[0068] If a Bluetooth message meets multiple Bluetooth filtering conditions simultaneously, it will not be filtered out. For example, if the multiple Bluetooth filtering conditions are Bluetooth filtering condition A, Bluetooth filtering condition B, and Bluetooth filtering condition C, then the Bluetooth message will be filtered if it only meets Bluetooth filtering condition A and Bluetooth filtering condition B; it will be filtered if it only meets Bluetooth filtering condition A; and it will not be filtered if it meets Bluetooth filtering conditions A, B, and C.

[0069] Bluetooth messages will not be filtered out if they satisfy any one of the multiple Bluetooth filtering conditions. For example, if the multiple Bluetooth filtering conditions are Bluetooth filtering condition A, Bluetooth filtering condition B, and Bluetooth filtering condition C, then the Bluetooth message will not be filtered if it only satisfies Bluetooth filtering condition A and Bluetooth filtering condition B; it will not be filtered if it only satisfies Bluetooth filtering condition A; and it will be filtered if it does not satisfy Bluetooth filtering condition A, Bluetooth filtering condition B, or Bluetooth filtering condition C.

[0070] In one possible embodiment, the Bluetooth filtering conditions are set by the user through the application layer.

[0071] For example, a user can configure Bluetooth devices with MAC addresses A and B to meet Bluetooth filtering conditions through the application layer. If the Bluetooth device's MAC address is MAC address A, then the Bluetooth information of that device meets the Bluetooth filtering conditions.

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

[0073] The Bluetooth settings interface described above can be viewed as follows: Figure 3A As shown, users can turn on the switches corresponding to multiple preset filter conditions (such as...). Figure 3A The switch marked 301 is used to set the filtering conditions in the first chip of the electronic device. Or, as... Figure 3B As shown, users can select the corresponding Bluetooth filtering conditions (such as...). Figure 3B (Options marked 302) are used to set the filtering conditions in the first chip of the electronic device.

[0074] The above Figure 3A and Figure 3B This application is merely an example and does not limit the specific interface diagram of the Bluetooth settings interface.

[0075] Optionally, the Bluetooth filtering conditions can be pre-set by the developers in the system.

[0076] Optionally, the Bluetooth filtering conditions can also combine Bluetooth filtering conditions pre-set by developers in the system with user-defined Bluetooth filtering conditions. For example, developers pre-set Bluetooth filtering condition A, and users supplement it with custom Bluetooth filtering conditions. Alternatively, Bluetooth filtering conditions can be pre-set by developers, and user-defined Bluetooth filtering conditions can override the developer-pre-set conditions. Examples of these two scenarios are given below:

[0077] Scenario 1: The developers pre-set Bluetooth filter condition A, and the user added custom Bluetooth filter condition B.

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

[0079] For example, developers may pre-set the Bluetooth filtering condition in the system to be that the account information of the Bluetooth device is the same as the account information of the electronic device, while user-defined Bluetooth filtering conditions may be set for Bluetooth devices with MAC addresses A and 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 satisfies 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 satisfies the Bluetooth filtering condition.

[0080] Alternatively, the Bluetooth information meets both the Bluetooth filtering conditions pre-set by the developer and the Bluetooth filtering conditions set by the user.

[0081] For example, developers may pre-set the Bluetooth filtering condition in the system to be that the account information of the Bluetooth device is the same as the account information of the electronic device, while user-defined Bluetooth filtering conditions may be set for Bluetooth devices with MAC addresses A and B. If the account information of the Bluetooth device is the same as the account information of the electronic device, but the MAC address of the Bluetooth device is MAC address C, then the Bluetooth information of that 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, but the MAC address of the Bluetooth device is MAC address A, then the Bluetooth information of that Bluetooth device meets the Bluetooth filtering condition.

[0082] Scenario 2: The developer has pre-set Bluetooth filter condition A, and the user-defined Bluetooth filter condition B overrides the developer's pre-set Bluetooth filter condition A.

[0083] For example, developers might pre-set the Bluetooth filtering condition in the system to be that the account information of the Bluetooth device is the same as the account information of the electronic device. User-defined Bluetooth filtering conditions might be for Bluetooth devices with MAC addresses A and B. If the Bluetooth device's account information is the same as the electronic device's account information, but the Bluetooth device's MAC address is MAC address C, then the Bluetooth information from that device does not meet the Bluetooth filtering condition. If the Bluetooth device's account information is different from the electronic device's account information, but the Bluetooth device's MAC address is MAC address A, then the Bluetooth information from that device meets the Bluetooth filtering condition. In other words, the overridden Bluetooth filtering condition is Bluetooth filtering condition B, and Bluetooth information only needs to meet Bluetooth filtering condition B.

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

[0085] In one possible embodiment, the first chip reports Bluetooth information to the application layer through a dedicated channel between the first chip and the application layer, wherein the reporting of Bluetooth information through the dedicated channel does not involve the operating system.

[0086] When the operating system is in sleep mode, it will not wake up unless Bluetooth information is reported by the operating system. This dedicated channel is used to transmit data between the first chip and the application layer.

[0087] Optionally, if the Bluetooth information does not meet the Bluetooth filtering conditions, the Bluetooth information will be discarded.

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

[0089] Please see Figure 5 , Figure 5 This is a flowchart illustrating another Bluetooth filtering method provided in an embodiment of this application. The Bluetooth information includes the device identifier corresponding to the Bluetooth device.

[0090] 501. The first chip receives Bluetooth information sent by a Bluetooth device. The Bluetooth information is either information sent by a Bluetooth device that the electronic device actively scans for, or information sent by a Bluetooth device that the electronic device passively scans for.

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

[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 can be an empty list. If the Bluetooth discard list is not empty, it includes at least one device identifier.

[0094] In one possible embodiment, the device identifier in the Bluetooth drop list is the device identifier of the Bluetooth device that the user selected to disconnect from the electronic device via Bluetooth.

[0095] For example, an 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 then added to the Bluetooth drop list.

[0096] The interface for users to disconnect Bluetooth device C can be as follows: Figure 6 As shown, Figure 6 The interface diagram shown is for illustrative purposes only; this application does not limit the interface for users to select and disconnect Bluetooth device C. Figure 6 As shown, Bluetooth device C is Figure 6 The Bluetooth watch 601 is marked with 601. Clicking the icon of the Bluetooth watch 601 will display a pop-up window 602. Clicking the "Disconnect" option in pop-up window 602 will disconnect the Bluetooth watch 601 from the electronic device. After disconnection, the icon of the Bluetooth watch 601 will no longer appear on this interface, or the icon of the Bluetooth watch 601 will turn gray.

[0097] Using 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, preventing the electronic device from automatically reconnecting to the Bluetooth device after the user manually disconnects it.

[0098] In one possible embodiment, the device identifiers of Bluetooth devices in the Bluetooth discard list correspond one-to-one with timers; the first timer corresponding to the device identifier of the first Bluetooth device starts 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 includes: if the first timer times out, the first chip removes the device identifier of the first Bluetooth device from the Bluetooth discard list.

[0099] Each Bluetooth device in the Bluetooth discard list has a corresponding device identifier and a timer. For example, if the Bluetooth discard list includes Bluetooth device A and Bluetooth device B, Bluetooth device A corresponds to timer A, which starts counting when Bluetooth device A is added to the Bluetooth discard list; Bluetooth device B corresponds to timer B, which starts counting when Bluetooth device B is added to the Bluetooth discard list.

[0100] For example, when the device identifier of Bluetooth device C is added to the Bluetooth discard list, a timer is started. This timer begins counting from the moment the device identifier of Bluetooth device C is added to the Bluetooth discard list. The timer is preset to expire after one hour. Therefore, the device identifier of Bluetooth device C is added to the Bluetooth discard list and then removed from it one hour later.

[0101] Using the method described above, the device identifiers of Bluetooth devices in the Bluetooth discard list have an expiration date. This allows electronic devices to re-establish Bluetooth connections with these discarded Bluetooth devices after a certain period of time.

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

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

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

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

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

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

[0108] Some embodiments of this application provide a chip system applied to a terminal device. The chip system includes at least one processor and an interface for receiving instructions and transmitting them to the at least one processor. The at least one processor executes instructions to cause the terminal device to perform the paging message processing method described above. The chip system may be a modem or a system-on-a-chip (SoC) including a modem, and the above method may be implemented by a modem.

[0109] The above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

[0110] The above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

Claims

1. A Bluetooth filtering method, characterized in that, A first chip is used 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 via an operating system, the method comprising: Receive Bluetooth information sent by a Bluetooth device, wherein the Bluetooth information is information sent by the Bluetooth device that the electronic device actively scans, or information sent by the Bluetooth device that the electronic device passively scans; Determine whether the Bluetooth information meets the Bluetooth filtering conditions; If the Bluetooth information meets the Bluetooth filtering conditions, the Bluetooth information is reported to the application layer through a dedicated channel between the first chip and the application layer. The reporting of the Bluetooth information through the dedicated channel does not involve the operating system.

2. The method according to claim 1, characterized in that, The Bluetooth filtering conditions are set by the user through the application layer.

3. The method according to any one of claims 2, characterized in that, The Bluetooth information includes the account information of the Bluetooth device, and the Bluetooth filtering conditions include the fact that the account information of the Bluetooth device is the same as the account information of the electronic device.

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

5. The method according to claim 4, characterized in that, The device identifier in the Bluetooth discard list is the device identifier of the Bluetooth device that the user selected to disconnect from the electronic device via Bluetooth.

6. The method according to claim 5, characterized in that, The device identifiers of the Bluetooth devices in the Bluetooth discard list correspond one-to-one with the timers; the first timer corresponding to the device identifier of the first Bluetooth device starts when the device identifier of the first Bluetooth device is added to the Bluetooth discard list; the device identifier of the first Bluetooth device can be the device identifier of any Bluetooth device in the Bluetooth discard list. The method further includes: If the first timer times out, the device identifier of the first Bluetooth device will be removed from the Bluetooth discard list.

7. The method according to any one of claims 1-3, characterized in that, The method further includes: If the Bluetooth information does not meet the Bluetooth filtering conditions, the Bluetooth information will be discarded.

8. 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 invoke the computer program, causing the electronic device to perform the method of any one of claims 1-7.

9. A computer storage medium, characterized in that, include: The computer storage medium is used to store computer instructions; when the computer instructions are executed by the electronic device, the electronic device performs the method of any one of claims 1-7.