CN113810890A - Device loop-back method, device, electronic device and storage medium - Google Patents

Device loop-back method, device, electronic device and storage medium Download PDF

Info

Publication number
CN113810890A
CN113810890A CN202111088468.7A CN202111088468A CN113810890A CN 113810890 A CN113810890 A CN 113810890A CN 202111088468 A CN202111088468 A CN 202111088468A CN 113810890 A CN113810890 A CN 113810890A
Authority
CN
China
Prior art keywords
electronic device
target
electronic
devices
bluetooth connection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111088468.7A
Other languages
Chinese (zh)
Inventor
包建全
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202111088468.7A priority Critical patent/CN113810890A/en
Publication of CN113810890A publication Critical patent/CN113810890A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Abstract

The application discloses a device reconnection method and device, electronic equipment and a storage medium, and relates to the technical field of electronic equipment. The method comprises the following steps: and acquiring a Bluetooth connection record, wherein the Bluetooth connection record comprises the utilization rate of each second electronic device in a plurality of second electronic devices which have established Bluetooth connection with the first electronic device, and determining at least one second electronic device from the plurality of second electronic devices as a first target device to be connected back with the first target device according to the sequence from high to low of the utilization rate. According to the method and the device, when the electronic equipment is connected back, other equipment with high utilization rate can be automatically connected back, and user experience is improved.

Description

