Information processing methods and apparatus, electronic devices and storage media

By pre-saving Bluetooth device information and utilizing filtering and update strategies, the Bluetooth connection latency problem was solved, enabling fast Bluetooth connections.

CN115052276BActive Publication Date: 2026-03-13BEIJING XIAOMI MOBILE SOFTWARE CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-31
Publication Date
2026-03-13

AI Technical Summary

Technical Problem

Bluetooth connection establishment has a long delay, which cannot meet the needs of scenarios that require quick acquisition of information about surrounding devices.

Method used

By pre-saving Bluetooth device information, listening for and filtering device information on the Bluetooth broadcast channel using broadcast filtering configuration information, saving device information using FIFO queues or update policies, and directly establishing a Bluetooth connection based on the pre-saved device information.

Benefits of technology

It reduces Bluetooth connection establishment latency and improves Bluetooth connection speed and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115052276B_ABST
    Figure CN115052276B_ABST
Patent Text Reader

Abstract

This disclosure relates to an information processing method and apparatus, an electronic device, and a storage medium. An embodiment of this disclosure provides an information processing method performed by a first device, which may include: determining a Bluetooth connection requirement of the first device; and when it is determined that the first device has the Bluetooth connection requirement, establishing a Bluetooth connection with the second device based on pre-saved device information of the second device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of communication technology, and in particular to an information processing method and apparatus, electronic device and storage medium. Background Technology

[0002] Bluetooth is a wireless communication technology used to enable fixed and mobile devices to exchange data over short distances, forming personal area networks (PANs). Bluetooth uses short-baud, high-frequency radio waves, communicating in the ISM band from 2.4 to 2.485 GHz. Bluetooth technology is currently used in telecommunications, computers, networking, and consumer electronics. Bluetooth applications also extend to automotive, medical, wearable devices, smart home devices, mobile phones, and other consumer electronics products.

[0003] However, research has found that the Bluetooth connection establishment delay between two devices is relatively large in related technologies. Summary of the Invention

[0004] This disclosure provides an information processing method and apparatus, an electronic device, and a storage medium.

[0005] A first aspect of this disclosure provides an information processing method, executed by a first device, the method comprising:

[0006] Determine the Bluetooth connection requirements of the first device;

[0007] When it is determined that the first device has the Bluetooth connection requirement, a Bluetooth connection is established with the second device based on the pre-saved device information of the second device.

[0008] Based on the above scheme, the method further includes:

[0009] The device information of the second device is obtained by filtering the device information listened to on the Bluetooth broadcast channel according to the broadcast filtering configuration information;

[0010] According to the broadcast configuration information, the device information of the second device is pre-saved in the preset storage space of the first device.

[0011] Based on the above scheme, the broadcast filtering configuration information includes at least one of the following:

[0012] The device information of the alternative device includes at least one of the following: the device type of the alternative device, the device identifier of the alternative device, and the Bluetooth modes supported by the alternative device;

[0013] Filtering parameters are used to determine the second device from the candidate devices.

[0014] Based on the above scheme, the step of filtering the device information intercepted on the Bluetooth broadcast channel according to the broadcast filtering configuration information to obtain the device information of the second device includes:

[0015] Based on the device information of the candidate devices, the device information intercepted on the Bluetooth broadcast channel is filtered to obtain the device information of the candidate devices;

[0016] The second device is determined from the candidate devices based on the service identifier and / or service characteristics included in the filtering parameters.

[0017] Based on the above scheme, the step of pre-saving the device information of the second device in the preset storage space of the first device according to the broadcast configuration information includes:

[0018] According to the broadcast configuration information, the device information of the second device is pre-stored in a first-in-first-out (FIFO) queue in a preset storage space;

[0019] or,

[0020] According to the broadcast saved configuration information, when there is no remaining storage space in the preset storage space, the device information of the second device that has been monitored will be updated in the preset storage space based on the number of times the device information already located in the preset storage space has been used.

[0021] Based on the above scheme, determining that the first device has a Bluetooth connection requirement includes at least one of the following:

[0022] The Bluetooth application on the first device has been detected to be running.

[0023] The Bluetooth enable command from the first device was detected.

[0024] The current time or the current device status of the first device is detected to meet the determination conditions for Bluetooth connection requirements.

[0025] A second aspect of this disclosure provides an information processing apparatus, the apparatus comprising:

[0026] A determination module is used to determine the Bluetooth connection requirements of the first device;

[0027] The connection module is used to establish a Bluetooth connection with the second device based on the pre-saved device information of the second device when it is determined that the first device has the Bluetooth connection requirement.

[0028] Based on the above scheme, the device further includes:

[0029] The monitoring module is used to filter the device information monitored on the Bluetooth broadcast channel according to the broadcast filtering configuration information to obtain the device information of the second device;

[0030] The storage module is used to save configuration information according to the broadcast and to pre-save the device information of the second device in the preset storage space of the first device.

[0031] Based on the above scheme, the broadcast filtering configuration information includes at least one of the following:

[0032] The device information of the alternative device includes at least one of the following: the device type of the alternative device, the device identifier of the alternative device, and the Bluetooth modes supported by the alternative device;

[0033] Filtering parameters are used to determine the second device from the candidate devices.

[0034] Based on the above solution, the monitoring module is specifically used for:

[0035] The device information intercepted on the Bluetooth broadcast channel is filtered based on the device information of the candidate devices to obtain the device information of the candidate devices; the second device is determined from the candidate devices based on the service identifier and / or service characteristics included in the filtering parameters.

[0036] Based on the above scheme, the storage module is specifically used to pre-save the device information of the second device in a first-in-first-out (FIFO) queue within a preset storage space according to the broadcast storage configuration information; or, according to the broadcast storage configuration information, when there is no remaining storage space in the preset storage space, update the monitored device information of the second device in the preset storage space based on the number of times the device information already located in the preset storage space has been used.

[0037] Based on the above scheme, the determining module is specifically used to perform at least one of the following:

[0038] The Bluetooth application on the first device has been detected to be running.

[0039] The Bluetooth enable command from the first device was detected.

[0040] The current time or the current device status of the first device is detected to meet the determination conditions for Bluetooth connection requirements.

[0041] A third aspect of this disclosure provides an electronic device, including:

[0042] Memory used to store processor-executable instructions;

[0043] The processor is connected to the memory;

[0044] The processor is configured to execute the information processing method provided by any of the technical solutions in the first aspect described above.

[0045] A fourth aspect of this disclosure provides a non-transitory computer-readable storage medium, wherein when the instructions in the storage medium are executed by a computer processor, the computer is able to perform the information processing method provided by any of the technical solutions of the first aspect.

[0046] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects:

[0047] When the first device determines that a Bluetooth connection needs to be established, it will directly establish a Bluetooth connection based on the pre-saved device information. This eliminates the need to first perform the Bluetooth device discovery process and then establish a Bluetooth connection based on the discovered Bluetooth device, thereby reducing the Bluetooth connection establishment latency and improving the Bluetooth connection establishment speed. Attached Figure Description

[0048] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0049] Figure 1 This is a schematic diagram illustrating a Bluetooth connection establishment process according to an exemplary embodiment;

[0050] Figure 2 This is a flowchart illustrating an information processing method according to an exemplary embodiment;

[0051] Figure 3 This is a flowchart illustrating an information processing method according to an exemplary embodiment;

[0052] Figure 4 This is a schematic diagram illustrating a master device and a slave device according to an exemplary embodiment;

[0053] Figure 5 This is a flowchart illustrating an information processing method according to an exemplary embodiment;

[0054] Figure 6 This is a schematic diagram of the structure of an information processing apparatus according to an exemplary embodiment;

[0055] Figure 7 This is a schematic diagram of the structure of a first device according to an exemplary embodiment. Detailed Implementation

[0056] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses consistent with some aspects of this disclosure as detailed in the appended claims.

[0057] Bluetooth connections typically need to follow certain specifications; please refer to [link / reference needed]. Figure 1 As shown, the Bluetooth connection establishment process may include:

[0058] A slave device in peripheral mode sends an advertisement (Adv).

[0059] After receiving an Advance from a slave device, the master device in central mode can send a Scan Request to the slave device and receive a Scan Response from the slave device based on the Scan Request, thus completing the device discovery process. This Scan Response can provide slave device information not carried in the Advance.

[0060] After the master device and slave device complete the mutual discovery process, if the master device determines that a Bluetooth connection needs to be established, it will send an Establish link request and transmit the information required for connection establishment with the slave device, thereby completing a connection establishment.

[0061] After the connection is established, the pairing process begins, during which encryption and authentication keys are generated.

[0062] After the pairing process is completed, the bonding process will begin. After the bonding process, the next connection will be able to pair quickly.

[0063] During the actual execution process, the slave device is in broadcast mode, continuously sending broadcast signals to the master device. Each broadcast event is transmitted in three Bluetooth broadcast channels, and each event starts transmission with the smallest channel number.

[0064] The master device initiates a scan request. Only if the master device's radio frequency receiving window matches the broadcast transmission window, and the broadcast radio frequency channel and the mobile phone scanning radio frequency channel are the same channel, can the master device receive the broadcast signal from the slave device.

[0065] If the master device partially sends scan requests across multiple channels using a filtering policy, then the broadcaster slave device needs to send a scan response on the same channel in response to the scan requests.

[0066] The master device receives the scan response from the slave device, obtains the device information of the slave device, and initiates a connection request.

[0067] Typically, when a Bluetooth device obtains information about surrounding devices and broadcast messages, it needs to trigger an active scan to acquire more information about slave devices by scanning the current wireless environment. This process is usually time-consuming, generally taking several seconds, and can even take tens of seconds when there are many devices and significant interference. This cannot meet the needs of scenarios requiring rapid acquisition of surrounding device information.

[0068] like Figure 2 As shown in the embodiments of this disclosure, an information processing method is provided, executed by a first device, the method comprising:

[0069] S110: Determine the Bluetooth connection requirement of the first device; S120: When it is determined that the first device has the Bluetooth connection requirement, establish a Bluetooth connection with the second device according to the device information of the second device that has been saved in advance.

[0070] The first device can be any device that includes a Bluetooth chip. For example, the first device can be a mobile phone, tablet computer, wearable device, smart home device, or smart office device.

[0071] For example, the first device can be a smart speaker, a smart doorbell, or a mobile phone.

[0072] For example, the first device may be a Bluetooth Low Energy (BLE) device; or a BLE / Classic Bluetooth device. A BLE / Classic Bluetooth device is a device that supports both BLE and Classic Bluetooth.

[0073] When the first device determines that it needs a Bluetooth connection, it establishes a Bluetooth connection with the second device based on the pre-saved device information of the second device.

[0074] The second device can be any other Bluetooth device that is listening on the Bluetooth broadcast channel before the first device detects that it has a Bluetooth connection need.

[0075] The first device listens to the Bluetooth broadcast channel to obtain the device information of the second device. If there are Bluetooth devices in peripheral mode near the first device, the device information of the Bluetooth devices will be scanned on the Bluetooth broadcast channel.

[0076] In some embodiments, the first device periodically listens to the Bluetooth broadcast channel to obtain device information of the second device; or it listens to the Bluetooth broadcast channel in real time to obtain device information of the second device.

[0077] For example, before detecting a Bluetooth connection request from the first device, the Bluetooth broadcast channel is scanned in advance to obtain device information, and the device indicated by the device information can be the second device.

[0078] For example, the second device may send an Adv message on the Bluetooth broadcast channel. The Adv message may carry device information of other Bluetooth devices, and the device indicated by the device information may be the second device.

[0079] The device information of the second device may include at least identification information that uniquely identifies the second device. For example, the device information of the second device may also include, but is not limited to, at least one of the following:

[0080] Bluetooth chip identifier;

[0081] Bluetooth address.

[0082] In some embodiments, the device information of the second device may further include:

[0083] Type information indicates the type of Bluetooth chip included in the second device. For example, some Bluetooth chips only support BLE, while others support both BLE and classic Bluetooth.

[0084] In summary, the device information of the second device may include at least the necessary information required for the first device and the second device to establish a Bluetooth connection.

[0085] When the first device determines that a Bluetooth connection needs to be established, it will directly establish a Bluetooth connection based on the pre-saved device information, without having to perform the Bluetooth device discovery process first and then establish a Bluetooth connection based on the discovered Bluetooth device. This reduces the Bluetooth connection establishment latency and improves the Bluetooth connection establishment speed.

[0086] In some embodiments, such as Figure 3 As shown, the method further includes:

[0087] S111: Filter the device information listened to on the Bluetooth broadcast channel according to the broadcast filtering configuration information to obtain the device information of the second device;

[0088] S112: Based on the broadcast configuration information, the device information of the second device is pre-saved in the preset storage space of the first device.

[0089] In this embodiment, the first device listens to the Bluetooth broadcast channel even when there is no Bluetooth connection requirement. That is, it listens to the Bluetooth broadcast channel in advance before detecting a Bluetooth connection requirement and saves the device information of the second device it has pre-listened to. When listening to the Bluetooth broadcast channel, it listens according to the broadcast filtering configuration information.

[0090] This broadcast filtering configuration information can be written into the firmware driver. This configuration information can be used by the first device to select a second device that it might connect to or will connect to from among multiple devices monitored on the Bluetooth broadcast channel. This ensures that the device information saved by the first device is only the device information of the second devices that the first device might connect to via Bluetooth, reducing the amount of device information saved compared to saving information for all devices scanned on the Bluetooth broadcast channel.

[0091] When saving device information of other Bluetooth devices that are being monitored, the first device will save the configuration information based on the broadcast.

[0092] In some embodiments, the broadcast configuration information may include a storage address. This storage address points to storage space for storing pre-scanned device information. This storage space may be a cache space or other storage space.

[0093] In some embodiments, the broadcast save configuration information may also indicate storage capacity. Thus, after the first device initiates Bluetooth device information listening, it does not need to allocate storage space for saving device information in a fixed location in the memory. Instead, when device information for the second device needs to be saved, storage resources can be dynamically allocated temporarily based on the storage capacity indicated by the broadcast save configuration information.

[0094] For example, the pre-saved device information of the second device may include: pre-cached device information of the second device. That is, the device information is stored in a cache space, so that when the first device meets the cleanup conditions, it actively deletes device information that does not need to be continuously stored, reducing the storage space occupied by this device information. If the device information is stored in a cache space, when new Bluetooth device information is detected, the old device information can be directly deleted and the new device information written by replacement or update.

[0095] In some embodiments, if the first device detects that the device information carried by the Adv is insufficient after listening to the device information of the second device, the first device may also send a scan request to the second device on the Bluetooth broadcast channel and receive a scan response returned by the second device based on the scan request. The scan response may carry further device information required by the first device.

[0096] Pre-storing the monitored device information may also include: pre-storing the device information carried in the scan response monitored on the Bluetooth broadcast channel.

[0097] In some embodiments, the broadcast filtering configuration information includes at least one of the following:

[0098] The device information of the alternative device includes at least one of the following: the device type of the alternative device, the device identifier of the alternative device, and the Bluetooth modes supported by the alternative device;

[0099] Used to determine the second device from the candidate devices.

[0100] The filtering parameters can be used to further determine the second device that the first device is most likely to connect to from among the candidate devices.

[0101] In some embodiments, S111 may include:

[0102] Based on the device information of the candidate devices, the device information intercepted on the Bluetooth broadcast channel is filtered to obtain the device information of the candidate devices;

[0103] The second device is determined from the candidate devices based on the service identifier and / or service characteristics included in the filtering parameters.

[0104] For example, the filtering parameters may include one or more device identifier lists; the device identified by one or more device identifiers in the device identifier list is the second device.

[0105] For example, if the first device is a smart home device, for security reasons, the device list identifier corresponding to this filtering parameter can be the device identifier of a device carried or worn by a family member or the device identifier of other Bluetooth devices in the home.

[0106] The device identifier may include: device number and / or device name.

[0107] In some embodiments, the filtering parameters include at least one of the following:

[0108] Business identification (ID) is used to identify the corresponding business;

[0109] Business characteristics are used to describe the attributes of the corresponding business.

[0110] For example, some devices only support audio services, some support video services, some support both audio and video services, and some support projection services.

[0111] The filtering parameters may include a service identifier, which may be determined based on the service that the first device needs to implement via Bluetooth connection.

[0112] In some embodiments, the filtering parameters may not directly define a service identifier, but rather define service characteristics that describe the attributes of the service. For example, these attributes include, but are not limited to, the transmission bandwidth and / or QoS required by the service.

[0113] If a Bluetooth device monitored by the first device can provide resources that provide the business characteristics of the services involved in the first device's business, then such a Bluetooth device can be used as a second device.

[0114] For example, this service characteristic includes, but is not limited to, Quality of Service (QoS), which may impose certain requirements on the bandwidth of the Bluetooth connection and the memory and / or processing resources of the second device. Thus, the first device can select the corresponding second device from the Bluetooth devices it has detected, based on the resource information contained in the device information of the Bluetooth devices it has detected.

[0115] In some embodiments, S112 may include:

[0116] According to the broadcast configuration information, the device information of the second device is pre-stored in a first-in-first-out (FIFO) queue in a preset storage space.

[0117] In this embodiment of the disclosure, a FIFO queue is set in the preset storage space for storing device information. Due to the first-in-first-out characteristic of the FIFO queue, the device information detected later will be added to the FIFO queue, while the device information detected earlier will be discarded from the tail of the FIFO queue.

[0118] In some embodiments, the preset storage space does not have a FIFO queue. The preset storage space records not only the device information of the second device, but also the corresponding record information for each device. This record information can reflect information related to the Bluetooth connection between the first and second devices.

[0119] The record information may include at least one of the following:

[0120] The number of times each device information stored in the storage space is used;

[0121] The number of successful Bluetooth connections between each second device and the first device within a preset time period;

[0122] The duration of a single Bluetooth connection between the first device and each of the second devices.

[0123] At this time, when the first device detects new device information and there is no remaining storage space in the preset storage space, it can prioritize discarding the device information of one or more second devices that have had the fewest Bluetooth connection counts with the first device, as well as the corresponding Bluetooth connection count records, thereby freeing up storage space to store the newly detected device information.

[0124] In some embodiments, the step of pre-saving the device information of the second device in a preset storage space according to the broadcast configuration information includes: according to the broadcast configuration information, when there is no remaining storage space in the preset storage space, updating the monitored device information of the second device in the preset storage space based on the number of times the device information already located in the preset storage space has been used.

[0125] By updating the device information stored in the preset storage space in this way, when new device information of a second device is detected, the device information of the second device that the first device rarely connects to or almost never connects to can be replaced, thereby ensuring that the device information of the second device that the second device frequently connects to is continuously stored in the preset storage space.

[0126] In other embodiments, the method further includes:

[0127] Based on the number of times each second device is used within the current time period, device information whose usage exceeds a threshold is transferred to the bound storage space. This bound storage space stores device information for second devices frequently connected to the first device. Device information in the preset storage space can be discarded according to a first-in, first-out (FIFO) principle when new second device information is detected.

[0128] Thus, in some embodiments, S120 may further include:

[0129] When the first device requires a Bluetooth connection, obtain the location information of the first device;

[0130] If the location information indicates that the first device is in a preset location, the device information is read from the bound storage space first, and a Bluetooth connection is established based on the read device information;

[0131] If the location information indicates that the first device is not in the preset location, the device information is read from the preset storage space first, and a Bluetooth connection is established based on the read device information;

[0132] The preset location can be: a space frequently visited by the first device based on user instructions, such as home, company, or classroom.

[0133] The location information can be determined based on the positioning chip of the first device. The positioning chip can be a satellite positioning chip or a positioning chip that performs positioning based on base station signals or WiFi signals.

[0134] In some embodiments, the detection of a Bluetooth connection requirement includes at least one of the following:

[0135] Bluetooth application detected to be running;

[0136] Bluetooth enable command detected;

[0137] The current time or the current device status of the first device is detected to meet the determination conditions for Bluetooth connection requirements.

[0138] The Bluetooth applications include, but are not limited to: Bluetooth-based file sharing applications.

[0139] For example, a command to enable Bluetooth is detected in the system message bar of an electronic device. This command could be a tap or swipe operation.

[0140] For example, the Bluetooth enable command may also include: a Bluetooth enable command detected in an application interface that has embedded Bluetooth application functionality.

[0141] For example, based on the Bluetooth connection history of the first device, even if the first device does not currently have a Bluetooth application launched or detect a Bluetooth enable command, the current time period is considered to be a high-frequency period for Bluetooth connections.

[0142] In some embodiments, if the first device is set from a peripheral mode to a central mode, then the current state of the first device can be considered to meet the determination condition of having a Bluetooth connection requirement.

[0143] In other embodiments, the first device is configured such that when the battery level is above a certain threshold, the device state of the first device is considered to meet the criteria for having a Bluetooth connection requirement.

[0144] In some embodiments, if the first device activates a preset service at a preset location, the device state of the first device can also be considered to meet the judgment condition for having a Bluetooth connection requirement. For example, if a user's mobile phone is at home and audio playback is enabled, they may have a need to share songs from their phone to a smart speaker for playback. In this case, the device state of the first device is considered to meet the judgment condition for having a Bluetooth connection requirement.

[0145] In some embodiments, the method further includes:

[0146] Predict the first time period during which the first device will have a Bluetooth connection requirement;

[0147] S111 may include:

[0148] Listening to the Bluetooth broadcast channel begins in a second time period earlier than the first time period.

[0149] The first time period during which the prediction of the first device having a Bluetooth connection requirement includes, but is not limited to, at least one of the following:

[0150] The first time period was determined based on the Bluetooth connection records between the first device and other devices;

[0151] The first time period is determined based on the location of the first device. For example, if the first device may be in a private space such as a home or a private car, then any time period after the current moment can be considered the first time period.

[0152] For example, based on the Bluetooth connection history of the first device, although the first device does not currently have a Bluetooth application launched or a Bluetooth enable command detected, the current time period is considered to be a high-frequency Bluetooth connection period. Therefore, the current time period is considered to be a period in which the first device needs to enter the Bluetooth broadcast channel in advance to obtain the device information of the second device. Thus, after predicting the first time period, the first device starts listening to the Bluetooth broadcast channel in the second time period earlier than the first time period to obtain the device information of the second device, thereby reducing unnecessary listening to the Bluetooth broadcast channel.

[0153] In some embodiments, the first time period during which the first device is predicted to have a Bluetooth connection requirement may include:

[0154] If the first device is a preset type of device, then the first time period when the first device has a Bluetooth connection requirement is predicted.

[0155] In some embodiments, S111 may include: if the first device is not a preset type device, by default listening to the Bluetooth broadcast channel when no stop listening command is detected, to obtain the device information of the second device.

[0156] For example, a Bluetooth speaker can be a device other than the preset type of device. Devices other than the preset type include, but are not limited to, smart home devices.

[0157] The preset type of device may be: a device with a Bluetooth chip but with limited use of Bluetooth sharing function. This preset type of device includes, but is not limited to, devices that the user carries or wears. Of course, this is just an example.

[0158] In some embodiments, regardless of whether the first device is a preset type device, it will only listen to the Bluetooth broadcast channel within a selected time range to obtain the device information of the second device. For example, a smart home device may not listen to the Bluetooth broadcast channel to obtain the device information of the second device during nighttime periods such as early morning when family members are not active, and time periods outside of nighttime periods can be considered as the selected time range.

[0159] Of course, the above are just examples of alternative time ranges, and the actual implementation is not limited to the examples above.

[0160] refer to Figure 4 As shown, the main device is a Bluetooth-enabled device and is running an application (APP);

[0161] The firmware program adds configuration filtering and caching interfaces, allowing the app to control these through configuration modifications.

[0162] When the app starts, this function is enabled, and control parameters are sent through process A. At least one of the following conditions must be set:

[0163] Equipment type;

[0164] Equipment manufacturers;

[0165] Filtering parameters;

[0166] Cache size;

[0167] Cache update methods, etc.

[0168] The firmware program loads configurations and sets up the hardware chip. The configurations loaded by the firmware program here include, but are not limited to: broadcast filtering configuration information and broadcast saved configuration information.

