Bluetooth networking method, device, medium and electronic device

By establishing a bidirectional interconnection between write and notify connections in the Bluetooth networking equipment on the aircraft, and disconnecting the write connection according to the difference in signal strength, the problem of unstable Bluetooth networking on the aircraft is solved, and stable Bluetooth networking and data transmission are achieved.

CN119767280APending Publication Date: 2025-04-04MOBILE TECH COMPANY CHINA TRAVELSKY HLDG
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411889410.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-20
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

During the flight of the aircraft, the conventional write connection method is only relied on during the on-board Bluetooth networking process, and the connection is not stable enough, affecting the passenger's flight experience.

Method used

By obtaining the information list of related devices of the devices to be networked, a bidirectional interconnection between the write connection method and the notify connection method is established, and a weaker write connection method is disconnected when a difference in signal strength is detected to improve the stability of Bluetooth networking.

Benefits of technology

It realizes relatively stable Bluetooth networking and data transmission, saves the equipment's Bluetooth resource occupation, and provides a backup data transmission path when there is a problem with the path.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119767280A_ABST
    Figure CN119767280A_ABST
Patent Text Reader

Abstract

The present application provides a Bluetooth networking method, device, medium and electronic device, which relate to the field of Bluetooth connection technology, including: in response to receiving a Bluetooth access signal of a device to be networked, obtaining a list set S of associated device information of the device to be networked; if SG i,a =SB j , and SX j Less than the preset connection signal strength threshold, and SGX i,a >SX j , then get SC i,a,j =SGX i,a ‑SX j ; If SC i,a,j If the difference is greater than the first signal difference threshold, any write connection between the device to be networked and the corresponding j-th associated device is disconnected. This application saves the Bluetooth resource usage of the corresponding device, can achieve a relatively stable Bluetooth networking, and can achieve relatively stable data transmission. When other channels have problems, the remaining channels can also be used for data transmission. The stability of data transmission is further guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] The passenger experience in the aviation field has become a major factor in the competition among airlines. However, during the flight, there is no Internet network and traditional Internet applications cannot be used normally. In this case, instant messaging methods such as Bluetooth can achieve communication between devices without relying on the Internet, which can change this situation and improve the passenger's flight experience. However, due to the complex situation on board, in the process of in-flight Bluetooth networking between multiple devices, relying only on the conventional write connection method, the connection is not stable enough. Therefore, there is an urgent need for a Bluetooth networking method that improves the stability of in-flight Bluetooth networking. Summary of the invention

[0003] In response to the above technical problems, the present application provides a Bluetooth networking method, device, medium and electronic device, which at least partially solve the problems existing in the prior art.

[0004] In a first aspect of the present application, a Bluetooth networking method is provided, the method comprising:

[0005] S100, in response to receiving a Bluetooth access signal from a device to be networked, obtaining a list of associated device information S=(S1, S2, . . . , S i , …, S n ); i = 1, 2, ..., n; wherein n is the number of associated devices of the device to be networked; S i is the device information list of the i-th associated device of the device to be networked; S i =(SB i , SX i , SG i );SB i SX is the device identifier of the i-th associated device of the device to be networked; i is the connection signal strength between the i-th associated device of the device to be networked and the device to be networked; SG i is the connection list corresponding to the i-th associated device of the device to be networked; SG i =(SG i,1 , SG i,2 ,…,SG i,a ,…,SG i,f(i) ); a = 1, 2, ..., f(i); f(i) is the number of associated devices corresponding to the i-th associated device of the device to be networked; SG i,a The device identifier of the a-th associated device corresponding to the i-th associated device of the device to be networked; the Bluetooth connection mode corresponding to the associated device is bidirectional interconnection through the write connection mode and the notify connection mode;

[0006] S200, if SG i,a =SBj , and SX j Less than the preset connection signal strength threshold, and SGX i,a >SX j , then get SC i,a,j =SGX i,a -SX j ; Among them, SGX i,a For SG i,a The corresponding device and S i The connection signal strength between the corresponding devices; SB j SX is the device identifier of the jth associated device of the device to be networked; j is the connection signal strength between the j-th associated device of the device to be networked and the device to be networked; j=1, 2, ..., n;

[0007] S300, if SC i,a,j If the signal difference is greater than the first signal difference threshold, any write connection between the device to be networked and the corresponding j-th associated device is disconnected.