Device loop-back method, device, electronic device and storage medium
Technical Field
The present application relates to the field of electronic device technologies, and in particular, to a device loopback method and apparatus, an electronic device, and a storage medium.
Background
Along with the abundance of life contents of people, more and more electronic devices owned by users, the technology of Bluetooth communication is also rapidly improved. Wherein, two electronic equipment that have carried out bluetooth and have paird the connection can carry out the reconnection in subsequent process.
Disclosure of Invention
In view of the above problems, the present application provides a device loopback method, apparatus, electronic device and storage medium to solve the above problems.
In a first aspect, an embodiment of the present application provides a device loopback method, which is applied to a first electronic device, and the method includes: acquiring a Bluetooth connection record, wherein the Bluetooth connection record comprises the utilization rate of each of a plurality of second electronic devices which have established Bluetooth connection with the first electronic device; determining at least one second electronic device from the plurality of second electronic devices as a first target device in the order from high to low of the usage rates; and performing loop connection with the first target equipment.
In a second aspect, an embodiment of the present application provides an apparatus for device loopback, which is applied to a first electronic device, and the apparatus includes: the Bluetooth connection record acquisition module is used for acquiring a Bluetooth connection record, wherein the Bluetooth connection record comprises the utilization rate of each second electronic device in a plurality of second electronic devices which have established Bluetooth connection with the first electronic device; the target equipment determining module is used for determining at least one second electronic equipment from the plurality of second electronic equipment as a first target equipment according to the sequence from high to low of the utilization rate; and the target equipment back connection module is used for carrying out back connection with the first target equipment.
In a third aspect, an embodiment of the present application provides an electronic device, including a memory and a processor, the memory being coupled to the processor, the memory storing instructions, and the processor performing the above method when the instructions are executed by the processor.
In a fourth aspect, the present application provides a computer-readable storage medium, in which a program code is stored, and the program code can be called by a processor to execute the above method.
The device reconnection method, the device, the electronic device and the storage medium, provided by the embodiment of the application, acquire the bluetooth connection record, wherein the bluetooth connection record includes the utilization rate of each of a plurality of second electronic devices that have established bluetooth connection with the first electronic device, and according to the sequence from high to low of the utilization rates, determine at least one second electronic device from the plurality of second electronic devices as a first target device to perform reconnection with the first target device, so that when the first electronic device performs reconnection, the second electronic device with a higher utilization rate is automatically reconnected, and user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of a device loopback method that can be used in embodiments of the present application;
fig. 2 is a schematic diagram illustrating a first electronic device and a second electronic device connected according to an embodiment of the present application;
fig. 3 is a schematic diagram illustrating a first electronic device and two second electronic devices connected according to an embodiment of the present application;
fig. 4 is a schematic diagram illustrating a first electronic device and a plurality of second electronic devices connected according to an embodiment of the present application;
fig. 5 is a schematic flow chart illustrating a device loopback method according to an embodiment of the present application;
fig. 6 is a schematic flowchart illustrating a device loopback method according to an embodiment of the present application;
FIG. 7 is a flow chart illustrating step S220 of the device loopback method illustrated in FIG. 6 of the present application;
fig. 8 is a flowchart illustrating a device loopback method according to an embodiment of the present application;
fig. 9 is a schematic flowchart illustrating a device loopback method according to an embodiment of the present application;
fig. 10 is a flowchart illustrating a device loopback method according to an embodiment of the present application;
fig. 11 is a flowchart illustrating a device loopback method according to an embodiment of the present application;
fig. 12 shows a block diagram of a device loopback apparatus provided by an embodiment of the present application;
fig. 13 is a block diagram of an electronic device for performing a device loopback method according to an embodiment of the present application;
fig. 14 illustrates a storage unit for storing or carrying program codes for implementing the device loopback method according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
Internet Of Things (IOT) is a network concept that extends and expands its user end to any article to article for information exchange and communication based on the Internet concept. With the development of the internet of things technology, some scenes can be configured in the internet of things system. For a configured scene, a plurality of intelligent devices can be involved, and the plurality of intelligent devices have a certain linkage relation and can work cooperatively. For example, the configured scenario may include that when one device is close to the other device, at least one of the two devices performs a specified operation, for example, one of the electronic devices outputs a connection prompt message for prompting a connection with the other electronic device.
Along with the abundance of life contents of people, more and more electronic devices owned by users, the technology of Bluetooth communication is also rapidly improved. Currently, an electronic device (hereinafter, referred to as a target electronic device) may have bluetooth paired connections with a plurality of other electronic devices, and when the target electronic device performs a loop connection, the target electronic device often defaults to perform a loop connection with the last connected other electronic device. However, other electronic devices that have been recently connected are not necessarily electronic devices that a user desires to use (hereinafter, referred to as desired electronic devices), and when the other electronic devices that have been recently connected are electronic devices that the user temporarily uses, if the electronic devices that have been temporarily used are not near the user, a target electronic device that attempts to connect back to the electronic device that has been recently connected may fail to connect back, and the target electronic device may be in an idle state after failing to connect back, and when the user desires to perform bluetooth communication with the target electronic device through the desired electronic device, the user needs to reconnect the desired electronic device with the target electronic device, which makes the user's operation cumbersome and does not improve the convenience of the user in using the bluetooth electronic device.
In view of the above problems, the inventors have found and proposed a device reconnection method, apparatus, electronic device and storage medium provided in the embodiments of the present application through long-term research, and when a first electronic device performs reconnection, a second electronic device with a higher usage rate is automatically reconnected, so as to improve user experience. The specific device connection method is described in detail in the following embodiments.
The following description will be made with respect to schematic diagrams of the device loopback method provided by the embodiments of the present application.
Referring to fig. 1, fig. 1 is a schematic diagram illustrating an apparatus loopback method according to an embodiment of the present disclosure. As shown in fig. 1, the first electronic device 100 may be a true wireless bluetooth headset (TWS) apparatus, and the second electronic device 200 may be a user terminal (e.g., may be a smart phone). Specifically, the TWS bluetooth headset apparatus may include a bluetooth headset 120 and a headset case 110, the headset case 110 may accommodate the bluetooth headset 120, specifically, an inner wall of the case of the headset case 110 forms an accommodating cavity, and the bluetooth headset 120 may be accommodated in the accommodating cavity of the headset case 110. In addition, the earphone box 110 may not only provide a containing cavity for containing the bluetooth earphone 120, but also communicate with the bluetooth earphone 120, so as to obtain information such as the electric quantity and name of the bluetooth earphone 120 or network parameters of the bluetooth earphone 120, so that the user terminal can pair with the bluetooth earphone 120 successfully through the earphone box 110 and realize communication connection. In one embodiment, the earphone box 110 is also used for charging the bluetooth earphone 120, i.e. as a charging device for the bluetooth earphone 120. Wherein, when the earphone box 110 is opened, the bluetooth earphone 120 can be triggered to connect back or pair. Specifically, when the bluetooth headset 120 has been previously paired and connected, the bluetooth headset 120 may be triggered to perform loopback when the headset case 110 is opened, and when the bluetooth headset 120 has not been previously paired and connected, the bluetooth headset 120 may be triggered to perform pairing when the headset case 110 is opened.
During the bluetooth connection of the bluetooth headset 120 with the second electronic device 200, the bluetooth headset 120 may perform bluetooth connection with at least one second electronic device 200 and perform audio data transmission with at least one second electronic device 200.
For example, when the bluetooth headset 120 is bluetooth connected to one second electronic device 200, the bluetooth headset 120 may perform audio data transmission with the one second electronic device 200, and the type of the second electronic device is not limited in the present application, and may be a smart phone, a portable device, a wearable device, or the like. As shown in fig. 2, taking the second electronic device 200 as an example of a smart phone, the bluetooth headset 120 can perform bluetooth connection with the smart phone and perform audio data transmission with the smart phone.
For another example, when the bluetooth headset 120 is bluetooth connected to two second electronic devices 200, the bluetooth headset 120 may respectively perform audio data transmission with the two second electronic devices 200, as shown in fig. 3, the two second electronic devices 200 are different smart phones, and the bluetooth headset 120 may respectively perform bluetooth connection with the two different smart phones and respectively perform audio data transmission with the two different smart phones.
For another example, when the bluetooth headset 120 is bluetooth connected to the plurality of second electronic devices 200, the bluetooth headset 120 may respectively perform audio data transmission with the plurality of second electronic devices 200, as shown in fig. 4, the plurality of second electronic devices 200 may be different smart phones, and the bluetooth headset 120 may respectively perform bluetooth connection with the plurality of different smart phones and respectively perform audio data transmission with the plurality of different smart phones.
Referring to fig. 5, fig. 5 is a flowchart illustrating a device loopback method according to an embodiment of the present application. The method is used for automatically connecting the second electronic equipment with higher utilization rate when the first electronic equipment is connected back, so that the user experience is improved. In a specific embodiment, the device reconnection method is applied to the device reconnection apparatus 300 shown in fig. 12 and the electronic device (first electronic device) 100 (fig. 13) equipped with the device reconnection apparatus 300. The specific process of the present embodiment will be described below by taking an electronic device as an example, and it is understood that the electronic device applied in the present embodiment may include a smart phone, a tablet computer, a wearable electronic device, a bluetooth headset, and the like, which is not limited herein. As will be described in detail with respect to the flow shown in fig. 5, the device reconnection method may specifically include the following steps:
step S110: obtaining a Bluetooth connection record, wherein the Bluetooth connection record comprises a usage rate of each of a plurality of second electronic devices that have established Bluetooth connection with the first electronic device.
In some embodiments, when the first electronic device establishes a bluetooth connection with the second electronic device, the first electronic device may record bluetooth connection information with the second electronic device, and generate a bluetooth connection record. The bluetooth connection information recorded by the first electronic device and the second electronic device may include: a usage rate of each of a plurality of second electronic devices to which a connection has been established with the first electronic device.
In some embodiments of the present application, a first electronic device may establish a connection with a plurality of second electronic devices at different times, and the first electronic device may also establish a connection with a plurality of second electronic devices at the same time, which is not limited herein.
In some embodiments, the usage rate may include a connection frequency, a connection duration, or a data interaction frequency, which is not limited herein. The connection frequency may be a connection frequency of the first electronic device and the second electronic device within a preset time period. The connection duration may be a connection duration of the first electronic device and the second electronic device within a preset time period. The data interaction frequency may be a data interaction frequency of the first electronic device and the second electronic device within a preset time period. As one way, the preset time period may be weeks, months, etc.
As one way, the usage rate of each of the plurality of second electronic devices that are connected to the first electronic device may also be customized by the user, and is not limited herein.
In some embodiments, the first electronic device may obtain a bluetooth connection record when a loopback connection is required. The connection back means that the first electronic device is trying to connect back to a second electronic device which is paired and connected before by means of paging. The loopback refers to that the first electronic device sends a page packet to a terminal to request to establish a communication connection with the terminal, where the page is generally called a connection (paging), and the operation of connecting/activating the user terminal is called a page, and specifically, the page refers to that the device (the master device) initiating the connection knows the address of the device to be connected, so the page can be directly paged. For example, when receiving a reconnect instruction, the first electronic device may determine that the first electronic device needs to be reconnected, and may acquire a bluetooth connection record, for example, when detecting a target touch operation acting on the first electronic device, the first electronic device determines that the reconnect instruction is received; when receiving the target voice information, the first electronic device determines that a loopback instruction is received, and the like, which is not limited herein.
In some embodiments, the first electronic device is taken as a true wireless bluetooth headset apparatus as an example for explanation, when a lid of a headset box of the true wireless bluetooth headset apparatus is closed, it is considered that a bluetooth headset accommodated in the headset box is not triggered to perform a loopback connection, and a bluetooth connection record may not be acquired at this time; when the earphone box of the real wireless Bluetooth earphone device is opened, the Bluetooth earphone accommodated in the earphone box is considered to be triggered to be connected back, and the Bluetooth connection record can be acquired at the moment.
In some embodiments, it may also be detected whether a bluetooth connection record exists with the first electronic device. When the first electronic device has the Bluetooth connection record, the first electronic device is characterized to execute pairing operation at a high probability, and when the first electronic device has the Bluetooth connection record, the first electronic device is characterized to execute loop connection operation at a high probability. In some embodiments, the first electronic device may determine whether it stores address information of the second electronic device, for example, the first electronic device may determine whether it stores a MAC address of the second electronic device. When it is determined that the first electronic device does not store the address information of the second electronic device, it may be determined that the first electronic device does not have a connection record, and the first electronic device does not perform a loop connection with the second electronic device at this time. If the first electronic device needs to be connected with the second electronic device, the first electronic device needs to enter a pairing state. When it is determined that the first electronic device stores the address information of the second electronic device, it may be determined that the first electronic device has a connection record, and the first electronic device may be connected back to the second electronic device this time.
Step S120: and determining at least one second electronic device from the plurality of second electronic devices as a first target device in the sequence from high to low of the utilization rate.
In this embodiment, the first electronic device and the plurality of second electronic devices establish bluetooth connection, and the usage rate of each of the first electronic device and the plurality of second electronic devices is recorded in the bluetooth connection record. As one way, the first electronic device may determine, after acquiring the usage rate with each second electronic device, at least one second electronic device from the plurality of second electronic devices in order from high to low of the usage rate, and take the determined at least one second electronic device as the first target device. It can be understood that the higher the usage rate of the first electronic device, the higher the frequency of the second electronic device being used is characterized, i.e. the higher probability that the second electronic device is the electronic device which is used more frequently by the user and is needed more at present.
In some embodiments, when it is required to determine a second electronic device as the first target device, the second electronic device with the highest usage rate with the first electronic device may be used as the first target device; when two second electronic devices are required to be determined as first target devices, two second electronic devices with the highest utilization rate and the second highest utilization rate with the first electronic device can be used as the first target devices; when three second electronic devices are required to be determined as first target devices, the three second electronic devices with the highest utilization rate, the second highest utilization rate and the third highest utilization rate with the first electronic device can be taken as the first target devices; and so on, and will not be described herein.
In some embodiments, when two of the plurality of second electronic devices are identical in usage rate with the first electronic device, one of the two electronic devices may be regarded as a first target electronic device and the other may be regarded as a second target electronic device. And then acquiring the preset priorities of the first target electronic equipment and the second target electronic equipment. When the priority of the first target electronic equipment is higher than that of the second target electronic equipment, sequencing the loop connection sequence of the first target electronic equipment and the first electronic equipment before the second target electronic equipment; when the priority of the second target electronic equipment is higher than that of the first target electronic equipment, the connection-back sequence of the second target electronic equipment and the first electronic equipment is sequenced before the first target electronic equipment. As one approach, the priority between the first target electronic device and the second target electronic device may be determined based on processor performance, historical network performance, etc. of the first target electronic device and the second target electronic device. For example, if the processor performance of a first target electronic device is higher than the processor performance of a second target electronic device, the priority of the first target electronic device may be higher than the priority of the second target electronic device.
Step S130: and performing loop connection with the first target equipment.
In this embodiment, after the first target device is determined from the plurality of second electronic devices, the first target device may be connected back to the first target device, so that the device connected back to the first electronic device is the electronic device that is more commonly used by the user, and the use requirement of the user is met. As one way, after determining the first target device from the plurality of second electronic devices, a backhaul request may be initiated to the first target device by paging to wait for a backhaul with the first target device.
According to the device reconnection method provided by the embodiment of the application, the bluetooth connection record is acquired, wherein the bluetooth connection record comprises the utilization rate of each of a plurality of second electronic devices which have established bluetooth connection with the first electronic device, and at least one second electronic device is determined from the plurality of second electronic devices as a first target device to be reconnected with the first target device in the sequence from high to low of the utilization rates, so that when the first electronic device is reconnected, the second electronic device with the higher utilization rate is automatically reconnected, and user experience is improved.
Referring to fig. 6, fig. 6 is a flowchart illustrating a device loopback method according to an embodiment of the present application. The method is applied to the electronic device, and will be described in detail with reference to the flow shown in fig. 6, where the device loop-back method may specifically include the following steps:
step S210: the method comprises the steps of obtaining a Bluetooth connection record, wherein the Bluetooth connection record comprises the utilization rate of each second electronic device in a plurality of second electronic devices which have established Bluetooth connection with the first electronic device, and the Bluetooth connection record further comprises the disconnection time of the first electronic device and each second electronic device in the last Bluetooth connection disconnection.
In this embodiment, the bluetooth connection record includes the usage rate of each of the plurality of second electronic devices that have established bluetooth connection with the first electronic device, and the time of the first electronic device disconnecting from each of the plurality of second electronic devices that have established bluetooth connection. As one way, the first electronic device may obtain a bluetooth connection record from the local, obtain the usage rate of the first electronic device and each second electronic device from the bluetooth connection record, and obtain the disconnection time of the first electronic device and each second electronic device at the last time when the bluetooth connection is disconnected.
Step S220: and determining at least one second electronic device from the plurality of second electronic devices as a second target device in the sequence from the back to the front of the disconnection time.
In this embodiment, the first electronic device and the plurality of second electronic devices have established bluetooth connections, and the bluetooth connection record records disconnection time of the first electronic device and each of the plurality of second electronic devices when the bluetooth connection is last disconnected. As one way, after acquiring the disconnection time of the last bluetooth disconnection with each second electronic device, the first electronic device may determine at least one second electronic device from the plurality of second electronic devices in order from the back to the front of the disconnection time, and use the determined at least one second electronic device as the second target device. It will be appreciated that the later the time of the last bluetooth disconnection with the first electronic device, the later (closer to the current time) the second electronic device is used, and the earlier (further from the current time) the last bluetooth disconnection with the first electronic device, the earlier the second electronic device is used.
In some embodiments, when it is required to determine a second electronic device as the second target device, a second electronic device that is the last of the disconnection time of the last bluetooth disconnection from the first electronic device may be used as the second target device; when two second electronic devices are required to be determined as second target devices, two second electronic devices which are last in disconnection time of the last Bluetooth disconnection with the first electronic device and are next to the last can be taken as the second target devices; when three second electronic devices are required to be determined as second target devices, the three second electronic devices which are last, second last, and third last in disconnection time of the first electronic device in the last disconnection of the bluetooth connection can be used as the second target devices; and so on, and will not be described herein.
In some embodiments, when two of the plurality of second electronic devices coincide with the first electronic device at a disconnection time of the last disconnection, one of the two electronic devices may be regarded as a third target electronic device and the other may be regarded as a fourth target electronic device. And then acquiring the preset priorities of the third target electronic device and the fourth target electronic device. When the priority of the third target electronic equipment is higher than that of the fourth target electronic equipment, sequencing the back connection sequence of the third target electronic equipment and the first electronic equipment before the fourth target electronic equipment; when the priority of the fourth target electronic device is higher than that of the third target electronic device, the connection-back sequence of the fourth target electronic device and the first electronic device is ordered before the third target electronic device. As one approach, the priority between the third target electronic device and the fourth target electronic device may be determined based on processor performance, historical network performance, etc. of the third target electronic device and the fourth target electronic device. For example, if the processor performance of the third target electronic device is higher than the processor performance of the fourth target electronic device, the priority of the third target electronic device may be higher than the priority of the fourth target electronic device.
Referring to fig. 7, fig. 7 is a flowchart illustrating step S220 of the device loopback method illustrated in fig. 6 according to the present application. As will be explained in detail with respect to the flow shown in fig. 7, the method may specifically include the following steps:
step S221: obtaining a specified number, wherein the specified number is determined based on a maximum number of Bluetooth connections allowed to be established by the first electronic device.
Wherein the specified number is set based on a maximum number of the first electronic device allowed to establish bluetooth connections. Specifically, the maximum number may be an upper limit value of the electronic devices that the first electronic device allows to simultaneously establish the bluetooth connection, and the specified number may be an upper limit value of the second electronic device that the first electronic device allows to simultaneously establish the bluetooth connection with reference to the foregoing description.
The specified number is less than or equal to a maximum number of bluetooth connections allowed to be established by the first electronic device. Specifically, the specified number may be the maximum number or less than the maximum number, and is specifically set according to the actual use situation. In the embodiment of the present application, the specified number may be the maximum number.
For example, the relationship between the specified number and the maximum number of bluetooth connections allowed to be established by the first electronic device may be determined based on the power consumption of the first electronic device. When the power consumption of the first electronic device is not lower than the preset power consumption, the designated number may be the maximum number, and when the power consumption of the first electronic device is not lower than the preset power consumption, the designated number may be smaller than the maximum number, and the higher the power consumption is, the smaller the designated number is.
For example, the relationship between the specified number and the maximum number of bluetooth connections allowed to be established by the first electronic device may be determined based on the remaining power of the first electronic device. When the remaining power of the first electronic device is not higher than the preset power, the specified number may be smaller than the maximum number, and the lower the remaining power is, the smaller the specified number is.
For example, the relationship between the specified number and the maximum number of bluetooth connections allowed to be established by the first electronic device may be determined according to a load rate of the first electronic device. When the load rate of the first electronic device is lower than the preset load rate, the designated number may be the maximum number, and when the load rate of the first electronic device is not lower than the preset load rate, the designated number may be smaller than the maximum number, and the higher the load rate is, the smaller the designated number is.
Step S222: and determining the specified number of second electronic devices from the plurality of second electronic devices as the second target devices in the sequence from the back to the front of the disconnection time.
As one way, the first electronic device may determine, after acquiring the disconnection time of the last bluetooth disconnection with each second electronic device and the specified number of the first electronic devices, the specified number of the second electronic devices from among the plurality of second electronic devices in order from the back to the front of the disconnection time, and regard the determined specified number of the second electronic devices as the second target devices.
In some embodiments, when it is determined that the specified number is 1, then one second electronic device which is the last of the disconnection times of the last disconnection of the bluetooth connection with the first electronic device may be taken as the second target device; when it is determined that the specified number is 2, two second electronic devices which are last and second last after the disconnection time of the last bluetooth disconnection with the first electronic device may be taken as second target devices; when it is determined that the specified number is 3, three second electronic devices, which are last, second last, and third last after the last disconnection time of the last disconnection of the bluetooth connection with the first electronic device, may be taken as second target devices; and so on, and will not be described herein.
Step S230: and performing loop connection with the second target device.
In this embodiment, after the second target device is determined from the plurality of second electronic devices, the first electronic device may loop back with the second target device, so that the first electronic device preferentially loops back the electronic device that has recently disconnected from the bluetooth connection, so as to meet the use requirement of the user. As one way, after determining a second target device from a plurality of second electronic devices, a backhaul request may be initiated to the second target device by paging to wait for a backhaul with the second target device.
Step S240: and when the second target equipment is lost, determining at least one second electronic equipment from the plurality of second electronic equipment as the first target equipment according to the sequence from high to low of the utilization rate.
In some embodiments, when the first electronic device performs a loopback connection with the second target device, the first electronic device may successfully perform the loopback connection with the second target device and may also lose the loopback connection with the second target device. Therefore, in this embodiment, when the first electronic device performs a reconnection with the second target device, the reconnection status of the second target device may be monitored, and when it is monitored that the reconnection with the second target device is lost, at least one second electronic device may be determined from the plurality of second electronic devices in order of high usage rate to low usage rate, and the determined at least one second electronic device may be used as the first target device.
For example, when a first electronic device is connected back to a second target device, if the second target device is not within the connection range of the first electronic device, the first electronic device may be lost to being connected back to the second target device.
Step S250: and performing loop connection with the first target equipment.
For detailed description of step S250, please refer to step S130, which is not described herein.
An apparatus reconnection method provided in an embodiment of the present application obtains a bluetooth connection record, where the bluetooth connection record includes a usage rate of each of a plurality of second electronic apparatuses that have established bluetooth connection with a first electronic apparatus, the bluetooth connection record further includes a disconnection time at which the first electronic apparatus and each of the second electronic apparatuses have last disconnected from the bluetooth connection, and determines, in order from back to front of the disconnection time, at least one second electronic apparatus from the plurality of second electronic apparatuses as a second target apparatus to perform reconnection with the second target apparatus, and when reconnection with the second target apparatus is lost, determines, in order from high to low of the usage rate, at least one second electronic apparatus from the plurality of second electronic apparatuses as a first target apparatus to perform reconnection with the first target apparatus. Compared with the device reconnection method shown in fig. 5, in this embodiment, the second electronic device is reconnected with the first electronic device in the sequence from the back to the front of the time for disconnecting the bluetooth connection, and when the reconnection fails, the second electronic device with the higher utilization rate is reconnected automatically, so that the user experience is improved.
Referring to fig. 8, fig. 8 is a flowchart illustrating a device loopback method according to an embodiment of the present application. The method is applied to the electronic device, and will be described in detail with respect to the flow shown in fig. 8, where the device connection method may specifically include the following steps:
step S310: the method comprises the steps of obtaining a Bluetooth connection record, wherein the Bluetooth connection record comprises the utilization rate of each second electronic device in a plurality of second electronic devices which have established Bluetooth connection with the first electronic device, and the Bluetooth connection record further comprises the disconnection time of the first electronic device and each second electronic device in the last Bluetooth connection disconnection.
Step S320: and determining at least one second electronic device from the plurality of second electronic devices as a second target device in the sequence from the back to the front of the disconnection time.
Step S330: and performing loop connection with the second target device.
For the detailed description of steps S310 to S330, refer to steps S210 to S230, which are not described herein again.
Step S340: and when the second target device is lost, determining the second electronic device with the highest utilization rate from the plurality of second electronic devices as the first target device.
In some embodiments, when the first electronic device performs a loopback connection with the second target device, the first electronic device may successfully perform the loopback connection with the second target device and may also lose the loopback connection with the second target device. Therefore, in this embodiment, when the first electronic device performs reconnection with the second target device, the reconnection status with the second target device may be monitored, and when it is monitored that the reconnection with the second target device is lost, the second electronic device with the highest usage rate may be determined from the plurality of second electronic devices, and the determined second electronic device with the highest usage rate is used as the first target device.
That is, in the present embodiment, regardless of the number of the second target devices (the specified number) and regardless of the number of the devices that are back-coupled and lost among the second target devices, when the first electronic device and the second target devices are back-coupled and lost, the second electronic device (one second electronic device) with the highest usage rate is determined from the plurality of second electronic devices as the first target device.
For example, if the number of the second target devices (the specified number) is one, that is, when the first electronic device is lost after being reconnected with one second target device, the second electronic device (one second electronic device) with the highest usage rate is determined from the plurality of second electronic devices as the first target device; if the number of the second target devices (the designated number) is two, that is, when the first electronic device and one or both of the two second target devices fail back to back, determining a second electronic device (one second electronic device) with the highest utilization rate from the plurality of second electronic devices as the first target device; if the number of the second target devices (the designated number) is three, that is, when one, two, or three of the first electronic device and the three second target devices fail, the second electronic device (one second electronic device) with the highest utilization rate is determined as the first target device from the plurality of second electronic devices, and so on, which is not described herein again.
Step S350: and performing loop connection with the first target equipment.
For detailed description of step S350, please refer to step S130, which is not described herein again.
The device reconnection method provided in an embodiment of the present application obtains a bluetooth connection record, where the bluetooth connection record includes a usage rate of each of a plurality of second electronic devices that have established bluetooth connection with a first electronic device, the bluetooth connection record further includes a disconnection time at which the first electronic device and each of the second electronic devices have last disconnected from the bluetooth connection, and determines, in order from back to front of the disconnection time, at least one second electronic device from the plurality of second electronic devices as a second target device to perform reconnection with the second target device, and when the second target device loses reconnection, determines, from the plurality of second electronic devices, a second electronic device with a highest usage rate as a first target device to perform reconnection with the first target device. Compared with the device reconnection method shown in fig. 5, in this embodiment, the second electronic device is reconnected with the first electronic device in the sequence from the back to the front of the time for disconnecting the bluetooth connection, and when the reconnection fails, the second electronic device with the highest utilization rate is reconnected automatically, so that the user experience is improved.
Referring to fig. 9, fig. 9 is a flowchart illustrating a device loopback method according to an embodiment of the present application. The method is applied to the electronic device, and will be described in detail with reference to the flow shown in fig. 9, in this embodiment, the number of the second target devices is at least two, and the device reconnection method may specifically include the following steps:
step S410: the method comprises the steps of obtaining a Bluetooth connection record, wherein the Bluetooth connection record comprises the utilization rate of each second electronic device in a plurality of second electronic devices which have established Bluetooth connection with the first electronic device, and the Bluetooth connection record further comprises the disconnection time of the first electronic device and each second electronic device in the last Bluetooth connection disconnection.
Step S420: and determining at least one second electronic device from the plurality of second electronic devices as a second target device in the sequence from the back to the front of the disconnection time.
Step S430: and performing loop connection with the second target device.
For detailed description of steps S410 to S430, please refer to steps S210 to S230, which are not described herein again.
Step S440: and when the reconnection with part or all of at least two second target devices is failed, acquiring the device number of the second target devices with failed reconnection.
In this embodiment, the number of the second target devices is at least two. That is, the first electronic device is in loopback connection with two second target devices at the same time.
In some embodiments, when the first electronic device performs the loopback connection with the at least two second target devices, the first electronic device may be in loopback connection with both the at least two second target devices, may be in loopback connection with a part of the at least two second target devices and may be in loopback failure with a part of the at least two second target devices, and may also be in loopback failure with both the at least two second target devices. Therefore, in this embodiment, when the first electronic device performs reconnection with the at least two second target devices, the reconnection statuses with the at least two second target devices may be monitored, and when it is monitored that the reconnection with some or all of the at least two second target devices is lost, the device number of the second target device with the reconnection failure may be obtained.
For example, assuming that the number of the second target devices is three, when the reconnection with one of the three second target devices is failed, the number of devices with which the reconnection fails is 1; when the two second target devices in the three second target devices are back-coupled and lost, the number of the back-coupled and lost devices is 2; when all of the three second target devices are back-coupled and lost, the number of back-coupled and lost devices is 3.
Step S450: determining the second electronic equipment with the equipment number from the plurality of second electronic equipment as the first target equipment according to the sequence from high to low of the utilization rate.
As one way, after obtaining the usage rate with each second electronic device and returning the number of devices that are lost, the first electronic device may determine, in order from high to low of the usage rate, the number of second electronic devices from the plurality of second electronic devices, and take the determined number of second electronic devices as the first target device.
In some embodiments, when the number of devices is determined to be 1, one second electronic device with the highest usage rate with the first electronic device may be taken as the first target device; when the number of the devices is determined to be 2, two second electronic devices with the highest utilization rate and the second highest utilization rate with the first electronic device can be used as the first target devices; when the number of the devices is determined to be 3, three second electronic devices with the highest utilization rate, the second highest utilization rate and the third highest utilization rate with the first electronic device can be taken as first target devices; and so on, and will not be described herein.
That is, in the present embodiment, the number of devices in the second target devices (the specified number) that fail to reconnect with the first electronic device is the same as the determined number of the first target devices, that is, the sum of the number of devices in the second target devices that succeed in reconnecting and the number of the first target devices is equal to the specified number, thereby ensuring that the first electronic device can simultaneously connect with the maximum number of second electronic devices to which bluetooth connection is allowed.
Step S460: and performing loop connection with the first target equipment.
For detailed description of step S460, please refer to step S130, which is not described herein.
In the device reconnection method provided in an embodiment of the present application, a bluetooth connection record is obtained, where the bluetooth connection record includes a usage rate of each of a plurality of second electronic devices that have established bluetooth connection with a first electronic device, the bluetooth connection record further includes a disconnection time at which the first electronic device and each of the second electronic devices have last disconnected from bluetooth, at least one second electronic device is determined from the plurality of second electronic devices as a second target device in order from the last disconnection time to the last disconnection time, a reconnection is performed with the second target device, when reconnection with some or all of the at least two second target devices fails, the number of devices of the second target device that failed the reconnection is obtained, and the second electronic devices of the number of devices are determined from the plurality of second electronic devices as first target devices in order from a high usage rate to a low usage rate, and carrying out loop connection with the first target device. Compared with the device reconnection method shown in fig. 5, the embodiment also performs reconnection with the second electronic device in the order from the back to the front when the bluetooth connection is disconnected, and automatically reconnects the second electronic devices with the same number as the previous reconnection failures in the order from high to low in the usage rate when the reconnection failures, so as to improve the user experience.
Referring to fig. 10, fig. 10 is a schematic flow chart illustrating a device loopback method according to an embodiment of the present application. The method is applied to the electronic device, and will be described in detail with reference to the flow shown in fig. 10, where the device loop-back method may specifically include the following steps:
step S510: the method comprises the steps of obtaining a Bluetooth connection record, wherein the Bluetooth connection record comprises the utilization rate of each second electronic device in a plurality of second electronic devices which have established Bluetooth connection with the first electronic device, and the Bluetooth connection record further comprises the disconnection time of the first electronic device and each second electronic device in the last Bluetooth connection disconnection.
Step S520: and determining at least one second electronic device from the plurality of second electronic devices as a second target device in the sequence from the back to the front of the disconnection time.
For the detailed description of steps S510 to S520, refer to steps S210 to S220, which are not described herein again.
Step S530: acquiring the number of attempted connections with the second target device.
In some embodiments, when the first electronic device performs a backhaul connection with the second target device, the first electronic device may initiate a backhaul connection request to the second target device by means of paging, and if the backhaul connection request is initiated without successfully establishing a connection, the first electronic device may initiate a backhaul connection request to the second target device again, and this is repeated. Each time the first electronic device initiates the sequential reconnection request, it may be considered that the number of attempted connections between the first electronic device and the second target device is increased by 1, and therefore, when the first electronic device performs reconnection with the second target device, the number of attempted connections with the second target device may be obtained.
Step S540: determining a back connectivity failure with the second target device when the number of attempted connections is greater than a number threshold.
In some embodiments, the first electronic device may preset and store a number threshold, which is used as a judgment basis for the number of connection attempts. Therefore, in the present embodiment, after the number of attempted connections with the second target device is obtained, the number of attempted connections may be compared with a number threshold to determine whether the number of attempted connections is greater than the number threshold. Wherein the failure to reconnect with the second target device is confirmed when the number of attempted connections is determined to be greater than a number threshold. Wherein when it is determined that the number of attempted connections is not greater than the number threshold, then attempting to connect back to the second target device may continue.
Step S550: and determining at least one second electronic device from the plurality of second electronic devices as a first target device in the sequence from high to low of the utilization rate.
Step S560: and performing loop connection with the first target equipment.
For detailed description of steps S550 to S560, please refer to steps S120 to S130, which are not described herein again.
In the device reconnection method provided in an embodiment of the present application, a bluetooth connection record is obtained, where the bluetooth connection record includes a usage rate of each of a plurality of second electronic devices that have established bluetooth connection with a first electronic device, the bluetooth connection record further includes a disconnection time at which the first electronic device and each of the second electronic devices have disconnected the bluetooth connection last time, at least one second electronic device is determined from the plurality of second electronic devices as a second target device in order from the back to the front of the disconnection time, and the number of attempted connections with the second target device is obtained, and when the number of times of connection attempts is larger than the threshold value of times, determining that the connection back is lost with the second target equipment, and determining at least one second electronic equipment from the plurality of second electronic equipment as the first target equipment to be connected back with the first target equipment according to the sequence from high utilization rate to low utilization rate. Compared with the device reconnection method shown in fig. 5, in this embodiment, the second electronic device is reconnected with the first electronic device in the sequence from the back to the front of the time for disconnecting the bluetooth connection, and when the reconnection fails, the second electronic device with the higher utilization rate is reconnected automatically, so that the user experience is improved. And when the number of times of attempted connection with the second target device is larger than the number threshold, determining the return loss of the second target device, thereby improving the accuracy of determining the return loss.
Referring to fig. 11, fig. 11 is a flowchart illustrating a device loopback method according to an embodiment of the present application. The method is applied to the electronic device, and will be described in detail with respect to the flow shown in fig. 11, where the device loop-back method may specifically include the following steps:
step S610: the method comprises the steps of obtaining a Bluetooth connection record, wherein the Bluetooth connection record comprises the utilization rate of each second electronic device in a plurality of second electronic devices which are connected with the first electronic device in a Bluetooth mode, and the Bluetooth connection record further comprises the connection time of the first electronic device and each second electronic device in the first connection.
Step S620: and determining at least one second electronic device from the plurality of second electronic devices as a first target device in the sequence from high to low of the utilization rate.
Step S630: and performing loop connection with the first target equipment.
For detailed description of steps S610 to S630, refer to steps S110 to S130, which are not described herein again.
Step S640: and when the first target device is lost, determining at least one second electronic device from the plurality of second electronic devices as a third target device according to the sequence of the connection time from front to back.
In this embodiment, the bluetooth connection record includes the usage rate of the first electronic device and each of the plurality of second electronic devices that have established bluetooth connection, and the connection time of the first electronic device and each of the plurality of second electronic devices that have established bluetooth connection for the first time. As one mode, the first electronic device may obtain a bluetooth connection record from a local area, obtain a usage rate of the first electronic device and each second electronic device from the bluetooth connection record, and obtain a connection time when the first electronic device and each second electronic device are connected for the first time.
In some embodiments, the first electronic device may successfully or unsuccessfully reconnect to the first target device when reconnecting to the first target device. Therefore, in this embodiment, when the first electronic device performs reconnection with the first target device, the reconnection status with the first target device may be monitored, and when it is monitored that the reconnection with the first target device is lost, at least one second electronic device may be determined from the plurality of second electronic devices in the order from front to back of the connection time, and the determined at least one second electronic device may be used as the third target device. It will be appreciated that the earlier the connection time with the first electronic device, the more likely it is that the second electronic device is characterised as being the user's own electronic device, i.e. the greater the probability that the user desires to use the second electronic device.
In some embodiments, when it is required to determine a second electronic device as the third target device, the second electronic device first connected to the first electronic device may be used as the third target device; when two second electronic devices are required to be determined as third target devices, the two second electronic devices which are connected with the first electronic device first and second can be used as the third target devices; when three second electronic devices are required to be determined as third target devices, the three second electronic devices which are connected with the first electronic device firstly, secondly and thirdly can be used as the third target devices; and so on, and will not be described herein.
Step S650: and performing loop connection with the third target device.
In this embodiment, after determining the third target device from the plurality of second electronic devices, the first electronic device may be connected back to the third target device, so that the electronic device connected back to the first electronic device earlier meets the use requirement of the user. As a manner, after determining the third target device from the plurality of second electronic devices, a backhaul request may be initiated to the third target device by paging to wait for a backhaul with the third target device.
The device reconnection method provided by an embodiment of the application obtains a bluetooth connection record, where the bluetooth connection record includes a usage rate of each second electronic device in a plurality of second electronic devices that have established bluetooth connection with a first electronic device, the bluetooth connection record further includes a connection time at which the first electronic device is connected with each second electronic device for the first time, and determines at least one second electronic device as a first target device from the plurality of second electronic devices in a sequence from high to low according to the usage rate, and reconnects the first target device with the first electronic device, and determines at least one second electronic device as a third target device from the plurality of second electronic devices in a sequence from front to back according to the connection time when the reconnection with the first target device is lost, and reconnects the third target device with the third target device. Compared with the device reconnection method shown in fig. 5, in this embodiment, when the second electronic device with a higher frequency usage rate is reconnected or lost, the second electronic device is automatically reconnected with the second electronic device in the sequence from front to back of the connection time, so that the user experience is improved.
Referring to fig. 12, fig. 12 is a block diagram illustrating a device loopback apparatus according to an embodiment of the present application. The device connection apparatus 300 is applied to the electronic device, and will be explained with reference to the block diagram shown in fig. 12, where the device connection apparatus 300 includes: a bluetooth connection record obtaining module 310, a target device determining module 320, and a target device reconnecting module 330, wherein:
a bluetooth connection record obtaining module 310, configured to obtain a bluetooth connection record, where the bluetooth connection record includes a usage rate of each of a plurality of second electronic devices that have established bluetooth connection with the first electronic device.
Further, the first electronic device is a bluetooth headset, the bluetooth headset is accommodated in the charging device, and the bluetooth connection record obtaining module 310 includes: the bluetooth connection record obtains the submodule, wherein:
and the Bluetooth connection record acquisition submodule is used for acquiring the Bluetooth connection record when the charging device is detected to be opened.
A target device determining module 320, configured to determine at least one second electronic device from the plurality of second electronic devices as a first target device in an order from high to low of the usage rates.
Further, the bluetooth connection record further includes a disconnection time of the first electronic device from the each second electronic device at the last time of the bluetooth connection disconnection, and the target device determining module 320 includes: a second target device determining submodule, a second target device back-connecting submodule and a first target device determining submodule, wherein:
and the second target equipment determining submodule is used for determining at least one second electronic equipment from the plurality of second electronic equipment as the second target equipment according to the sequence from back to front of the disconnection time.
Further, the second target device determination submodule includes: a specified number acquisition unit and a second target device determination unit, wherein:
a specified number acquisition unit configured to acquire a specified number, wherein the specified number is determined based on a maximum number of bluetooth connections allowed to be established by the first electronic device.
A second target device determining unit, configured to determine, as the second target device, the specified number of second electronic devices from the plurality of second electronic devices in order from the back to the front of the disconnection time.
And the second target equipment reconnection submodule is used for performing reconnection with the second target equipment.
And the first target device determining submodule is used for determining at least one second electronic device from the plurality of second electronic devices as the first target device according to the sequence from high to low of the utilization rate when the second target device is lost.
Further, the first target device determination submodule includes: a first target device determination unit, wherein:
a first target device determining unit, configured to determine, as the first target device, a second electronic device with a highest usage rate from among the plurality of second electronic devices when the first target device fails to be reconnected with the second target device.
Further, the number of the second target devices is at least two, and the first target device determination submodule includes: a device number acquisition unit and a second target device determination unit, wherein:
and the device number acquiring unit is used for acquiring the device number of the second target device with reconnection failure when the reconnection failure with part or all of the at least two second target devices occurs.
A second target device determining unit, configured to determine, as the first target device, a second electronic device of the number of devices from the plurality of second electronic devices in an order from a high usage rate to a low usage rate.
A target device loopback module 330, configured to loop with the first target device.
Further, the target device reconnecting module 330 includes: an attempt connection number acquisition sub-module and a back connection failure determination sub-module, wherein:
and the connection attempt number acquisition submodule is used for acquiring the connection attempt number of the second target device.
A reconnection failure determination submodule configured to determine reconnection failure with the second target device when the number of attempted connections is greater than a number threshold.
Further, the bluetooth connection record further includes a connection time when the first electronic device is connected to each second electronic device for the first time, and the device reconnection apparatus 300 further includes: a third target device determining module and a third target device loop connecting module, wherein:
and the third target device determining module is used for determining at least one second electronic device from the plurality of second electronic devices as a third target device according to the sequence of the connection time from front to back when the connection with the first target device is lost.
And the third target equipment reconnection module is used for performing reconnection with the third target equipment.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, the coupling between the modules may be electrical, mechanical or other type of coupling.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
Referring to fig. 13, a block diagram of an electronic device 100 according to an embodiment of the present disclosure is shown. The electronic device 100 may be a smart phone, a tablet computer, an electronic book, or other electronic devices capable of running an application. The electronic device 100 in the present application may include one or more of the following components: a processor 130, a memory 140, and one or more applications, wherein the one or more applications may be stored in the memory 140 and configured to be executed by the one or more processors 130, the one or more programs configured to perform the methods as described in the aforementioned method embodiments.
Processor 130 may include one or more processing cores, among others. The processor 130 connects various parts throughout the electronic device 100 using various interfaces and lines, and performs various functions of the electronic device 100 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 140 and calling data stored in the memory 140. Alternatively, the processor 130 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 130 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content to be displayed; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 130, but may be implemented by a communication chip.
The Memory 140 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 140 may be used to store instructions, programs, code sets, or instruction sets. The memory 140 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The data storage area may also store data created by the electronic device 100 during use (e.g., phone book, audio-video data, chat log data), and the like.
Referring to fig. 14, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable medium 400 has stored therein a program code that can be called by a processor to execute the method described in the above-described method embodiments.
The computer-readable storage medium 400 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 400 includes a non-volatile computer-readable storage medium. The computer readable storage medium 400 has storage space for program code 410 for performing any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. Program code 410 may be compressed, for example, in a suitable form.
To sum up, the device reconnection method, apparatus, electronic device, and storage medium provided in the embodiments of the present application obtain the bluetooth connection record, where the bluetooth connection record includes the usage rate of each of a plurality of second electronic devices that have established bluetooth connection with the first electronic device, and determine, in order from high to low in the usage rate, at least one second electronic device from the plurality of second electronic devices as a first target device to perform reconnection with the first target device, so that when the first electronic device performs reconnection, the second electronic device with a higher usage rate is automatically reconnected, thereby improving user experience.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (12)

