[go: up one dir, main page]

CN108769974B - Bluetooth connection method and system - Google Patents

Bluetooth connection method and system Download PDF

Info

Publication number
CN108769974B
CN108769974B CN201811057907.6A CN201811057907A CN108769974B CN 108769974 B CN108769974 B CN 108769974B CN 201811057907 A CN201811057907 A CN 201811057907A CN 108769974 B CN108769974 B CN 108769974B
Authority
CN
China
Prior art keywords
bluetooth
address information
specified
connection
audio data
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.)
Active
Application number
CN201811057907.6A
Other languages
Chinese (zh)
Other versions
CN108769974A (en
Inventor
胡宜萍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Waterward Information Co Ltd
Original Assignee
Shenzhen Waterward Information Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Waterward Information Co Ltd filed Critical Shenzhen Waterward Information Co Ltd
Priority to CN201811057907.6A priority Critical patent/CN108769974B/en
Publication of CN108769974A publication Critical patent/CN108769974A/en
Application granted granted Critical
Publication of CN108769974B publication Critical patent/CN108769974B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/08Access security
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Small-Scale Networks (AREA)

Abstract

本发明揭示了一种蓝牙连接的方法与系统,其中蓝牙连接的方法,用于连接蓝牙终端和指定蓝牙设备,其中指定蓝牙设备的蓝牙地址信息经过指定加密算法加密,所述蓝牙终端具有对应于所述指定加密算法的解密算法,包括:判断是否接收蓝牙连接指令;若接收蓝牙连接指令,则监听当前环境的声音信息;对所述声音信息进行解密,以获得所述蓝牙地址信息;根据解密后的蓝牙地址信息连接所述指定蓝牙设备。从而同时解决了蓝牙连接需要手动操作而且安全性得不到保证的技术问题。

Figure 201811057907

The invention discloses a Bluetooth connection method and system, wherein the Bluetooth connection method is used to connect a Bluetooth terminal and a specified Bluetooth device, wherein the Bluetooth address information of the specified Bluetooth device is encrypted by a specified encryption algorithm, and the Bluetooth terminal has corresponding The decryption algorithm of the specified encryption algorithm includes: judging whether to receive a Bluetooth connection instruction; if receiving a Bluetooth connection instruction, monitoring the sound information of the current environment; decrypting the sound information to obtain the Bluetooth address information; The bluetooth address information after is connected to the designated bluetooth device. Therefore, the technical problem that the Bluetooth connection needs manual operation and the security cannot be guaranteed is solved at the same time.

Figure 201811057907

Description

Bluetooth connection method and system
Technical Field
The present invention relates to the field of wireless data transmission, and in particular, to a method and system for bluetooth connection.
Background
Bluetooth has been widely and long used as a convenient means for wireless data transmission. The current connection method of bluetooth generally includes: opening the Bluetooth module; searching whether Bluetooth equipment exists around; determining the name of a Bluetooth device to be connected; clicking a connection option; waiting for the confirmation of the other Bluetooth device; completing the connection; and carrying out data transmission. Wherein the bluetooth connection requires manual operation and security is not guaranteed.
Disclosure of Invention
The invention mainly aims to provide a method and a system for Bluetooth connection, which can solve the technical problems that the Bluetooth connection needs manual operation and the safety cannot be ensured.
The invention provides a Bluetooth connection method, which is used for connecting a Bluetooth terminal and a specified Bluetooth device, wherein the Bluetooth address information of the specified Bluetooth device is encrypted by a specified encryption algorithm, the Bluetooth terminal is provided with a decryption algorithm corresponding to the specified encryption algorithm, and the method comprises the following steps:
judging whether a Bluetooth connection instruction is received or not;
if receiving a Bluetooth connection instruction, monitoring sound information of the current environment;
decrypting the sound information to obtain the Bluetooth address information;
and connecting the appointed Bluetooth equipment according to the decrypted Bluetooth address information.
Further, the step of decrypting the sound information to obtain the bluetooth address information includes:
judging whether the sound information contains encoded audio data;
and if the audio data contains the coded audio data, decoding the audio data according to the decryption algorithm corresponding to the specified encryption algorithm to obtain Bluetooth address information.
Further, the step of determining whether the sound information contains encoded audio data includes:
judging whether the sound information has audio data of a plurality of different specific frequency combinations;
and if so, determining that the sound information contains the encoded audio data.
Further, there are a plurality of the designated bluetooth devices, the decrypted bluetooth address information includes a specific number, and the step of connecting the designated bluetooth devices according to the decrypted bluetooth address information includes:
comparing the sizes of specific numbers in the Bluetooth address information of a plurality of specified Bluetooth devices respectively;
and connecting the corresponding appointed Bluetooth equipment by using the decrypted Bluetooth address information with the maximum specific number.
Further, after the step of connecting the corresponding specified bluetooth device by using the decrypted bluetooth address information with the largest specific number, the method includes:
judging whether the connection time of the continuous connection with the appointed Bluetooth equipment exceeds preset time or not;
and if the preset time is exceeded, disconnecting the specified Bluetooth equipment.
The invention provides a Bluetooth connection system, which is used for connecting a Bluetooth terminal and a specified Bluetooth device, wherein the Bluetooth address information of the specified Bluetooth device is encrypted by a specified encryption algorithm, the Bluetooth terminal is provided with a decryption algorithm corresponding to the specified encryption algorithm, and the Bluetooth connection system comprises:
the Bluetooth connection instruction judging module is used for judging whether to receive a Bluetooth connection instruction;
the monitoring module is used for monitoring the sound information of the current environment if receiving the Bluetooth connection instruction;
the decryption module is used for decrypting the sound information to obtain the Bluetooth address information;
and the connection module is used for connecting the appointed Bluetooth equipment according to the decrypted Bluetooth address information.
Further, the decryption module includes:
the coding judgment submodule is used for judging whether the sound information contains coded audio data;
and the decoding submodule is used for decoding the audio data according to the decryption algorithm corresponding to the specified encryption algorithm if the audio data contains the encoded audio data so as to obtain Bluetooth address information.
Further, the encoding judgment sub-module includes:
a frequency judging unit for judging whether the sound information has audio data of a plurality of different specific frequency combinations;
and an encoding determination unit configured to determine that the sound information includes the encoded audio data if the determination is positive.
Further, there are a plurality of the specified bluetooth devices, the decrypted bluetooth address information includes a specific number, and the connection module includes:
the comparison submodule is used for respectively comparing the sizes of specific numbers in the Bluetooth address information of the specified Bluetooth devices;
and the decryption connection submodule is used for connecting the corresponding specified Bluetooth equipment by using the decrypted Bluetooth address information with the maximum specific number.
Further, the system includes:
the time judging module is used for judging whether the connection time of the continuous connection with the specified Bluetooth equipment exceeds the preset time or not;
and the disconnection module is used for disconnecting the connection with the specified Bluetooth equipment if the preset time is exceeded.
According to the Bluetooth connection method and the system, the encrypted Bluetooth address information in the sound information is acquired by monitoring and decrypting, so that Bluetooth connection is completed, and the technical problems that manual operation is required for Bluetooth connection and safety cannot be guaranteed are solved. The Bluetooth address information is output by sound by encoding the sound with a plurality of different specific frequencies, and only the different specific frequencies are identified to judge whether the sound is encoded, so that the calculation force is saved.
Drawings
Fig. 1 is a flowchart illustrating a method of bluetooth connection according to an embodiment of the present application;
fig. 2 is a flowchart illustrating step S3 of the bluetooth connection method according to an embodiment of the present application;
FIG. 3 is a block diagram illustrating a Bluetooth system according to an embodiment of the present invention;
FIG. 4 is a block diagram illustrating a decryption module according to an embodiment of the present application;
fig. 5 is a block diagram schematically illustrating a structure of an encoding judgment sub-module according to an embodiment of the present application;
FIG. 6 is a block diagram illustrating a connection module according to an embodiment of the present disclosure;
fig. 7 is a block diagram illustrating a structure of a part of modules of a bluetooth connection system according to an embodiment of the present application.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Reference will now be made in detail to the embodiments of the present invention, and it will be understood by those skilled in the art that, unless otherwise specified, the singular forms "a", "an", "the" and "the" used herein may include the plural forms as well. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
Referring to fig. 1, an embodiment of the present application provides a bluetooth connection method for connecting a bluetooth terminal and a designated bluetooth device, where bluetooth address information of the designated bluetooth device is encrypted by a designated encryption algorithm, and the bluetooth terminal has a decryption algorithm corresponding to the designated encryption algorithm, including the steps of:
s1, judging whether a Bluetooth connection instruction is received;
s2, if receiving a Bluetooth connection instruction, monitoring sound information of the current environment;
s3, decrypting the sound information to obtain the Bluetooth address information;
and S4, connecting the appointed Bluetooth equipment according to the decrypted Bluetooth address information.
The bluetooth terminal refers to a terminal with a bluetooth function, such as a bluetooth mobile phone, a bluetooth tablet computer, a bluetooth desktop computer, a bluetooth notebook computer, and the like. The bluetooth device refers to a device having a bluetooth function, such as a bluetooth mobile phone, a bluetooth tablet, a bluetooth desktop, a bluetooth notebook, a bluetooth headset, a bluetooth speaker, and the like. The Bluetooth equipment has an encryption algorithm, can encrypt the Bluetooth address information of the Bluetooth equipment and sends the information out in a sound mode. Correspondingly, the Bluetooth terminal has a corresponding decryption algorithm, and after receiving the encrypted Bluetooth address information sent in the form of voice, the Bluetooth terminal can decrypt the encrypted Bluetooth address information to obtain the Bluetooth address information.
Step S1 is performed to determine whether a bluetooth connection command is received. The bluetooth connection instruction can be generated by selecting a bluetooth connection option on a screen through a finger, or can be generated through a key or a key combination of a bluetooth terminal (such as a bluetooth terminal with keys, such as a bluetooth mobile phone, a bluetooth tablet computer, a bluetooth desktop computer, a bluetooth notebook computer, and the like); or receiving a Bluetooth connection instruction required by the APP after the APP is opened; or may be a bluetooth connection command generated by other means.
And step S2, if receiving the bluetooth connection command, monitoring the sound information of the current environment. The sound is monitored by a sound collection device (sound input device). The sound collection device (sound input device) may be a microphone or a microphone array. The sound collection device (sound input device) can be always turned on (no matter the Bluetooth terminal is in a standby state or a working state), and can also be turned on according to an instruction according to needs.
And step S3, decrypting the sound information to obtain the bluetooth address information. As mentioned above, the bluetooth device has an encryption algorithm, and can encrypt the bluetooth address information of the bluetooth device and send out the encrypted bluetooth address information in the form of sound. When the monitored sound contains the encrypted Bluetooth address information, the sound is indicated to contain the required information and is further processed. Wherein the sound containing the encrypted bluetooth address information of the bluetooth device may be emitted by the bluetooth device; the sound of the encrypted Bluetooth address information of the Bluetooth device can also be recorded and sent out through other sound output devices. As mentioned above, the bluetooth terminal has a corresponding decryption algorithm, and after receiving the encrypted bluetooth address information transmitted in the form of voice, decrypts it to obtain the bluetooth address information. Therefore, the security and the selectivity of the Bluetooth connection are improved in the whole process of encrypting and decrypting the Bluetooth address.
And step S4, connecting the appointed Bluetooth device by using the decrypted Bluetooth address information. As described above, the bluetooth terminal obtains the decrypted bluetooth address information of the bluetooth device, and connects to the bluetooth device through the bluetooth address information. Wherein, the process of connecting the bluetooth device includes: directly connecting the Bluetooth device; or generating an instruction whether to connect the Bluetooth device, and connecting the Bluetooth device after receiving the instruction.
Further, after the step S4, connecting the specified bluetooth device by using the decrypted bluetooth address information, the method further includes: receive or transmit data to the bluetooth device. Thereby realizing data transmission between the Bluetooth terminal and the Bluetooth equipment.
Referring to fig. 2, in an embodiment, the step S3 of decrypting the sound information to obtain the bluetooth address information includes:
s31, judging whether the sound information contains coded audio data;
and S32, if the audio data contains the coded audio data, decoding the audio data according to the decryption algorithm corresponding to the specified encryption algorithm to obtain Bluetooth address information.
Step S31 is performed to determine whether the sound information contains encoded audio data. The encoded sound may contain the required information. Only if it is determined that the heard sound is indeed encoded is it necessary to proceed to the next step. The encoding method may be any method, for example, encoding using frequency, timbre, or the like.
And step S32, if the encoded audio data is contained, decoding the audio data according to the decryption algorithm corresponding to the specified encryption algorithm to obtain bluetooth address information. Since the bluetooth address information is encrypted in this embodiment, it is only determined that the decoded data is encrypted and encrypted by the encryption algorithm of the bluetooth device that the decoded data is encrypted that the sound information is the required sound information. The specific determination method may be any feasible method, for example, determining whether the decoded data conforms to a specific format. As described above, it can be confirmed whether the bluetooth address information is encrypted by a specified encryption algorithm. Accordingly, bluetooth address information is obtained.
Further, the step S31 of determining whether the sound information includes encoded audio data includes:
s311, judging whether the sound information has audio data of a plurality of different specific frequency combinations;
and S312, if yes, judging that the sound information contains the coded audio data.
The encoding method may be any method, and when encoding is performed using a frequency, encoding may be performed by assigning a sound segment having a specific frequency within a specific time period a seconds to a specific signal. For example, to encode information XYZ, where X corresponds to a specific frequency E, Y corresponds to a specific frequency R, and Z corresponds to a specific frequency T, the encoded sound should have a frequency ERT within three consecutive durations of a seconds.
Steps S311 to S312 are performed to determine whether the monitored sounds have a plurality of different specific frequencies. The specific frequency can be any feasible frequency, and can include infrasonic waves, sound waves, ultrasonic waves, low frequency bands, medium and high frequency bands, such as any frequency of 10-500KHz, 20-50KHz and 50-20 KHz. Frequencies that fit within certain frequency ranges may also be considered as specific frequencies, e.g. a frequency of 10-20Hz as specific frequency 1 and 200-2000Hz as specific frequency 2.
As described above, when encoding is performed using frequencies, it is determined whether or not a sound has a plurality of different specific frequencies, and if the sound has a plurality of different specific frequencies, it is determined that the sound has been encoded; if there is only a single specific frequency or no specific frequency, it is determined that the encoding is not performed.
In one embodiment, the step S4 of connecting the designated bluetooth device according to the decrypted bluetooth address information includes:
s401, comparing the sizes of specific numbers in the Bluetooth address information of a plurality of specified Bluetooth devices respectively;
s402, connecting the corresponding appointed Bluetooth equipment by using the decrypted Bluetooth address information with the maximum specific number.
As in steps S401-402 above, connection to the designated bluetooth device is achieved. In some scenarios, a plurality of bluetooth devices are connected alternatively, for example, a bluetooth speaker and a bluetooth headset are available for connection, and at this time, a connection object should be selected. Specific numbers (for example, positive integers) can be added to the bluetooth address information to determine which device should be connected, wherein the specific numbers can be added at the beginning of the bluetooth address, added at the end of the bluetooth address, or inserted in the bluetooth address. The specific mode comprises the following steps: compared with the specific digital size, the Bluetooth device with the specific digital size is a device to be connected. Wherein, the special number can be added during coding or encryption.
After the step S402 of connecting the corresponding specified bluetooth device by using the decrypted bluetooth address information with the largest specific number in one embodiment, the method includes:
s5, judging whether the connection time of the continuous connection with the appointed Bluetooth equipment exceeds the preset time;
and S6, if the preset time is exceeded, disconnecting the specified Bluetooth device.
Breaking the connection is achieved as in step S5-6 above. When the bluetooth connection time is too long, the required connection time may be exceeded (e.g., the owner has left, but forgotten to turn off the bluetooth), thus causing a large amount of power consumption. Accordingly, when the continuous connection is too long, i.e., exceeds a predetermined time, the connection is disconnected. Wherein the predetermined time may be 1 hour, 3 hours, 5 hours, 10 hours, etc.
According to the Bluetooth connection method provided by the invention, the encrypted Bluetooth address information in the sound information is acquired by monitoring and decrypting means, so that Bluetooth connection is completed, and the technical problems that manual operation is required for Bluetooth connection and the safety cannot be ensured are solved. The Bluetooth address information is output by sound by encoding the sound with a plurality of different specific frequencies, and only the different specific frequencies are identified to judge whether the sound is encoded, so that the calculation force is saved.
Referring to fig. 3, an embodiment of the present application provides a bluetooth connection system, configured to connect a bluetooth terminal and a specified bluetooth device, where bluetooth address information of the specified bluetooth device is encrypted by a specified encryption algorithm, and the bluetooth terminal has a decryption algorithm corresponding to the specified encryption algorithm, and includes:
a bluetooth connection instruction judging module 10, configured to judge whether to receive a bluetooth connection instruction;
the monitoring module 20 is configured to monitor sound information of the current environment if the bluetooth connection instruction is received;
the decryption module 30 is configured to decrypt the sound information to obtain the bluetooth address information;
and the connection module 40 is used for connecting the specified Bluetooth equipment according to the decrypted Bluetooth address information.
The bluetooth terminal refers to a terminal with a bluetooth function, such as a bluetooth mobile phone, a bluetooth tablet, a bluetooth desktop computer, a bluetooth notebook computer, and so on. A bluetooth device refers to a device having a bluetooth function, such as a bluetooth mobile phone, a bluetooth tablet, a bluetooth desktop, a bluetooth notebook, a bluetooth headset, a bluetooth speaker, and so on. The Bluetooth equipment has an encryption algorithm, can encrypt the Bluetooth address information of the Bluetooth equipment and sends the information out in a sound mode. Correspondingly, the Bluetooth terminal has a corresponding decryption algorithm, and after receiving the encrypted Bluetooth address information sent in the form of voice, the Bluetooth terminal can decrypt the encrypted Bluetooth address information to obtain the Bluetooth address information.
The bluetooth connection instruction determining module 10 determines whether to receive a bluetooth connection instruction. The bluetooth connection instruction can be generated by selecting a bluetooth connection option on a screen through a finger, or can be generated through a key or a key combination of a bluetooth terminal (such as a bluetooth terminal with keys, such as a bluetooth mobile phone, a bluetooth tablet computer, a bluetooth desktop computer, a bluetooth notebook computer, and the like); or receiving a Bluetooth connection instruction required by the APP after the APP is opened; or may be a bluetooth connection command generated by other means.
The monitoring module 20 monitors the sound information of the current environment if receiving the bluetooth connection command. The sound is monitored by a sound collection device (sound input device). The sound collection device (sound input device) may be a microphone or a microphone array. The sound collection device (sound input device) can be always turned on (no matter the Bluetooth terminal is in a standby state or a working state), and can also be turned on according to an instruction according to needs.
And the decryption module 30 decrypts the sound information to obtain the bluetooth address information. As mentioned above, the bluetooth device has an encryption algorithm, and can encrypt the bluetooth address information of the bluetooth device and send out the encrypted bluetooth address information in the form of sound. When the monitored sound contains the encrypted Bluetooth address information, the sound is indicated to contain the required information and is further processed. Wherein the sound containing the encrypted bluetooth address information of the bluetooth device may be emitted by the bluetooth device; the sound of the encrypted Bluetooth address information of the Bluetooth device can also be recorded and sent out through other sound output devices. As mentioned above, the bluetooth terminal has a corresponding decryption algorithm, and after receiving the encrypted bluetooth address information transmitted in the form of voice, decrypts it to obtain the bluetooth address information. Therefore, the security and the selectivity of the Bluetooth connection are improved in the whole process of encrypting and decrypting the Bluetooth address. As described above, the bluetooth terminal obtains the decrypted bluetooth address information of the bluetooth device, and connects to the bluetooth device through the bluetooth address information. Wherein, the process of connecting the bluetooth device includes: directly connecting the Bluetooth device; or generating an instruction whether to connect the Bluetooth device, and connecting the Bluetooth device after receiving the instruction.
Further, the Bluetooth device also comprises a module for receiving or transmitting data to the Bluetooth device. Thereby realizing data transmission between the Bluetooth terminal and the Bluetooth equipment.
Referring to fig. 4, in an embodiment, the decryption module 30 includes:
an encoding judgment sub-module 31, configured to judge whether the sound information contains encoded audio data;
and the decoding submodule 32 is configured to, if the encoded audio data is included, decode the audio data according to the decryption algorithm corresponding to the specified encryption algorithm to obtain bluetooth address information.
The encoding judgment sub-module 31 judges whether the sound information contains encoded audio data. The encoded sound may contain the required information. Only if it is determined that the heard sound is indeed encoded is it necessary to proceed to the next step. The encoding method may be any method, for example, encoding using frequency, timbre, or the like.
And the decoding submodule 32 is used for decoding the audio data according to the decryption algorithm corresponding to the specified encryption algorithm if the encoded audio data is contained, so as to obtain the Bluetooth address information. Since the bluetooth address information is encrypted in this embodiment, it is only determined that the decoded data is encrypted and encrypted by the encryption algorithm of the bluetooth device that the decoded data is encrypted that the sound information is the required sound information. The specific determination method may be any feasible method, for example, determining whether the decoded data conforms to a specific format. As described above, it can be confirmed whether the bluetooth address information is encrypted by a specified encryption algorithm. Accordingly, bluetooth address information is obtained.
Referring to fig. 5, further, the encoding determining sub-module 31 includes:
a frequency judging unit 311 for judging whether there are audio data of a plurality of different specific frequency combinations in the sound information;
an encoding determination unit 312, configured to determine that the sound information includes the encoded audio data if yes.
The encoding method may be any method, and when encoding is performed using a frequency, encoding may be performed by assigning a sound segment having a specific frequency within a specific time period a seconds to a specific signal. For example, to encode information XYZ, where X corresponds to a specific frequency E, Y corresponds to a specific frequency R, and Z corresponds to a specific frequency T, the encoded sound should have a frequency ERT within three consecutive durations of a seconds.
Frequency determining section 311 and coding determining section 312 determine whether or not the monitored sound has a plurality of different specific frequencies. The specific frequency can be any feasible frequency, and can include infrasonic waves, sound waves, ultrasonic waves, low frequency bands, medium and high frequency bands, such as any frequency of 10-500KHz, 20-50KHz and 50-20 KHz. Frequencies that fit within certain frequency ranges may also be considered as specific frequencies, e.g. a frequency of 10-20Hz as specific frequency 1 and 200-2000Hz as specific frequency 2.
As described above, when encoding is performed using frequencies, it is determined whether or not a sound has a plurality of different specific frequencies, and if the sound has a plurality of different specific frequencies, it is determined that the sound has been encoded; if there is only a single specific frequency or no specific frequency, it is determined that the encoding is not performed.
Referring to fig. 6, in an embodiment, there are a plurality of designated bluetooth devices, the decrypted bluetooth address information includes a specific number, and the connection module 40 includes:
a comparison submodule 401 configured to compare sizes of specific numbers in the bluetooth address information of the plurality of designated bluetooth devices, respectively;
and a decryption connection sub-module 402, configured to connect the corresponding specified bluetooth device by using the decrypted bluetooth address information with the largest specific number.
The connection to the designated bluetooth device is implemented as in sub-modules S401-402 described above. In some scenarios, a plurality of bluetooth devices are connected alternatively, for example, a bluetooth speaker and a bluetooth headset are available for connection, and at this time, a connection object should be selected. Specific numbers can be added in the Bluetooth address information so as to judge which device should be connected, wherein the specific numbers can be added at the head of the Bluetooth address, can be added at the tail of the Bluetooth address, and can be inserted in the Bluetooth address. The specific mode comprises the following steps: compared with the specific digital size, the Bluetooth device with the specific digital size is a device to be connected. Wherein, the special number can be added during coding or encryption.
Referring to fig. 7, in one embodiment, the bluetooth connected system includes:
a time judging module 50, configured to judge whether a connection time for continuously connecting to the specified bluetooth device exceeds a predetermined time;
and a disconnection module 60, configured to disconnect the specified bluetooth device if the predetermined time is exceeded.
Disconnection of the connection is achieved as in the above-described modules 50-60. When the bluetooth connection time is too long, the required connection time may be exceeded (e.g., the owner has left, but forgotten to turn off the bluetooth), thus causing a large amount of power consumption. Accordingly, when the continuous connection is too long, i.e., exceeds a predetermined time, the connection is disconnected. Wherein the predetermined time may be 1 hour, 3 hours, 5 hours, 10 hours, etc.
According to the Bluetooth connection system provided by the invention, the encrypted Bluetooth address information in the sound information is acquired by monitoring and decrypting means, so that Bluetooth connection is completed, and the technical problems that manual operation is required for Bluetooth connection and the safety cannot be ensured are solved. The Bluetooth address information is output by sound by encoding the sound with a plurality of different specific frequencies, and only the different specific frequencies are identified to judge whether the sound is encoded, so that the calculation force is saved.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (6)

1. A bluetooth connection method for connecting a bluetooth terminal and a specified bluetooth device, wherein bluetooth address information of the specified bluetooth device is encrypted by a specified encryption algorithm, the bluetooth terminal having a decryption algorithm corresponding to the specified encryption algorithm, comprising:
judging whether a Bluetooth connection instruction is received or not;
if receiving a Bluetooth connection instruction, monitoring sound information of the current environment;
decrypting the sound information to obtain the Bluetooth address information;
connecting the appointed Bluetooth equipment according to the decrypted Bluetooth address information;
the step of decrypting the sound information to obtain the bluetooth address information includes:
judging whether the sound information contains encoded audio data or not, wherein the encoding mode comprises encoding by using frequency and tone;
if the audio data contains the encoded audio data, decoding the audio data according to the decryption algorithm corresponding to the specified encryption algorithm to obtain Bluetooth address information;
the specified bluetooth device is multiple, the decrypted bluetooth address information includes specific numbers, the specific numbers are inserted into a bluetooth address to form the bluetooth address information, and the step of connecting the specified bluetooth device according to the decrypted bluetooth address information includes:
comparing the sizes of specific numbers in the Bluetooth address information of a plurality of specified Bluetooth devices respectively;
and connecting the corresponding appointed Bluetooth equipment by using the decrypted Bluetooth address information with the maximum specific number.
2. The method of claim 1, wherein the step of determining whether the sound information contains encoded audio data comprises:
judging whether the sound information has audio data of a plurality of different specific frequency combinations;
and if so, determining that the sound information contains the encoded audio data.
3. The method of claim 1, wherein the step of connecting the corresponding specified bluetooth device by using the decrypted bluetooth address information with the largest specific number comprises the following steps:
judging whether the connection time of the continuous connection with the appointed Bluetooth equipment exceeds preset time or not;
and if the preset time is exceeded, disconnecting the specified Bluetooth equipment.
4. A bluetooth connection system for connecting a bluetooth terminal and a specified bluetooth device, wherein bluetooth address information of the specified bluetooth device is encrypted by a specified encryption algorithm, the bluetooth terminal having a decryption algorithm corresponding to the specified encryption algorithm, comprising:
the Bluetooth connection instruction judging module is used for judging whether to receive a Bluetooth connection instruction;
the monitoring module is used for monitoring the sound information of the current environment if receiving the Bluetooth connection instruction;
the decryption module is used for decrypting the sound information to obtain the Bluetooth address information;
the connection module is used for connecting the specified Bluetooth equipment according to the decrypted Bluetooth address information;
the decryption module includes:
the coding judgment submodule is used for judging whether the sound information contains coded audio data or not, and the coding mode comprises coding by using frequency and tone;
the decoding submodule is used for decoding the audio data according to the decryption algorithm corresponding to the specified encryption algorithm to obtain Bluetooth address information if the audio data contains the encoded audio data;
the specified bluetooth device is multiple, the decrypted bluetooth address information includes a specific number, the specific number is inserted into a bluetooth address to form the bluetooth address information, and the connection module includes:
the comparison submodule is used for respectively comparing the sizes of specific numbers in the Bluetooth address information of the specified Bluetooth devices;
and the decryption connection submodule is used for connecting the corresponding specified Bluetooth equipment by using the decrypted Bluetooth address information with the maximum specific number.
5. The bluetooth connection system according to claim 4, wherein the encoding judgment sub-module comprises:
a frequency judging unit for judging whether the sound information has audio data of a plurality of different specific frequency combinations;
and an encoding determination unit configured to determine that the sound information includes the encoded audio data if the determination is positive.
6. The bluetooth connected system according to claim 4, comprising:
the time judging module is used for judging whether the connection time of the continuous connection with the specified Bluetooth equipment exceeds the preset time or not;
and the disconnection module is used for disconnecting the connection with the specified Bluetooth equipment if the preset time is exceeded.
CN201811057907.6A 2018-09-11 2018-09-11 Bluetooth connection method and system Active CN108769974B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811057907.6A CN108769974B (en) 2018-09-11 2018-09-11 Bluetooth connection method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811057907.6A CN108769974B (en) 2018-09-11 2018-09-11 Bluetooth connection method and system

Publications (2)

Publication Number Publication Date
CN108769974A CN108769974A (en) 2018-11-06
CN108769974B true CN108769974B (en) 2021-09-21

Family

ID=63967851

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811057907.6A Active CN108769974B (en) 2018-09-11 2018-09-11 Bluetooth connection method and system

Country Status (1)

Country Link
CN (1) CN108769974B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113840266B (en) * 2020-06-24 2024-05-03 华为技术有限公司 Bluetooth pairing method, device, system, electronic equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102484529A (en) * 2009-08-26 2012-05-30 三星电子株式会社 Bluetooth communication method and terminal adopting same
CN103595448A (en) * 2013-10-31 2014-02-19 宇龙计算机通信科技(深圳)有限公司 Bluetooth pairing method and device
CN103944723A (en) * 2014-04-18 2014-07-23 天地融科技股份有限公司 Bluetooth device authentication method and Bluetooth devices
CN104427579A (en) * 2013-08-23 2015-03-18 中兴通讯股份有限公司 Method for establishing wireless local area network through mobile terminal and mobile terminal
CN104581986A (en) * 2013-10-17 2015-04-29 北京聚码科技有限公司 Wireless connection method and equipment
CN104769965A (en) * 2012-05-09 2015-07-08 尼尔百特技术信息有限公司 Method for the transmission of data between devices over sound waves
CN105338659A (en) * 2015-11-27 2016-02-17 深圳市朗科科技股份有限公司 Device connection method and terminal
CN108366361A (en) * 2018-01-23 2018-08-03 阿里巴巴集团控股有限公司 Communication means and device and electronic equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101911252B1 (en) * 2012-08-13 2018-10-24 엘지전자 주식회사 Terminal and method for controlling the same
KR102105569B1 (en) * 2013-10-08 2020-04-29 삼성전자 주식회사 Apparatus and method for interacting between mobile devices using sound wave
CN207399521U (en) * 2017-06-06 2018-05-22 欧普照明股份有限公司 Bluetooth equipment and bluetooth connection system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102484529A (en) * 2009-08-26 2012-05-30 三星电子株式会社 Bluetooth communication method and terminal adopting same
CN104769965A (en) * 2012-05-09 2015-07-08 尼尔百特技术信息有限公司 Method for the transmission of data between devices over sound waves
CN104427579A (en) * 2013-08-23 2015-03-18 中兴通讯股份有限公司 Method for establishing wireless local area network through mobile terminal and mobile terminal
CN104581986A (en) * 2013-10-17 2015-04-29 北京聚码科技有限公司 Wireless connection method and equipment
CN103595448A (en) * 2013-10-31 2014-02-19 宇龙计算机通信科技(深圳)有限公司 Bluetooth pairing method and device
CN103944723A (en) * 2014-04-18 2014-07-23 天地融科技股份有限公司 Bluetooth device authentication method and Bluetooth devices
CN105338659A (en) * 2015-11-27 2016-02-17 深圳市朗科科技股份有限公司 Device connection method and terminal
CN108366361A (en) * 2018-01-23 2018-08-03 阿里巴巴集团控股有限公司 Communication means and device and electronic equipment

Also Published As

Publication number Publication date
CN108769974A (en) 2018-11-06

Similar Documents

Publication Publication Date Title
JP5512045B2 (en) ENCRYPTION DEVICE, ENCRYPTION METHOD, AND ENCRYPTION PROGRAM
WO2018049892A1 (en) Data transmission method and apparatus, and terminal
CN105721492B (en) Method, device and terminal for voice processing
US20180026948A1 (en) System and method for encrypting and decrypting data
US9467428B2 (en) Information security attachment device for voice communication and information security method for voice communication using the same
CN108769974B (en) Bluetooth connection method and system
CN112182624A (en) Encryption method, encryption device, storage medium and electronic equipment
CN115426648A (en) End-to-end encryption voice communication Bluetooth headset and voice encryption method thereof
US20160173456A1 (en) Dynamic Spectrum Audio Encryption and Decryption Device
CN101567885A (en) Voice call device as well as system and method thereof
CN106412812A (en) Bluetooth voice communication method, Bluetooth voice communication system and Bluetooth headset
CN210183353U (en) A data security transmission system based on data splitting
CN203537408U (en) End-to-end voice communication privacy device with assignable secret key
CN112242977A (en) Data transmission method and data transmission system
KR100572463B1 (en) Encrypted communication method in communication between wireless communication terminals using shared encryption key
US10299114B1 (en) External crypto modernization of legacy radios
KR20090024860A (en) Voice encryption communication module for mobile communication terminal
CN104796446A (en) Audio technology-based data transmission method, device and system
KR101107241B1 (en) Apparatus and method for providing secret communication
EP2077651B1 (en) Method and apparatus for encrypted authentication
EP2774400B1 (en) Communication equipment for secure communication
JP5130755B2 (en) Communication equipment
CN104952467A (en) Mobile terminal and audio file playing method thereof
CN105472603A (en) Communication terminal encryption system and encryption method thereof
CN1437349A (en) Enciphering and deciphering device for voice/data transmission

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
TA01 Transfer of patent application right

Effective date of registration: 20210806

Address after: 518000 201, No.26, yifenghua Innovation Industrial Park, Xinshi community, Dalang street, Longhua District, Shenzhen City, Guangdong Province

Applicant after: Shenzhen waterward Information Co.,Ltd.

Address before: 518000, block B, huayuancheng digital building, 1079 Nanhai Avenue, Shekou, Nanshan District, Shenzhen City, Guangdong Province

Applicant before: Shenzhen Waterward Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant