CN114173285B - Bluetooth back connection method, system, electronic equipment, server and storage medium - Google Patents

Bluetooth back connection method, system, electronic equipment, server and storage medium Download PDF

Info

Publication number
CN114173285B
CN114173285B CN202210129748.6A CN202210129748A CN114173285B CN 114173285 B CN114173285 B CN 114173285B CN 202210129748 A CN202210129748 A CN 202210129748A CN 114173285 B CN114173285 B CN 114173285B
Authority
CN
China
Prior art keywords
electronic device
electronic
fence
smart watch
cloud server
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.)
Active
Application number
CN202210129748.6A
Other languages
Chinese (zh)
Other versions
CN114173285A (en
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.)
Honor Device Co Ltd
Original Assignee
Honor Device Co 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202210129748.6A priority Critical patent/CN114173285B/en
Publication of CN114173285A publication Critical patent/CN114173285A/en
Application granted granted Critical
Publication of CN114173285B publication Critical patent/CN114173285B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • 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 embodiment of the application provides a BT (bit rate) reconnection method and system, electronic equipment, a server and a storage medium, relates to the technical field of BT, and can improve the success rate of BT connection establishment of two pieces of electronic equipment through BT reconnection. The specific method comprises the following steps: after the first electronic equipment is disconnected from the second electronic equipment by the BT connection, periodically sending the position information of the first electronic equipment to a cloud server; the cloud server receives the position information from the first electronic equipment and forwards the position information of the first electronic equipment to the second electronic equipment; the second electronic equipment receives the position information of the first electronic equipment from the cloud server; the second electronic equipment judges whether the third electronic equipment is in the first electronic fence or not according to the position information of the third electronic equipment; and if the third electronic equipment is positioned in the first electronic fence, performing BT loop connection between the second electronic equipment and the first electronic equipment.

Description

Bluetooth back connection method, system, electronic equipment, server and storage medium
Technical Field
The present application relates to the field of Bluetooth (BT) technology, and in particular, to a BT backhaul method, system, electronic device, server, and storage medium.
Background
With the popularization of bluetooth technology, more and more electronic devices have BT functions. When two electronic devices with BT function (e.g. electronic device 1 and electronic device 2) are enabled to perform bluetooth function, a bluetooth connection may be established for communication. When the distance between the two electronic apparatuses is not within the BT communication range for some reason, for example, the BT connection of the two electronic apparatuses is disconnected. After the BT connection of two electronic devices is disconnected, if the distance of the two electronic devices is within the BT communication range again, since the BT information of each other has been saved in the process of the previous connection, the BT reconnection can be performed using the saved BT information.
In some BT backhaul schemes, when the electronic apparatus 1 disconnects BT from the electronic apparatus 2, the electronic apparatus 1 may record the location a of the electronic apparatus 2 (i.e., the location of the electronic apparatus 2 when BT is disconnected from the electronic apparatus 1 this time). Then, the electronic apparatus 1 initiates a BT reconnection to the electronic apparatus 2 when detecting that the electronic apparatus 2 returns to the above-described location a (or the vicinity of the location a).
However, the location of both electronic devices may change. Using the above scheme requires that the two electronic devices must be in (or near) position a to successfully connect back. In the following two scenarios, the electronic apparatus 1 and the electronic apparatus 2 cannot establish the BT connection through the BT backhaul connection. For example, when the electronic device 1 and the electronic device 2 move to the same location b, with the above scheme, the two electronic devices cannot automatically initiate a BT backhaul and thus cannot establish a BT connection. For another example, when the electronic device 1 moves to the location c which is very far away from the location a and the electronic device 2 returns to the location a again, the electronic device 1 initiates a BT loopback connection with the electronic device 2, and the BT connection cannot be established because the two electronic devices are far away.
In summary, according to the scheme, the success rate of establishing the BT connection by the two electronic devices through the BT backhaul is low.
Disclosure of Invention
Embodiments of the present application provide a BT reconnection method, system, electronic device, server, and storage medium, which are used to improve a success rate of establishing a BT connection between two electronic devices through BT reconnection.
In order to achieve the above purpose, the embodiments of the present application adopt the following technical solutions:
in a first aspect, a BT reconnection method is provided, where the method includes: after the first electronic device is disconnected from the second electronic device by the BT connection, the first electronic device periodically sends the position information of the first electronic device to the cloud server. Then, the cloud server receives the position information from the first electronic device and forwards the position information of the first electronic device to the second electronic device. The second electronic equipment receives the position information of the first electronic equipment from the cloud server; and the second electronic equipment judges whether the third electronic equipment is positioned in the first electronic fence or not according to the position information of the third electronic equipment. And if the third electronic equipment is positioned in the first electronic fence, performing BT loop connection between the second electronic equipment and the first electronic equipment.
The third electronic device is a first electronic device, and the first electronic fence takes the position of the second electronic device as a center; or, the third electronic device is the second electronic device, and the first electronic fence is centered on the position indicated by the position information of the first electronic device.
It can be understood that, after receiving the location information of the first electronic device, the second electronic device determines whether its location is within the first electronic fence centered around the location of the first electronic device, or whether the location of the first electronic device is within the first electronic fence centered around the location of the second electronic device. If the position of the second electronic device is located in the first electronic fence centered on the position of the first electronic device, or the position of the first electronic device is located in the first electronic fence centered on the position of the second electronic device, the second electronic device can perform BT loop connection with the first electronic device.
Whether the position of the second electronic device is located in the first electronic fence centered on the position of the first electronic device or the position of the first electronic device is located in the first electronic fence centered on the position of the second electronic device, the distance between the second electronic device and the first electronic device is within a certain range. For example, if the distance between the second electronic device and the first electronic device is within the BT communication range, the second electronic device and the first electronic device may successfully establish the BT connection through the BT backhaul connection. For another example, after the distance between the second electronic device and the first electronic device exceeds the BT communication range and the distance between the second electronic device and the first electronic device approaches the BT communication range, and the BT backhaul connection is performed between the second electronic device and the first electronic device, the BT connection may be quickly established between the second electronic device and the first electronic device through the BT backhaul connection once the distance between the second electronic device and the first electronic device is reduced to be within the BT communication range.
In summary, by using the method, the success rate of the BT connection established by the first electronic device and the second electronic device through the BT backhaul connection can be improved.
In one possible implementation, the method further includes: and if the third electronic equipment is positioned outside the first electronic fence, the second electronic equipment and the first electronic equipment do not carry out BT loop connection.
It is to be understood that if the third electronic device is outside the first electronic fence, it indicates that the location of the second electronic device is outside the first electronic fence centered on the location of the first electronic device, or that the location of the first electronic device is outside the first electronic fence centered on the location of the second electronic device. Whether the position of the second electronic device is outside the first electronic fence centered on the position of the first electronic device or the position of the first electronic device is outside the first electronic fence centered on the position of the second electronic device, it means that the distance between the first electronic device and the second electronic device is greater than the distance from the center of the first electronic fence to the boundary of the first electronic device. If the distance from the center of the first electronic fence to the boundary of the first electronic device is equal to the BT communication distance setting, the distance between the first electronic device and the second electronic device is known to exceed the BT communication distance. At this time, the second electronic device may not BT loop connection with the first electronic device. Therefore, the BT loop-back connection failure of the first electronic device and the second electronic device caused by the fact that the first electronic device is too far away from the second electronic device is avoided, and therefore the power consumption of the second electronic device and/or the power consumption of the first electronic device can be reduced.
In another possible implementation manner, if the third electronic device is located in the first electronic fence, the BT loop connection between the second electronic device and the first electronic device includes: and if the third electronic equipment is positioned in the first electronic fence, performing BT back connection between the second electronic equipment and the first electronic equipment according to a first preset frequency. The method further comprises the following steps: and if the third electronic equipment is positioned outside the first electronic fence and in the second electronic fence, performing BT back connection between the second electronic equipment and the first electronic equipment according to a second preset frequency.
The center of the second electronic fence is superposed with the center of the first electronic fence, and the radius of the second electronic fence is greater than that of the first electronic fence; the first predetermined frequency is greater than the second predetermined frequency.
It is understood that the BT communication distance of the electronic devices in the open area where the shield is less is generally larger than the BT communication distance of the electronic devices in the area where the shield is much. That is, the BT communication distance is not a fixed value. The number of obstructions in the area of the electronic device may also affect the amount of BT communication distance. Thus, in addition to a first electronic fence centered on the location of the first electronic device or the second electronic device, the second electronic device can also set a second electronic fence. The center of the second electronic fence coincides with the center of the first electronic fence, and the area of the second electronic fence is larger than the area of the first electronic fence.
Second, the second electronic device can set the distance from the center of the first electronic fence to the boundary of the first electronic device (e.g., the radius of the first electronic fence), so as to ensure that the two electronic devices in the first electronic fence are not substantially affected by the obstruction, and the BT connection can be established. The second electronic device may set a distance from a center of the second electronic fence to a boundary of the second electronic device (e.g., a radius of the second electronic fence) to ensure that the two electronic devices within the second electronic fence are affected by the number of obstructions, and that the BT connection may be established or may not be established. Further, if the third electronic device is within the first electronic fence, it may be determined that the first electronic device and the second electronic device may successfully establish the BT connection. Therefore, the second electronic device and the first electronic device can perform BT loopback according to a higher first preset frequency, so as to ensure that the first electronic device and the second electronic device quickly establish BT connection through BT loopback.
Secondly, if the third electronic device is located outside the first electronic fence and inside the second electronic fence, it can be known that the first electronic device and the second electronic device are likely to successfully establish the BT connection, for example, when there are few obstructions inside the second electronic fence, the first electronic device and the second electronic device can successfully establish the BT connection. Thus, the second electronic device may BT-loop with the first electronic device. However, the first electronic device and the second electronic device may not be able to establish the BT connection, for example, when there are many obstacles in the second electronic fence, the BT connection may not be established between the first electronic device and the second electronic device. Therefore, the second electronic device and the first electronic device can perform BT backhaul according to a second lower preset frequency. Therefore, power consumption can be reduced, and BT connection can be automatically established between the first electronic device and the second electronic device through BT back connection under the condition that shielding objects in the second electronic fence are less.
In another possible implementation manner, the method further includes: and if the third electronic equipment is positioned outside the second electronic fence, the second electronic equipment and the first electronic equipment do not carry out BT loop connection.
It can be understood from the above analysis that when the third electronic device is located outside the first electronic fence and the third electronic device is located inside the second electronic fence, the first electronic device and the second electronic device may or may not establish a BT connection due to the number of the shielding objects inside the second electronic fence. Then, when the third electronic device is outside the second electronic fence, the first electronic device and the second electronic device are too far apart, and the BT connection cannot be established. At this time, the second electronic device does not perform BT back connection with the first electronic device, which can reduce the number of BT returns
For example, when there are many obstructions in the second electronic fence, the two cannot establish a BT connection. Therefore, the second electronic device and the first electronic device can perform BT loopback according to a second lower preset frequency. Therefore, the BT loop-back connection failure of the first electronic device and the second electronic device caused by the fact that the first electronic device is too far away from the second electronic device is avoided, and therefore the power consumption of the second electronic device and/or the power consumption of the first electronic device can be reduced.
In another possible implementation manner, after the first electronic device disconnects BT from the second electronic device, periodically sending location information of the first electronic device to the cloud server includes: after the first electronic device is disconnected from the second electronic device, the location information of the first electronic device can be sent to the cloud server according to the third preset frequency in the first period and the fourth preset frequency in the second period according to the historical BT connection information of the first electronic device and the second electronic device.
The BT history connection information is used for recording the time period of the BT connection disconnection between the first electronic device and the second electronic device for multiple times. The first period is a period in which the first electronic device disconnects BT connection from the second electronic device a plurality of times, and the second period is different from the first period. The third predetermined frequency is less than the fourth predetermined frequency.
It can be understood that, when the user uses the first electronic device and the second electronic device, due to the behavior habit of the user, there may occur a period of regularly disconnecting the BT connection of the first electronic device and the second electronic device, and also a period of sporadically disconnecting the BT connection of the first electronic device and the second electronic device.
Since the period in which the BT connection of the first electronic device and the second electronic device occurs regularly, it may be determined that the first electronic device and the second electronic device remain BT connected for a certain period of time. However, in the accidentally occurring period of time when the first electronic device and the second electronic device are disconnected from the BT connection, the first electronic device and the second electronic device may re-perform the BT connection at any time because the distance between the first electronic device and the second electronic device is reduced to be smaller than the BT communication distance. Therefore, during an occasional period in which the first electronic device and the second electronic device disconnect the BT connection, the first electronic device may transmit the location information of the first electronic device to the cloud server at a higher frequency (e.g., a fourth preset frequency). Therefore, when the distance between the first electronic device and the second electronic device is reduced to be smaller than the BT communication distance at any time, the first electronic device and the second electronic device can quickly execute the BT back connection process so as to quickly realize BT connection. In a period when the BT connection between the first electronic device and the second electronic device is regularly disconnected, the first electronic device may transmit the location information of the first electronic device to the cloud server at a lower frequency (e.g., a third preset frequency), which may reduce power consumption of the first electronic device.
In a second aspect, a BT reconnection method is provided, the method comprising: after the second electronic device is disconnected from the first electronic device by BT, the second electronic device may periodically acquire the location information of the first electronic device from the cloud server. Then, the second electronic equipment judges whether the third electronic equipment is located in the first electronic fence or not according to the position information of the third electronic equipment; and if the third electronic equipment is positioned in the first electronic fence, performing BT loop connection between the second electronic equipment and the first electronic equipment.
The third electronic device is a first electronic device, and the first electronic fence takes the position of the second electronic device as a center; or, the third electronic device is the second electronic device, and the first electronic fence is centered on the position indicated by the position information of the first electronic device.
In one possible implementation, the method further includes: and if the third electronic equipment is positioned outside the first electronic fence, the second electronic equipment and the first electronic equipment do not carry out BT back connection.
In another possible implementation manner, if the third electronic device is located in the first electronic fence, the BT loop connection between the second electronic device and the first electronic device includes: and if the third electronic equipment is positioned in the first electronic fence, performing BT back connection between the second electronic equipment and the first electronic equipment according to a first preset frequency. The method further comprises the following steps: and if the third electronic equipment is positioned outside the first electronic fence and in the second electronic fence, performing BT back connection between the second electronic equipment and the first electronic equipment according to a second preset frequency.
The center of the second electronic fence is superposed with the center of the first electronic fence, and the radius of the second electronic fence is greater than that of the first electronic fence; the first predetermined frequency is greater than the second predetermined frequency.
In another possible implementation manner, the method further includes: and if the third electronic equipment is positioned outside the second electronic fence, the second electronic equipment and the first electronic equipment do not carry out BT loop connection.
It should be noted that, for technical effects brought by any design manner in the second aspect, reference may be made to technical effects brought by the same or similar design manners in the first aspect, and details are not described here.
In a third aspect, a BT reconnection method is provided, which includes: after the first electronic device is disconnected from the second electronic device by the BT connection, the cloud server can periodically acquire the position information of the first electronic device and the position information of the second electronic device. Then, the cloud server may determine whether the third electronic device is located in the first electronic fence according to the location information of the third electronic device. And if the third electronic equipment is located in the first electronic fence, the cloud server controls the second electronic equipment to perform BT loop connection with the first electronic equipment.
The third electronic device is the first electronic device, and the first electronic fence takes the position indicated by the position information of the second electronic device as the center; or, the third electronic device is the second electronic device, and the first electronic fence is centered on the position indicated by the position information of the first electronic device.
In one possible implementation, the method further includes: and if the third electronic equipment is positioned outside the first electronic fence, the cloud server controls the second electronic equipment and the first electronic equipment not to carry out BT back connection.
In another possible implementation manner, if the third electronic device is located in the first electronic fence, the controlling, by the cloud server, the BT loopback between the second electronic device and the first electronic device includes: and if the third electronic equipment is located in the first electronic fence, the cloud server controls the second electronic equipment and the first electronic equipment to carry out BT back connection according to a first preset frequency. The method further comprises the following steps: and if the third electronic equipment is positioned outside the first electronic fence and in the second electronic fence, the cloud server controls the second electronic equipment and the first electronic equipment to carry out BT (bit rate) link according to a second preset frequency.
The center of the second electronic fence is superposed with the center of the first electronic fence, and the radius of the second electronic fence is greater than that of the first electronic fence; the first predetermined frequency is greater than the second predetermined frequency.
In another possible implementation manner, the method further includes: and if the third electronic equipment is positioned outside the second electronic fence, the cloud server controls the second electronic equipment and the first electronic equipment not to carry out BT back connection.
It should be noted that, for technical effects brought by any design manner in the third aspect, reference may be made to technical effects brought by the same or similar design manners in the first aspect, and details are not described herein again.
In a fourth aspect, a BT loopback system is provided, comprising: a first electronic device, a second electronic device and a cloud server for performing the method of any of the above first aspects.
The technical effects brought by any one of the design manners in the fourth aspect can be referred to the technical effects brought by different design manners in the first aspect, and are not described herein again.
In a fifth aspect, an electronic device is provided, which is a second electronic device. The electronic device includes: a processor, a memory, and a communication interface. A memory and a communication interface are coupled to the processor, the memory for storing computer program code, the computer program code comprising computer instructions. Wherein the computer instructions, when executed by the processor, cause the electronic device to perform the BT loopback method as described in any of the second aspects above.
The technical effects brought by any one of the design manners in the fifth aspect can be referred to the technical effects brought by the different design manners in the second aspect, and are not described herein again.
In a sixth aspect, a server is provided, the server being a cloud server. The server includes: a processor, a memory, and a communication interface. A memory and a communication interface are coupled to the processor, the memory for storing computer program code, the computer program code comprising computer instructions. Wherein the computer instructions, when executed by the processor, cause the electronic device to perform the BT loopback method as defined in any of the above third aspects.
The technical effects brought by any one of the design manners in the sixth aspect may refer to the technical effects brought by different design manners in the third aspect, and are not described herein again.
In a seventh aspect, a computer-readable storage medium having computer instructions stored therein is provided. When the computer instructions are run on a BT backhaul system, cause the BT backhaul system to perform the BT backhaul method as described in any one of the first aspects above. Alternatively, the computer instructions, when executed on the electronic device, cause the electronic device to perform the BT loopback method of any of the above first aspects; wherein the electronic device is a second electronic device. Alternatively, the computer instructions, when executed on a server, cause the server to perform the BT loopback method as defined in any one of the above first aspects; wherein the server is a cloud server.
In an eighth aspect, there is provided a computer program product comprising instructions which, when run on a BT backhaul system, cause the BT backhaul system to perform the BT backhaul method as described in any one of the first aspects above. Or, when run on an electronic device, cause the electronic device to perform the BT loopback method of any of the above first aspects; wherein the electronic device is a second electronic device. Or, when run on a server, cause the server to perform the BT loopback method as described in any of the first aspects above; wherein the server is a cloud server.
For technical effects brought by any one of the design manners of the seventh aspect and the eighth aspect, reference may be made to technical effects brought by different design manners of the first aspect to the third aspect, and details are not described here.
Drawings
Fig. 1 is a schematic diagram illustrating a BT connection between a smart watch and a mobile phone according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 3 is a schematic view of an electronic fence according to an embodiment of the present application;
fig. 4 is a first flowchart of a BT backhaul method according to an embodiment of the present application;
fig. 5 is a flowchart of a BT backhaul method according to an embodiment of the present application;
fig. 6 is a schematic view of another electronic fence according to an embodiment of the present application;
fig. 7 is a flowchart three of a BT reconnection method according to an embodiment of the present application;
fig. 8 is a fourth flowchart of a BT reconnection method according to an embodiment of the present application.
Detailed Description
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, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
The terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present application, the meaning of "a plurality" is two or more unless otherwise specified.
Currently, two electronic apparatuses having a BT function (e.g., the electronic apparatus 1 and the electronic apparatus 2) can save BT information of each other when BT connection is established for the first time. After the two electronic devices are disconnected from the BT, the BT backhaul connection can be performed using the saved BT information. Through the BT backhaul, the two electronic devices may automatically establish a BT connection. Wherein either one of the two electronic devices may initiate a BT backhaul. The process of the electronic device 1 initiating the BT reconnection will be described below by taking the electronic device 1 initiating the BT reconnection as an example.
In the first related scheme, when the bluetooth function is turned on, the electronic device 1 initiates a BT loopback at a certain frequency for a certain time period from the moment when the electronic device 1 disconnects the BT from the electronic device 2. Then, after a certain period of time, the electronic apparatus 1 decreases the frequency of initiating the BT backhaul one or more times again, and initiates the BT backhaul at a lower frequency until the electronic apparatus 1 establishes a BT connection with another electronic apparatus (e.g., the electronic apparatus 2).
Exemplarily, taking the electronic apparatus 1 as a watch having a BT function as an example, the watch initiates a BT loopback every 15 seconds(s) within 10 minutes (min) from the time of disconnecting the BT connection with the electronic apparatus 2 when the BT function is turned on. After 10min, BT reconnect was initiated every 55s within 7 min. After 17min, a BT loopback is initiated every 59s until the watch establishes a BT connection with other electronic devices.
With this first related scheme, if the BT connection disconnection time period between the electronic apparatus 1 and the electronic apparatus 2 is long, the BT reconnection speed with the electronic apparatus 2 becomes slow. Thereby reducing the speed at which the electronic apparatus 1 automatically establishes a BT connection with the electronic apparatus 2 and increasing the time for the user to wait for the electronic apparatus 1 to automatically establish a BT connection with the electronic apparatus 2.
In the second related solution, when the electronic apparatus 1 disconnects BT from the electronic apparatus 2, the electronic apparatus 1 may record the location a of the electronic apparatus 2 (i.e., the location of the electronic apparatus 2 when BT connection is disconnected from the electronic apparatus 1 this time). Then, the electronic apparatus 1 initiates a BT loopback with respect to the electronic apparatus 2 upon detecting that the electronic apparatus 2 returns to the above location a (or the vicinity of location a).
Illustratively, taking the electronic device 1 as a mobile phone and the electronic device 2 as a smart watch as an example, as shown in fig. 1, when the smart watch is located at a position a, the mobile phone and the smart watch are disconnected from BT connection because the distance between the mobile phone and the smart watch exceeds the BT communication range (e.g., the BT communication range centered at the position a in fig. 1). Then, the cell phone and the smart watch may move to the same location b, and the location b is far away from the location a. At this time, since the position b where the smart watch is located is not near the position a, by adopting the second related scheme, the mobile phone cannot automatically initiate BT loopback, and further cannot automatically establish BT connection with the smart watch.
Alternatively, the handset may move to location c, which is a significant distance from location a, and the smart watch may revert to location a again. At this point, the cell phone may initiate a BT loopback to the smartwatch. However, since the distance between the position c where the mobile phone is located and the position a where the smart watch is located is far away and exceeds the BT communication range, the BT connection cannot be established between the mobile phone and the smart watch.
In summary, the success rate of establishing the BT connection by the BT backhaul connection by the two electronic devices using the correlation scheme is low.
In view of the foregoing problems, embodiments of the present application provide a BT backhaul connection method, which can improve the speed and success rate of two electronic devices establishing a BT connection through BT backhaul connection. After the electronic apparatus 1 and the electronic apparatus 2 disconnect the BT connection, the electronic apparatus 1 may periodically transmit the location information of the electronic apparatus 1 to the cloud server. The cloud server forwards the location information of the electronic device 1 to the electronic device 2. The electronic device 2 can determine whether its own location is within the electronic fence centered on the location of the electronic device 1, or whether the location of the electronic device 1 is within the electronic fence centered on the location of the electronic device 2. If the position of the electronic device 2 is within the electronic fence centered on the position of the electronic device 1, or the position of the electronic device 1 is within the electronic fence centered on the position of the electronic device 2, the electronic device 2 can BT-reconnect with the electronic device 1.
Whether the position of the electronic device 2 is located in the electronic fence centered on the position of the electronic device 1 or the position of the electronic device 1 is located in the electronic fence centered on the position of the electronic device 2, it indicates that the distance between the electronic device 2 and the electronic device 1 is within a certain range, for example, the distance between the electronic device 2 and the electronic device 1 is within the BT communication range, and the electronic device 2 and the electronic device 1 can successfully establish the BT connection through the BT backhaul connection. For another example, when the distance between the electronic apparatus 2 and the electronic apparatus 1 is beyond the BT communication range but is close to the BT communication range, the electronic apparatus 2 and the electronic apparatus 1 perform BT backhaul connection, and when the distance between the electronic apparatus 2 and the electronic apparatus 1 is reduced to be within the BT communication range, the electronic apparatus 2 and the electronic apparatus 1 can quickly establish BT connection through the BT backhaul connection.
In summary, the method can improve the success rate of BT connection establishment by the two electronic devices, namely the electronic device 1 and the electronic device 2, through BT backhaul connection. Secondly, when the distance between the electronic apparatus 2 and the electronic apparatus 1 is within a certain range (e.g., BT communication range), the electronic apparatus 2 and the electronic apparatus 1 can perform BT backhaul at a higher frequency. This may increase the speed at which the electronic apparatus 1 automatically establishes a BT connection with the electronic apparatus 2.
In some examples, the electronic device (the electronic device 1 or the electronic device 2) may be a mobile phone, a tablet computer, a handheld computer, a Personal Computer (PC), a Personal Digital Assistant (PDA), a wearable device, or other electronic devices with BT function. The embodiment of the present application does not limit the specific form of the electronic device.
Exemplarily, taking an electronic device 1 as a mobile phone as an example, fig. 2 shows a schematic structural diagram of an electronic device provided in an embodiment of the present application.
As shown in fig. 2, the mobile phone 200 may include a processor 210, an external memory interface 220, an internal memory 221, a Universal Serial Bus (USB) interface 230, a charging management module 240, a power management module 241, a battery 242, an antenna 1, an antenna 2, a mobile communication module 250, a wireless communication module 260, an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, an earphone interface 270D, a sensor module 280, a button 290, a motor 291, an indicator 292, a camera 293, a display 294, a Subscriber Identity Module (SIM) card interface 295, and the like. The sensor module 280 may include a pressure sensor, a touch sensor, and the like, among others.
It is to be understood that the structure illustrated in the present embodiment does not specifically limit the mobile phone 200. In other embodiments, handset 200 may include more or fewer components than shown, or combine certain components, or split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 210 may include one or more processing units, such as: the processor 210 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a memory, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. Wherein, the different processing units may be independent devices or may be integrated in one or more processors.
Processor 210 may also include a GPS chip to acquire GPS location information and a Wi-Fi chip to acquire Wi-Fi scan information.
The controller may be the neural center and command center of the cell phone 200. The controller can generate an operation control signal according to the instruction operation code and the time sequence signal to finish the control of instruction fetching and instruction execution.
A memory may also be provided in processor 210 for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 210. If the processor 210 needs to use the instruction or data again, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 210, thereby increasing the efficiency of the system.
In some embodiments, processor 210 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
It should be understood that the connection relationship between the modules shown in this embodiment is only illustrative, and does not limit the structure of the mobile phone 200. In other embodiments, the mobile phone 200 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charge management module 240 is configured to receive a charging input from a charger. The charging management module 240 can also supply power to the mobile phone 200 through the power management module 241 while charging the battery 242.
The wireless communication function of the mobile phone 200 can be implemented by the antenna 1, the antenna 2, the mobile communication module 250, the wireless communication module 260, the modem processor, the baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the handset 200 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network.
The mobile communication module 250 can provide a solution including wireless communication of 2G/3G/4G/5G, etc. applied to the handset 200. The mobile communication module 250 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 250 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 250 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 250 may be disposed in the processor 210. In some embodiments, at least some of the functional modules of the mobile communication module 250 may be disposed in the same device as at least some of the modules of the processor 210.
The wireless communication module 260 may provide a solution for wireless communication applied to the mobile phone 200, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), BT, Global Navigation Satellite System (GNSS), and the like. The wireless communication module 260 may be one or more devices integrating at least one communication processing module. The wireless communication module 260 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on the electromagnetic wave signal, and transmits the processed signal to the processor 210. The wireless communication module 260 may also receive a signal to be transmitted from the processor 210, frequency-modulate and amplify the signal, and convert the signal into electromagnetic waves via the antenna 2 to radiate the electromagnetic waves.
In some embodiments, antenna 1 of handset 200 is coupled to mobile communication module 250 and antenna 2 is coupled to wireless communication module 260, such that handset 200 may communicate with networks and other devices via wireless communication techniques. The wireless communication technology may include global system for mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), BT, GNSS, and/or WLAN, etc.
The mobile phone 200 may obtain its own location information through GNSS. The GNSS may include a Global Positioning System (GPS), a global navigation satellite system (GLONASS), a beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and/or a Satellite Based Augmentation System (SBAS), and the like. For example, the location information in the embodiment of the present application may be longitude and latitude coordinates acquired by using a GPS.
The mobile phone 200 implements the display function through the GPU, the display screen 294, and the application processor.
The mobile phone 200 may implement a shooting function through the ISP, the camera 293, the video codec, the GPU, the display screen 294, and the application processor. The electronic device may include 1 or N cameras 293, where N is a positive integer greater than 1.
The external memory interface 220 may be used to connect an external memory card, such as a Micro SD card, to extend the storage capability of the mobile phone 200. The internal memory 221 may be used to store computer-executable program code, which includes instructions. The processor 210 executes various functional applications and data processing of the cellular phone 200 by executing instructions stored in the internal memory 221.
The mobile phone 200 can implement an audio function through the audio module 270, the speaker 270A, the receiver 270B, the microphone 270C, the earphone interface 270D, and the application processor.
The keys 290 include a power-on key, a volume key, and the like. The handset 200 may receive key 290 inputs, generating key signal inputs relating to user settings and function control of the handset 200. The motor 291 may generate a vibration cue. Indicator 292 may be an indicator light that may be used to indicate a state of charge, a change in charge, or may be used to indicate a message, missed call, notification, etc. The SIM card interface 295 is used to connect a SIM card. The SIM card can be attached to and detached from the mobile phone 200 by being inserted into the SIM card interface 295 or being pulled out from the SIM card interface 295. The handset 200 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
Of course, it should be understood that the above fig. 2 is only an exemplary illustration of the electronic device 1 in the form of a mobile phone. If the electronic device 1 is in the form of a tablet computer, a handheld computer, a PC, a PDA, a wearable device (e.g., a smart watch, a smart bracelet), or other devices, the structure of the electronic device 1 may include fewer structures than those shown in fig. 2, or may include more structures than those shown in fig. 2, and is not limited herein. Similarly, the electronic device 2 may be a mobile phone as shown in fig. 2, or other device forms. If the electronic device 2 is in another device form, the structure of the electronic device 2 may include fewer structures than those shown in fig. 2, or may include more structures than those shown in fig. 2, and is not limited herein.
In this embodiment, after the electronic device 1 and the electronic device 2 are disconnected from the BT, the electronic device 1 may send the location information of the electronic device 1 to the electronic device 2 through the cloud server. Then, the electronic device 2 may determine whether the electronic device 3 is within the first electronic fence based on the location information of the electronic device 1 and the location information of the electronic device 2 to determine whether the electronic device 2 is BT-linked with the electronic device 1. The electronic device 3 may be the electronic device 1 or the electronic device 2. The first electronic fence is established by taking the position of the electronic device 1 or the position of the electronic device 2 as a center, and is used for judging whether the distance between the electronic device 1 and the electronic device 2 is smaller than the distance from the center of the first electronic fence to the boundary of the first electronic device.
In some embodiments, as shown in fig. 3, electronic device 1 may be a cell phone 31 (e.g., cell phone 200 described above), electronic device 2 may be a smart watch 32, and electronic device 3 may be electronic device 1 (i.e., electronic device 3 is cell phone 31). The smart watch 32 may be provided with a first electronic fence, which may be a bounded area centered around the location of the smart watch 32. The smart watch 32 may determine whether the cell phone 31 is within the first electronic fence. If the cell phone 31 is located in the first electronic fence, which means that the distance between the cell phone 31 and the smart watch 32 is smaller than the distance between the center of the first electronic fence and the boundary of the first electronic device, for example, the distance between the cell phone 31 and the smart watch 32 is smaller than the BT communication distance, the smart watch 32 and the cell phone 31 may perform BT backhaul. Wherein the cell phone 31 shown in fig. 3 is not inside the first electronic fence.
The BT reconnection method provided in the embodiment of the present application is described in detail below with reference to fig. 3. As shown in fig. 4, the method may include S401-S406.
S401, after the BT connection between the mobile phone 31 and the smart watch 32 is disconnected, periodically sending the location information of the mobile phone 31 to the cloud server.
The mobile phone 31 may disconnect the BT connection from the smart phone 32 when the BT function of the mobile phone 31 is turned on, for example, because the distance between the mobile phone 31 and the smart watch 32 exceeds the BT communication distance. Then, the handset 31 may periodically acquire the location information of the handset 31 and transmit the location information of the handset 31 to the cloud server.
The position of the mobile phone 31 is dynamically changed, so that the mobile phone 31 can periodically acquire updated position information of the mobile phone 31 and send the updated position information to the cloud server.
For example, the mobile phone 31 may obtain the position information of the mobile phone 31 through the GNSS provided by the wireless communication module. The handset 31 may then send the location information of the handset 31 to a cloud server over a cellular network (e.g., GSM network, CDMA network, LTE).
In some embodiments, when the user uses the mobile phone 31 and the smart watch 32, due to the habit of behavior of the user, there may be a period of regularly disconnecting the BT connection between the mobile phone 31 and the smart watch 32, and a period of sporadically disconnecting the BT connection between the mobile phone 31 and the smart watch 32. For example, if the user is in a meeting during one working period of each week, and the user does not carry the cell phone 31 but only carries the smart watch 32 during the meeting, the distance between the cell phone 31 and the smart watch 32 during the meeting may exceed the BT communication distance. Which in turn causes the handset 31 and the smart watch 32 to disconnect the BT connection. That is, the user may have the BT connection between the cell phone 31 and the smart watch 32 disconnected during the weekly work hours.
Since the period in which the BT connection of the cellular phone 31 and the smart watch 32 is disconnected occurs regularly, it can be determined that the cellular phone 31 and the smart watch 32 remain disconnected from the BT connection for a certain period of time. During the period of time when the BT connection between the cellular phone 31 and the smart watch 32 is disconnected, which happens occasionally, the cellular phone 31 and the smart watch 32 may be in BT connection again at any time because the distance between the two is reduced to be smaller than the BT communication distance. Therefore, during the period when the BT connection between the cell phone 31 and the smart watch 32 is disconnected accidentally, the cell phone 31 may transmit the location information of the cell phone 31 to the cloud server at a higher frequency (e.g., a preset frequency 1). Therefore, when the distance between the mobile phone 31 and the smart watch 32 is reduced to be smaller than the BT communication distance at any time, the mobile phone 31 and the smart watch 32 can quickly execute the BT loopback process to quickly realize BT connection. During the time period when the BT connection between the cell phone 31 and the smart watch 32 is regularly disconnected, the cell phone 31 may transmit the location information of the cell phone 31 to the cloud server at a lower frequency (e.g., preset frequency 2), which may reduce power consumption of the cell phone 31.
Specifically, after the BT connection between the cell phone 31 and the smart watch 32 is disconnected, the location information of the cell phone 31 may be sent to the cloud server according to the BT historical connection information between the cell phone 31 and the smart watch 32 and the preset frequency 1 in the first period, and the location information of the cell phone 31 may be sent to the cloud server according to the preset frequency 2 in the second period.
The BT history connection information is used to record a period of time when the mobile phone 31 and the smart watch 32 are disconnected from BT multiple times. The first period is a period in which the BT connection between the cellular phone 31 and the smart watch 32 is disconnected a plurality of times, and the second period is different from the first period. The predetermined frequency 1 is less than the predetermined frequency 2.
In some embodiments, after the cell phone 31 and the smart watch 32 are disconnected from the BT connection, in addition to the cell phone 31 periodically transmitting the location information of the cell phone 31 to the cloud server, the cell phone 31 and the smart watch 32 may not perform the BT loopback, that is, the cell phone 31 does not perform the BT loopback for the smart watch 32, and the smart watch 32 does not perform the BT loopback for the cell phone 31.
It is understood that if the distance between the cell phone 31 and the smart watch 32 is too long, for example, exceeds the BT communication distance, the cell phone 31 disconnects the BT connection from the smart watch 32. It is known that the BT connection cannot be established when the cell phone 31 and the smart watch 32 perform BT loopback. Therefore, the cell phone 31 and the smart watch 32 do not perform BT loopback. This may avoid power consumption of the electronic device (including the handset 31 and/or the smart watch 32) due to an invalid BT backhaul.
S402, the cloud server receives the location information from the mobile phone 31, and forwards the location information of the mobile phone 31 to the smart watch 32.
Each time the cloud server receives the location information of the cell phone 31, the location information may be forwarded to the smart watch 32.
For example, the cloud server may send the location information of the cell phone 31 to the smart watch 32 through a cellular network.
S403, the smart watch 32 receives the location information of the mobile phone 31 from the cloud server.
The smart watch 32 may first obtain the location information of the mobile phone 31 each time the location information is received. The smart watch 32 determines the distance between the cellular phone 31 and the smart watch 32 based on the received location information of the cellular phone 31 and the location information of the smart watch.
The position of the smart watch 32 is dynamically changed, and each time the smart watch 32 receives updated position information of the mobile phone 31, the updated position information of the smart watch itself is also obtained.
For example, the smart watch 32 may acquire the location information of the mobile phone 31 through GNSS provided by the wireless communication module. For example, the smart watch 32 acquires the position information of the cell phone 31 by GPS.
S404, the smart watch 32 judges whether the mobile phone 31 is in the first electronic fence or not according to the position information of the mobile phone 31; the first electronic fence is centered on the location of the smart watch 32.
Wherein, the position of the smart watch 32 and the position of the mobile phone 31 are dynamically changed; thus, the location of the first electronic fence that the smart watch 32 sets up may also vary. The first electronic fence may be centered on the location of the smart watch 32, and the location of the first electronic fence may change as the location of the smart watch 32 changes.
Second, if the cell phone 31 is inside the first electronic fence, it means that the location of the cell phone 31 and the location of the smart watch 32 (i.e. the center of the first electronic fence) are both inside the first electronic fence, i.e. the distance between the cell phone 31 and the smart watch 32 does not exceed the distance from the center of the first electronic fence to the boundary of the first electronic device. Therefore, the smart watch 32 may set the distance from the center of the first electronic fence to the boundary of the first electronic device according to the BT communication distance so that the distance between the cell phone 31 and the smart watch 32 within the first electronic fence is smaller than the BT communication distance or close to the BT communication distance.
Further, if the cell phone 31 is in the first electronic fence, which means that the distance between the cell phone 31 and the smart watch 32 is the same as or close to the BT communication distance, the smart watch 32 and the cell phone 31 may perform BT loopback, i.e., execute S405. Therefore, when the distance between the mobile phone 31 and the smart watch 32 is smaller than the BT communication distance, the BT connection between the smart watch 32 and the mobile phone 31 can be quickly realized through the BT backhaul connection. If the cell phone 31 is not located in the first electronic fence, the smart watch 32 and the cell phone 31 may not BT connect, i.e., execute S406.
In some embodiments, the smart watch 32 may set the distance from the center of the first electronic fence to the boundary of the first electronic device according to the BT communication distance.
Illustratively, as shown in fig. 3, the first electronic fence may be a circular area centered at the location of the smart watch 32 and having a radius of a preset length. The preset length may be equal to or close to the BT communication distance.
It should be noted that the first electronic fence may be a square or an oval in addition to the circle shown in fig. 3, and the shape of the first electronic fence is not limited in the embodiment of the present application.
In some embodiments, in the case where the first electronic fence is circular, the smart watch 32 may calculate the distance between the cell phone 31 and the smart watch 32 according to the location information of the cell phone 31 and the location information of the smart watch 32. If the distance is less than or equal to the radius of the first electronic fence, it is determined that the cell phone 31 is inside the first electronic fence. If the distance is greater than the radius of the first electronic fence, it is determined that the cell phone 31 is not inside the first electronic fence.
S405, the smart watch 32 and the cell phone 31 perform BT backhaul.
The smart watch 32 may BT-loop the cell phone 31, or the smart watch 32 controls the cell phone 31 to BT-loop the smart watch 32.
In some embodiments, the smart watch 32 may BT-loop the cell phone 31 according to a BT-loop frequency preset in the smart watch 32. For example, the smart watch 32 BT-loops the cell phone 31 at the maximum frequency among BT-loop frequencies preset in the smart watch 32.
In other embodiments, the smart watch 32 may send a first instruction to the cloud server, the first instruction being used to instruct the cell phone 31 to BT-reconnect the smart watch 32. The cloud server receives the first instruction from the smart watch 32 and forwards the first instruction to the cell phone 31. The handset 31 then makes a BT loopback to the smart watch 32.
The mobile phone 31 may perform BT reconnection on the smart watch 32 according to a preset BT reconnection frequency in the mobile phone 31. For example, the smart watch 32 performs BT backhaul at the maximum frequency among BT backhaul frequencies preset in the cell phone 31.
Illustratively, the smart watch 32 may send the first instruction to a cloud server over a cellular network.
Illustratively, the cloud server may forward the first instruction to the handset 31 over the cellular network.
S406, the smart watch 32 and the cell phone 31 do not perform BT loopback.
If the cell phone 31 is not in the first electronic fence, it means that the cell phone 31 is far from the center of the first electronic fence (i.e., the smart watch 32), and may exceed the BT communication distance. Therefore, the smart watch 32 and the cell phone 31 may not perform BT backhaul. Thus, the BT connection failure between the mobile phone 31 and the smart watch 32 due to the too long distance between the mobile phone 31 and the smart watch 32 is avoided, and the power consumption of the smart watch 32 or the power consumption of the mobile phone 31 can be reduced.
In some embodiments, if the BT connection is not performed between the cell phone 31 and the smart watch 32 when the cell phone 31 is disconnected from the smart watch 32, the BT connection may be continuously maintained between the cell phone 31 and the smart watch 32 when the cell phone 31 is not in the first electronic fence, that is, the BT connection is continuously maintained between the cell phone 31 and the smart watch 32, and the BT connection is not performed between the cell phone 31 and the smart watch 32.
In other embodiments, if the cell phone 31 and the smart watch 32 perform a BT loopback when the cell phone 31 is disconnected from the smart watch 32, the smart watch 32 may control the cell phone 31 and the smart watch 32 not to perform the BT loopback when the cell phone 31 is not in the first electronic fence. For example, the smart watch 32 may stop BT loopback to the cell phone 31 and control the cell phone 31 to stop BT loopback to the smart watch 32.
The smart watch 32 may send a second instruction to the cloud server, where the second instruction is used to instruct the cell phone 31 to stop performing BT reconnection on the smart watch 32. The cloud server receives the second instruction from the smart watch 32 and forwards the second instruction to the cell phone 31. The handset 31 stops BT loopback with the smart watch 32.
Illustratively, the smart watch 32 may send the second instruction to the cloud server over a cellular network.
Illustratively, the cloud server may forward the second instruction to the handset 31 over the cellular network.
In some embodiments, the BT communication distance of electronic devices in an open area where there is generally less obstruction is greater than the BT communication distance of electronic devices in an area where there is more obstruction. That is, the BT communication distance is not a fixed value. The number of obstructions in the area of the electronic device may also affect the BT communication distance. Thus, in addition to the first electronic fence centered on the location of the smart watch 32, the smart watch 32 may also set up a second electronic fence. The center of the second electronic fence coincides with the center of the first electronic fence, and the area of the second electronic fence is larger than the area of the first electronic fence.
For example, as shown in fig. 3, the second electronic fence may also be a circular area centered at the location of the smart watch 32, and the radius of the second electronic fence is greater than the radius of the first electronic fence.
Secondly, the area size of the first electronic fence (or the distance from the center of the first electronic fence to the boundary of the first electronic device) set by the smart watch 32 can ensure that the two electronic devices in the first electronic fence are not affected by the shielding object basically, and the BT connection can be established. The area size of the second electronic fence (or the distance from the center of the first electronic fence to the boundary of the first electronic device) set by the smart watch 32 may ensure that the two electronic devices located in the second electronic fence are affected by the number of the shielding objects, and the BT connection may be established or may not be established. For example, the radius of the first electronic fence in fig. 3 may be equal to 50 meters (m), and the radius of the second electronic fence in fig. 3 may be equal to 100 m.
It should be noted that the second electronic fence may be a square or an oval in addition to the circular shape shown in fig. 3, and the shape of the second electronic fence is not limited in the embodiment of the present application.
Further, the smart watch 32 may determine whether the cell phone 31 is inside the second electronic fence when the cell phone 31 is not inside the first electronic fence. For example, the cell phone 31 shown in fig. 3 is not within the first electronic fence and is within the second electronic fence.
Specifically, as shown in fig. 5, S405 in the method may include S501, and when the method determines that the mobile phone 31 is not located in the first electronic fence after S404, S502-S503 may be executed.
S501, the smart watch 32 and the mobile phone 31 perform BT loopback according to the preset frequency 3.
When the mobile phone 31 is in the first electronic fence, the smart watch 32 and the mobile phone 31 may successfully establish a BT connection, and then the smart watch 32 and the mobile phone 31 perform a BT loopback according to the preset frequency 3.
The smart watch 32 may perform BT loopback on the cell phone 31 according to the preset frequency 3. The preset frequency 3 may be equal to the maximum frequency or a larger frequency of the BT loopback frequencies preset in the smart watch 32.
Alternatively, the cell phone 31 may BT-loop the smart watch 32 at the preset frequency 3. The preset frequency 3 may be equal to the maximum frequency or a larger frequency among BT backhaul frequencies preset in the handset 31.
It should be noted that, for a specific process of performing the BT reconnection between the smart watch 32 and the mobile phone 31 according to the preset frequency 3, reference may be made to the above description of performing the BT reconnection between the smart watch 32 and the mobile phone 31 in detail, which is not described herein again in this embodiment of the application.
S502, the smart watch 32 judges whether the mobile phone 31 is in the second electronic fence or not according to the position information of the mobile phone 31; the second electronic fence is centered on the location of the smart watch 32.
If the mobile phone 31 is not in the first electronic fence but in the second electronic fence, the smart watch 32 and the mobile phone 31 may perform BT loopback according to the preset frequency 4, that is, execute S503. If the mobile phone 31 is not located in the second electronic fence, the smart watch 32 and the mobile phone 31 may not perform BT loopback, i.e., execute S406. Wherein the preset frequency 4 is less than the preset frequency 3.
It should be noted that, in the specific process of determining whether the mobile phone 31 is located in the second electronic fence by the smart watch 32, reference may be made to the detailed description of determining whether the mobile phone 31 is located in the first electronic fence by the smart watch 32, which is not described herein again in this embodiment of the application.
S503, the smart watch 32 and the mobile phone 31 perform BT backhaul according to the preset frequency 4.
When the cell phone 31 is outside the first electronic fence and the cell phone 31 is inside the second electronic fence, the cell phone 31 and the smart watch 32 may successfully establish the BT connection, for example, when there are few obstructions in the second electronic fence, the two may successfully establish the BT connection. Thus, the smart watch 32 and the cell phone 31 can perform BT loop connection. However, the mobile phone 31 and the smart watch 32 may not be able to establish the BT connection, for example, when there are many obstacles in the second electronic fence, the two cannot establish the BT connection. Then, to reduce power consumption, the smart watch 32 and the handset 31 may BT-loop at a lower preset frequency 4.
Wherein, the preset frequency 3 is greater than the preview frequency 4.
In some embodiments, the smart watch 32 may BT-loop the cell phone 31 at the preset frequency 4. The preset frequency 4 may be equal to the minimum frequency or less of the BT backhaul frequencies preset in the smart watch 32.
Alternatively, the cell phone 31 may BT-loop the smart watch 32 at the preset frequency 4. The preset frequency 4 may be equal to the minimum frequency or a smaller frequency among BT backhaul frequencies preset in the handset 31.
It should be noted that, for the specific process of performing the BT reconnection between the smart watch 32 and the mobile phone 31 according to the preset frequency 4, reference may be made to the above description of performing the BT reconnection between the smart watch 32 and the mobile phone 31 in detail, and details of the embodiment of the present application are not described herein.
In other embodiments, the first electronic fence may be centered around the location of the cell phone 31, that is, the electronic device 3 may also be the electronic device 2 (that is, the electronic device 3 is the smart watch 32), in addition to the location of the smart watch 32. As shown in fig. 6, the first electronic fence set by the smart watch 32 may be a bounded area centered around the location of the cell phone 31. The position of the first electronic fence may vary with the position of the cell phone 31. Smart watch 32 may determine whether smart watch 32 is within the first electronic fence. If the smart watch 32 is located in the first electronic fence, which means that the distance between the cell phone 31 and the smart watch 32 is smaller than the distance between the center of the first electronic fence and the boundary of the first electronic device, for example, the distance between the cell phone 31 and the smart watch 32 is smaller than the BT communication distance, the smart watch 32 and the cell phone 31 may perform BT backhaul. Wherein the smart watch 32 shown in fig. 6 is not within the first electronic fence.
The BT reconnection method provided in the embodiment of the present application is described in detail below with reference to fig. 6. As shown in fig. 7, the method may not include S404, including S701.
S701, the smart watch 32 judges whether the smart watch 32 is in the first electronic fence or not according to the position information of the smart watch 32; the first electronic fence is centered on the position indicated by the position information of the cellular phone 31.
If the smart watch 32 is inside the first electronic fence, it means that the location of the cell phone 31 (i.e. the center of the first electronic fence) and the location of the smart watch 32 are both inside the first electronic fence, i.e. the distance between the cell phone 31 and the smart watch 32 does not exceed the distance from the center of the first electronic fence to the boundary of the first electronic device. Therefore, the smart watch 32 may set the distance from the center of the first electronic fence to the boundary of the first electronic device according to the BT communication distance so that the distance between the cell phone 31 and the smart watch 32 within the first electronic fence is smaller than or close to the BT communication distance.
Further, if the smart watch 32 is located in the first electronic fence, which means that the distance between the cell phone 31 and the smart watch 32 is the same as or close to the BT communication distance, the smart watch 32 and the cell phone 31 may perform BT loopback, i.e., execute S405. Thus, when the distance between the mobile phone 31 and the smart watch 32 is smaller than the BT communication distance, the BT connection between the smart watch 32 and the mobile phone 31 can be quickly realized through the BT backhaul.
Illustratively, as shown in fig. 6, the first electronic fence may be a circular area centered at the position of the cell phone 31 and having a radius of a preset length. The preset length may be equal to or close to the BT communication distance.
It should be noted that, the specific process of the smart watch 32 determining whether the smart watch 32 is located in the first electronic fence according to the location information of the smart watch 32 may refer to the detailed description that the smart watch 32 determines whether the mobile phone 31 is located in the first electronic fence according to the location information of the mobile phone 31, and details of this embodiment are not repeated herein.
In some embodiments, the smart watch 32 may set a second electronic fence in addition to the first electronic fence centered on the location of the cell phone 31. The center of the second electronic fence coincides with the center of the first electronic fence, and the area of the second electronic fence is larger than the area of the first electronic fence.
For example, as shown in fig. 6, the second electronic fence may be a circular area centered on the position of the mobile phone 31, and the radius of the second electronic fence is larger than that of the first electronic fence. The radius of the first electronic fence can be equal to 50m, and the radius of the second electronic fence can be equal to 100 m.
It should be noted that the first and second electronic fences centered on the position of the mobile phone 31 may be circular, square, or oval, as shown in fig. 6, and the shape of the first and second electronic fences is not limited in the embodiment of the present application.
Further, the smart watch 32 may determine whether the cell phone 31 is inside the second electronic fence when the smart watch 32 is not inside the first electronic fence. The smart watch 32 shown in fig. 6 is inside the second electronic fence.
Specifically, as shown in fig. 7, S405 in the method may include S702; the method may perform S703-S704 after S701 when it is determined that the smart watch 32 is not within the first electronic fence.
S702, the smart watch 32 and the mobile phone 31 perform BT backhaul according to the preset frequency 3.
It should be noted that, for a specific process of performing BT reconnection between the smart watch 32 and the mobile phone 31 according to the preset frequency 3, reference may be made to the above description of performing BT reconnection between the smart watch 32 and the mobile phone 31 in detail, and details of this embodiment of the present application are not described herein.
S703, the smart watch 32 judges whether the smart watch 32 is in the second electronic fence or not according to the position information of the smart watch 32; the second electronic fence is centered on the position indicated by the position information of the cellular phone 31.
If the smart watch 32 is not located in the first electronic fence and is located in the second electronic fence, the smart watch 32 and the mobile phone 31 may perform BT loopback according to the preset frequency 4, i.e., execute step S704. If the smart watch 32 is not located in the second electronic fence, the smart watch 32 and the mobile phone 31 may not perform BT loopback, i.e., execute S406.
It should be noted that, in the specific process of determining whether the smart watch 32 is located in the second electronic fence by the smart watch 32, reference may be made to the detailed description of determining whether the mobile phone 31 is located in the first electronic fence by the smart watch 32, which is not described herein again in this embodiment of the application.
S704, the smart watch 32 and the cell phone 31 perform BT loopback according to the preset frequency 4.
It should be noted that, for the specific process of performing the BT reconnection between the smart watch 32 and the mobile phone 31 according to the preset frequency 4, reference may be made to the above description of performing the BT reconnection between the smart watch 32 and the mobile phone 31 in detail, and details of the embodiment of the present application are not described herein.
In addition, in the above embodiment, taking the electronic device 1 as the mobile phone 31 and the electronic device 2 as the smart watch 32 as examples, a specific process of the BT backhaul method is described. In addition, the electronic device 1 may be a smart watch 32, and the electronic device 2 may be a mobile phone 31, in which case, the smart watch 32 and the mobile phone 31 may perform a specific process of the BT backhaul method, which may be described in detail in the foregoing description of the BT backhaul method, and details of the embodiment of the present application are not described herein.
In some embodiments, in addition to having the first and second electronic fences disposed in the smart watch 32, the cloud server may be provided with the first and second electronic fences. Taking the first electronic fence and the second electronic fence centered on the position of the smart watch 32 as an example, the cloud server may determine whether the mobile phone 31 is located in the first electronic fence according to the position information of the mobile phone 31 and the position information of the smart watch 32. If the mobile phone 31 is not in the first electronic fence, the cloud server determines whether the mobile phone 31 is in the second electronic fence. The cloud server may control whether the smart watch 32 and the cell phone 31 perform BT reconnection according to the determination result.
Specifically, as shown in fig. 8, the BT reconnection method provided in this embodiment may include S801-S814.
S801, after the mobile phone 31 and the smart watch 32 are disconnected from BT, the cloud server periodically obtains the location information of the mobile phone 31 and the location information of the smart watch 32.
The mobile phone 31 may periodically send the location information of the mobile phone 31 to the cloud server, and the smart watch 32 may also periodically send the location information of the smart watch 32 to the cloud server.
Alternatively, the cloud server periodically sends a location acquisition request to the cell phone 31 and the smart watch 32, respectively. Then, the handset 31 receives and transmits the location information of the handset 31 to the cloud server in response to the location acquisition request. The smart watch 32 may also receive and send location information for the smart watch 32 to the cloud server in response to the location acquisition request.
It should be noted that, for a specific process in which the mobile phone 31 periodically sends the location information of the mobile phone 31 to the cloud server, and a specific process in which the smart watch 32 periodically sends the location information of the smart watch 32 to the cloud server, reference may be made to the detailed description that the mobile phone 31 periodically sends the location information of the mobile phone 31 to the cloud server in S401, which is not described herein again in this embodiment of the present application.
S802, the cloud server judges whether the mobile phone 31 is in the first electronic fence or not according to the position information of the mobile phone 31; the first electronic fence is centered on the location indicated by the location information of the smart watch 32.
If the mobile phone 31 is in the first electronic fence, the cloud server may control the smart watch 32 and the mobile phone 31 to perform BT loopback according to the preset frequency 3, and S803-S806 may be performed. If the mobile phone 31 is not in the first electronic fence, the cloud server may continue to determine whether the mobile phone 31 is in the first electronic fence, i.e., execute S807.
S803, the cloud server sends the third instruction to the smart watch 32.
The third instruction is used to instruct the smart watch 32 to perform BT backhaul on the mobile phone 31 according to the preset frequency 3.
S804, the smart watch 32 receives the third instruction, and performs BT loopback on the mobile phone 31 according to the preset frequency 3 in response to the third instruction.
It should be noted that, in S804, the specific process of the smart watch 32 performing the BT reconnection on the mobile phone 31 according to the preset frequency 3 may refer to the detailed description of the smart watch 32 performing the BT reconnection on the mobile phone 31 according to the preset frequency 3 in S501, which is not described herein again in this embodiment of the application.
S805, the cloud server sends a fourth instruction to the mobile phone 31.
The fourth instruction is used to instruct the cell phone 31 to perform BT reconnection on the smart watch 32 according to the preset frequency 3.
S806, the mobile phone 31 receives the fourth instruction, and in response to the fourth instruction, performs BT loopback on the smart watch 32 according to the preset frequency 3.
It should be noted that, in S806, the specific process of performing, by the mobile phone 31, BT reconnection on the smart watch 32 according to the preset frequency 3 may refer to the detailed description of performing, by the smart watch 32, BT reconnection on the mobile phone 31 according to the preset frequency 3 in S501, which is not described herein again in this embodiment of the application.
Secondly, when the mobile phone 31 is in the first electronic fence, the cloud server may execute S803-S806; alternatively, S803-S804 may be performed, and S805-S806 may not be performed; alternatively, S805-S806 are executed, and S803-S804 are not executed.
S807, the cloud server judges whether the mobile phone 31 is in the second electronic fence or not according to the position information of the mobile phone 31; the second electronic fence is centered on the location indicated by the location information of the smart watch 32.
If the mobile phone 31 is not in the first electronic fence and is in the second electronic fence, the cloud server may control the smart watch 32 and the mobile phone 31 to perform BT loopback according to the preset frequency 4, and may execute S808-S811. If the mobile phone 31 is not in the second electronic fence, the cloud server may control the smart watch 32 and the mobile phone 31 to perform the BT loopback, i.e., execute S812-S814.
It should be noted that, in the specific process of determining, by the cloud server, whether the mobile phone 31 is located in the second electronic fence, reference may be made to the detailed description of determining, by the smart watch 32, whether the mobile phone 31 is located in the first electronic fence, which is not described herein again in this embodiment of the application.
S808, the cloud server sends the fifth instruction to the smart watch 32.
The fifth instruction is used to instruct the smart watch 32 to perform BT reconnection on the mobile phone 31 according to the preset frequency 4.
S809, the smart watch 32 receives the fifth instruction, and in response to the fifth instruction, performs BT loopback on the mobile phone 31 according to the preset frequency 4.
It should be noted that, in S809, the specific process of the smart watch 32 performing BT reconnection on the mobile phone 31 according to the preset frequency 4 may refer to the detailed description of the smart watch 32 performing BT reconnection on the mobile phone 31 according to the preset frequency 4 in S503, which is not described herein again in this embodiment of the application.
S810, the cloud server sends a sixth instruction to the mobile phone 31.
The sixth instruction is used to instruct the cell phone 31 to perform BT reconnection on the smart watch 32 according to the preset frequency 4.
S811, the mobile phone 31 receives the sixth instruction, and in response to the sixth instruction, performs BT loopback on the smart watch 32 according to the preset frequency 4.
It should be noted that, in S811, the specific process of the BT reconnection of the mobile phone 31 to the smart watch 32 according to the preset frequency 4 may refer to the detailed description of the BT reconnection of the mobile phone 31 by the smart watch 32 according to the preset frequency 4 in S503, which is not described herein again in this embodiment of the application.
Secondly, when the mobile phone 31 is not in the first electronic fence and is in the second electronic fence, the cloud server may execute S808-S811; alternatively, S808-S809 may be performed, and S810-S811 may not be performed; alternatively, S810-S811 is performed, and S808-S809 is not performed.
S812, the cloud server sends the seventh instruction to the smart watch 32 and sends the eighth instruction to the mobile phone 31, respectively.
The seventh instruction is used to instruct the smart watch 32 not to perform BT reconnection on the mobile phone 31, and the eighth instruction is used to instruct the mobile phone 31 not to perform BT reconnection on the smart watch 32.
S813, the smart watch 32 receives the seventh instruction, and does not perform BT loopback on the mobile phone 31 in response to the seventh instruction.
It should be noted that, in S813, the smart watch 32 does not perform the specific process of BT reconnection on the mobile phone 31, reference may be made to the detailed description that the smart watch 32 does not perform BT reconnection on the mobile phone 31 in S406, and details of this embodiment of the present application are not described herein.
S814, the mobile phone 31 receives the eighth instruction, and does not perform BT loopback on the smart watch 32 in response to the eighth instruction.
It should be noted that, in S814, the specific process that the mobile phone 31 does not perform the BT loopback on the smart watch 32 may refer to the detailed description that the mobile phone 31 does not perform the BT loopback on the smart watch 32 in S406, and details of this embodiment are not described herein again.
It should be noted that, besides the electronic device 1 being the mobile phone 31 and the electronic device 2 being the smart watch 32, the electronic device 1 may also be the smart watch 32, and the electronic device 1 may be the mobile phone 31; alternatively, the electronic device 1 and the electronic device 2 are both other electronic devices (e.g., a car BT device, a smart sound box), and the embodiments of the present application do not limit the specific forms of the electronic device 1 and the electronic device 2.
Next, the electronic device 1 in the embodiment of the present application may be equal to the first electronic device in the summary of the invention, the electronic device 2 may be equal to the second electronic device in the summary of the invention, the electronic device 3 may be equal to the third electronic device in the summary of the invention, the preset frequency 1 may be equal to the third preset frequency in the summary of the invention, the preset frequency 2 may be equal to the fourth preset frequency in the summary of the invention, the preset frequency 3 may be equal to the first preset frequency in the summary of the invention, and the preset frequency 4 may be equal to the second preset frequency in the summary of the invention.
It is to be understood that the electronic device 1, the electronic device 2, the cloud server, and the like described above include hardware structures and/or software modules corresponding to the respective functions for realizing the functions described above. Those of skill in the art will readily appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed in hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the embodiments of the present application.
In the embodiment of the present application, the electronic device 1, the electronic device 2, the cloud server, and the like may be divided into functional modules according to the method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
An embodiment of the present application may provide a BT loopback system, including: electronic device 1, electronic device 2, and cloud server. The electronic device 1 is configured to perform various functions or steps performed by the mobile phone 31 in the above method embodiment. The electronic device 2 is configured to perform various functions or steps performed by the smart watch 32 in the above method embodiment. The cloud server is configured to perform each function or step performed by the cloud server in the foregoing method embodiments.
The embodiment of the present application further provides an electronic device, which is the electronic device 2 described above. The electronic device includes: a processor, a memory, and a communication interface; a memory and a communication interface are coupled to the processor, the memory for storing computer program code, the computer program code comprising computer instructions. Wherein the computer instructions, when executed by the processor, cause the electronic device to perform the functions or steps performed by the electronic device 2 (e.g., the smart watch 32) in the above-described method embodiments.
The embodiment of the application further provides a server, and the server can be a cloud server. The server includes: a processor, a memory, and a communication interface; a memory and a communication interface are coupled to the processor, the memory for storing computer program code, the computer program code comprising computer instructions. Wherein the processor, when executing the computer instructions, causes the server to perform the functions or steps performed by the cloud server in the above method embodiments.
Embodiments of the present application further provide a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are run on the bluetooth BT backhaul system, the BT backhaul system is caused to perform the respective functions or steps performed by the electronic device 1, the electronic device 2, and the cloud server in the above method embodiments.
Alternatively, the computer instructions, when executed on the electronic device, cause the electronic device to perform the functions or steps performed by the electronic device (e.g., the smart watch 32) of the above-described method embodiments; the electronic device may be the electronic device 1.
Or, when the computer instructions are executed on a server, the server is caused to perform the functions or steps performed by the cloud server in the above method embodiments; the server may be a cloud server.
For example, the computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a Compact Disc Read-Only Memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.
Embodiments of the present application further provide a computer program product, which, when running on a bluetooth BT backhaul system, causes the BT backhaul system to perform each function or step performed by the electronic device 1, the electronic device 2, and the cloud server in the foregoing method embodiments.
Or, when running on an electronic device, cause the electronic device to perform the functions or steps performed by the electronic device (e.g., the smart watch 32) in the above-described method embodiments; the electronic device may be the electronic device 1.
Still alternatively, when the computer program product runs on a server, the server is caused to perform each function or step performed by the cloud server in the above method embodiments; the server may be a cloud server.
The BT backhaul system, the electronic device, the server, the computer-readable storage medium, or the computer program product provided in the embodiment of the present application are all configured to execute the corresponding methods provided above, and therefore, the beneficial effects that can be achieved by the BT backhaul system may refer to the beneficial effects in the corresponding methods provided above, which are not described herein again.
It is clear to those skilled in the art from the foregoing description of the embodiments that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be performed by different functional modules according to needs, that is, the internal structure of the device (e.g., an electronic device, a server) is divided into different functional modules to perform all or part of the above described functions. For the specific working processes of the system, the apparatus (e.g., electronic device, server) and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not repeated here.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus (e.g., electronic device, server) and method may be implemented in other ways. For example, the above-described apparatus (e.g., electronic device, server) embodiments are merely illustrative, and for example, the modules or units may be divided into only one logical function, and may be implemented in other ways, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a processor to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: flash memory, removable hard drive, read only memory, random access memory, magnetic or optical disk, and the like.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (11)

1. A Bluetooth BT backhaul method, comprising:
after the first electronic device and the second electronic device are disconnected from the BT, periodically sending the position information of the first electronic device to a cloud server;
the cloud server receives the position information from the first electronic equipment and forwards the position information of the first electronic equipment to the second electronic equipment;
the second electronic device receiving location information of the first electronic device from the cloud server;
the second electronic equipment judges whether the third electronic equipment is in the first electronic fence or not according to the position information of the third electronic equipment; wherein the third electronic device is the first electronic device, and the first electronic fence is centered on the location of the second electronic device; or the third electronic device is the second electronic device, and the first electronic fence is centered on the position indicated by the position information of the first electronic device;
if the third electronic device is located in the first electronic fence, performing BT back connection between the second electronic device and the first electronic device;
if the third electronic device is located in the first electronic fence, the BT reconnection is performed between the second electronic device and the first electronic device, and the BT reconnection includes: if the third electronic device is located in the first electronic fence, performing BT back connection between the second electronic device and the first electronic device according to a first preset frequency;
the method further comprises the following steps: if the third electronic device is located outside the first electronic fence and inside the second electronic fence, performing BT loopback between the second electronic device and the first electronic device according to a second preset frequency;
wherein a center of the second fence coincides with a center of the first fence, a radius of the second fence being larger than a radius of the first fence; the first preset frequency is greater than the second preset frequency.
2. The method of claim 1, further comprising:
and if the third electronic equipment is positioned outside the second electronic fence, the second electronic equipment and the first electronic equipment do not carry out BT loop connection.
3. The method according to any one of claims 1-2, wherein periodically sending the location information of the first electronic device to a cloud server after the first electronic device is disconnected from the second electronic device by BT comprises:
after the first electronic device and the second electronic device are disconnected from the BT connection, according to the BT historical connection information of the first electronic device and the second electronic device, the position information of the first electronic device is sent to the cloud server according to a third preset frequency in a first period, and the position information of the first electronic device is sent to the cloud server according to a fourth preset frequency in a second period;
the BT historical connection information is used for recording a time period of disconnecting BT connection between the first electronic device and the second electronic device for multiple times; the first period is a period in which the first electronic device disconnects BT connection from the second electronic device a plurality of times, and the second period is different from the first period; the third preset frequency is less than the fourth preset frequency.
4. A Bluetooth BT backhaul method, comprising:
after the second electronic equipment is disconnected with the first electronic equipment through the BT, periodically acquiring the position information of the first electronic equipment from a cloud server;
the second electronic equipment judges whether the third electronic equipment is in the first electronic fence or not according to the position information of the third electronic equipment; wherein the third electronic device is the first electronic device, and the first electronic fence is centered on the location of the second electronic device; or the third electronic device is the second electronic device, and the first electronic fence is centered on the position indicated by the position information of the first electronic device;
if the third electronic device is located in the first electronic fence, performing BT loop connection between the second electronic device and the first electronic device;
if the third electronic device is located in the first electronic fence, the BT loopback between the second electronic device and the first electronic device is performed, including: if the third electronic device is located in the first electronic fence, performing BT back connection between the second electronic device and the first electronic device according to a first preset frequency;
the method further comprises the following steps: if the third electronic device is located outside the first electronic fence and inside the second electronic fence, performing BT loopback between the second electronic device and the first electronic device according to a second preset frequency;
wherein a center of the second electronic fence coincides with a center of the first electronic fence, a radius of the second electronic fence being larger than a radius of the first electronic fence; the first preset frequency is greater than the second preset frequency.
5. The method of claim 4, further comprising:
and if the third electronic equipment is positioned outside the second electronic fence, the second electronic equipment and the first electronic equipment do not carry out BT back connection.
6. A Bluetooth BT backhaul method, comprising:
after the first electronic device is disconnected from the second electronic device by the BT connection, the cloud server periodically acquires the position information of the first electronic device and the position information of the second electronic device;
the cloud server judges whether the third electronic equipment is in the first electronic fence or not according to the position information of the third electronic equipment; wherein the third electronic device is the first electronic device, and the first electronic fence is centered on a location indicated by the location information of the second electronic device; or the third electronic device is the second electronic device, and the first electronic fence is centered on the position indicated by the position information of the first electronic device;
if the third electronic device is located in the first electronic fence, the cloud server controls the second electronic device to perform BT back connection with the first electronic device;
if the third electronic device is located in the first electronic fence, the cloud server controls the second electronic device to perform BT backhaul with the first electronic device, including: if the third electronic device is located in the first electronic fence, the cloud server controls the second electronic device and the first electronic device to perform BT (bit rate) link according to a first preset frequency;
the method further comprises the following steps: if the third electronic device is located outside the first electronic fence and inside the second electronic fence, the cloud server controls the second electronic device and the first electronic device to perform BT (bit rate) loopback according to a second preset frequency;
wherein a center of the second electronic fence coincides with a center of the first electronic fence, a radius of the second electronic fence being larger than a radius of the first electronic fence; the first preset frequency is greater than the second preset frequency.
7. The method of claim 6, further comprising:
and if the third electronic equipment is positioned outside the second electronic fence, the cloud server controls the second electronic equipment and the first electronic equipment not to carry out BT back connection.
8. A Bluetooth BT backhaul system, comprising: the first electronic device, the second electronic device, and the cloud server for performing the method of any of claims 1-3.
9. An electronic device, wherein the electronic device is a second electronic device, the electronic device comprising: a processor, a memory, and a communication interface; the memory and the communication interface are coupled with the processor, the memory for storing computer program code, the computer program code comprising computer instructions; wherein the computer instructions, when executed by the processor, cause the electronic device to perform the method of claim 4 or 5.
10. A server, wherein the server is a cloud server, the server comprising: a processor, a memory, and a communication interface; the memory and the communication interface are coupled with the processor, the memory for storing computer program code, the computer program code comprising computer instructions; wherein the computer instructions, when executed by the processor, cause the server to perform the method of claim 6 or 7.
11. A computer readable storage medium having stored thereon computer instructions which, when run on a bluetooth BT backhaul system, cause the BT backhaul system to perform the method of any of claims 1-3;
or, when run on an electronic device, cause the electronic device to perform the method of claim 4 or 5; wherein the electronic device is a second electronic device;
or, when the computer instructions are run on a server, cause the server to perform the method of claim 6 or 7; wherein the server is a cloud server.
CN202210129748.6A 2022-02-11 2022-02-11 Bluetooth back connection method, system, electronic equipment, server and storage medium Active CN114173285B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210129748.6A CN114173285B (en) 2022-02-11 2022-02-11 Bluetooth back connection method, system, electronic equipment, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210129748.6A CN114173285B (en) 2022-02-11 2022-02-11 Bluetooth back connection method, system, electronic equipment, server and storage medium

Publications (2)

Publication Number Publication Date
CN114173285A CN114173285A (en) 2022-03-11
CN114173285B true CN114173285B (en) 2022-07-22

Family

ID=80489811

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210129748.6A Active CN114173285B (en) 2022-02-11 2022-02-11 Bluetooth back connection method, system, electronic equipment, server and storage medium

Country Status (1)

Country Link
CN (1) CN114173285B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114885278A (en) * 2022-04-22 2022-08-09 歌尔股份有限公司 Earphone connection method, earphone connection device, earphone and medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112258780A (en) * 2020-09-28 2021-01-22 四川长虹网络科技有限责任公司 Outdoor personnel missing alarm method and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107851363A (en) * 2016-03-17 2018-03-27 深圳市赛亿科技开发有限公司 Anti-lost method for tracing, label and anti-lost tracing system
CN113079191B (en) * 2020-04-03 2022-04-05 中移(上海)信息通信科技有限公司 Positioning method, device, system and storage medium
CN112839303B (en) * 2021-04-12 2021-08-31 荣耀终端有限公司 Method and related device for device reconnection
CN113891297B (en) * 2021-05-31 2022-08-02 荣耀终端有限公司 Method for controlling Bluetooth connection and electronic equipment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112258780A (en) * 2020-09-28 2021-01-22 四川长虹网络科技有限责任公司 Outdoor personnel missing alarm method and system

Also Published As

Publication number Publication date
CN114173285A (en) 2022-03-11

Similar Documents

Publication Publication Date Title
WO2021013156A1 (en) Bluetooth switching method and bluetooth device
CN112243220A (en) Method for establishing communication connection and wearable device
CN110582109A (en) Wireless Local Area Network (WLAN) network access method and device
CN112839303B (en) Method and related device for device reconnection
CN114244960B (en) Incoming call response method and corresponding terminal and communication system
CN113382363B (en) Method and device for sending messages based on different networks
CN114173285B (en) Bluetooth back connection method, system, electronic equipment, server and storage medium
CN114980363B (en) Bluetooth reconnection method and related device thereof
CN113038627B (en) File sharing method, mobile device and computer storage medium
EP4138434A1 (en) Method for detecting bluetooth positioning device, device, and storage medium
CN114449099B (en) Method for adjusting equipment azimuth, terminal equipment and readable storage medium
CN113810532B (en) Positioning method and related device
WO2021129128A1 (en) Wireless charging method for mobile terminal and mobile terminal
EP4021078A1 (en) Method for increasing paging response speed of terminal and terminal
CN114916054A (en) Communication method, device and terminal equipment
CN112469014A (en) Method and electronic equipment for configuring Bluetooth connection parameters
CN115529854A (en) Rescue method, rescue device, storage medium and chip system
CN116048832B (en) Batch clearing method and device for notification
CN116033360B (en) Electronic equipment state monitoring method and electronic equipment
CN114696961B (en) Multimedia data transmission method and equipment
RU2789775C1 (en) Method for increasing terminal response rate to page messages and terminal
WO2024001443A1 (en) Transmission power limiting method and device
WO2022037368A1 (en) Sleep control method for mobile routing device, and mobile routing device
CN112004260B (en) Communication control method, communication control device, storage medium and electronic equipment
CN115802498A (en) Frequency band switching method, AP (access point) equipment and electronic equipment

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
GR01 Patent grant
GR01 Patent grant