1. A device loopback method applied to a first electronic device, the method comprising:
acquiring a Bluetooth connection record, wherein the Bluetooth connection record comprises the utilization rate of each of a plurality of second electronic devices which have established Bluetooth connection with the first electronic device;
determining at least one second electronic device from the plurality of second electronic devices as a first target device in the order from high to low of the usage rates;
and performing loop connection with the first target equipment.
2. The method according to claim 1, wherein the bluetooth connection record further includes a disconnection time of the first electronic device from each second electronic device at the last time of disconnecting bluetooth connection, and the determining at least one second electronic device from the plurality of second electronic devices as a first target device in the order of the usage rates from high to low comprises:
determining at least one second electronic device from the plurality of second electronic devices as a second target device in the sequence from the back to the front of the disconnection time;
performing a loopback with the second target device;
and when the second target equipment is lost, determining at least one second electronic equipment from the plurality of second electronic equipment as the first target equipment according to the sequence from high to low of the utilization rate.
3. The method according to claim 2, wherein the determining at least one second electronic device from the plurality of second electronic devices as a second target device in an order from back to front of the disconnection time comprises:
acquiring a specified number, wherein the specified number is determined based on the maximum number of Bluetooth connections allowed to be established by the first electronic equipment;
and determining the specified number of second electronic devices from the plurality of second electronic devices as the second target devices in the sequence from the back to the front of the disconnection time.
4. The method according to claim 2, wherein the determining at least one second electronic device from the plurality of second electronic devices as the first target device in the order from high to low of the usage rate when the second target device is lost, comprises:
and when the second target device is lost, determining the second electronic device with the highest utilization rate from the plurality of second electronic devices as the first target device.
5. The method of claim 2, wherein the number of the second target devices is at least two, and the determining at least one second electronic device from the plurality of second electronic devices as the first target device in the order of the usage rate from high to low when the second target device is lost comprises:
when the reconnection with part or all of at least two second target devices is failed, acquiring the number of the second target devices with failed reconnection;
determining the second electronic equipment with the equipment number from the plurality of second electronic equipment as the first target equipment according to the sequence from high to low of the utilization rate.
6. The method of claim 2, wherein the reconnecting with the second target device comprises:
acquiring the number of attempted connections with the second target device;
determining a back connectivity failure with the second target device when the number of attempted connections is greater than a number threshold.
7. The method according to any of claims 1-6, wherein the usage rate comprises a connection frequency or a connection duration.
8. The method of any of claims 1-6, wherein the Bluetooth connection record further includes a connection time when the first electronic device first connects to each of the second electronic devices, and further comprising, after making a loop back with the first target device:
when the first target device is lost, determining at least one second electronic device from the plurality of second electronic devices as a third target device according to the sequence of the connection time from front to back;
and performing loop connection with the third target device.
9. The method of any one of claims 1-6, wherein the first electronic device is a Bluetooth headset, the Bluetooth headset being housed in a charging device, and the obtaining the Bluetooth connection record comprises:
and when the charging device is detected to be opened, acquiring the Bluetooth connection record.
10. An apparatus for device loopback, applied to a first electronic device, the apparatus comprising:
the Bluetooth connection record acquisition module is used for acquiring a Bluetooth connection record, wherein the Bluetooth connection record comprises the utilization rate of each second electronic device in a plurality of second electronic devices which have established Bluetooth connection with the first electronic device;
the target equipment determining module is used for determining at least one second electronic equipment from the plurality of second electronic equipment as a first target equipment according to the sequence from high to low of the utilization rate;
and the target equipment back connection module is used for carrying out back connection with the first target equipment.
11. An electronic device comprising a memory and a processor, the memory coupled to the processor, the memory storing instructions that, when executed by the processor, the processor performs the method of any of claims 1-9.
12. A computer-readable storage medium, having stored thereon program code that can be invoked by a processor to perform the method according to any one of claims 1 to 9.
CN202111088468.7A 2021-09-16 2021-09-16 Device loop-back method, device, electronic device and storage medium Pending CN113810890A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111088468.7A CN113810890A (en) 2021-09-16 2021-09-16 Device loop-back method, device, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111088468.7A CN113810890A (en) 2021-09-16 2021-09-16 Device loop-back method, device, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN113810890A true CN113810890A (en) 2021-12-17