[0008] In a second aspect of the present application, a Bluetooth networking device is provided, the device comprising:

[0009] The information acquisition unit is used to obtain the associated device information list set S=(S1, S2, ..., S i , …, S n ); i = 1, 2, ..., n; wherein n is the number of associated devices of the device to be networked; S i is the device information list of the i-th associated device of the device to be networked; S i =(SB i , SX i , SG i );SB i SX is the device identifier of the i-th associated device of the device to be networked; i is the connection signal strength between the i-th associated device of the device to be networked and the device to be networked; SG i is the connection list corresponding to the i-th associated device of the device to be networked; SG i =(SG i,1 , SG i,2 ,…,SG i,a ,…,SG i,f(i) ); a = 1, 2, ..., f(i); f(i) is the number of associated devices corresponding to the i-th associated device of the device to be networked; SG i,aThe device identifier of the a-th associated device corresponding to the i-th associated device of the device to be networked; the Bluetooth connection mode corresponding to the associated device is bidirectional interconnection through the write connection mode and the notify connection mode;

[0010] The signal strength difference acquisition unit is used if SG i,a =SB j , and SX j Less than the preset connection signal strength threshold, and SGX i,a >SX j , then get SC i,a,j =SGX i,a -SX j ; Among them, SGX i,a For SG i,a The corresponding device and S i The connection signal strength between the corresponding devices; SB j SX is the device identifier of the jth associated device of the device to be networked; j is the connection signal strength between the j-th associated device of the device to be networked and the device to be networked; j=1, 2, ..., n;

[0011] Disconnect unit, used for SC i,a,j If the signal difference is greater than the first signal difference threshold, any write connection between the device to be networked and the corresponding j-th associated device is disconnected.

[0012] In a third aspect of the present application, a non-transitory computer-readable storage medium is provided, in which at least one instruction or at least one program is stored, and the at least one instruction or at least one program is loaded and executed by a processor to implement the aforementioned Bluetooth networking method.

[0013] In a fourth aspect of the present application, an electronic device is provided, comprising a processor and the above-mentioned non-transitory computer-readable storage medium.

[0014] This application has at least the following beneficial effects:

[0015] The Bluetooth networking method provided in the present application, when the device to be networked currently turns on Bluetooth and connects with other devices that have already turned on Bluetooth, obtains a list set S of associated device information of the device to be networked. Here, each associated device included in S is a device that has been connected to the device to be networked via Bluetooth, and due to a series of factors such as the distance between devices and the configuration of the devices themselves, some devices have not established a Bluetooth connection with the device to be networked, and each associated device included in S also has its own corresponding associated device. And in the present application, the Bluetooth connection mode corresponding to the associated device is a bidirectional interconnection through a write connection mode and a notify connection mode. That is, on the basis of the bidirectional establishment of the write connection mode, in order to improve the stability of the Bluetooth connection, a bidirectional notify connection mode is established. Furthermore, if SG i,a =SB j , it means that the jth associated device of the device to be networked and the ath associated device of the ith associated device of the device to be networked are the same device. And in this embodiment, SX j is less than the preset connection signal strength threshold, that is, the connection signal strength between the device to be networked and its corresponding j-th associated device is less than the preset connection signal strength threshold, and SGX i,a >SX j , that is, the connection signal strength between the i-th associated device of the device to be networked and the commonly connected device is greater than the connection signal strength between the device to be networked and the commonly connected device, which means that the stability of the Bluetooth connection between the commonly connected device and the i-th associated device of the device to be networked is higher, and the stability of the Bluetooth connection between the commonly connected device and the device to be networked is not very high. At this time, the signal strength difference between the connection signal strength between the i-th associated device of the device to be networked and the commonly connected device and the connection signal strength between the device to be networked and the commonly connected device is obtained. The larger the signal strength difference is, the higher the stability of the Bluetooth connection between the commonly connected device and the i-th associated device of the device to be networked is than the stability of the Bluetooth connection between the commonly connected device and the device to be networked. If SC i,a,jGreater than the first signal difference threshold, that is, the difference in signal strength between the connection signal strength between the i-th associated device of the device to be networked and the commonly connected device and the connection signal strength between the device to be networked and the commonly connected device is large. At this time, disconnect any write connection mode between the device to be networked and the corresponding j-th associated device. The present application disconnects any write connection mode with weaker connection strength with the commonly connected device when the device to be networked and its associated device have a commonly connected device. On the one hand, it saves the Bluetooth resource occupation of the corresponding device, and on the other hand, it can achieve relatively stable Bluetooth networking and relatively stable data transmission. And because only any write connection mode is disconnected, there is also a two-way data transmission path. When problems occur in other paths, this path can also be used for data transmission. The stability of data transmission is further guaranteed. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0017] Figure 1 A flowchart of a Bluetooth networking method provided in an embodiment of the present application;

