Wireless connection method, device, equipment and medium

By adopting a combination of different broadcast types and triggering instructions in Bluetooth connection, the problem of low security of Bluetooth connection is solved, and a safe and reliable wireless connection is achieved, avoiding preemption and improving user experience.

CN120075772APending Publication Date: 2025-05-30GESHENG INTELLIGENT TECH (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510211915.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-25
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

The low security factor of Bluetooth connections leads to the problem of Bluetooth preemption of connection.

Method used

Through a wireless connection method, using different broadcast types of Bluetooth broadcast protocol, combined with preset trigger instructions and connection records in the storage unit, secure connection requests and responses are achieved.

Benefits of technology

It avoids the preemption of wireless connections, strengthens the confidentiality of wireless connections, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120075772A_ABST
    Figure CN120075772A_ABST
Patent Text Reader

Abstract

The present invention relates to a wireless connection method, apparatus and device, and a medium, and relates to the technical field of communications, the method comprising: broadcasting first data based on a first broadcast type of a Bluetooth broadcast protocol; judging whether a response of the first data is received or not; if the response of the first data is not received, judging whether a preset triggering instruction is received or not; if the trigger instruction is received, broadcasting second data based on a second broadcast type of the Bluetooth broadcast protocol, and waiting for a response of the second data within a preset time; and sending a connection request to a response target according to the response of the first data, or sending the connection request to the response target according to the response of the second data. The effect of enhancing the confidentiality of wireless connection is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technologies, and in particular, to a wireless connection method, apparatus, device, and medium. Background Art

[0002] In traditional Bluetooth connection methods, considering security, pincode pairing is required. Subsequently, to improve connection efficiency, the default pairing code is 0000 or 1234. Currently, to simplify the pairing operation, the pincode pairing connection method has been cancelled, resulting in a low security factor for Bluetooth connections, and thus the problem of Bluetooth pre-emptive connection occurs. Summary of the Invention

[0003] The present invention provides a wireless connection method to solve the problem of low security factor in Bluetooth connections.

[0004] In a first aspect, the present invention provides a wireless connection method, the method including:

[0005] Broadcasting first data based on a first broadcast type of the Bluetooth broadcast protocol;

[0006] Determining whether a response to the first data is received;

[0007] If a response to the first data is not received, determining whether a preset trigger instruction is received;

[0008] If the trigger instruction is received, then broadcasting second data based on a second broadcast type of the Bluetooth broadcast protocol, and waiting for a response to the second data within a preset time;

[0009] Sending a connection request to the response target according to the response to the first data, or sending a connection request to the response target according to the response to the second data.

[0010] In a second aspect, the present invention provides a wireless connection apparatus, including:

[0011] A first broadcast unit, configured to broadcast first data based on a first broadcast type of the Bluetooth broadcast protocol;

[0012] A first determination unit, configured to determine whether a response to the first data is received;

[0013] A second determination unit, configured to, if a response to the first data is not received, determine whether a preset trigger instruction is received;

[0014] A second broadcast unit, configured to, if the trigger instruction is received, broadcast second data based on a second broadcast type of the Bluetooth broadcast protocol, and wait for a response to the second data within a preset time;

[0015] A sending unit, configured to send a connection request to a response target according to the response of the first data, or send a connection request to a response target according to the response of the second data.

[0016] In a third aspect, an electronic device is provided, including a processor, a communication interface, a memory, and a communication bus. Among them, the processor, the communication interface, and the memory complete communication with each other through the communication bus;

[0017] The memory is used to store a computer program;

[0018] The processor, when executing the program stored on the memory, implements the steps of the wireless connection method described in any embodiment of the first aspect.

[0019] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the wireless connection method described in any embodiment of the first aspect are implemented.

[0020] The above technical solutions provided by the embodiments of the present invention have the following advantages compared with the prior art:

[0021] Avoid the preemption phenomenon of wireless connection, enhance the confidentiality of wireless connection, and improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The accompanying drawings herein are incorporated into the specification and form a part of the specification, showing embodiments consistent with the present invention, and are used together with the specification to explain the principles of the present invention.

[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the accompanying drawings required for the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0024] Figure 1 It is a schematic flowchart of a wireless connection method provided by an embodiment of the present invention;

[0025] Figure 2 It is a schematic structural diagram of a wireless connection device provided by an embodiment of the present invention;

[0026] Figure 3 It is a schematic structural diagram of a computer device provided by an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0027] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0028] Embodiment 1