[0169] When the master device's Bluetooth chip is monitoring slave devices a, b, and c, it reports the device information of the slave devices that match the broadcast filtering configuration information to the APP. At the same time, the firmware program saves the device information that matches the broadcast filtering configuration information according to the broadcast save configuration information.

[0170] When the app needs the device information of the slave device, it can save the configuration information according to the broadcast and read the corresponding device information from the corresponding storage space.

[0171] This disclosure aims to provide a method for quickly obtaining broadcast information from nearby wireless devices for Bluetooth connection. The method includes two roles: a master device and a slave device. For example, the master device may be a smartphone that supports Bluetooth, and the slave device may be a Bluetooth terminal device to be connected to the smartphone.

[0172] refer to Figure 5 As shown, the method may include the following steps:

[0173] S101: The first device adds Bluetooth chip firmware, and configures broadcast filtering configuration information and broadcast saving configuration information through the firmware.

[0174] Configure the broadcast filter to select the type of Bluetooth device to scan, such as BLE Bluetooth devices or BLE / Classic Bluetooth dual-mode devices. Set the Bluetooth device ID to scan, which is a unique identifier for each vendor's Bluetooth device using a combination of vendor ID and Bluetooth product ID. By configuring the broadcast filter, you can select the second device that the master device needs to connect to.

[0175] For example, the first device needs to monitor Bluetooth headphones. These Bluetooth headphones may include, for example, True Wireless Stereo (TWS) headphones. Device information for the Bluetooth headphones may include: headphone type information, headphone connection identifiers, and / or manufacturer identification information, etc.

[0176] S102: The first device adds a broadcast to save configuration information through the firmware program. The broadcast to save configuration information is used to save the device information that has been acquired.

[0177] The capacity of the storage space can be set according to the broadcast save configuration, and the number of Bluetooth devices that the firmware program caches can be set.

[0178] When the number of device information entries stored in the storage space reaches the maximum limit, an update strategy is used to update the device information stored in the storage space. For example, the Least Recently Used (LRU) strategy can be used to update the device information stored in the storage space. This storage space can be a cache space.

[0179] S103: The Bluetooth application on the first device starts up, and reads the pre-obtained device information based on the broadcast saved configuration information.

[0180] For example, during firmware operation, based on broadcast filtering configuration information and broadcast saving configuration information, the monitored device information is saved in the corresponding storage space of the firmware.

[0181] S104: Based on the read device information, trigger Bluetooth connection and device authentication between the first device and the second device.

[0182] like Figure 6 As shown, this disclosure provides an information processing apparatus, the apparatus comprising:

[0183] The determination module 110 is used to determine the Bluetooth connection requirements of the first device;

[0184] The connection module 120 is used to establish a Bluetooth connection with the second device based on the device information of the second device that is saved in advance when it is determined that the first device has the Bluetooth connection requirement.

[0185] The information processing apparatus provided in this disclosure may include a first device.

[0186] In some embodiments, the determining module 110 and the connecting module 120 may be program modules; after being executed by the processor, the program modules can perform the above functions.

[0187] In other embodiments, the determining module 110 and the connecting module 120 may be hardware-software hybrid modules; the hardware-software hybrid modules include, but are not limited to, various programmable arrays; the programmable arrays may include various field-programmable arrays and / or complex programmable arrays.

[0188] In some embodiments, the determining module 110 and the connecting module 120 may be pure hardware modules; the pure hardware module may include: application-specific integrated circuits.

[0189] In some embodiments, the apparatus further includes:

[0190] The monitoring module is used to filter the device channels monitored on the Bluetooth broadcast channel according to the broadcast filtering configuration information to obtain the device information of the second device.

[0191] The storage module is used to save configuration information according to the broadcast and to pre-save the device information of the second device in the preset storage space of the first device.

[0192] In some embodiments, the broadcast filtering configuration information includes at least one of the following:

[0193] The device information of the alternative device includes at least one of the following: the device type of the alternative device, the device identifier of the alternative device, and the Bluetooth modes supported by the alternative device;

[0194] Filtering parameters are used to determine the second device from the candidate devices.

[0195] In some embodiments, the monitoring module is specifically configured to filter the device information monitored on the Bluetooth broadcast channel according to the device information of the candidate device, thereby obtaining the device information of the candidate device; and determine the second device from the candidate devices according to the service identifier and / or service characteristics included in the filtering parameters.

[0196] In some embodiments, the storage module is specifically used to store the device information of the second device in a FIFO queue within a preset storage space according to the broadcast storage configuration; or, according to the broadcast storage configuration, when there is no remaining storage space in the preset storage space, to update the device information of the second device that has been monitored in the preset storage space based on the number of times the device information already located in the preset storage space has been used.

[0197] In some embodiments, the determining module is specifically configured to perform at least one of the following:

[0198] The Bluetooth application on the first device has been detected to be running.

[0199] The Bluetooth enable command from the first device was detected.

[0200] The current time or the current device status of the first device is detected to meet the determination conditions for Bluetooth connection requirements.