[0018] Figure 2 This is a structural block diagram of the Bluetooth networking device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0019] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0020] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0021] It should be noted that various aspects of the embodiments within the scope of the appended claims are described below. It should be apparent that the aspects described herein may be embodied in a wide variety of forms, and any specific structure and / or function described herein is merely illustrative. Based on the present application, it should be understood by those skilled in the art that an aspect described herein may be implemented independently of any other aspect, and two or more of these aspects may be combined in various ways. For example, any number of aspects described herein may be used to implement the device and / or practice the method. In addition, other structures and / or functionalities other than one or more of the aspects described herein may be used to implement this device and / or practice this method.

[0022] During the flight, there is no Internet network and traditional Internet applications cannot be used normally. In this case, instant communication methods such as Bluetooth can realize communication between devices without relying on the Internet, which can change this situation and improve the flight experience of passengers. However, due to the complex situation on the plane, in the process of Bluetooth networking between multiple devices on the plane, relying only on the conventional write connection method, the connection is not stable enough.

[0023] Therefore, please refer to Figure 1 As shown, an embodiment of the present application provides a Bluetooth networking method, the method comprising:

[0024] S100, in response to receiving a Bluetooth access signal from a device to be networked, obtaining a list of associated device information S=(S1, S2, . . . , S i , …, S n ); i = 1, 2, ..., n; wherein n is the number of associated devices of the device to be networked; S i is the device information list of the i-th associated device of the device to be networked; S i =(SB i , SX i , SG i);SB i SX is the device identifier of the i-th associated device of the device to be networked; i is the connection signal strength between the i-th associated device of the device to be networked and the device to be networked; SG i is the connection list corresponding to the i-th associated device of the device to be networked; SG i =(SG i,1 , SG i,2 ,…,SG i,a ,…,SG i,f(i) ); a = 1, 2, ..., f(i); f(i) is the number of associated devices corresponding to the i-th associated device of the device to be networked; SG i,a It is the device identifier of the ath associated device corresponding to the ith associated device of the device to be networked; the Bluetooth connection mode corresponding to the associated device is bidirectional interconnection through the write connection mode and the notify connection mode.

[0025] Specifically, in the onboard scenario, the distance between devices is relatively close. In the absence of the Internet, information is exchanged through near-field communication methods such as Bluetooth. As each user controls the Bluetooth switch of the device and the user's position changes, the networking situation changes at any time. In this embodiment, when the device to be networked currently turns on Bluetooth, it connects with other devices that have turned on Bluetooth, and obtains the associated device information list set S of the device to be networked. Here, each associated device included in S is a device that has been connected to the device to be networked through Bluetooth, and due to a series of factors such as the distance between devices and the configuration of the device itself, some devices have not established a Bluetooth connection with the device to be networked, and each associated device included in S also has its own corresponding associated device.

[0026] It should be noted that the Bluetooth connection signal strength between devices can be obtained. Here, the Bluetooth connection signal strength may be related to factors such as the environment, the distance between devices, the configuration of the device itself, the personalized settings of the device, and the power of the device.

[0027] In addition, the Bluetooth connection mode corresponding to the associated devices in this embodiment (between the device to be networked and its corresponding associated device, and between the associated device of the device to be networked and its corresponding associated device) is bidirectional interconnection through the write connection mode and the notify connection mode.

[0028] In Bluetooth connection, the write connection mode usually refers to the process of writing data from one device (usually called "host" or "client") to another device (usually called "slave" or "server") through the interface or function provided by the Bluetooth protocol stack. This process involves multiple steps such as pairing, connection, and data transmission of Bluetooth devices. That is, the write connection mode only supports one-way data transmission, that is, after device A as the data sender and device B as the device receiver are connected through the write connection mode, device A can send data to device B, but device B cannot send data to device A. In related technologies, if device B sends data to device A, it can be achieved by connecting device B as the data sender and device A as the device receiver through the write connection mode.

[0029] In this embodiment, the Bluetooth connection mode corresponding to the associated device is bidirectional interconnection through a write connection mode and a notify connection mode. That is, on the basis of bidirectionally establishing a write connection mode, in order to improve the stability of the Bluetooth connection, a bidirectional notify connection mode is also established.

[0030] Among them, the notify connection mode is a data transmission mechanism based on Bluetooth Low Energy (BLE) technology. Notify is a one-way communication mechanism in BLE that allows the slave device to automatically send a notification to the master device when there is new data. This mechanism does not require a request from the master device, and the slave device can decide independently when to send data.

[0031] S200, if SG i,a =SB j , and SX j Less than the preset connection signal strength threshold, and SGX i,a >SX j , then get SC i,a,j =SGX i,a -SX j ; Among them, SGX i,a For SG i,a The corresponding device and S i The connection signal strength between the corresponding devices; SB j SX is the device identifier of the jth associated device of the device to be networked; j is the connection signal strength between the j-th associated device of the device to be networked and the device to be networked; j=1, 2, ..., n.

[0032] Specifically, if SG i,a =SB j , it means that the jth associated device of the device to be networked and the ath associated device of the ith associated device of the device to be networked are the same device. (hereinafter referred to as the commonly connected device) and in this embodiment, SXj is less than the preset connection signal strength threshold, that is, the connection signal strength between the device to be networked and its corresponding j-th associated device is less than the preset connection signal strength threshold, and SGX i,a >SX j , that is, if the connection signal strength between the i-th associated device of the device to be networked and the commonly connected device is greater than the connection signal strength between the device to be networked and the commonly connected device, it means that the stability of the Bluetooth connection between the commonly connected device and the i-th associated device of the device to be networked is higher, and the stability of the Bluetooth connection between the commonly connected device and the device to be networked is not too high. At this time, the signal strength difference between the connection signal strength between the i-th associated device of the device to be networked and the commonly connected device and the connection signal strength between the device to be networked and the commonly connected device is obtained. The larger the signal strength difference is, the higher the stability of the Bluetooth connection between the commonly connected device and the i-th associated device of the device to be networked is than the stability of the Bluetooth connection between the commonly connected device and the device to be networked.

[0033] S300, if SC i,a,j If the signal difference is greater than the first signal difference threshold, any write connection between the device to be networked and the corresponding j-th associated device is disconnected.

[0034] Specifically, if SC i,a,j is greater than a first signal difference threshold, that is, the signal strength difference between the connection signal strength of the i-th associated device of the device to be networked and the commonly connected device and the signal strength between the device to be networked and the commonly connected device is large. At this time, any write connection mode between the device to be networked and the corresponding j-th associated device is disconnected. Any write connection mode here refers to a write connection mode in which the device to be networked is the data sender and the device to be networked and the corresponding j-th associated device are the data receivers, or a write connection mode in which the device to be networked is the data receiver and the device to be networked and the corresponding j-th associated device are the data sender.

[0035] In this embodiment, any write connection mode between the device to be networked and the corresponding j-th associated device is disconnected, that is, the device to be networked and the corresponding j-th associated device can only maintain one channel for data transmission between each other. At this time, the Bluetooth resource occupation of the device to be networked and its corresponding j-th associated device is saved, and it can maintain a two-way data transmission channel (one-way write connection mode and its corresponding notify connection mode). In order to improve the stability of data transmission, when data is transmitted between the device to be networked and the j-th associated device (jointly connected device), it can be forwarded through the i-th associated device of the device to be networked. Since the connection signal strength between the i-th associated device of the device to be networked and the jointly connected device is greater, it is more stable to forward data transmission through it.

[0036] Thus, by processing each associated device of the device to be networked and the associated devices of each associated device according to the above steps, a relatively stable Bluetooth network and relatively stable data transmission can be achieved. And because the device to be networked and the corresponding j-th associated device also have a bidirectional data transmission path, when other paths have problems, this path can also be used for data transmission.

[0037] In summary, in this embodiment, when the device to be networked and its associated device have a common connection device, any write connection mode with a weaker connection strength with the common connection device is disconnected, which saves the Bluetooth resource occupation of the corresponding device on the one hand, and can achieve a relatively stable Bluetooth networking and data transmission on the other hand. And because only any write connection mode is disconnected, there is also a two-way data transmission path, which can also be used for data transmission when other paths have problems.

[0038] In an exemplary embodiment of the present application, after step S200, the method further includes:

[0039] S400, if SC i,a,j If the signal difference is less than or equal to the first signal difference threshold, the number of devices DN and S that are currently interconnected by the write connection mode and the notify connection mode are obtained. i The number of devices that are currently interconnected via write connection and notify connection in the corresponding device. i .

[0040] S500, if DN>SN i , then disconnect any write connection between the device to be networked and the corresponding j-th associated device.

[0041] In this embodiment, if SC i,a,jis less than or equal to the first signal difference threshold, it means that the signal strength difference between the connection signal strength between the i-th associated device of the to-be-networked device and the commonly connected device and the signal strength difference between the to-be-networked device and the commonly connected device is small, at this time, the number of devices connected to the to-be-networked device and S i The number of devices connected to the corresponding device. Disconnect any write connection mode from devices with a large number of device connections. The more devices are connected, the worse the connection signal strength between the connected devices may be. Therefore, when the difference in signal strength between the connection signal strength between the i-th associated device of the device to be networked and the commonly connected device and the connection signal strength between the device to be networked and the commonly connected device is small, disconnect any write connection mode from devices with a large number of device connections. Ensure the stability of the Bluetooth connection of each device as much as possible and improve the stability of the overall Bluetooth networking system.

[0042] In an exemplary embodiment of the present application, after step S400, the method further includes:

[0043] S600, if DN<SN i , then disconnect S i Corresponding equipment and SG i,a Any write connection method between corresponding devices.

[0044] In this embodiment, if SC i,a,j is less than or equal to the first signal difference threshold, it means that the signal strength difference between the connection signal strength between the i-th associated device of the to-be-networked device and the commonly connected device and the connection signal strength between the to-be-networked device and the commonly connected device is small. i , that is, S i The number of devices connected to the corresponding device is large. In order to ensure the overall stability of the Bluetooth networking system, disconnect S i Corresponding equipment and SG i,a Any write connection method between corresponding devices. Try to ensure S i The stability of the Bluetooth connection between the corresponding device and each device.

[0045] In an exemplary embodiment of the present application, after step S100, the method further includes:

[0046] S700, if SG i,a =SB j , and SX j Equal to or greater than the preset connection signal strength threshold, and SGX i,a >SX j , then get SC i,a,j =SGX i,a -SX j.

[0047] S800, if SC i,a,j If the signal difference is greater than a second signal difference threshold, any write connection between the device to be networked and the corresponding j-th associated device is disconnected; wherein the second signal difference threshold is greater than the first signal difference threshold.

[0048] In this embodiment, if SG i,a =SB j , it means that the jth associated device of the device to be networked and the ath associated device of the ith associated device of the device to be networked are the same device. (hereinafter referred to as the commonly connected device) and in this embodiment, SX j Equal to or greater than the preset connection signal strength threshold, that is, the connection signal strength between the device to be networked and its corresponding j-th associated device is equal to or greater than the preset connection signal strength threshold. At this time, SGX i,a >SX j , that is, the connection signal strength between the i-th associated device of the device to be networked and the commonly connected device is greater than the connection signal strength between the device to be networked and the commonly connected device, which means that the stability of the Bluetooth connection between the commonly connected device and the i-th associated device of the device to be networked is higher, but because the stability of the Bluetooth connection between the commonly connected device and the device to be networked is relatively high, if the signal strength difference between the connection signal strength between the i-th associated device of the device to be networked and the commonly connected device and the connection signal strength between the device to be networked and the commonly connected device is relatively large (the second signal difference threshold is greater than the above-mentioned first signal difference threshold). Also disconnect any write connection mode between the device to be networked and the corresponding j-th associated device. That is, the stability between the device to be networked and the commonly connected device is relatively high, but the connection signal strength between the i-th associated device of the device to be networked and the commonly connected device is much higher than the connection signal strength between the device to be networked and the commonly connected device, and also disconnect any write connection mode between the device to be networked and the corresponding j-th associated device. A more stable Bluetooth networking system can be obtained.

[0049] In addition, after step S700, the method further includes:

[0050] S900, if SC i,a,j If the signal difference is less than the first signal difference threshold, the number of devices DN and S that are currently interconnected by the write connection mode and the notify connection mode are obtained. i The number of devices that are currently interconnected via write connection and notify connection in the corresponding device. i , and jump to step S500.

[0051] That is, the stability between the device to be networked and the commonly connected device is relatively high, and the connection signal strength between the i-th associated device of the device to be networked and the commonly connected device is slightly greater than the connection signal strength between the device to be networked and the commonly connected device. i The number of device connections of the corresponding device is determined. The same as the above embodiment, which will not be repeated here.

[0052] In an exemplary embodiment of the present application, the device to be networked and S i The corresponding notify connection mode between the devices includes a first notify connection mode and a second notify connection mode;

[0053] The device to be networked performs the following steps to communicate with S i The corresponding device establishes the first notify connection mode:

[0054] S111, get S i The Bluetooth broadcast signal sent by the corresponding device;

[0055] S112, if S i If the Bluetooth broadcast signal sent by the corresponding device is verified, it will be sent to S i The corresponding device initiates a connection request;

[0056] S113, in response to the connection request being passed, establishing a first write connection mode; wherein the first write connection mode is used for the networked device to send a write request to S i The corresponding device sends data;

[0057] S114, Subscribe to S i The corresponding device's notify notification is used to establish a first notify connection mode; wherein the first notify connection mode is used for the networked device to receive S when there is no second write connection mode. i The corresponding device sends data; the second write connection mode is used for S i The corresponding device sends data to the device to be networked;

[0058] S i The corresponding device establishes a second notify connection mode with the device to be networked by performing the following steps:

[0059] S121, obtaining a Bluetooth broadcast signal sent by the device to be networked;

[0060] S122, if the Bluetooth broadcast signal sent by the device to be networked is verified, a connection request is initiated to the device to be networked;

[0061] S123, in response to the connection request being approved, establishing a second write connection mode;

[0062] S124, subscribe to the notify notification of the device to be networked to establish a second notify connection mode; wherein the second notify connection mode is used for S i When there is no first write connection mode, the corresponding device receives data sent by the device to be networked.

[0063] The above-mentioned establishment method of the notify connection mode in this embodiment is applicable to any two devices bidirectionally interconnected by the write connection mode and the notify connection mode.

[0064] In the above manner, a two-way four-channel Bluetooth connection is established between devices.

[0065] Please refer to Figure 2 As shown, an embodiment of the present application provides a Bluetooth networking device 100, the device comprising:

[0066] The information acquisition unit 110 is used to obtain the associated device information list set S=(S1, S2, ..., S i , …, S n ); i = 1, 2, ..., n; wherein n is the number of associated devices of the device to be networked; S i is the device information list of the i-th associated device of the device to be networked; S i =(SB i , SX i , SG i );SB i SX is the device identifier of the i-th associated device of the device to be networked; i is the connection signal strength between the i-th associated device of the device to be networked and the device to be networked; SG i is the connection list corresponding to the i-th associated device of the device to be networked; SG i =(SG i,1 , SG i,2 ,…,SG i,a ,…,SG i,f(i) ); a = 1, 2, ..., f(i); f(i) is the number of associated devices corresponding to the i-th associated device of the device to be networked; SG i,a It is the device identifier of the ath associated device corresponding to the ith associated device of the device to be networked; the Bluetooth connection mode corresponding to the associated device is bidirectional interconnection through the write connection mode and the notify connection mode.

[0067] The signal strength difference acquisition unit 120 is used to obtain the signal strength difference of the SGi,a =SB j , and SX j Less than the preset connection signal strength threshold, and SGX i,a >SX j , then get SC i,a,j =SGX i,a -SX j ; Among them, SGX i,a For SG i,a The corresponding device and S i The connection signal strength between the corresponding devices; SB j SX is the device identifier of the jth associated device of the device to be networked; j is the connection signal strength between the j-th associated device of the device to be networked and the device to be networked; j=1, 2, ..., n.

[0068] The disconnection unit 130 is used for SC i,a,j If the signal difference is greater than the first signal difference threshold, any write connection between the device to be networked and the corresponding j-th associated device is disconnected.

[0069] In an exemplary embodiment of the present application, an electronic device capable of implementing the above method is also provided.

[0070] Those skilled in the art will appreciate that various aspects of the present application may be implemented as a system, method or program product. Therefore, various aspects of the present application may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to as "circuit", "module" or "system" herein.

[0071] The electronic device according to this embodiment of the present application is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0072] The electronic device is presented in the form of a general-purpose computing device. The components of the electronic device may include, but are not limited to: the at least one processor mentioned above, the at least one storage device mentioned above, and a bus connecting different system components (including storage devices and processors).

[0073] The storage stores program codes, which can be executed by the processor, so that the processor executes the steps described in the above “Exemplary Method” section of this specification according to various exemplary embodiments of the present application.

[0074] The memory may include readable media in the form of volatile memory, such as random access memory (RAM) and / or cache memory, and may further include read only memory (ROM).

[0075] The storage may also include a program / utility having a set (at least one) of program modules, such program modules including but not limited to: an operating system, one or more application programs, other program modules and program data, each of which or some combination may include the implementation of a network environment.

[0076] The bus may represent one or more of several types of bus structures including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures.

[0077] The electronic device can also communicate with one or more external devices (such as keyboards, pointing devices, Bluetooth devices, etc.), and can also communicate with one or more devices that enable users to interact with the electronic device, and / or communicate with any device (such as routers, modems, etc.) that enables the electronic device to communicate with one or more other computing devices. This communication can be carried out through an input / output (I / O) interface. In addition, the electronic device can also communicate with one or more networks (such as local area networks (LANs), wide area networks (WANs) and / or public networks, such as the Internet) through a network adapter. As shown in the figure, the network adapter communicates with other modules of the electronic device through a bus. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the electronic device, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.

[0078] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation methods of the present application.

[0079] In an exemplary embodiment of the present application, a computer-readable storage medium is also provided, on which a program product capable of implementing the above method of the present specification is stored. In some possible implementations, various aspects of the present application can also be implemented in the form of a program product, which includes a program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary implementations of the present application described in the above "Exemplary Method" section of the present specification.

[0080] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0081] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0082] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.

[0083] Program code for performing the operations of the present application may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0084] In addition, the above-mentioned figures are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present application, and are not intended to be limiting. It is easy to understand that the processes shown in the above-mentioned figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.

[0085] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.

[0086] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A Bluetooth networking method, characterized in that: The method comprises: S100, in response to receiving a Bluetooth access signal of a device to be networked, obtaining a list of associated device information of the device to be networked S=(S1, S2, . . . , S i , …, S n ); i = 1, 2, ..., n; wherein n is the number of associated devices of the device to be networked; S i is the device information list of the i-th associated device of the device to be networked; S i =(SB i , SX i , S.G. i );SB i SX is the device identifier of the i-th associated device of the device to be networked; i is the connection signal strength between the i-th associated device of the device to be networked and the device to be networked; SG i is the connection list corresponding to the i-th associated device of the device to be networked; SG i =(SG i,1 , SG i,2 , …, SG i,a , …, SG i,f(i) ); a = 1, 2, ..., f(i); f(i) is the number of associated devices corresponding to the i-th associated device of the device to be networked; SG i,a The device identifier of the a-th associated device corresponding to the i-th associated device of the device to be networked; the Bluetooth connection mode corresponding to the associated device is bidirectional interconnection through write connection mode a and notify connection mode; S200, if SG i,a =SB j , and SX j Less than the preset connection signal strength threshold, and SGX i,a >SX j , then get SC i,a,j =SGX i,a -SX j ; Among them, SGX i,a For SG i,a The corresponding device and S i The connection signal strength between the corresponding devices; SB j SX is the device identifier of the jth associated device of the device to be networked; j is the connection signal strength between the j-th associated device of the device to be networked and the device to be networked; j=1, 2, ..., n; S300, if SC i,a,j If the signal difference is greater than the first signal difference threshold, any write connection between the device to be networked and the corresponding j-th associated device is disconnected.

2. The Bluetooth networking method according to claim 1, characterized in that: After step S200, the method further includes: S400, if SC i,a,j If the signal difference is less than or equal to the first signal difference threshold, the number of devices DN and S that are currently interconnected by the write connection mode and the notify connection mode are obtained. i The number of devices that are currently interconnected via write connection and notify connection in the corresponding device. i ; S500, if DN>SN i , then disconnect any write connection between the device to be networked and the corresponding j-th associated device.

3. The Bluetooth networking method according to claim 2, characterized in that: After step S400, the method further includes: S600, if DN<SN i , then disconnect S i Corresponding equipment and SG i,a Any write connection method between corresponding devices.

