CN113438631A - Method for secondary concurrent connection of single mobile terminal and multiple Bluetooth devices - Google Patents

Method for secondary concurrent connection of single mobile terminal and multiple Bluetooth devices Download PDF

Info

Publication number
CN113438631A
CN113438631A CN202110627765.8A CN202110627765A CN113438631A CN 113438631 A CN113438631 A CN 113438631A CN 202110627765 A CN202110627765 A CN 202110627765A CN 113438631 A CN113438631 A CN 113438631A
Authority
CN
China
Prior art keywords
connection
equipment
list
data
mobile terminal
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.)
Granted
Application number
CN202110627765.8A
Other languages
Chinese (zh)
Other versions
CN113438631B (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.)
Zhejiang University of Technology ZJUT
Original Assignee
Zhejiang University of Technology ZJUT
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 Zhejiang University of Technology ZJUT filed Critical Zhejiang University of Technology ZJUT
Priority to CN202110627765.8A priority Critical patent/CN113438631B/en
Publication of CN113438631A publication Critical patent/CN113438631A/en
Application granted granted Critical
Publication of CN113438631B publication Critical patent/CN113438631B/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/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention relates to a method for secondary concurrent connection of a single mobile terminal and multiple Bluetooth devices, wherein the mobile terminal initiates a secondary concurrent connection requirement of the multiple Bluetooth devices, acquires data of the multiple Bluetooth devices from a data storage system, starts traversal, attempts connection of the Bluetooth devices based on a preset sequence, skips the Bluetooth devices with connection failure through an error skip waiting mechanism, repeats until no unconnected Bluetooth devices exist, finishes device connection, and updates associated data to the data storage system. The invention solves the conflict problem and the efficiency problem of the secondary concurrent connection of the single mobile terminal and the multi-Bluetooth equipment, sets the priority for the next connection according to the stability of each equipment connection by a connection method of non-scanning direct connection, traversal connection, error jump waiting and priority setting, can effectively solve the conflict problem of the secondary concurrent connection of the single mobile terminal and the multi-Bluetooth equipment, improves the stability and the efficiency of the connection and shortens the time for the connection.

Description

