CN118474713A - Bluetooth connection method and Bluetooth communication system - Google Patents
Bluetooth connection method and Bluetooth communication system Download PDFInfo
- Publication number
- CN118474713A CN118474713A CN202410490806.7A CN202410490806A CN118474713A CN 118474713 A CN118474713 A CN 118474713A CN 202410490806 A CN202410490806 A CN 202410490806A CN 118474713 A CN118474713 A CN 118474713A
- Authority
- CN
- China
- Prior art keywords
- bluetooth
- equipment
- identification information
- communication
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000004891 communication Methods 0.000 title claims abstract description 240
- 238000000034 method Methods 0.000 title claims abstract description 38
- 230000000875 corresponding effect Effects 0.000 description 13
- 230000000694 effects Effects 0.000 description 4
- 230000002596 correlated effect Effects 0.000 description 2
- 244000141359 Malus pumila Species 0.000 description 1
- 235000021016 apples Nutrition 0.000 description 1
- 230000008094 contradictory effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000008569 process Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a Bluetooth connection method and a Bluetooth communication system, and relates to the technical field of Bluetooth connection. The Bluetooth communication system comprises Bluetooth equipment and communication equipment, and the Bluetooth connection method comprises the following steps: the communication equipment acquires identification information output by Bluetooth equipment; the communication equipment uploads the identification information to the cloud end so that the cloud end can match the identification information with a pre-stored identification information base and feed back a matching result to the communication equipment; if the matching result is that the identification information is matched with the pre-stored identification information base, the communication equipment determines the Bluetooth equipment as the credit giving equipment and is in communication connection with the Bluetooth equipment; if the matching result is that the identification information is not matched with the pre-stored identification information base, the communication equipment enters a Bluetooth manual matching mode. The invention aims to improve the convenience and safety of a Bluetooth communication system.
Description
Technical Field
The present invention relates to the field of bluetooth connection technologies, and in particular, to a bluetooth connection method and a bluetooth communication system.
Background
Mobile device systems are currently based mainly on Android and iOS platforms, however they differ in the way they take when connecting Bluetooth Low Energy (BLE) devices. Android systems are typically connected through the MAC address of bluetooth BLE devices, while iOS systems are connected through UUIDs of bluetooth BLE devices. The same bluetooth device is considered as two different devices on different mobile devices due to the difference in MAC address and UUID. This variability results in connection problems when devices switch or users log into different systems. For example, after a user binds a specific bluetooth device on an Android device, when the user switches to an iOS device to log in, the system of the iOS device cannot automatically identify the bluetooth device. Because the system of the iOS device cannot correspond the MAC address and the UUID, this may cause the user to fail to use the bluetooth device function normally. Therefore, compatibility and recognition methods between different systems need to be considered in designing the bluetooth device connection and binding functions to ensure continuous experience and convenience for users.
Disclosure of Invention
The invention mainly aims to provide a Bluetooth communication method which aims to improve the convenience and safety of a Bluetooth communication system.
In order to achieve the above object, the present invention provides a bluetooth communication method, which is applied to a bluetooth communication system, wherein the bluetooth communication system includes a bluetooth device and a communication device, and the method includes:
the communication equipment acquires identification information output by Bluetooth equipment;
the communication equipment uploads the identification information to the cloud end so that the cloud end can match the identification information with a pre-stored identification information base and feed back a matching result to the communication equipment;
if the matching result is that the identification information is matched with a pre-stored identification information base, the communication equipment determines the Bluetooth equipment as the credit giving equipment and is in communication connection with the Bluetooth equipment;
And if the matching result is that the identification information is not matched with the pre-stored identification information base, the communication equipment enters a Bluetooth manual matching mode.
In an embodiment, the number of bluetooth devices is at least one, and the step of the communication device obtaining the identification information output by the bluetooth devices specifically includes:
the communication equipment scans Bluetooth equipment within a preset range and acquires equipment information of the Bluetooth equipment one by one;
The communication equipment establishes communication connection with at least one Bluetooth equipment one by one according to at least one piece of equipment information;
After the communication equipment and any Bluetooth equipment are in communication connection, if the identification information output by the Bluetooth equipment is not received within a first preset time length, the current communication connection is disconnected, the communication connection is established with the next Bluetooth equipment, and the communication connection is started until the identification information output by the Bluetooth equipment is received;
If any identification information can not be received, the communication equipment enters a Bluetooth manual matching mode.
In an embodiment, the step of the communication device scanning bluetooth devices within a preset range and acquiring device information of the bluetooth devices one by one specifically includes:
the communication equipment scans Bluetooth equipment in a preset range and acquires the name of the Bluetooth equipment and information such as MACID or UUID.
In an embodiment, the step of uploading the identification information to the cloud end by the communication device, so that the cloud end matches the identification information with a pre-stored identification information base, and feeding back a matching result to the communication device specifically includes:
Logging in account information in the communication equipment so as to enable the cloud to confirm a sub-prestored identification information base corresponding to the account information;
and the communication equipment uploads the identification information to the cloud end so that the cloud end can match the identification information with a sub-pre-stored identification information base and feed back a matching result to the communication equipment.
In an embodiment, the bluetooth communication method further comprises:
After the communication equipment acquires the equipment information of at least one Bluetooth equipment, establishing communication connection with the Bluetooth equipment according to the equipment information of the at least one Bluetooth equipment;
After the communication equipment is in communication connection with the Bluetooth equipment, the communication equipment uploads the equipment information to the cloud end, so that the cloud end correlates the identification information with the equipment information and stores the identification information in a sub-pre-stored identification information base.
In an embodiment, after the step of uploading the device information to the cloud end by the communication device after the communication device maintains the communication connection with the bluetooth device, so that the cloud end associates the identification information with the device information and stores the same in the sub-pre-stored identification information library, the method further includes:
the communication equipment uploads the equipment information and the identification information to the cloud end so that the cloud end can match the equipment information, the identification information and the sub-pre-stored identification information base, and the matching result is fed back to the communication equipment;
If the matching result is that the equipment information, the identification information and the sub-pre-stored identification information library are matched, the communication equipment determines the Bluetooth equipment as the credit giving equipment and is in communication connection with the Bluetooth equipment;
And if the matching result is that the equipment information, the identification information and the sub-pre-stored identification information base are not matched, the communication equipment enters a Bluetooth manual matching mode.
The invention also provides a Bluetooth communication system which comprises at least one communication device and a Bluetooth device and is based on the Bluetooth connection method.
The technical scheme of the invention adopts a Bluetooth connection method and is applied to a Bluetooth communication system. The Bluetooth communication system comprises Bluetooth equipment and communication equipment. The communication equipment is used for acquiring the identification information output by the Bluetooth and uploading the identification information to the cloud so that the cloud can judge whether the Bluetooth equipment currently connected with the communication equipment meets the connection condition or not according to the identification information in the pre-stored identification information base and the uploaded identification information, and further the convenience and safety of the communication connection between the Bluetooth equipment and the communication equipment are effectively improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to the structures shown in these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a bluetooth connection method according to the present invention;
fig. 2 is a schematic flow chart of an embodiment of a bluetooth connection method according to the present invention;
fig. 3 is a flowchart of another embodiment of the bluetooth connection method according to the present invention;
Fig. 4 is a flowchart of a bluetooth connection method according to another embodiment of the present invention;
Fig. 5 is a flowchart of a bluetooth connection method according to another embodiment of the present invention;
Fig. 6 is a flowchart of a bluetooth connection method according to another embodiment of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that all directional indicators (such as up, down, left, right, front, and rear … …) in the embodiments of the present invention are merely used to explain the relative positional relationship, movement, etc. between the components in a particular posture (as shown in the drawings), and if the particular posture is changed, the directional indicator is changed accordingly.
Furthermore, the description of "first," "second," etc. in this disclosure is for descriptive purposes only and is not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In addition, the technical solutions of the embodiments may be combined with each other, but it is necessary to base that the technical solutions can be realized by those skilled in the art, and when the technical solutions are contradictory or cannot be realized, the combination of the technical solutions should be considered to be absent and not within the scope of protection claimed in the present invention.
It should be appreciated that each bluetooth device has a globally unique MAC Address (MEDIA ACCESS Control Address), which is a fixed identifier that the device is given at the time of manufacture to uniquely identify the device in wireless communication. Whereas in earlier IOS versions, the developer could obtain the MAC address of the bluetooth device through an API. However, from iOS7, apples have no longer been disclosed to provide the MAC address of bluetooth devices for privacy protection. Thus, in modern IOS device applications, the MAC address of the bluetooth device cannot be directly obtained, but rather the bluetooth connection is made by obtaining the UUID (Universally Unique Identifier, unique identifier) of the bluetooth device. However, the Android device still realizes bluetooth connection by acquiring the MAC address of the bluetooth device. This also results in the phenomenon that the bluetooth device cannot automatically recognize and bind when it is connected to any one of the devices of the other system. In practical application, if both communication devices are Android devices, a user can log in a user account only in software of one of the Android devices and connect with the bluetooth device. When a user logs in the same user account in the software of another Android device, the Bluetooth device which is connected before can realize automatic connection. IOS devices are similarly available.
Accordingly, referring to fig. 1 to 3, the present invention proposes a bluetooth communication method applied to a bluetooth communication system including a bluetooth device and a communication device, the method comprising:
Step S100: the communication equipment acquires identification information output by Bluetooth equipment;
further, the number of the bluetooth devices is at least one, and the step of the communication device obtaining the identification information output by the bluetooth devices specifically includes:
Step S110: the communication equipment scans Bluetooth equipment within a preset range and acquires equipment information of the Bluetooth equipment one by one;
Further, the step of the communication device scanning bluetooth devices within a preset range and acquiring device information of the bluetooth devices one by one specifically includes:
step S111: the communication equipment scans Bluetooth equipment in a preset range and acquires the name of the Bluetooth equipment and information such as MACID or UUID.
Step S120: the communication equipment establishes communication connection with at least one Bluetooth equipment one by one according to at least one piece of equipment information;
step S130: after the communication equipment and any Bluetooth equipment are in communication connection, if the identification information output by the Bluetooth equipment is not received within a first preset time length, the current communication connection is disconnected, the communication connection is established with the next Bluetooth equipment, and the communication connection is started until the identification information output by the Bluetooth equipment is received;
Step S140: if any identification information can not be received, the communication equipment enters a Bluetooth manual matching mode.
Step S200: the communication equipment uploads the identification information to the cloud end so that the cloud end can match the identification information with a pre-stored identification information base and feed back a matching result to the communication equipment;
Step S300: if the matching result is that the identification information is matched with a pre-stored identification information base, the communication equipment determines the Bluetooth equipment as the credit giving equipment and is in communication connection with the Bluetooth equipment;
step S400: and if the matching result is that the identification information is not matched with the pre-stored identification information base, the communication equipment enters a Bluetooth manual matching mode.
In this embodiment, the communication device is a master device such as a mobile phone or a computer, and the bluetooth device is a slave device such as a headset, a speaker, or a printer. When a communication device starts a bluetooth function or explicitly initiates searching for a new bluetooth device, the communication device generally starts a bluetooth scanning process, i.e. broadcasts an inquiry signal to the surroundings, receives and parses the responses of other bluetooth devices to list a list of names of bluetooth devices available for connection, so that a user can intuitively and autonomously select a bluetooth device to be connected through a device name. The device name of the Bluetooth device is an identifier set by the device manufacturer, so that a user can conveniently identify and select the correct device in the search list. For example, a Bluetooth headset may appear as "AirPods Pro" or "JBL Flip 5". In order to realize that bluetooth devices are distinguishing bluetooth devices of the same model and can be identified by a plurality of devices with the same system, in the embodiment, a unique code key is adopted. The unique code key is identification information generated by the cloud end, and is burnt into a program of the Bluetooth device or stored in a permanent storage area by a manufacturer of the Bluetooth device, so that information broadcast by the Bluetooth device during Bluetooth connection comprises the identification information, namely the unique code key.
In this embodiment, the bluetooth device scans bluetooth devices within a preset range to obtain device information of the bluetooth devices, where the preset range is an area where a distance between the bluetooth device and a bluetooth base station is less than or equal to a preset distance, and if one or more bluetooth devices are scanned within the preset range, obtains the device information of each bluetooth device, and establishes communication connection one by one according to a certain sequence. When the communication device establishes temporary connection with a certain Bluetooth device, a Bluetooth connection request signal is output to the Bluetooth device, so that the Bluetooth device can perform corresponding actions. The bluetooth device with the unique code key will broadcast data with the unique code key when receiving the bluetooth connection request signal, and the bluetooth device without the unique code key will not broadcast data with the unique code key when receiving the bluetooth connection request signal. The communication device, while temporarily connecting to the bluetooth device, will wait for the bluetooth device to broadcast data with a unique code for a preset time. When the communication device fails to receive the broadcast with the unique code key within the first preset time in the waiting duration, the communication device disconnects the communication connection with the Bluetooth device and establishes the communication connection with another Bluetooth device to wait for acquiring the data with the unique code key broadcast by the other Bluetooth device. When the communication device is connected with a certain Bluetooth device, data with a unique code key is acquired, and the communication device uploads the acquired identification information (namely the unique code key) to a cloud connected after a user logs in a specific APP. The pre-stored identification information base in the cloud has information of all unique coding keys.
Specifically, four groups of identification information such as a, b, c, d are set in the prestored identification information base in the cloud. After logging into a specific APP in the communication equipment, the user A pre-stores four groups of identification information such as a, b, c, d in a cloud pre-stored identification information base corresponding to the user A. The communication equipment scans Bluetooth equipment in a preset range to further acquire equipment information of at least one Bluetooth equipment, and establishes communication connection with the Bluetooth equipment one by one. The communication equipment is connected with the communication equipment through outputting the Bluetooth connection signal, so that the Bluetooth equipment establishes communication connection with the communication equipment after receiving the Bluetooth connection signal. Among the plurality of bluetooth devices, there is a bluetooth device carrying identification information d. When the communication device is connected with other Bluetooth devices, the other Bluetooth connection devices cannot broadcast the identification information with the four groups such as a, b, c, d. And after the communication equipment is connected with the Bluetooth equipment, the identification information cannot be acquired within a first preset time period, namely, the communication equipment is disconnected with the Bluetooth equipment, and communication connection is established with the next Bluetooth equipment until the communication equipment is connected with the Bluetooth equipment with the identification information. After the communication equipment acquires the identification information, analyzing the identification information and uploading the identification information to the cloud, and matching the identification information by the cloud to confirm whether the identification information is any one of four groups of identification information such as a, b, c, d. If the group of identification information is not any group, the matching fails, and the cloud end feeds back a matching result to the communication equipment so as to disconnect the communication equipment from the Bluetooth equipment.
The technical scheme of the invention adopts a Bluetooth connection method and is applied to a Bluetooth communication system. The Bluetooth communication system comprises Bluetooth equipment and communication equipment. The communication equipment is used for acquiring the identification information output by the Bluetooth and uploading the identification information to the cloud so that the cloud can judge whether the Bluetooth equipment currently connected with the communication equipment accords with the connection condition or not according to the identification information in the prestored identification information base and the uploaded identification information, namely whether the identification information is carried and whether the identification information is matched with the cloud prestored information identification base or not, and further convenience and safety of communication connection between the Bluetooth equipment and the communication equipment are effectively improved.
Referring to fig. 4, in an embodiment of the present invention, the step of uploading the identification information to the cloud end by the communication device, so that the cloud end matches the identification information with a pre-stored identification information base, and feeds back a matching result to the communication device specifically includes:
Step S210: logging in account information in the communication equipment so as to enable the cloud to confirm a sub-prestored identification information base corresponding to the account information;
Step S220: and the communication equipment uploads the identification information to the cloud end so that the cloud end can match the identification information with a sub-pre-stored identification information base and feed back a matching result to the communication equipment.
In this embodiment, the cloud end needs to identify the identification information uploaded by the communication device with the sub-pre-stored identification information library, then determine whether the identification information is associated with the device information, and automatically connect and establish communication connection when the identification information is associated with the device information; when the identification information is not associated with the device information, the communication connection will be disconnected.
Specifically, four groups of identification information such as a, b, c, d are set in the prestored identification information base in the cloud. After the user A and the user B log into a specific APP in the communication equipment, four groups of identification information such as a, b, c, d are stored in a corresponding cloud pre-stored identification information base. After a user A logs in a specific APP in the communication equipment A, a Bluetooth device with c identification information is selected, and communication connection is established after the Bluetooth device is matched with a prestored identification information base in a cloud. At this time, the communication device a will upload the device information of the bluetooth device with the c identification information and bind with the c identification information, making it the bound device c1. The cloud end connected with the communication equipment B after logging in the APP is used by the user A, wherein the prestored identification information base is four groups of identification information of a, B, c1, d and the like. It can be understood that the four sets of identification information of a, b, c1, d are sub-preset identification information bases. After the user A turns on the Bluetooth function of the communication equipment B, the communication equipment B scans Bluetooth equipment within a preset range and establishes communication connection one by one. Assuming that the result of the scanning by the communication device B at this time includes two sets of bluetooth devices with identification information a, c and two sets of bluetooth devices not carrying identification information, the communication device B will arrange the four sets of bluetooth devices so as to establish communication connection one by one. The temporary communication connection is established one by one according to the sequence of scanning the bluetooth device, that is, the distance between the bluetooth device and the communication device B is from the near to the far. When the communication device B first scans a group of bluetooth devices that do not carry identification information, the communication device B establishes a communication connection with the bluetooth devices and outputs a bluetooth connection request signal to wait for the bluetooth devices to output data with identification information within a preset time. When the communication device B fails to receive the data with the identification information, it will disconnect the communication connection with the bluetooth device, establish a temporary connection with the following group of bluetooth devices, and output a bluetooth connection request signal to wait for the bluetooth device to output the data with the identification information within a preset time. Assume that at this time, the bluetooth device B establishes a temporary communication connection with the bluetooth device carrying the identification information a, outputs a bluetooth connection request signal, and obtains data with the identification information output by the bluetooth device in a preset time, and uploads the data to a cloud end to which the user a is connected after the communication device B logs in the APP. The cloud receives the identification information a, but the cloud considers the bluetooth device with the identification information a as an unassociated device because the bluetooth device is in a free connection state. Therefore, the cloud will feed back that the bluetooth device with the a identification information is not matched. And uploading the c identification information to the cloud end by the communication equipment until the Bluetooth equipment with the c identification information of the associated equipment information establishes communication connection with the communication equipment. At this time, the identification information in the sub-pre-stored identification information base in the cloud connected to the communication device B after the communication device B logs in the APP is four sets of identification information, such as a, B, c1, d. And c, the identification information is the associated identification information, the cloud end considers that the Bluetooth device is the Bluetooth device of the user A, and the successfully matched information is fed back to the communication device B, so that the communication device B and the Bluetooth device establish communication connection, and the technical effect of automatic connection is achieved. In addition, through the identification information and the equipment information association, and combine together with user's individual high in the clouds, the effectual security and the convenience of guaranteeing equipment connection also realize once manual connection in the communication equipment of different systems for user's bluetooth equipment, the subsequent technological effect that can connect automatically, the effectual universality of connecting between bluetooth equipment that has improved.
Referring to fig. 5 and 6, in an embodiment of the present invention, the bluetooth communication method further includes:
step S500: after the communication equipment acquires the equipment information of at least one Bluetooth equipment, establishing communication connection with the Bluetooth equipment according to the equipment information of the at least one Bluetooth equipment;
Step S600: after the communication equipment is in communication connection with the Bluetooth equipment, the communication equipment uploads the equipment information to the cloud end, so that the cloud end correlates the identification information with the equipment information and stores the identification information in a sub-pre-stored identification information base.
Further, after the step that the communication device is in communication connection with the bluetooth device, the communication device uploads the device information to the cloud so that the cloud associates the identification information with the device information and stores the same in the sub-pre-stored identification information base, the method further includes:
Step S610: the communication equipment uploads the equipment information and the identification information to the cloud end so that the cloud end can match the equipment information, the identification information and the sub-pre-stored identification information base, and the matching result is fed back to the communication equipment;
Step S620: if the matching result is that the equipment information, the identification information and the sub-pre-stored identification information library are matched, the communication equipment determines the Bluetooth equipment as the credit giving equipment and is in communication connection with the Bluetooth equipment;
Step S630: and if the matching result is that the equipment information, the identification information and the sub-pre-stored identification information base are not matched, the communication equipment enters a Bluetooth manual matching mode.
In this embodiment, when a user turns on the bluetooth system of the communication device, such as a mobile phone, can scan an area with a radius of 10 meters, that is, an area with a distance from the communication device of 10 meters or less. If one or more Bluetooth devices are scanned in the preset range, acquiring the device information of each Bluetooth device, and displaying the device names of the Bluetooth devices in the device information. When the communication device selects one of the Bluetooth devices for connection, a connection request signal is output to the Bluetooth device. After the communication connection is established, the communication device acquires the name of the bluetooth device and information such as MACID or UUID. And the bluetooth device will automatically start broadcasting data upon acknowledging receipt of the request signal. The Bluetooth device continuously broadcasts the data within a first preset duration to ensure that the communication device has enough time to acquire the unique code key, so that sufficient information interaction between the communication device and the Bluetooth device connection is effectively ensured, and the reliability of the Bluetooth connection is further improved. Further, the manufacturer may select different durations according to different bluetooth devices on the preset duration, for example, the wireless headset may be set for 15 seconds, and the printer may be set for 30 seconds.
In this embodiment, the bluetooth device manufacturer may generate a unique code key through the cloud, and burn the unique code key into the bluetooth device, such as a serial number, IMEI (International Mobile Equipment Identity, international mobile equipment identification code), device ID, and the like. These codes may be broadcast through custom features of GATT (Generic Attribute Profile) services for reading and identification by applications of the communication device. This approach requires a pre-agreed protocol between the bluetooth device and the application of the communication device. The unique code key is generated by the cloud and stored in the cloud. Therefore, the communication device can log in a specific application, acquire the identification information (i.e. the unique code key) broadcasted to the bluetooth device, and upload the identification information to the cloud, so that the cloud matches the identification information uploaded by the communication device with the identification information stored in the cloud (i.e. the pre-stored identification information library). When the matching result is that the identification information is matched with the pre-stored identification information base, the communication equipment considers the Bluetooth equipment as the credit giving equipment and establishes communication connection. When the matching result is that the identification information is not matched with the pre-stored identification information base, the communication equipment considers that the Bluetooth equipment is a non-trusted equipment, and if the user still needs to be connected with the Bluetooth equipment, the matching connection is needed through a conventional Bluetooth connection mode.
In this embodiment, the cloud end is a cloud end connected after a user logs in a specific APP, and a pre-stored identification information base is set in the cloud end. The cloud end corresponding pre-stored identification information databases connected with different users after logging in the APP are identical, and only after logging in a specific APP on the communication equipment, the difference exists after the equipment information is related through the APP. Specifically, the information of the user A is logged in the communication device A, the Bluetooth device a is connected in the mode, the device information of the Bluetooth device a is associated with the identification information and uploaded to the cloud end, and the cloud end stores the associated information and forms a sub-pre-stored identification information base of the user A. At this time, the user first logs in the identification information of the corresponding Bluetooth device a in the sub-pre-stored identification information base corresponding to the cloud connected with the APP and the device information of the sub-pre-stored identification information base are correlated; and the communication equipment B logs in the information of the user B and is connected with the Bluetooth equipment B in the mode, and the identification information of the corresponding Bluetooth equipment B in the sub-pre-stored identification information base corresponding to the cloud connected after the user B logs in the APP is correlated with the equipment information of the sub-pre-stored identification information base. At this time, because the sub-pre-stored identification information databases corresponding to the cloud connected by the user a and the user b after logging in the APP are different, the bluetooth devices that can be matched by the cloud connected by the user a and the user b are differentiated. User a may automatically recognize bluetooth device a and connect, but not automatically connect to bluetooth device b. Similarly, the user b can also automatically identify and connect with the bluetooth device b, but cannot automatically connect with the bluetooth device a. Specifically, identification information of a corresponding bluetooth device b in a pre-stored identification information base corresponding to a cloud connected after the user b logs in the APP is associated with device information. Therefore, after the user B logs in the APP, the identification information of the Bluetooth device, which corresponds to the user B, can be matched with the information which is related to the device information of the Bluetooth device in the sub-pre-stored identification information base through the identification information of the Bluetooth device uploaded by the communication device, so that the user B can quickly identify the user B, and the technical effect of accurate automatic connection can be achieved.
Furthermore, the user is connected with the cloud after logging in the specific APP in a mode that a certain piece of identification information in the identification information base is associated with the equipment information in the cloud in a prestored mode, so that the problem that when equipment information such as names, MACID, UUID and the like is connected in the traditional connection, the communication equipment cannot be automatically connected in the second system equipment after the communication equipment is connected with the first system equipment due to inconsistent systems of the communication equipment is effectively solved. It should be understood that the first system device and the second system device are identified by acquiring different device information in the bluetooth device.
The invention also provides a Bluetooth communication system, which comprises at least one communication device, a Bluetooth device and the Bluetooth connection method. It should be noted that, because the bluetooth connection system of the present invention is based on the above bluetooth connection method, embodiments of the bluetooth connection system of the present invention include all technical solutions of all embodiments of the above bluetooth connection method, and the achieved technical effects are identical, and are not repeated herein.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the invention, and all equivalent structural changes made by the description of the present invention and the accompanying drawings or direct/indirect application in other related technical fields are included in the scope of the invention.
Claims (7)
1. A bluetooth communication method applied to a bluetooth communication system, wherein the bluetooth communication system comprises a bluetooth device and a communication device, the method comprising:
the communication equipment acquires identification information output by Bluetooth equipment;
the communication equipment uploads the identification information to the cloud end so that the cloud end can match the identification information with a pre-stored identification information base and feed back a matching result to the communication equipment;
if the matching result is that the identification information is matched with a pre-stored identification information base, the communication equipment determines the Bluetooth equipment as the credit giving equipment and is in communication connection with the Bluetooth equipment;
And if the matching result is that the identification information is not matched with the pre-stored identification information base, the communication equipment enters a Bluetooth manual matching mode.
2. The method of claim 1, wherein the number of bluetooth devices is at least one, and the step of the communication device obtaining the identification information output by the bluetooth devices is specifically:
the communication equipment scans Bluetooth equipment within a preset range and acquires equipment information of the Bluetooth equipment one by one;
The communication equipment establishes communication connection with at least one Bluetooth equipment one by one according to at least one piece of equipment information;
After the communication equipment and any Bluetooth equipment are in communication connection, if the identification information output by the Bluetooth equipment is not received within a first preset time length, the current communication connection is disconnected, the communication connection is established with the next Bluetooth equipment, and the communication connection is started until the identification information output by the Bluetooth equipment is received;
If any identification information can not be received, the communication equipment enters a Bluetooth manual matching mode.
3. The method as claimed in claim 2, wherein the step of the communication device scanning bluetooth devices within a preset range and acquiring device information of the bluetooth devices one by one is specifically:
the communication equipment scans Bluetooth equipment in a preset range and acquires the name of the Bluetooth equipment and information such as MACID or UUID.
4. The method of claim 2, wherein the step of the communication device uploading the identification information to the cloud end, so that the cloud end matches the identification information with a pre-stored identification information base, and feeding back the matching result to the communication device specifically comprises:
Logging in account information in the communication equipment so as to enable the cloud to confirm a sub-prestored identification information base corresponding to the account information;
and the communication equipment uploads the identification information to the cloud end so that the cloud end can match the identification information with a sub-pre-stored identification information base and feed back a matching result to the communication equipment.
5. The method of claims 1 to 4, wherein the bluetooth communication method further comprises:
After the communication equipment acquires the equipment information of at least one Bluetooth equipment, establishing communication connection with the Bluetooth equipment according to the equipment information of the at least one Bluetooth equipment;
After the communication equipment is in communication connection with the Bluetooth equipment, the communication equipment uploads the equipment information to the cloud end, so that the cloud end correlates the identification information with the equipment information and stores the identification information in a sub-pre-stored identification information base.
6. The method of claim 5, wherein after the step of the communication device uploading the device information to the cloud after the communication device maintains the communication connection with the bluetooth device, such that the cloud associates the identification information with the device information and stores the same in the sub-pre-stored identification information repository, the method further comprises:
the communication equipment uploads the equipment information and the identification information to the cloud end so that the cloud end can match the equipment information, the identification information and the sub-pre-stored identification information base, and the matching result is fed back to the communication equipment;
If the matching result is that the equipment information, the identification information and the sub-pre-stored identification information library are matched, the communication equipment determines the Bluetooth equipment as the credit giving equipment and is in communication connection with the Bluetooth equipment;
And if the matching result is that the equipment information, the identification information and the sub-pre-stored identification information base are not matched, the communication equipment enters a Bluetooth manual matching mode.
7. A bluetooth communication system, characterized in that the bluetooth communication system comprises at least one communication device and a bluetooth device and is based on a bluetooth connection method according to any of the claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410490806.7A CN118474713A (en) | 2024-04-23 | 2024-04-23 | Bluetooth connection method and Bluetooth communication system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410490806.7A CN118474713A (en) | 2024-04-23 | 2024-04-23 | Bluetooth connection method and Bluetooth communication system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN118474713A true CN118474713A (en) | 2024-08-09 |
Family
ID=92155153
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410490806.7A Pending CN118474713A (en) | 2024-04-23 | 2024-04-23 | Bluetooth connection method and Bluetooth communication system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118474713A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106793007A (en) * | 2016-12-05 | 2017-05-31 | 爱国者电子科技有限公司 | The interactive communication method of high in the clouds and bluetooth equipment, system and wireless router |
CN109769240A (en) * | 2019-03-12 | 2019-05-17 | 百度在线网络技术(北京)有限公司 | Bluetooth connecting method, device and system |
US20190253857A1 (en) * | 2016-06-27 | 2019-08-15 | Huawei Technologies Co., Ltd. | Bluetooth connection method and terminal |
CN117319977A (en) * | 2023-10-12 | 2023-12-29 | 北京京东拓先科技有限公司 | Data management method and device of Bluetooth equipment |
-
2024
- 2024-04-23 CN CN202410490806.7A patent/CN118474713A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20190253857A1 (en) * | 2016-06-27 | 2019-08-15 | Huawei Technologies Co., Ltd. | Bluetooth connection method and terminal |
CN106793007A (en) * | 2016-12-05 | 2017-05-31 | 爱国者电子科技有限公司 | The interactive communication method of high in the clouds and bluetooth equipment, system and wireless router |
CN109769240A (en) * | 2019-03-12 | 2019-05-17 | 百度在线网络技术(北京)有限公司 | Bluetooth connecting method, device and system |
CN117319977A (en) * | 2023-10-12 | 2023-12-29 | 北京京东拓先科技有限公司 | Data management method and device of Bluetooth equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110545569B (en) | Network distribution method and system of intelligent device and readable medium | |
CN111866998A (en) | Bluetooth network distribution method, equipment and storage medium | |
CN110225124B (en) | Vehicle data sharing processing method and device, vehicle and medium | |
CN106131810B (en) | Method and device for connecting Bluetooth dual-mode equipment | |
CN105916151A (en) | Intelligent equipment wireless network access method and system thereof | |
CN102315864A (en) | Method of point-to-point data transmission for mobile device and device | |
US10904743B2 (en) | Methods for automatic bootstrapping of a device | |
JP2008104075A (en) | Communication parameter setup method, communication apparatus and management device for managing communication parameter | |
US7822834B2 (en) | Wireless communication system for exchanging signals between computer and device and computer and device used in such system | |
US20170188296A1 (en) | Wireless communication system and wireless communication method | |
CN112448873A (en) | Equipment binding method and device and computer readable storage medium | |
CN112312361B (en) | Host slave pairing method and system | |
CN114423066B (en) | Networking control method and device for data communication | |
CN111741136A (en) | Automatic network distribution method and system and server | |
CN113242462B (en) | Screen projection method and device for realizing convergence terminal | |
CN118474713A (en) | Bluetooth connection method and Bluetooth communication system | |
CN113132929A (en) | Equipment network access method, device, computer equipment and storage medium | |
CN111132266B (en) | Terminal access method and system and cloud server | |
CN114677787A (en) | Method and system for realizing automatic unlocking based on ibeacon geo-fence | |
CN108337741B (en) | Method, apparatus and computer-readable storage medium for establishing communication connection | |
CN111726411B (en) | Equipment binding method, device, system, storage medium and electronic device | |
CN114615720B (en) | Method, system, terminal and Internet of things equipment for playing distribution network voice | |
CN116366705A (en) | Device connection management method, related device, system and storage medium | |
CN112911563B (en) | Bluetooth connection method and system based on multiple terminals | |
CN115209510B (en) | Wireless network connection 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 |