[0201] Figure 7 This is a block diagram illustrating a first device 800 according to an exemplary embodiment. For example, the first device 800 may be included in a terminal device such as a mobile phone or mobile computer, or a device such as a server.

[0202] Reference Figure 7 The first device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, a multimedia data component 810, an input / output (I / O) interface 812, a sensor component 814, and a communication component 816.

[0203] Processing component 802 typically controls the overall operation of the first device 800, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 802 may include one or more modules to facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.

[0204] Memory 804 is configured to store various types of data to support the operation of device 800. Examples of this data include instructions for any application or method operating on the first device 800, contact data, phonebook data, messages, pictures, videos, etc. Memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0205] The power supply component 806 provides power to various components of the first device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the first device 800.

[0206] Multimedia component 808 includes a screen that provides an output interface between the first device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of touch or swipe actions but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 808 includes a front-facing camera and / or a rear-facing camera. When the device 800 is in an operational state, such as a shooting state or a video state, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0207] Multimedia data component 810 is configured to output and / or input multimedia data signals. For example, multimedia data component 810 includes a microphone (MIC) configured to receive external multimedia data signals when the first device 800 is in an operational state, such as a call state, recording state, or voice recognition state. The received multimedia data signals may be further stored in memory 804 or transmitted via communication component 816.

[0208] In some embodiments, the multimedia data component 810 further includes a speaker for outputting multimedia data signals.

[0209] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, and operation buttons. These operation buttons may include, but are not limited to, home button, volume button, power button, and lock button.

[0210] Sensor assembly 814 includes one or more sensors for providing state assessments of various aspects of the first device 800. For example, sensor assembly 814 may detect the on / off state of device 800, the relative positioning of components, such as the display and keypad of the first device 800, changes in position of the first device 800 or a component of the first device 800, the presence or absence of user contact with the first device 800, the orientation or acceleration / deceleration of the first device 800, and temperature changes of the first device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 814 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.

[0211] Communication component 816 is configured to facilitate wired or wireless communication between the first device 800 and other devices. The first device 800 can access wireless networks based on communication standards, such as Wi-Fi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 816 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 816 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0212] In an exemplary embodiment, the apparatus 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.

[0213] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, which can be executed by a processor 820 of the device 800 to complete the aforementioned information processing method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0214] After the above instructions are executed by processor 820, they may include:

[0215] Determine the Bluetooth connection requirements of the first device;

[0216] When it is determined that the first device has the Bluetooth connection requirement, a Bluetooth connection is established with the second device based on the pre-saved device information of the second device.

[0217] Understandably, the method also includes:

[0218] The device information of the second device is obtained by filtering the device information listened to on the Bluetooth broadcast channel according to the broadcast filtering configuration information;

[0219] According to the broadcast configuration information, the device information of the second device is pre-saved in the preset storage space of the first device.

[0220] Understandably, the broadcast filtering configuration information includes at least one of the following:

[0221] The device information of the alternative device includes at least one of the following: the device type of the alternative device, the device identifier of the alternative device, and the Bluetooth modes supported by the alternative device;

[0222] The filtering parameters are the parameters used to determine the second device from the candidate devices.

[0223] Understandably, the step of filtering the device information intercepted on the Bluetooth broadcast channel according to the broadcast filtering configuration information to obtain the device information of the second device includes:

[0224] Based on the device information of the candidate devices, the device information intercepted on the Bluetooth broadcast channel is filtered to obtain the device information of the candidate devices;

[0225] The second device is determined from the candidate devices based on the service identifier and / or service characteristics included in the filtering parameters.

[0226] Understandably, the step of pre-saving the device information of the second device in the preset storage space of the first device according to the broadcast configuration information includes:

[0227] According to the broadcast configuration information, the device information of the second device is pre-stored in a first-in-first-out (FIFO) queue in a preset storage space;

[0228] or,

[0229] According to the broadcast saved configuration information, when there is no remaining storage space in the preset storage space, the device information of the second device that has been monitored will be updated in the preset storage space based on the number of times the device information already located in the preset storage space has been used.

[0230] Understandably, determining that the first device has a Bluetooth connection requirement includes at least one of the following:

[0231] The Bluetooth application on the first device has been detected to be running.

[0232] The Bluetooth enable command from the first device has been detected.

[0233] The current time or the current device status of the first device is detected to meet the determination conditions for Bluetooth connection requirements.

[0234] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.

[0235] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. An information processing method characterized by comprising: The method is executed by a first device, and comprises: determining a Bluetooth connection requirement of the first device; when it is determined that the first device has the Bluetooth connection requirement, establishing a Bluetooth connection with a second device according to pre-stored device information of the second device; the step of, when it is determined that the first device has the Bluetooth connection requirement, establishing a Bluetooth connection with a second device according to pre-stored device information of the second device, comprises: when the first device has the Bluetooth connection requirement, obtaining position information of the first device; if the position information indicates that the first device is in a preset position, preferentially reading the device information of the second device from a bound storage space of the first device, and establishing a Bluetooth connection with the second device based on the read device information; if the position information indicates that the first device is not in a preset position, preferentially reading the device information of the second device from a preset storage space of the first device, and establishing a Bluetooth connection with the second device based on the read device information; wherein the device information of the second device stored in the bound storage space comprises: device information of the second device in the preset storage space which is used by the first device more than a threshold number of times in a current period.