[0029] Figure 1 It is a schematic flowchart of a wireless connection method provided by an embodiment of the present invention. An embodiment of the present invention proposes a wireless connection method. Specifically, refer to Figure 1 , and the wireless connection method includes the following steps S101 - S105.

[0030] S101, broadcast first data based on a first broadcast type of the Bluetooth broadcast protocol.

[0031] In specific implementation, the broadcast types of the Bluetooth broadcast protocol include connectable non - directed broadcast, connectable directed broadcast, non - connectable non - directed broadcast, and scannable non - directed broadcast. Among them, connectable and non - connectable refer to whether to accept connection requests. If it is a non - connectable broadcast type, it will not respond to connection requests. Directed and non - directed refer to whether there is a unique identifier of a specific broadcast object.

[0032] In one embodiment, the first broadcast type is a directed connectable type.

[0033] In specific implementation, the first broadcast type is a directed connectable type, and the first broadcast type is the default type of the device. Due to the directed characteristic of the directed connectable type, the device cannot be actively scanned, that is, other broadcast objects cannot discover the device. If there is a broadcast object that meets the unique identifier within the preset range, it will automatically connect.

[0034] By setting the first broadcast type as the directed connectable type, the objects that have been connected can automatically connect to the device.

[0035] In one embodiment, the above step S101 includes steps S201 - S203:

[0036] S201, determine whether a first unique identifier exists in a preset storage unit.

[0037] In specific implementation, the storage unit is installed on the device and is used to store and record the connected objects. Each object has a unique identifier. Generally, the unique identifier refers to the mac address, and the unique identifier in the storage unit is denoted as the first unique identifier.

[0038] S202, if the storage unit has a first unique identifier, the first data includes the first unique identifier, and step S102 is executed.

[0039] In a specific implementation, the existence of a first unique identifier in the storage unit means that the device has a connection record. The first unique identifier is obtained and broadcast as a broadcast parameter.

[0040] S203, if the storage unit does not have a first unique identifier, it is determined that the response to the first data has not been received.

[0041] In a specific implementation, the non-existence of a first unique identifier in the storage unit means that the device does not have a connection record. Generally, the device has a switch for restoring the factory settings. After pressing the switch for restoring the factory settings, the connection record of the device will be cleared. If there is no first unique identifier in the storage unit, the first unique identifier cannot be obtained for directional connectable type broadcasting.

[0042] S102, determine whether the response to the first data is received.

[0043] In this embodiment, the first data includes the first unique identifier of the connected object. Whether the device is automatically connected to the object is determined by whether there is a response to the first data. If the response to the first data is received, it is determined that the device is automatically connected to the object. If the response to the first data is not received, it is determined that the device is not connected to the object.

[0044] S103, if the response to the first data is not received, determine whether a preset trigger instruction is received.

[0045] In a specific implementation, not receiving the response to the first data means that the device is not connected to the object. In this embodiment, in the first case, the first data does not include the first unique identifier of the object, which will result in not receiving the response to the first data. In the second case, the object corresponding to the first unique identifier included in the first data is not within the connection range, which will also result in not receiving the response to the first data. When the device is not connected to the object, it is determined whether a preset trigger instruction is received. The trigger instruction includes fingerprint input, password input, switch, etc.

[0046] S104, if the trigger instruction is received, broadcast the second data based on the second broadcast type of the Bluetooth broadcast protocol and wait for the response to the second data within a preset time.

[0047] In specific implementation, the trigger instruction is bound to the second broadcast type, and step S104 is executed each time the trigger instruction is triggered. The broadcast types of the Bluetooth broadcast protocol include connectable non-directed broadcast, connectable directed broadcast, non-connectable non-directed broadcast, and scannable non-directed broadcast. In this embodiment, step S103 is set as a prerequisite for step S104. For example, the first type includes a first object (computer), and the second type includes a second object (mobile phone). Only when the first object is not connected to the device, step S104 is executed. In some other embodiments, S104 can also be set as an independent step, that is, after the trigger instruction, step S104 can be directly executed to switch the device to the second broadcast type and wait for the response of the second data. For example, when the device is already connected to the first object and receives the trigger instruction, it broadcasts the second data in the second broadcast type and waits for the response of the second data within a preset time, that is, waits for the device to connect to the second object.