Family

ID=78941374

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111088468.7A Pending CN113810890A (en) 2021-09-16 2021-09-16 Device loop-back method, device, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN113810890A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114915957A (en) * 2022-07-13 2022-08-16 荣耀终端有限公司 Bluetooth headset reconnection control method and control device
CN116074986A (en) * 2023-01-28 2023-05-05 荣耀终端有限公司 Bluetooth connection method, device and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107770758A (en) * 2017-09-21 2018-03-06 深圳市汉普电子技术开发有限公司 The bluetooth of Baffle Box of Bluetooth returns even method, Baffle Box of Bluetooth and storage medium
WO2019090726A1 (en) * 2017-11-10 2019-05-16 华为技术有限公司 Method for selecting bluetooth device, terminal, and system
CN111866821A (en) * 2019-04-26 2020-10-30 深圳市冠旭电子股份有限公司 Bluetooth headset reconnection control method and device and Bluetooth headset
CN112399396A (en) * 2021-01-19 2021-02-23 深圳市汇顶科技股份有限公司 Bluetooth connection switching method, Bluetooth chip and Bluetooth device
CN113099342A (en) * 2021-03-31 2021-07-09 深圳市睿耳电子有限公司 Wireless earphone uncovering and reconnection method and related equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107770758A (en) * 2017-09-21 2018-03-06 深圳市汉普电子技术开发有限公司 The bluetooth of Baffle Box of Bluetooth returns even method, Baffle Box of Bluetooth and storage medium
WO2019090726A1 (en) * 2017-11-10 2019-05-16 华为技术有限公司 Method for selecting bluetooth device, terminal, and system
CN111866821A (en) * 2019-04-26 2020-10-30 深圳市冠旭电子股份有限公司 Bluetooth headset reconnection control method and device and Bluetooth headset
CN112399396A (en) * 2021-01-19 2021-02-23 深圳市汇顶科技股份有限公司 Bluetooth connection switching method, Bluetooth chip and Bluetooth device
CN113099342A (en) * 2021-03-31 2021-07-09 深圳市睿耳电子有限公司 Wireless earphone uncovering and reconnection method and related equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114915957A (en) * 2022-07-13 2022-08-16 荣耀终端有限公司 Bluetooth headset reconnection control method and control device
CN114915957B (en) * 2022-07-13 2022-11-29 荣耀终端有限公司 Bluetooth headset reconnection control method and control device
CN116074986A (en) * 2023-01-28 2023-05-05 荣耀终端有限公司 Bluetooth connection method, device and system
CN116074986B (en) * 2023-01-28 2023-08-29 荣耀终端有限公司 Bluetooth connection method, device and system

