Bluetooth dual-mode non-inductive secure connection method and system based on data characteristics

CN116847317BActive Publication Date: 2026-10-09XIAMEN SIXIN MICRO TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310548503.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-16
Publication Date
2026-10-09
Estimated Expiration
2043-05-16

AI Technical Summary

Technical Problem

[0003]然而,蓝牙设备之间建立蓝牙通信,通常会经过蓝牙搜索、蓝牙配对等多步骤操作,往往需要用户手动操作,当用户使用智能手机与蓝牙进行连接,用户往往不知道如何连接,以及在搜索多个设备时不知道该选择哪一个设备进行连接,整个过程较繁琐,操作效率低,体验感差

Benefits of technology

[0020] This invention enables seamless and secure automatic connection of Bluetooth dual-mode devices by identifying the data characteristics broadcast by the devices. This allows users to connect without relying on the operation of the target terminal device, improving the user experience and enhancing the security of Bluetooth interactive communication. It also solves the technical problems of Bluetooth connection requiring manual operation and lacking security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116847317B_ABST
    Figure CN116847317B_ABST
Patent Text Reader

Abstract

The application provides a Bluetooth dual-mode non-inductive safe connection method and system based on data characteristics, and belongs to the technical field of Bluetooth communication, and the system comprises a mobile phone App software and a Bluetooth dual-mode device, and the method comprises the following steps: searching for Bluetooth broadcast information; analyzing data characteristics in the Bluetooth broadcast information; judging whether safety verification is needed according to characteristic values; if safety verification is needed, establishing a Bluetooth data channel connection and performing safety verification; if the verification is passed or no verification is needed, performing Bluetooth audio connection; the application realizes automatic connection of Bluetooth dual-mode non-inductive, safe identification and authentication by identifying data characteristics broadcast by the Bluetooth dual-mode device, so that the user can not rely on the operation on the target terminal device, the user experience is improved, the safety of Bluetooth interactive communication is improved, and the technical problems that Bluetooth connection needs manual operation and safety cannot be guaranteed are solved at the same time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of Bluetooth communication technology, and in particular to a Bluetooth dual-mode seamless secure connection method and system based on data characteristics. Background Technology

[0002] With the continuous development of economy and technology, Bluetooth is widely used in various functions of mobile terminals, and various Bluetooth dual-mode smart devices are emerging one after another, such as smartphones, smartwatches, smart bracelets and smart speakers. In particular, smartwatches, in addition to having Bluetooth calling function, can also measure and read the user's health data through data channels.

[0003] However, establishing Bluetooth communication between Bluetooth devices usually involves multiple steps such as Bluetooth search and pairing, which often requires manual operation by the user. When users connect their smartphones to Bluetooth, they often do not know how to connect, and when searching for multiple devices, they do not know which device to choose to connect to. The whole process is cumbersome, inefficient, and has a poor user experience.

[0004] Therefore, there is an urgent need in this field for a technical solution that can improve Bluetooth connection efficiency and simplify the connection process. Summary of the Invention

[0005] The purpose of this invention is to provide a Bluetooth connection solution that can improve Bluetooth connection efficiency and simplify the connection process.

[0006] To achieve the above objectives, the present invention provides the following solution:

[0007] A Bluetooth dual-mode contactless secure connection method based on data features, comprising:

[0008] S1: Search for Bluetooth broadcast information;

[0009] S2: Analyze the data features in the Bluetooth broadcast information;

[0010] S3: Determine whether security verification is required based on the feature value;

[0011] S4: If security verification is required, establish a Bluetooth data channel connection and perform security verification;

[0012] S5: If the verification is successful or no verification is required, proceed with the Bluetooth audio connection.

[0013] Preferably, step S1 specifically involves: the user installing a designated App software and opening the smartphone App to search for broadcast information from nearby Bluetooth devices.

[0014] Preferably, the data features include the identity attribute information of the Bluetooth dual-mode device.

[0015] Preferably, the Bluetooth audio connection is specifically established by performing a Bluetooth audio connection based on the Bluetooth attributes parsed from the data features.

[0016] Preferably, establishing a Bluetooth audio connection includes using a reflection mechanism on the Android system to establish a Bluetooth audio channel connection.

[0017] Preferably, before step S1, the method further includes: when the Bluetooth dual-mode device is powered on and Bluetooth is not connected, it continuously sends broadcast data information at an agreed broadcast interval until Bluetooth is connected.

[0018] The present invention also provides a Bluetooth dual-mode seamless secure connection system based on data characteristics, including an App software installed on a mobile phone or tablet and a Bluetooth dual-mode device, wherein the Bluetooth dual-mode device includes a Bluetooth audio module and a Bluetooth data module.

[0019] Compared with the prior art, the beneficial effects of this invention are:

[0020] This invention enables seamless and secure automatic connection of Bluetooth dual-mode devices by identifying the data characteristics broadcast by the devices. This allows users to connect without relying on the operation of the target terminal device, improving the user experience and enhancing the security of Bluetooth interactive communication. It also solves the technical problems of Bluetooth connection requiring manual operation and lacking security. Attached Figure Description