[0048] In one embodiment, the second broadcast type is a non-directed connectable type, and the second data includes device information.

[0049] In specific implementation, the non-directed connectable type means that it can accept connection requests from any other device, and the second data includes device information. For example, when the device broadcasts in the non-directed connectable type, the device information of the device can be seen by any other device.

[0050] In one embodiment, the above step S103 further includes the step: if the trigger instruction is not received, the third data is broadcast based on the third broadcast type of the Bluetooth broadcast protocol, and the third broadcast type is a non-directed non-connectable type.

[0051] In specific implementation, in this embodiment, if the device does not receive the response of the first data and has not received the preset trigger instruction, the device executes the third broadcast type of the non-directed non-connectable type. The non-directed non-connectable type only sends broadcast data and cannot be scanned or connected, that is, the device cannot be discovered or connected by other devices.

[0052] S105, send a connection request to its response target according to the response of the first data, or send a connection request to its response target according to the response of the second data.

[0053] In specific implementation, sending a connection request to its response target according to the response of the first data means that the device directly connects to the object that has been connected before, and sending a connection request to its response target according to the response of the second data means that the device connects to the object with which a new connection is established.

[0054] In one embodiment, the above step S105 includes the steps: obtain the second unique identifier of the response target and store the second unique identifier in a preset storage unit.

[0055] Send a connection request to the response target according to the response to the second data, which means that the device connects to the object with the newly established connection. The second unique identifier refers to the unique identifier of the object with the newly established connection. Store the second unique identifier in the storage unit to record that the object with the newly established connection has been connected.

[0056] The embodiments of the present invention can achieve the following advantages:

[0057] Avoid the preemption phenomenon of wireless connection, strengthen the confidentiality of wireless connection, and improve the user experience.

[0058] See Figure 2 The embodiments of the present invention also provide a wireless connection device 400, which includes a first broadcast unit 401, a first judgment unit 402, a second judgment unit 403, a second broadcast unit 404, and a sending unit 405.

[0059] The first broadcast unit 401 is used to broadcast the first data based on the first broadcast type of the Bluetooth broadcast protocol.

[0060] In one embodiment, broadcasting the first data based on the first broadcast type of the Bluetooth broadcast protocol includes:

[0061] Judge whether the first unique identifier exists in the preset storage unit;

[0062] If so, the first data includes the first unique identifier, and perform the step of judging whether the response to the first data is received.

[0063] In one embodiment, judging whether the first unique identifier exists in the preset storage unit further includes:

[0064] If the first unique identifier does not exist in the storage unit, it is determined that the response to the first data has not been received.

[0065] In one embodiment, the first broadcast type is a directed connectable type.

[0066] The first judgment unit 402 is used to judge whether the response to the first data is received.

[0067] The second judgment unit 403 is used to judge whether a preset trigger instruction is received if the response to the first data is not received.

[0068] In one embodiment, the step of judging whether a preset trigger instruction is received if the response to the first data is not received further includes:

[0069] If the trigger instruction is not received, the third data is broadcast based on the third broadcast type of the Bluetooth broadcast protocol, and the third broadcast type is a non-directed non-connectable type.

[0070] The second broadcast unit 404 is configured to, if the trigger instruction is received, broadcast the second data based on the second broadcast type of the Bluetooth broadcast protocol, and wait for a response to the second data within a preset time.

[0071] In one embodiment, the second broadcast type is a non-directed connectable type, and the second data includes device information.

[0072] The sending unit 405 is configured to send a connection request to its response target according to the response to the first data, or send a connection request to its response target according to the response to the second data.

[0073] In one embodiment, sending a connection request to its response target according to the response to the second data includes:

[0074] Obtain the second unique identifier of the response target, and store the second unique identifier in a preset storage unit.

[0075] As Figure 3 shown, Figure 3 FIG. is a schematic block diagram of a computer device provided by an embodiment of the present application. The computer device 500 may be a terminal or a server. Among them, the terminal may be an electronic device with a communication function such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant, and a wearable device. The server may be an independent server or a server cluster composed of multiple servers.