Method for secondary concurrent connection of single mobile terminal and multiple Bluetooth devices
Technical Field
The invention relates to the field of Bluetooth communication, in particular to a method for secondary concurrent connection of a single mobile terminal and multiple Bluetooth devices.
Background
The rapid development of the user mobile terminal equipment promotes the updating iteration of the data communication industry. The communication speed of various devices is improved by the aid of Wifi and 5G communication technologies. However, bluetooth is the most basic communication mode in the data communication field, still has advantages such as low cost, low power consumption, and has more advantages of common application in various fields. However, in a scene where a single mobile terminal is connected with other multiple bluetooth devices concurrently, the connection effect is unsatisfactory, and there are phenomena of connection conflict, connection device information loss, connection efficiency not high, and the like.
In fields such as wisdom official working and intelligent house, owing to have multiple bluetooth equipment and the single scene of removing the end secondary and being connected, after the user has used the removal end to carry out the operation of connecting a plurality of equipment for the first time, if the user carries out bluetooth equipment secondary again and connects, all bluetooth equipment that have connected before the needs automatic connection. However, since the bluetooth device needs a certain time to process the bluetooth request, only one bluetooth connection request can be processed at the same time, and the next request is processed after one request is processed. If two bluetooth connection requests are received at the same time, connection conflict can be caused, and the situation that the connection information of the equipment is lost can happen. In addition, when a certain connected device fails, the device may be trapped in a dead loop of continuous reconnection, which may cause a subsequent bluetooth device connection to be blocked, thereby affecting the user experience.
Disclosure of Invention
In view of the above-mentioned background and technology, an object of the present invention is to provide a method for secondary concurrent connection between a single mobile terminal and multiple bluetooth devices, which implements normal creation and data communication of secondary concurrent connection between multiple bluetooth devices, thereby eliminating a series of connection problems caused by the number and quality of devices, and improving stability and speed of bluetooth connection.
The invention provides a method for secondary concurrent connection of a single mobile terminal and multiple Bluetooth devices, which comprises a connection method of non-scanning direct connection, traversing connection of a device list, error jump waiting, priority setting, quantitative data updating and system data processing.
The non-scanning direct connection is that when the application program in the mobile terminal equipment is used for connection, scanning is not required in advance, and because the invention aims at the secondary concurrent connection of the multiple Bluetooth equipment, equipment information such as the equipment name and the equipment ID of the Bluetooth equipment needs to be collected and uploaded to a data storage system of a server when the Bluetooth equipment is connected for the first time; the first time the device object data is collected, the connection priority of the device object is set to 1 by default, which means the connection priority is highest. All the connected equipment objects form a multi-equipment connection list DataList, and the first-collected equipment object data is directly inserted into the first position of the list of the DataList because the priority is defaulted to 1 and the priority is highest; when the Bluetooth is connected secondarily, direct connection can be directly carried out according to the ID of the equipment object, the time for scanning Bluetooth equipment is saved, and the time saving effect is more obvious under the condition that the number of the equipment is large.
The device list traversal connection is that a user can use the mobile terminal device to pull device connection list DataList data from the data storage system, and one device object information includes a device name, a device connection ID, and a device connection Priority. If there are multiple pieces of device information, a multi-object data list DataList is obtained, where the initial length of the multi-object data list is initialillellen. The objects in the DataList have been processed in the system, i.e. sorted by the size of the object priority. The mobile terminal device application executes the Bluetooth connection operation of each device object according to the sequence of the device objects in the list, and sequentially and circularly traverses until the last device in the device list is successfully connected, and the whole Bluetooth connection process is finished.
The error jump waiting is that when the device list traverses the connection, various unexpected situations may occur, such as the device is powered off, the bluetooth function of the device is not started, or the device is not in the current bluetooth connection range, or other faults. When a connection request is sent to the device, the bluetooth connection request is failed to be created, an error jump wait is performed, that is, the connection of the device is skipped, and the object data of the device is inserted into the end of the device connection list from the head of the list DataList, and the bluetooth connection request for the device is reinitiated when the device connection list DataList traverses to the device next time, and the device performs priority setting and is inserted into the temporary object list TempDataList. The purpose of this is to skip the device with connection failure, preferentially connect the normal device, speed up the data acquisition of the device, and prevent the connection block of the subsequent normal device caused by the failed device. If the device object is successfully connected, no error jump wait is performed, the device object is deleted from the DataList and saved to the temporary object list TempDataList.
The Priority is set to reset a Priority according to the stability of device connection when the device list traverses connection, and the connection sequence is rearranged according to the Priority when the next secondary concurrent connection of the multiple bluetooth devices is performed, so as to maximize the device connection speed. Assuming that the length of the initial DataList list is initialiltlen and the length of the current DataList list is currentlist len, when traversing connection, if the device object is successfully connected, the object priority calculation formula is:
Priority=InitialListLen-CurrentListLen
if the connection of the equipment object fails, the object priority calculation formula is as follows:
Priority=InitialListLen
the Priority of the device object does not exceed the initial DataList list length initialllistlen. The Priority data is saved to the temporary object list TempDataList together with the device object data regardless of whether the device object connection result is successful or failed.
And the data is quantitatively updated to record the connection failure times FailCount when the equipment object is in Bluetooth connection and abnormal connection occurs. When the failure times reach the threshold set by the application program, the application program uploads the temporary object list TempDataList to the data storage system for storage, and then clears the FailCount variable in the application program. The purpose of this is to prevent a certain device in the device connection list DataList from having a persistent failure, so that when the bluetooth loop connection process cannot be stopped, the temporary object list TempDataList can still be updated to the data storage system, thereby preventing data loss.
The system data processing is that after the data storage system receives the TempDataList data of the temporary object list uploaded by the application program, the TempDataList data is analyzed and processed. That is, when the data storage system receives the TempDataList data, the data storage system reorders the priorities in the device objects according to the TempDataList data, and the smaller the priority is, the earlier the order of the devices is, the higher the priority is, and the later the order of the devices is. If the priorities of the two equipment objects are equal, the two equipment objects are adjacently sorted, and the adjacent front and back orders do not matter. And by analogy, finishing the sorting of all the device objects in the TempDataList data to form new device list DataList data. And when the next time the application program executes the secondary concurrent connection request of the multiple Bluetooth devices to acquire the device list data, returning the newly arranged DataList data to the application program.
Specifically, the invention provides a method for secondary concurrent connection between a single mobile terminal and multiple bluetooth devices, which comprises the following steps:
step 1: the mobile terminal initiates a secondary concurrent connection requirement of a plurality of Bluetooth devices;
step 2: the mobile terminal acquires data of a plurality of Bluetooth devices from the data storage system and starts traversing;
and step 3: connecting the Bluetooth devices based on a preset sequence, directly performing the next step if the connection is successful, or performing the next step after the connection-failed Bluetooth devices jump through an error jump waiting mechanism;
and 4, step 4: if the unconnected Bluetooth equipment exists, returning to the step 3, otherwise, ending the connection of the equipment, and updating the associated data to the data storage system.
Preferably, in step 1, the connection requirement is that no scanning device is directly connected.
Preferably, in step 2, the mobile terminal obtains the historical device connection list data DataList corresponding to the current mobile terminal from the data storage system of the server through the application program.
Preferably, in step 3, the connecting comprises the following steps:
step 3.1.1: taking out the equipment data of the equipment objects in the DataList object list, wherein the equipment data comprises equipment names, equipment IDs and equipment priorities;
step 3.1.2: creating a Bluetooth connection request corresponding to the device ID;
step 3.1.3: connecting successfully, and deleting the equipment object data in the DataList object list;
step 3.1.4: calculating the priority of the equipment object, wherein the priority of the equipment object is equal to the length InitialListLen of the initial DataList list minus the length CurrentListLen of the current DataList list;
step 3.1.5: inserting or updating the device object into a temporary device connection list TempDataList; if the temporary device connection list has no device object with the same device name and device ID as the device object, the device object is directly inserted, otherwise, the position of the device object in the temporary device connection list TempDataList is kept unchanged, and the priority data of the target device object is updated to the priority data calculated in step 3.1.4.
Preferably, for any device, the device priority all objects are first set to default to 1.
Preferably, the error jump waiting mechanism comprises the steps of:
step 3.2.1: establishing a Bluetooth connection request corresponding to the equipment ID, failing, stopping the connection of the current equipment object, adding 1 to the total failure times of the Bluetooth connection, and setting the priority of the equipment object as the length InitialListLen of an initial DataList list;
step 3.2.2: inserting the object data of the equipment into the tail of the equipment connection list from the first bit of the list DataList, and waiting for the next cycle traversal connection;
step 3.2.3: inquiring whether an equipment object with the same equipment name and equipment ID as the equipment object exists in a temporary equipment connection list TempDataList, if not, directly inserting, and if so, not operating;
step 3.2.4: and quantitatively updating the data of the temporary equipment connection list to the data storage system according to the total connection failure times.
Preferably, in the step 3.2.4, it is determined whether the total failure times are equal to a set threshold, if so, the data in the temporary device connection list are uploaded to the data storage system, otherwise, no operation is performed;
and if the operation of uploading the data of the temporary equipment connection list is executed, clearing the total failure times, waiting for the next quantitative counting, and otherwise, not executing the operation.
Preferably, in step 4, if the length of the DataList object list is not 0, returning to step 3, otherwise, there is no device to be connected, updating the data in the temporary device connection list to the data storage system, and ending.
Preferably, updating the data in the temporary device connection list to the data storage system comprises the steps of:
step 4.1: uploading the temporary device connection list TempDataList to a data storage system;
step 4.2: and after receiving the temporary equipment connection list, the data storage system reorders according to the priority of each data object in the list, wherein the smaller the priority is, the higher the priority is represented, the list is arranged in the front, and otherwise, the list is arranged in the back and is sequentially ordered.
Preferably, if the priorities of the two objects are equal, the two objects are arranged adjacently in the list, and the adjacent front-back order does not matter.
The invention provides a method for secondary concurrent connection of a single mobile terminal and multiple Bluetooth devices, which mainly aims at the secondary concurrent connection of the multiple Bluetooth devices, can directly connect the devices according to object ID data in a device connection list DataList without scanning the Bluetooth devices in advance, saves the time of Bluetooth connection, and saves more time when more Bluetooth devices are available. When the multiple devices concurrently send the connection request, the Bluetooth request conflict at the same time can be prevented, and the Bluetooth connection request loss caused by the Bluetooth request conflict is avoided. And the priority variable is added in the objects of the connection equipment list, a connection priority is set for each Bluetooth connection equipment object, and the connection sequence can be set according to the Bluetooth connection state of different equipment, so that normal equipment can be preferentially connected, equipment with an ambiguous problem is connected later, and the Bluetooth connection speed is effectively improved.
The invention can effectively and stably solve the problem of conflict of the single mobile terminal in the secondary concurrent connection with the multiple Bluetooth devices, obviously improve the Bluetooth connection speed and reduce the connection time of the multiple Bluetooth devices. Use in fields such as wisdom official working, intelligent house, unify connection control to many bluetooth equipment, reduce because the bluetooth that unnecessary interference or bluetooth fault problem arouse connects the obstacle, have obvious optimization effect in the application of many bluetooth equipment concurrent connections, improve the efficiency that the bluetooth is connected.
Drawings
Fig. 1 is a flow chart of a secondary concurrent connection between a single mobile terminal and multiple bluetooth devices;
fig. 2 is a logic diagram of secondary concurrent connection between a single mobile terminal and multiple bluetooth devices in an intelligent office scene, in the diagram, devices pointed by bluetooth include a printer, an intelligent seat, an intelligent office desk, an air conditioner, lights and a curtain from top to bottom, and a person skilled in the art can configure more bluetooth devices;
fig. 3 is a schematic diagram of data processing of a single mobile terminal and multiple bluetooth devices in a secondary concurrent connection.
Detailed Description
The invention is described in further detail below with reference to examples, but the scope of the invention is not limited thereto.
The invention relates to a method for secondary concurrent connection of a single mobile terminal and multiple Bluetooth devices, which comprises the following steps.
Step 1: the mobile terminal initiates a secondary concurrent connection requirement of a plurality of Bluetooth devices;
in the step 1, the connection requirement is that no scanning device is directly connected.
Step 2: the mobile terminal acquires data of a plurality of Bluetooth devices from the data storage system and starts traversing;
in step 2, the mobile terminal obtains the historical device connection list data DataList corresponding to the current mobile terminal from the data storage system of the server through the application program.
And step 3: connecting the Bluetooth devices based on a preset sequence, directly performing the next step if the connection is successful, or performing the next step after the connection-failed Bluetooth devices jump through an error jump waiting mechanism;
in the step 3, the connection comprises the following steps:
step 3.1.1: taking out the equipment data of the equipment objects in the DataList object list, wherein the equipment data comprises equipment names, equipment IDs and equipment priorities;
for any device, all objects with device priority are set to default to 1 for the first time.
Step 3.1.2: creating a Bluetooth connection request corresponding to the device ID;
step 3.1.3: and if the connection is successful, deleting the device object data in the DataList object list.
Step 3.1.4: the priority of the device object is calculated, which is equal to the initial DataList list length initialillen minus the current DataList length currentlist len.
Step 3.1.5: the device object is inserted or updated to the temporary device connection list TempDataList. If the temporary device connection list has no device object with the same device name and device ID as the device object, the device object is directly inserted, otherwise, the position of the device object in the temporary device connection list TempDataList is kept unchanged, and the priority data of the target device object is updated to the priority data calculated in step 3.1.4.
The error jump waiting mechanism comprises the steps of:
step 3.2.1: establishing a Bluetooth connection request corresponding to the equipment ID, failing, stopping the connection of the current equipment object, adding 1 to the total failure times of the Bluetooth connection, and setting the priority of the equipment object as the length InitialListLen of an initial DataList list;
step 3.2.2: inserting the object data of the equipment into the tail of the equipment connection list from the first bit of the list DataList, and waiting for the next cycle traversal connection;
step 3.2.3: inquiring whether an equipment object with the same equipment name and equipment ID as the equipment object exists in a temporary equipment connection list TempDataList, if not, directly inserting, and if so, not operating;
step 3.2.4: and quantitatively updating the data of the temporary equipment connection list to the data storage system according to the total connection failure times.
In the step 3.2.4, judging whether the total failure times are equal to a set threshold value, if so, uploading the data of the temporary device connection list to a data storage system, otherwise, not performing operation;
and if the operation of uploading the data of the temporary equipment connection list is executed, clearing the total failure times, waiting for the next quantitative counting, and otherwise, not executing the operation.
And 4, step 4: if the unconnected Bluetooth equipment exists, returning to the step 3, otherwise, ending the connection of the equipment, and updating the associated data to the data storage system.
In the step 4, if the length of the DataList object list is not 0, returning to the step 3, otherwise, no device to be connected exists, updating the data in the temporary device connection list to the data storage system, and ending.
Updating data in the temporary device connection list to the data storage system comprises the following steps:
step 4.1: uploading the temporary device connection list to a data storage system;
step 4.2: and after receiving the temporary equipment connection list, the data storage system reorders according to the priority of each data object in the list, wherein the smaller the priority is, the higher the priority is represented, the list is arranged in the front, and otherwise, the list is arranged in the back and is sequentially ordered.
If the priorities of the two objects are equal, the two objects are arranged adjacently in the list, and the adjacent front and back orders do not matter.
In the invention, the traversing connection of the equipment list is started, the Bluetooth scanning stage is skipped, and the first equipment object is directly connected according to the ID of the first equipment object in the list.
In the invention, when the connection is successful, deleting the device object data in the original DataList, recalculating the new priority of the device object according to a calculation formula, namely, subtracting the current DataList list length CurrentListLen from the initial DataList list length InitialListLen, inserting or updating the device object into the temporary device connection list TempDataList, and if the TempDataList list has no device object with the same device name and device ID as the device object, directly inserting the device object; if there is a device object with the same device name and device ID as the device object in the TempDataList, the target object is unchanged in position in the TempDataList, and the priority data of the target device object is updated to the newly calculated priority data.
In the invention, if the Bluetooth request of the first object of the list fails to be established, the connection of the equipment object is stopped, the total failure times FailCount of the Bluetooth connection is added with 1, and the priority of the equipment object is set to be the length InitialListLen of the initial DataList list, which represents the last priority of the equipment object. Then, inserting the object data of the equipment from the head of the list DataList to the tail of the equipment connection list, waiting for the next cycle traversal connection, judging whether the equipment object needs to be inserted in the TempDataList, and synchronizing the step 3.2.3; and quantitatively updating the TempDataList data to the data storage system according to the total connection failure times FailCount.
In the present invention, after data is updated, it is necessary to judge whether the device list DataList has a device to be connected, then take out the first device object from the DataList list, re-establish the bluetooth connection request according to the device object ID, and judge whether the bluetooth request of the device object is successfully established, i.e. return to step 3 and circulate.
The invention solves the problem of secondary parallel connection of multiple Bluetooth devices by means of a method of circulating a list of connected devices, processing device connection error jumps and setting device connection priorities. The connection equipment list circulation is that the equipment objects are sequentially connected through the equipment connection priority recorded when the equipment objects are connected according to the arrangement sequence, so that the reliability and the timeliness of the connection of the equipment objects are improved, the conflict of the secondary concurrent connection of the multiple Bluetooth equipment is avoided, and the performances of all aspects of Bluetooth connection in the scene of the secondary concurrent connection of the multiple Bluetooth equipment are integrally improved. And the equipment connection error processing can skip the connection of the equipment and put the equipment object to be finally waited for connection when the Bluetooth connection process has errors, thereby effectively avoiding the connection blockage caused by equipment failure. The priority setting is that when the connection of the equipment is successful or failed, a priority value is reset according to a calculation formula so as to generate a new connection sequence when the next multi-Bluetooth equipment is in secondary concurrent connection, and therefore the connection sequence of the equipment is set in real time according to the latest connection stability condition of the equipment, the effect of shortening the connection time when the multi-Bluetooth equipment is in secondary concurrent connection is achieved, and a complete method for secondary concurrent connection between a single mobile terminal and the multi-Bluetooth equipment is formed.
The invention can effectively and stably solve the problem of conflict existing in the secondary concurrent connection of the single mobile terminal and the multiple Bluetooth devices, obviously improve the Bluetooth connection speed and reduce the time of the secondary concurrent connection of the multiple Bluetooth devices. Use in fields such as wisdom official working, intelligent house, unify secondary concurrent connection control to many bluetooth equipment, reduce because the bluetooth that unnecessary interference or bluetooth trouble problem arouse connects the obstacle, have obvious improvement effect in the application of many bluetooth equipment secondary concurrent connection, improved the efficiency that the bluetooth is connected.