4. The Bluetooth networking method according to claim 1, characterized in that: After step S100, the method further includes: S700, if SG i,a =SB j , and SX j Equal to or greater than the preset connection signal strength threshold, and SGX i,a >SX j , then get SC i,a,j =SGX i,a -SX j ; S800, if SC i,a,j If the signal difference is greater than a second signal difference threshold, any write connection between the device to be networked and the corresponding j-th associated device is disconnected; wherein the second signal difference threshold is greater than the first signal difference threshold.

5. The Bluetooth networking method according to claim 4, characterized in that: After step S700, the method further includes: S900, if SC i,a,j If the signal difference is less than the first signal difference threshold, the number of devices DN and S that are currently interconnected by the write connection mode and the notify connection mode are obtained. i The number of devices that are currently interconnected via write connection and notify connection in the corresponding device. i , and jump to step S500.

6. The Bluetooth networking method according to claim 1, characterized in that: The device to be networked and S i The corresponding notify connection mode between the devices includes a first notify connection mode and a second notify connection mode; The device to be networked performs the following steps to communicate with S i The corresponding device establishes the first notify connection mode: S111, get S i The Bluetooth broadcast signal sent by the corresponding device; S112, if S i If the Bluetooth broadcast signal sent by the corresponding device is verified, it will be sent to S i The corresponding device initiates a connection request; S113, in response to the connection request being passed, establishing a first write connection mode; wherein the first write connection mode is used for the networked device to send a write request to S i The corresponding device sends data; S114, Subscribe to S i The corresponding device's notify notification is used to establish a first notify connection mode; wherein the first notify connection mode is used for the networked device to receive S when there is no second write connection mode. i The corresponding device sends data; the second write connection mode is used for S i The corresponding device sends data to the device to be networked; S i The corresponding device establishes a second notify connection mode with the device to be networked by performing the following steps: S121, obtaining a Bluetooth broadcast signal sent by the device to be networked; S122, if the Bluetooth broadcast signal sent by the device to be networked is verified, a connection request is initiated to the device to be networked; S123, in response to the connection request being approved, establishing a second write connection mode; S124, subscribe to the notify notification of the device to be networked to establish a second notify connection mode; wherein the second notify connection mode is used for S i When there is no first write connection mode, the corresponding device receives data sent by the device to be networked.

7. A Bluetooth networking device, characterized in that: The device comprises: The information acquisition unit is configured to, in response to receiving a Bluetooth access signal from a device to be networked, acquire an associated device information list set S=(S1, S2, ..., S i , …, S n ); i = 1, 2, ..., n; wherein n is the number of associated devices of the device to be networked; S i is the device information list of the i-th associated device of the device to be networked; S i =(SB i , SX i , SG i );SB i SX is the device identifier of the i-th associated device of the device to be networked; i is the connection signal strength between the i-th associated device of the device to be networked and the device to be networked; SG i is the connection list corresponding to the i-th associated device of the device to be networked; SG i =(SG i,1 , SG i,2 , …, SG i,a , …, SG i,f(i) ); a = 1, 2, ..., f(i); f(i) is the number of associated devices corresponding to the i-th associated device of the device to be networked; SG i,a The device identifier of the a-th associated device corresponding to the i-th associated device of the device to be networked; the Bluetooth connection mode corresponding to the associated device is bidirectional interconnection through the write connection mode and the notify connection mode; The signal strength difference acquisition unit is used if SG i,a =SB j , and SX j Less than the preset connection signal strength threshold, and SGX i,a >SX j , then get SC i,a,j =SGX i,a -SX j ; Among them, SGX i,a For SG i,a The corresponding device and S i The connection signal strength between the corresponding devices; SB j SX is the device identifier of the jth associated device of the device to be networked; j is the connection signal strength between the j-th associated device of the device to be networked and the device to be networked; j=1, 2, ..., n; Disconnect unit, used for SC i,a,j If the signal difference is greater than the first signal difference threshold, any write connection between the device to be networked and the corresponding j-th associated device is disconnected.

8. A non-transitory computer-readable storage medium, characterized in that: The storage medium stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the method as claimed in any one of claims 1 to 6.

9. An electronic device, characterized in that: The invention comprises a processor and the non-transitory computer-readable storage medium as claimed in claim 8.