2. The method of claim 1, wherein, The method further comprises: filtering device information listened to on a Bluetooth broadcast channel according to broadcast filtering configuration information to obtain the device information of the second device; pre-storing the device information of the second device in the preset storage space of the first device according to broadcast storage configuration information.

3. The method of claim 2, wherein, The broadcast filtering configuration information comprises at least one of the following: device information of an alternative device, wherein the device information of the alternative device comprises at least one of the following: a device type of the alternative device, a device identifier of the alternative device, and a Bluetooth mode supported by the alternative device; a filtering parameter for determining the second device from the alternative device.

4. The method of claim 3, wherein, The step of filtering device information listened to on a Bluetooth broadcast channel according to broadcast filtering configuration information to obtain the device information of the second device comprises: filtering device information listened to on the Bluetooth broadcast channel according to the device information of the alternative device to obtain device information of the alternative device; determining the second device from the alternative device according to a service identifier and / or service feature contained in the filtering parameter.

5. The method of claim 2, wherein, The step of pre-storing the device information of the second device in the preset storage space of the first device according to broadcast storage configuration information comprises: pre-storing the device information of the second device in a first-in-first-out (FIFO) queue in the preset storage space according to the broadcast storage configuration information; or when there is no remaining storage location in the preset storage space according to the broadcast storage configuration information, updating the listened device information of the second device in the preset storage space based on the number of times that the device information already located in the preset storage space is used. The step of determining that the first device has a Bluetooth connection requirement comprises at least one of the following:

6. The method according to any one of claims 1 to 5, characterized in that, detecting that a Bluetooth application of the first device is started; detecting a Bluetooth opening instruction of the first device; ​ detecting that a current time or a current device state of the first device meets a judgment condition of having a Bluetooth connection requirement.

7. An information processing apparatus, characterized by comprising: The apparatus comprises: a determination module configured to determine a Bluetooth connection requirement of a first device; a connection module configured to, when it is determined that the first device has the Bluetooth connection requirement, establish a Bluetooth connection with a second device according to device information of the second device which is pre-stored; The connection module is specifically configured to: obtain location information of the first device when the first device has the Bluetooth connection requirement; if the location information indicates that the first device is in a preset location, read the device information of the second device from a binding storage space of the first device preferentially, and establish the Bluetooth connection with the second device based on the read device information; if the location information indicates that the first device is not in the preset location, read the device information of the second device from a preset storage space of the first device preferentially, and establish the Bluetooth connection with the second device based on the read device information; wherein the device information of the second device stored in the binding storage space comprises device information of a second device which is used by the first device more than a threshold number of times in a current time period in the preset storage space.

8. The apparatus of claim 7, wherein, The apparatus further comprises: a listening module configured to filter device information listened to on a Bluetooth broadcast channel according to broadcast filtering configuration information to obtain the device information of the second device; a saving module configured to pre-store the device information of the second device in the preset storage space of the first device according to broadcast saving configuration information.

9. The apparatus of claim 8, wherein, The broadcast filtering configuration information comprises at least one of the following: device information of an alternative device, wherein the device information of the alternative device comprises at least one of the following: a device type of the alternative device, a device identifier of the alternative device, and a Bluetooth mode supported by the alternative device; a filtering parameter used to determine the second device from the alternative device.

10. The apparatus of claim 9, wherein, The listening module is specifically configured to: filter the device information listened to on the Bluetooth broadcast channel according to the device information of the alternative device to obtain device information of the alternative device; and determine the second device from the alternative device according to a service identifier and / or service feature contained in the filtering parameter.

11. The apparatus of claim 8, wherein, The saving module is specifically configured to pre-store the device information of the second device in a first-in-first-out (FIFO) queue in the preset storage space according to the broadcast saving configuration information; or, when there is no remaining storage location in the preset storage space, update the device information of the second device listened to in the preset storage space based on a number of times of use of device information already located in the preset storage space according to the broadcast saving configuration information.

12. The apparatus of any one of claims 7 to 11, wherein, The determination module is specifically configured to perform at least one of the following: detecting that a Bluetooth application of the first device is started; detecting a Bluetooth opening instruction of the first device; detecting that a current time or a current device state of the first device meets a judgment condition of having a Bluetooth connection requirement.

13. An electronic device, comprising: comprise: a memory for storing processor-executable instructions; a processor connected with the memory; The processor is configured to perform the method provided in any one of claims 1 to 6.

14. A non-transitory computer readable storage medium, when instructions in the storage medium are executed by a processor of a computer, enables the computer to perform the method provided in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Bluetooth connection method, device and system

    CN104768123A

  • Bluetooth search result display method and device, terminal equipment and storage medium

    CN110602671A