Claims (10)

1. A method for secondary concurrent connection of a single mobile terminal and multiple Bluetooth devices is characterized in that: the method comprises the following steps:
step 1: the mobile terminal initiates a secondary concurrent connection requirement of a plurality of Bluetooth devices;
step 2: the mobile terminal acquires data of a plurality of Bluetooth devices from the data storage system and starts traversing;
and step 3: connecting the Bluetooth devices based on a preset sequence, directly performing the next step if the connection is successful, or performing the next step after the connection-failed Bluetooth devices jump through an error jump waiting mechanism;
and 4, step 4: if the unconnected Bluetooth equipment exists, returning to the step 3, otherwise, ending the connection of the equipment, and updating the associated data to the data storage system.
2. The method according to claim 1, wherein the method for the secondary concurrent connection between the single mobile terminal and the multiple bluetooth devices comprises: in the step 1, the connection requirement is that no scanning device is directly connected.
3. The method according to claim 1, wherein the method for the secondary concurrent connection between the single mobile terminal and the multiple bluetooth devices comprises: in step 2, the mobile terminal obtains the historical device connection list data DataList corresponding to the current mobile terminal from the data storage system of the server through the application program.
4. The method according to claim 3, wherein the method comprises the following steps: in the step 3, the connection comprises the following steps:
step 3.1.1: taking out the equipment data of the equipment objects in the DataList object list, wherein the equipment data comprises equipment names, equipment IDs and equipment priorities;
step 3.1.2: creating a Bluetooth connection request corresponding to the device ID;
step 3.1.3: connecting successfully, and deleting the equipment object data in the DataList object list;
step 3.1.4: calculating the priority of the equipment object, wherein the priority of the equipment object is equal to the length InitialListLen of the initial DataList list minus the length CurrentListLen of the current DataList list;
step 3.1.5: inserting or updating the device object into a temporary device connection list TempDataList; if the temporary device connection list has no device object with the same device name and device ID as the device object, the device object is directly inserted, otherwise, the position of the device object in the temporary device connection list TempDataList is kept unchanged, and the priority data of the target device object is updated to the priority data calculated in step 3.1.4.
5. The method according to claim 4, wherein the method comprises the following steps: for any device, all objects with device priority are set to default to 1 for the first time.
6. The method according to claim 3, wherein the method comprises the following steps: the error jump waiting mechanism comprises the steps of:
step 3.2.1: establishing a Bluetooth connection request corresponding to the equipment ID, failing, stopping the connection of the current equipment object, adding 1 to the total failure times of the Bluetooth connection, and setting the priority of the equipment object as the length InitialListLen of an initial DataList list;
step 3.2.2: inserting the object data of the equipment into the tail of the equipment connection list from the first bit of the list DataList, and waiting for the next cycle traversal connection;
step 3.2.3: inquiring whether an equipment object with the same equipment name and equipment ID as the equipment object exists in a temporary equipment connection list TempDataList, if not, directly inserting, and if so, not operating;
step 3.2.4: and quantitatively updating the data of the temporary equipment connection list to the data storage system according to the total connection failure times.
7. The method according to claim 6, wherein the method comprises the following steps: in the step 3.2.4, judging whether the total failure times are equal to a set threshold value, if so, uploading the data of the temporary device connection list to a data storage system, otherwise, not performing operation;
and if the operation of uploading the data of the temporary equipment connection list is executed, clearing the total failure times, waiting for the next quantitative counting, and otherwise, not executing the operation.
8. The method according to claim 4, wherein the method comprises the following steps: in the step 4, if the length of the DataList object list is not 0, returning to the step 3, otherwise, no device to be connected exists, updating the data in the temporary device connection list to the data storage system, and ending.
9. The method according to claim 8, wherein the method comprises the following steps: updating data in the temporary device connection list to the data storage system comprises the following steps:
step 4.1: uploading the temporary device connection list to a data storage system;
step 4.2: and after receiving the temporary equipment connection list, the data storage system reorders according to the priority of each data object in the list, wherein the smaller the priority is, the higher the priority is represented, the list is arranged in the front, and otherwise, the list is arranged in the back and is sequentially ordered.
10. The method according to claim 9, wherein the method for the secondary concurrent connection between the single mobile terminal and the multiple bluetooth devices comprises: if the priorities of the two objects are equal, the two objects are arranged adjacently in the list, and the adjacent front and back orders do not matter.
CN202110627765.8A 2021-06-05 2021-06-05 Method for secondary concurrent connection of single mobile terminal and multiple Bluetooth devices Active CN113438631B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110627765.8A CN113438631B (en) 2021-06-05 2021-06-05 Method for secondary concurrent connection of single mobile terminal and multiple Bluetooth devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110627765.8A CN113438631B (en) 2021-06-05 2021-06-05 Method for secondary concurrent connection of single mobile terminal and multiple Bluetooth devices