[0021] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0022] Figure 1 This is a schematic diagram of the overall process provided for an embodiment of the present invention.

[0023] Figure 2 This is a schematic diagram of the connection structure between a smartphone and a Bluetooth dual-mode device provided in an embodiment of the present invention. Detailed Implementation

[0024] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0025] The purpose of this invention is to provide a Bluetooth connection method and system that can improve Bluetooth connection efficiency and simplify the connection process.

[0026] Example 1:

[0027] A Bluetooth dual-mode contactless secure connection method based on data features, comprising:

[0028] S1: Search for Bluetooth broadcast information;

[0029] S2: Analyze the data features in the Bluetooth broadcast information;

[0030] S3: Determine whether security verification is required based on the feature value;

[0031] S4: If security verification is required, establish a Bluetooth data channel connection and perform security verification;

[0032] S5: If the verification is successful or no verification is required, proceed with the Bluetooth audio connection.

[0033] Furthermore, S1 specifically involves: the user installing a designated App software and opening the smartphone App to search for broadcast information from nearby Bluetooth devices.

[0034] Furthermore, the data features include the identity attribute information of the Bluetooth dual-mode device.

[0035] Furthermore, the Bluetooth audio connection is specifically established by parsing the Bluetooth attributes based on the data characteristics and then establishing a Bluetooth audio connection.

[0036] Furthermore, establishing a Bluetooth audio connection includes using a reflection mechanism on the Android system to establish a Bluetooth audio channel connection.

[0037] Furthermore, before S1, the method further includes: when the Bluetooth dual-mode device is powered on and Bluetooth is not connected, it continuously sends broadcast data information at an agreed broadcast interval until Bluetooth is connected.

[0038] The present invention also provides a Bluetooth dual-mode seamless secure connection system based on data characteristics, including an App software installed on a mobile phone or tablet and a Bluetooth dual-mode device, wherein the Bluetooth dual-mode device includes a Bluetooth audio module and a Bluetooth data module.

[0039] Example 2:

[0040] This invention introduces a Bluetooth dual-mode seamless secure connection method based on data features, the specific steps of which are as follows:

[0041] 1. Use a smartphone app to search for nearby Bluetooth broadcast packets:

[0042] Users install the specified app and open the smartphone app to search for broadcast packets from nearby Bluetooth devices.

[0043] 2. Analyze the data characteristics in the Bluetooth broadcast packet and determine whether security verification is required based on the characteristic values:

[0044] Bluetooth dual-mode devices place their own information in BLE broadcast packets, that is, they add identity attribute information to Bluetooth broadcast information. When a Bluetooth dual-mode device is powered on and Bluetooth is not connected, BLE Bluetooth continuously sends broadcast data packets at agreed broadcast intervals until Bluetooth is connected.

[0045] The first AD Structure data is as follows:

[0046] 0x03 0x02 FBA2

[0047] in:

[0048] 0x03 indicates the length of the data;

[0049] 0x02 indicates the type of its own service UUID;

[0050] FBA2 represents its own service UUID data value;

[0051] Bluetooth dual-mode devices have custom data characteristics, i.e., manufacturer-defined AD Structure data, as follows:

[0052]

[0053] in:

[0054] Security attribute: Indicates whether security authentication is required, 0 means no authentication is required, and 1 means security authentication is required.

[0055] Major: Indicates the major category attribute.

[0056] Minor: Represents the subcategory attribute under a major category.

[0057] Bluetooth audio MAC address: The MAC address of the audio Bluetooth in a Bluetooth dual-mode device.

[0058] The smartphone app searches for broadcast packets from nearby Bluetooth devices. Once a broadcast packet is found, it obtains a BluetoothAdapter object through the BluetoothManager class; calls the BluetoothAdapter's search interface and passes in the LeScanCallback callback; retrieves the broadcast packet data from the BLE device in the LeScanCallback callback; parses the data of type 0x02 in the broadcast packet's AD Structure to obtain the device's own service UUID data value; if it belongs to the agreed-upon UUID, it further parses the manufacturer-defined AD Structure data; if it does not belong to the agreed-upon UUID, it discards it and searches again.

[0059] When parsing manufacturer-defined AD Structure data, security attributes, Major, Minor, Bluetooth audio MAC address, and other data are extracted based on agreed-upon data characteristics.

[0060] After parsing the security attribute value, if security authentication is required, a BLE connection is initiated; otherwise, an audio connection is directly initiated based on the parsed Bluetooth audio MAC address.

[0061] 3. Establish a Bluetooth data channel (BLE) connection and perform security verification;

[0062] The smartphone app automatically filters the UUID and Bluetooth name based on the agreed UUID and name and establishes a Bluetooth data channel connection. Once the connection is successfully established, data interaction between the app and the Bluetooth smart terminal can be achieved.

[0063] The data interaction protocol format is as follows:

[0064] 1 byte 1 byte 1 byte N bytes 2 bytes

[0065] Data length value = Protocol header (1) + Field type (1) + Data length (1) + Data field length

[0066] CRC16 double-byte = protocol header + field type + data length value + data field data

[0067] APP --> Device data header: 0xCC

[0068] Device-->APP data header: 0xDD

[0069] 1) First, perform handshake authentication.

[0070] Field types: 0x00 (APP requests handshake), 0x01 (handshake confirmation). To enhance device security, a handshake protocol has been added.

[0071] After the APP successfully connects to the device, it sends a handshake command. The device must reply with a random number upon receiving the command.

[0072] The app receives a command to calculate a response according to certain rules. Simultaneously, the device receives the response, verifies it, and provides its own response. The app can only continue after receiving the verification response. If neither side receives a corresponding response, the connection will be closed.

[0073] For example:

[0074] APP-->Device:0xCC,0x00,0x08,0x43,0x43,0x48,0x49,0x50,crc16

[0075] Device-->APP:0xDD,0x00,0x0A,0x43,0x43,0x48,0x49,0x50,xx,yy,crc16APP-->Device:0xCC,0x01,0x0A,0x43,0x43,0x48,0x49,0x50,xx^36,yy^63+12,crc16

[0076] Where xx and yy are random numbers.

[0077] Device-->APP:0xDD,0x01,0x09,0x43,0x43,0x48,0x49,0x50,xx crc16

[0078] XX=0 Handshake successful

[0079] If XX=1, the handshake failed because the rule calculation was incorrect; if the handshake succeeded, proceed to key authentication; if authentication failed, the key was lost.

[0080] 2) Next, perform key authentication.

[0081] The smartphone app stores the default key locally. When the Major and Minor are parsed based on the broadcast data characteristics, the corresponding key is selected for authentication. If the key authentication is successful, a Bluetooth audio connection is initiated. If the key authentication fails, a pop-up window will prompt the user to manually enter the key again for verification. If the verification is successful, the key will be saved locally.

[0082] 4. The smartphone app parses the Bluetooth attributes based on the data characteristics and establishes a Bluetooth audio connection.

[0083] The smartphone app initiates an audio connection based on the audio Bluetooth MAC address parsed from data characteristics. It listens to the BluetoothDevice and BluetoothA2dp objects in the BroadcastReceiver, obtaining BluetoothAdapter and BluetoothA2dp objects. If the device is already bound, a countdown begins. If no connection callback is received before the countdown ends, a reflection mechanism is activated to connect to the device. If the device is not already bound, createBond is called to bind the Android system to the Bluetooth audio device, and a countdown begins. If no connection callback is received before the countdown ends, a reflection mechanism is also activated to connect to the device. The reflection mechanism uses the setPriority and connect methods in BluetoothA2dp.class.

[0084] As can be seen from the above technical solution, compared with the prior art, the present invention has the following advantages:

[0085] 1. By identifying the data characteristics broadcast by Bluetooth dual-mode devices, different treatment is given based on the device data characteristics. For devices with high security requirements, security authentication is initiated to ensure data connection security and device privacy.

[0086] 2. Based on data characteristics, it can quickly connect to Bluetooth dual-mode devices without requiring manual operation by the user, with a high degree of automation, greatly improving the user experience.

[0087] This invention achieves seamless and secure automatic connection of Bluetooth dual-mode devices by identifying the data characteristics broadcast by the devices. This allows users to connect without relying on the operation of the target terminal device, improving the user experience and enhancing the security of Bluetooth communication. It also solves the technical problems of Bluetooth connection requiring manual operation and lacking security, and has strong practical and market promotion value.

[0088] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the systems disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the descriptions are relatively simple; relevant parts can be referred to the method section.

[0089] This document uses specific examples to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. Furthermore, those skilled in the art will recognize that, based on the ideas of the present invention, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A Bluetooth dual-mode seamless secure connection method based on data features, characterized in that, include: S1: Search for Bluetooth broadcast information; S2: Analyze the data features in the Bluetooth broadcast information; S3: Determine whether security verification is required based on the feature value; S4: If security verification is required, establish a Bluetooth data channel connection and perform security verification; S5: If the verification is successful or no verification is required, proceed with the Bluetooth audio connection; Specifically, S1 involves the user installing a designated App software and opening the smartphone App to search for broadcast information from nearby Bluetooth devices. The data features include the identity attribute information of the Bluetooth dual-mode device; Specifically, establishing a Bluetooth audio connection involves parsing Bluetooth attributes based on data characteristics and then establishing a Bluetooth audio connection. The Bluetooth audio connection is established using a reflection mechanism on the Android system. Before S1, the method further includes: when the Bluetooth dual-mode device is powered on and Bluetooth is not connected, it continuously sends broadcast data information at an agreed broadcast interval until Bluetooth is connected.

2. A secure connection system for a Bluetooth dual-mode contactless secure connection method based on data features according to claim 1, characterized in that, This includes mobile phones with installed apps and Bluetooth dual-mode devices.

3. The secure connection system according to claim 2, characterized in that, The Bluetooth dual-mode device includes a Bluetooth audio module and a Bluetooth data module.

Citation Information

Patent Citations

  • Bluetooth POS and safe Bluetooth POS connecting method and device

    CN104320412A

  • Bluetooth connection method, device, and intelligent terminal

    CN108551670A