[0076] The computer device 500 includes a processor 502, a memory, and a network interface 505 connected through a system bus 501. Among them, the memory may include a non-volatile storage medium 503 and an internal memory 504.

[0077] The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, the processor 502 may be caused to execute a wireless connection method.

[0078] The processor 502 is configured to provide computing and control capabilities to support the operation of the entire computer device 500.

[0079] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 may be caused to execute a wireless connection method.

[0080] The network interface 505 is used for network communication with other devices. Those skilled in the art can understand that the above structure is only a block diagram of some structures related to the solution of this application, and does not constitute a limitation on the computer device 500 to which the solution of this application is applied. Specifically, the computer device 500 may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.

[0081] It should be understood that in the embodiment of this application, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0082] Those of ordinary skill in the art can understand that all or part of the processes in the methods of implementing the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a storage medium, and the storage medium is a computer-readable storage medium. The computer program is executed by at least one processor in the computer system to implement the process steps of the embodiments of the above methods.

[0083] Therefore, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program.

[0084] The storage medium is a physical, non-transitory storage medium, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disc, etc., which are various physical storage media that can store program codes. The computer-readable storage medium may be non-volatile or volatile.

[0085] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.

[0086] In several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of each unit is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.

[0087] The steps in the method embodiments of the present invention can be adjusted, combined, and deleted according to actual needs. The units in the device embodiments of the present invention can be combined, divided, and deleted according to actual needs. In addition, the functional units in each embodiment of the present invention can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit.

[0088] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a terminal, or a network device, etc.) to execute all or part of the steps of the methods described in each embodiment of the present invention.

[0089] In the above embodiments, the descriptions of each embodiment have their own emphases. For the parts not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0090] Obviously, those skilled in the art can make various modifications and variations to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention is also intended to include these modifications and variations.

[0091] As described above, it is only the specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present invention can easily think of various equivalent modifications or substitutions, and these modifications or substitutions should all be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims

1. A wireless connection method, characterized in that: The method comprises: Broadcasting first data based on a first broadcast type of a Bluetooth broadcast protocol; Determining whether a response to the first data is received; If no response to the first data is received, determining whether a preset trigger instruction is received; If the trigger instruction is received, broadcast the second data based on the second broadcast type of the Bluetooth broadcast protocol, and wait for a response to the second data within a preset time; Send a connection request to the response target according to the response of the first data, or send a connection request to the response target according to the response of the second data.

2. The method according to claim 1, characterized in that Broadcasting first data of a first broadcast type based on the Bluetooth broadcast protocol includes: Determining whether a first unique identifier exists in a preset storage unit; If so, the first data includes the first unique identifier, and the step of determining whether a response to the first data is received is performed.

3. The method according to claim 2, characterized in that The determining whether the preset storage unit has a first unique identifier also includes: If the storage unit does not contain the first unique identifier, it is determined that no response to the first data is received.

4. The method according to claim 1, characterized in that The second broadcast type is a non-directional connectable type, and the second data includes device information.

5. The method according to claim 1, characterized in that Sending a connection request to a response target according to the response of the second data includes: A second unique identifier of the response target is obtained, and the second unique identifier is stored in a preset storage unit.

6. The method according to claim 1, characterized in that If no response to the first data is received, determining whether a preset trigger instruction is received further includes: If the trigger instruction is not received, the third data is broadcast based on a third broadcast type of the Bluetooth broadcast protocol, where the third broadcast type is a non-directional and non-connectable type.

7. The method according to claim 1, characterized in that The first broadcast type is a directional connectable type.

8. A wireless connection device, characterized in that: include: A first broadcast unit, configured to broadcast first data based on a first broadcast type of a Bluetooth broadcast protocol; A first determination unit, configured to determine whether a response to the first data is received; A second determination unit, configured to determine whether a preset trigger instruction is received if no response to the first data is received; A second broadcast unit, configured to broadcast second data based on a second broadcast type of the Bluetooth broadcast protocol if the trigger instruction is received, and wait for a response to the second data within a preset time; A sending unit is used to send a connection request to a response target according to a response to the first data, or to send a connection request to a response target according to a response to the second data.

9. A computer device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the steps of the method described in any one of claims 1 to 7 when executing a program stored in a memory.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.