Publications (2)

Publication Number Publication Date
CN113438631A true CN113438631A (en) 2021-09-24
CN113438631B CN113438631B (en) 2022-10-21

Family

ID=77803824

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110627765.8A Active CN113438631B (en) 2021-06-05 2021-06-05 Method for secondary concurrent connection of single mobile terminal and multiple Bluetooth devices

Country Status (1)

Country Link
CN (1) CN113438631B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101340212A (en) * 2007-07-03 2009-01-07 艾威梯软件技术(北京)有限公司 Method, apparatus and system for triggering automatic switchover of Bluetooth connecting device by key pressing
KR20130073224A (en) * 2011-12-23 2013-07-03 현대모비스 주식회사 Method of bluetooth pairing
CN104581989A (en) * 2013-10-11 2015-04-29 福特全球技术公司 Apparatus of paging mobile devices
CN108881990A (en) * 2018-06-25 2018-11-23 努比亚技术有限公司 Audio frequency playing method, terminal and computer storage medium
CN110519741A (en) * 2019-09-11 2019-11-29 河南工业大学 A kind of Bluetooth connecting method and system
CN111200805A (en) * 2018-11-19 2020-05-26 福建天泉教育科技有限公司 Bluetooth networking method and system based on Bluetooth equipment
WO2020200127A1 (en) * 2019-04-02 2020-10-08 华为技术有限公司 Method for establishing service connection, bluetooth master device, chip, and bluetooth system
CN112399396A (en) * 2021-01-19 2021-02-23 深圳市汇顶科技股份有限公司 Bluetooth connection switching method, Bluetooth chip and Bluetooth device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101340212A (en) * 2007-07-03 2009-01-07 艾威梯软件技术(北京)有限公司 Method, apparatus and system for triggering automatic switchover of Bluetooth connecting device by key pressing
KR20130073224A (en) * 2011-12-23 2013-07-03 현대모비스 주식회사 Method of bluetooth pairing
CN104581989A (en) * 2013-10-11 2015-04-29 福特全球技术公司 Apparatus of paging mobile devices
CN108881990A (en) * 2018-06-25 2018-11-23 努比亚技术有限公司 Audio frequency playing method, terminal and computer storage medium
CN111200805A (en) * 2018-11-19 2020-05-26 福建天泉教育科技有限公司 Bluetooth networking method and system based on Bluetooth equipment
WO2020200127A1 (en) * 2019-04-02 2020-10-08 华为技术有限公司 Method for establishing service connection, bluetooth master device, chip, and bluetooth system
CN110519741A (en) * 2019-09-11 2019-11-29 河南工业大学 A kind of Bluetooth connecting method and system
CN112399396A (en) * 2021-01-19 2021-02-23 深圳市汇顶科技股份有限公司 Bluetooth connection switching method, Bluetooth chip and Bluetooth device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
PRANEETH JUTURU: "Intelligent Bluetooth Device to Device Connection Shift", 《2020 IEEE WIRELESS COMMUNICATIONS AND NETWORKING CONFERENCE (WCNC)》 *
万君亚: "基于Android蓝牙通信技术的优化", 《电子世界》 *

Also Published As

Publication number Publication date
CN113438631B (en) 2022-10-21

Similar Documents

Publication Publication Date Title
CN109828935B (en) Parallel flash method based on CAN FD bus
CN102664950B (en) Data communication method between welding power sources and computers
CN106302632B (en) Downloading method of basic mirror image and management node
US8125900B2 (en) Network equipment management device, network equipment management method, network equipment, and program used therein
CN105320527A (en) Configuration file renewing method, device and system based on zookeeper distributed type search engine
CN106844092B (en) Method for automatically recovering MariaDB Galera Cluster of power failure
US10469620B2 (en) Method for transferring a new software version to at least one electricity meter via a communication network
CN103024782A (en) Base station software version management method and system
CN103516735A (en) Method and apparatus for upgrading network node
CN103139245A (en) Method and device for updating network elements
CN113163414A (en) Information processing method and near real-time wireless access network controller
CN103401731B (en) Manual test and automatic test environment changing method and system
CN113438631B (en) Method for secondary concurrent connection of single mobile terminal and multiple Bluetooth devices
CN111694798A (en) Data synchronization method and data synchronization system based on log analysis
CN111405215A (en) Video storage method and device, cloud server and storage medium
CN101388792B (en) Single board plug-and-use processing method, device and telecommunication system
CN111970136B (en) Firmware upgrading method, loRa gateway, loRa system and computer readable storage medium
CN111831341A (en) Configuration file loading method, device and system and computer readable medium
CN112527369B (en) Resource updating method of intelligent terminal
CN112399452B (en) Version configuration method, device, equipment, system and storage medium
US7801947B2 (en) Software deployment system and method
US7080133B1 (en) Method and system for configuring a computer network
CN114500479B (en) Method and system for uploading program of multi-core embedded integrated software system
CN110096047B (en) Robot motion control system upgrading method and system
CN117349025B (en) Configuration migration method and device, electronic equipment and storage medium

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