Similar Documents

Publication Publication Date Title
CN111246441B (en) Method, system and storage medium for connecting Bluetooth headset and terminal
CN113810890A (en) Device loop-back method, device, electronic device and storage medium
EP3547715A1 (en) Method and apparatus for reducing continuous-wakeup delay of bluetooth loudspeaker, and bluetooth loudspeaker
US9065788B2 (en) Method, device and system for voice communication
CN113766477A (en) Device connection method, device, electronic device and computer readable medium
US11425520B2 (en) Method for detecting blocking of microphone and related products
CN104243685A (en) Callback options via wireless device
US8588753B2 (en) Apparatus and method in a wireless device for reestablishing a call
CN110602683B (en) Bluetooth control method, device, mobile terminal and storage medium
WO2022089313A1 (en) Communication processing method and apparatus, storage medium, chip and related device
EP3057377B1 (en) Network device, terminal device and voice service control method
CN110337079B (en) 5G network communication method, terminal, network equipment and server
WO2023061273A1 (en) Device connection method and apparatus, and electronic device and storage medium
CN111148171A (en) Call switching method and server
WO2022267269A1 (en) Call processing method and apparatus, and system, electronic device and medium
CN115665671A (en) Audio data sharing method and device, electronic equipment and storage medium
CN106488537B (en) Sending method, device and mobile terminal
CN114980066A (en) Voice communication method and device and electronic equipment
CN113747100B (en) Audio and video call method and device, storage medium and electronic equipment
CN104427287A (en) Data processing method and device
CN113766435B (en) Method, device and storage medium for establishing communication group
CN116419359B (en) Bluetooth control method and device
CN116033597B (en) Bluetooth connection method and device, electronic equipment and storage medium
CN114245370B (en) Communication management method, device, server and computer storage medium
WO2023279928A1 (en) Signal transmission method and apparatus, information prompt method and apparatus, and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination