Ultra-long-distance audio transmission method based on Bluetooth
By converting audio formats, encoding and IP transmission in Bluetooth technology, and using dual-select encryption and data block matching methods, the transmission distance and sound quality problems of Bluetooth technology in ultra-long-distance audio transmission are solved, achieving efficient and secure audio transmission.
Patent Information
- Application Number
- CN202510242647.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-03
- Publication Date
- 2025-05-30
AI Technical Summary
The existing Bluetooth technology has limited transmission distance, affected sound quality and compatibility problems in ultra-long-distance audio transmission.
After converting the audio transmitted by Bluetooth in format, the data is encoded and then transmitted through IP, and the data is encrypted using the dual selection of thread numbering and encryption algorithm numbering, and randomly split and matched data blocks for transmission.
It realizes ultra-long-distance audio transmission and improves data security and transmission stability.
Smart Images

Figure CN120075774A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communications, and particularly to a method for ultra-long-distance audio transmission based on Bluetooth. Background Art
[0002] Bluetooth technology is a short-range wireless communication technology that enables wireless connection and data transmission between devices. Since the birth of Bluetooth technology in 1994, after multiple iterations and upgrades, it has developed into a mature and stable wireless communication technology. Among them, Bluetooth 5.0, as the latest generation of Bluetooth technology, has higher transmission rates, longer coverage ranges, and stronger connection stability, providing the possibility for ultra-long-distance audio transmission. Although Bluetooth technology has achieved remarkable achievements in the field of wireless communication, there are still some limitations in audio transmission, especially in ultra-long-distance transmission. First, the transmission distance of traditional Bluetooth technology is limited and difficult to meet the requirements of ultra-long-distance audio transmission. Second, the audio transmission quality is affected by various factors such as signal attenuation and interference, resulting in a decline in sound quality or transmission interruption. In addition, compatibility issues between different devices are also important factors restricting the development of Bluetooth audio transmission.
[0003] Therefore, the present invention proposes a method for ultra-long-distance audio transmission based on Bluetooth. Summary of the Invention
[0004] The purpose of the present invention is to solve the drawbacks existing in the prior art, and to propose a method for ultra-long-distance audio transmission based on Bluetooth.
[0005] In order to achieve the above purpose, the present invention adopts the following technical solutions:
[0006] A method for ultra-long-distance audio transmission based on Bluetooth includes the following steps:
[0007] S1: Data encapsulation, establish a Bluetooth connection, obtain Bluetooth transmission data, and encapsulate the Bluetooth transmission data;
[0008] S2: Format conversion, convert the encapsulated data into an IP network transmission format;
[0009] S3: Data encryption and transmission, encrypt the data after format conversion, and then transmit it through the IP network.
[0010] Preferably: In the S1 step, the encapsulation content includes the data source address, the data content, and the destination address.
[0011] Preferably: The S2 step includes the following steps:
[0012] S21: Data decoding. First, decode the received Bluetooth data to convert it into the original PCM data or other uncompressed audio formats;
[0013] S22: Data encoding. Segment the decoded data and add a TCP header to build a complete IP data packet;
[0014] S23: Transmission protocol selection. Select the TCP protocol as the transmission protocol.
[0015] Preferably, in step S3, it includes the following steps:
[0016] S31: Divide the entire communication path into p communication threads and number each thread as: 1, 2, …… p;
[0017] S32: Establish p encryption sets and number each encryption set as: 1, 2, …… p. Each encryption set contains k encryption algorithms, and the encryption algorithms within each set are numbered as: 1, 2, …… k;
[0018] S33: Data splitting. Randomly split the data into p data blocks;
[0019] S34: Thread matching. Randomly match the p split data blocks with the p communication threads;
[0020] S35: Data encryption and transmission. Perform double - selection encryption on the matched data blocks and then transmit them through the corresponding threads.
[0021] Preferably, in step S32, the encryption algorithms include symmetric encryption algorithms, asymmetric encryption algorithms, and hash encryption algorithms.
[0022] Preferably, in step S32, the arrangement of the encryption algorithms within each set is different.
[0023] Preferably, in step S35, the method of double - selection encryption includes the following steps:
[0024] S351: Encryption set selection. Select the encryption set with the same number as the thread number matched by the data block;
[0025] S352: Encryption algorithm selection. Obtain the data characteristics of the data block, normalize the data characteristics to the interval (0, k), then round the normalized data characteristics, and then select the data with the same number as the normalized and rounded data in the encryption set for encryption.
[0026] Preferably, in step S352, the data characteristics are any one of the memory size occupied by the data block, the total number of characters in the data block, and the number of 0 / 1 in the data block code.
[0027] Preferably, in the step S352, the normalization model is where x is the data feature before normalization, x' is the data feature after normalization, min(x) is the minimum value of all data features before normalization, and max(x) is the maximum value of all data features before normalization.
[0028] The beneficial effects of the present invention are as follows:
[0029] 1. By converting the format of the audio transmitted via Bluetooth and then encoding the data for IP transmission, the present invention can achieve ultra-long-distance audio transmission.
[0030] 2. For data encryption, the present invention adopts a dual selection of thread number and encryption algorithm number, and then uses data block division for transmission, so that the encryption algorithms of each different data block of each thread are different, thereby increasing data security. Brief Description of the Drawings
[0031] Figure 1 is a flowchart of a method for ultra-long-distance audio transmission based on Bluetooth proposed by the present invention. Detailed Embodiments
[0032] The technical solutions of the present invention will be further described in detail below in conjunction with the specific embodiments.
[0033] Embodiment 1:
[0034] A method for ultra-long-distance audio transmission based on Bluetooth, which includes the following steps:
[0035] S1: Data encapsulation, establish a Bluetooth connection, obtain Bluetooth transmission data, and encapsulate the Bluetooth transmission data;
[0036] S2: Format conversion, convert the encapsulated data into an IP network transmission format;
[0037] S3: Data encryption and transmission, encrypt the data after format conversion, and then transmit it via the IP network.
[0038] In the step S1, the encapsulation content includes the data source address, the data content, and the destination address.
[0039] Embodiment 2:
[0040] A method for ultra-long-distance audio transmission based on Bluetooth, which includes the following steps:
[0041] S1: Data encapsulation, establish a Bluetooth connection, obtain Bluetooth transmission data, and encapsulate the Bluetooth transmission data;
[0042] S2: Format conversion, converting the encapsulated data into an IP network transmission format;
[0043] S3: Data encryption and transmission, encrypting the data after format conversion and then transmitting it through the IP network.
[0044] In the S1 step, the encapsulated content includes the data source address, data content, and destination address.
[0045] The S2 step includes the following steps:
[0046] S21: Data decoding, first decoding the received Bluetooth data to make it into the original PCM data or other uncompressed audio formats;
[0047] S22: Data encoding, segmenting the decoded data and adding a TCP header to build a complete IP data packet;
[0048] S23: Transmission protocol selection, selecting the TCP protocol as the transmission protocol.
[0049] Embodiment 3:
[0050] A method for ultra-long-distance audio transmission based on Bluetooth, which includes the following steps:
[0051] S1: Data encapsulation, establishing a Bluetooth connection, obtaining Bluetooth transmission data, and encapsulating the Bluetooth transmission data;
[0052] S2: Format conversion, converting the encapsulated data into an IP network transmission format;
[0053] S3: Data encryption and transmission, encrypting the data after format conversion and then transmitting it through the IP network.
[0054] In the S1 step, the encapsulated content includes the data source address, data content, and destination address.
[0055] The S2 step includes the following steps:
[0056] S21: Data decoding, first decoding the received Bluetooth data to make it into the original PCM data or other uncompressed audio formats;
[0057] S22: Data encoding, segmenting the decoded data and adding a TCP header to build a complete IP data packet;
[0058] S23: Transmission protocol selection, selecting the TCP protocol as the transmission protocol.
[0059] In the S3 step, it includes the following steps:
[0060] S31: Divide the entire communication path into p communication threads, and number each thread as: 1, 2, …… p;
[0061] S32: Establish p encryption sets, and number each encryption set as: 1, 2, …… p. Each encryption set contains k encryption algorithms, and the encryption algorithms within each set are numbered as: 1, 2, …… k;
[0062] S33: Data splitting, randomly split the data into p data blocks;
[0063] S34: Thread matching, randomly match the p split data blocks with the p communication threads;
[0064] S35: Data encryption and transmission, perform double - selection encryption on the matched data blocks, and then transmit them through the corresponding threads.
[0065] Example 4:
[0066] A method for ultra - long - distance audio transmission based on Bluetooth, which includes the following steps:
[0067] S1: Data encapsulation, establish a Bluetooth connection, obtain Bluetooth transmission data, and encapsulate the Bluetooth transmission data;
[0068] S2: Format conversion, convert the encapsulated data into an IP network transmission format;
[0069] S3: Data encryption and transmission, encrypt the data after format conversion, and then transmit it through the IP network.
[0070] In the S1 step, the encapsulation content includes the data source address, data content, and destination address.
[0071] The S2 step includes the following steps:
[0072] S21: Data decoding, first decode the received Bluetooth data to make it into the original PCM data or other uncompressed audio formats;
[0073] S22: Data encoding, segment the decoded data and add a TCP header to construct a complete IP data packet;
[0074] S23: Transmission protocol selection, select the TCP protocol as the transmission protocol.
[0075] The S3 step includes the following steps:
[0076] S31: Divide the entire communication path into p communication threads, and number each thread as: 1, 2, …… p;
[0077] S32: Establish p encrypted sets, and number each encrypted set as: 1, 2, …… p. Each encrypted set contains k encryption algorithms, and the encryption algorithms within each set are numbered as: 1, 2, …… k;
[0078] S33: Data splitting, randomly split the data into p data blocks;
[0079] S34: Thread matching, randomly match the p split data blocks with p communication threads;
[0080] S35: Data encryption and transmission, perform double - selection encryption on the matched data blocks, and then transmit them through the corresponding threads.
[0081] In the step S32, the encryption algorithms include symmetric encryption algorithms, asymmetric encryption algorithms, and hash encryption algorithms.
[0082] Example 5:
[0083] A method for ultra - long - distance audio transmission based on Bluetooth, which includes the following steps:
[0084] S1: Data encapsulation, establish a Bluetooth connection, obtain Bluetooth transmission data, and encapsulate the Bluetooth transmission data;
[0085] S2: Format conversion, convert the encapsulated data into an IP network transmission format;
[0086] S3: Data encryption and transmission, encrypt the data after format conversion, and then transmit it through the IP network.
[0087] In the step S1, the encapsulation content includes the data source address, data content, and destination address.
[0088] The step S2 includes the following steps:
[0089] S21: Data decoding, first decode the received Bluetooth data to make it into the original PCM data or other uncompressed audio formats;
[0090] S22: Data encoding, segment the decoded data and add a TCP header to construct a complete IP data packet;
[0091] S23: Transmission protocol selection, select the TCP protocol as the transmission protocol.
[0092] The step S3 includes the following steps:
[0093] S31: Divide the entire communication path into p communication threads, and number each thread as: 1, 2, …… p;
[0094] S32: Establish p encrypted sets, and number each encrypted set as: 1, 2, …… p. Each encrypted set contains k encryption algorithms, and the encryption algorithms within each set are numbered as: 1, 2, …… k;
[0095] S33: Data splitting, randomly split the data into p data blocks;
[0096] S34: Thread matching, randomly match the p split data blocks with p communication threads;
[0097] S35: Data encryption and transmission, perform double - selection encryption on the matched data blocks, and then transmit them through the corresponding threads.
[0098] In the step S32, the encryption algorithms include symmetric encryption algorithms, asymmetric encryption algorithms, and hash encryption algorithms.
[0099] In the step S32, the arrangement of the encryption algorithms within each set is different.
[0100] Example 6:
[0101] A method for ultra - long - distance audio transmission based on Bluetooth, which includes the following steps:
[0102] S1: Data encapsulation, establish a Bluetooth connection, obtain Bluetooth transmission data, and encapsulate the Bluetooth transmission data;
[0103] S2: Format conversion, convert the encapsulated data into an IP network transmission format;
[0104] S3: Data encryption and transmission, encrypt the data after format conversion, and then transmit it through the IP network.
[0105] In the step S1, the encapsulation content includes the data source address, data content, and destination address.
[0106] The step S2 includes the following steps:
[0107] S21: Data decoding, first decode the received Bluetooth data to make it into the original PCM data or other uncompressed audio formats;
[0108] S22: Data encoding, segment the decoded data and add a TCP header to construct a complete IP data packet;
[0109] S23: Transmission protocol selection, select the TCP protocol as the transmission protocol.
[0110] The step S3 includes the following steps:
[0111] S31: Divide the entire communication path into p communication threads, and number each thread as: 1, 2, …… p;
[0112] S32: Establish p encryption sets, and number each encryption set as: 1, 2, …… p. Each encryption set contains k encryption algorithms, and the encryption algorithms within each set are numbered as: 1, 2, …… k;
[0113] S33: Data splitting, randomly split the data into p data blocks;
[0114] S34: Thread matching, randomly match the p split data blocks with the p communication threads;
[0115] S35: Data encryption and transmission, perform double - selection encryption on the matched data blocks, and then transmit them through the corresponding threads.
[0116] In the step S32, the encryption algorithms include symmetric encryption algorithms, asymmetric encryption algorithms, and hash encryption algorithms.
[0117] In the step S32, the arrangement methods of the encryption algorithms within each set are all different.
[0118] In the step S35, the method of double - selection encryption includes the following steps:
[0119] S351: Encryption set selection, select the encryption set with the same thread number as the data block - matching thread;
[0120] S352: Encryption algorithm selection, obtain the data characteristics of the data block, normalize the data characteristics to the interval (0, k), then round the normalized data characteristics, and then select the data with the same number as the normalized and rounded data in the encryption set for encryption.
[0121] Example 7:
[0122] A method for ultra - long - distance audio transmission based on Bluetooth, which includes the following steps:
[0123] S1: Data encapsulation, establish a Bluetooth connection, obtain Bluetooth transmission data, and encapsulate the Bluetooth transmission data;
[0124] S2: Format conversion, convert the encapsulated data into an IP network transmission format;
[0125] S3: Data encryption and transmission, encrypt the data after format conversion, and then transmit it through the IP network.
[0126] In the step S1, the encapsulation content includes the data source address, data content, and destination address.
[0127] The step S2 includes the following steps:
[0128] S21: Data decoding. First, decode the received Bluetooth data to convert it into original PCM data or other uncompressed audio formats.
[0129] S22: Data encoding. Segment the decoded data and add a TCP header to construct a complete IP data packet.
[0130] S23: Transmission protocol selection. Select the TCP protocol as the transmission protocol.
[0131] The step S3 includes the following steps:
[0132] S31: Divide the entire communication path into p communication threads and number each thread as: 1, 2, …… p;
[0133] S32: Establish p encryption sets and number each encryption set as: 1, 2, …… p. Each encryption set contains k encryption algorithms, and the encryption algorithms within each set are numbered as: 1, 2, …… k;
[0134] S33: Data splitting. Randomly split the data into p data blocks;
[0135] S34: Thread matching. Randomly match the p split data blocks with the p communication threads;
[0136] S35: Data encryption and transmission. Double-selectively encrypt the matched data blocks and then transmit them through the corresponding threads.
[0137] In the step S32, the encryption algorithms include symmetric encryption algorithms, asymmetric encryption algorithms, and hash encryption algorithms.
[0138] In the step S32, the arrangement of the encryption algorithms within each set is different.
[0139] In the step S35, the method of double-selective encryption includes the following steps:
[0140] S351: Encryption set selection. Select the encryption set with the same number as the thread number matched by the data block;
[0141] S352: Encryption algorithm selection. Obtain the data characteristics of the data block, normalize the data characteristics to the interval (0, k), then round the normalized data characteristics, and then select the data with the same number as the normalized and rounded data in the encryption set for encryption.
[0142] In the step S352, the data feature is any one of the memory size occupied by the data block, the total number of characters in the data block, and the number of 0 / 1 in the data block code.
[0143] Embodiment 8:
[0144] A method for ultra-long-distance audio transmission based on Bluetooth, which includes the following steps:
[0145] S1: Data encapsulation, establish a Bluetooth connection, obtain Bluetooth transmission data, and encapsulate the Bluetooth transmission data;
[0146] S2: Format conversion, convert the encapsulated data into an IP network transmission format;
[0147] S3: Data encryption and transmission, encrypt the data after format conversion, and then transmit it through the IP network.
[0148] In the step S1, the encapsulation content includes the data source address, the data content, and the destination address.
[0149] The step S2 includes the following steps:
[0150] S21: Data decoding, first decode the received Bluetooth data to make it into the original PCM data or other uncompressed audio formats;
[0151] S22: Data encoding, segment the decoded data and add a TCP header to build a complete IP data packet;
[0152] S23: Transmission protocol selection, select the TCP protocol as the transmission protocol.
[0153] The step S3 includes the following steps:
[0154] S31: Divide the entire communication path into p communication threads, and number each thread as: 1, 2,... p;
[0155] S32: Establish p encryption sets, and number each encryption set as: 1, 2,... p. Each encryption set contains k encryption algorithms, and the encryption algorithms in each set are numbered as: 1, 2,... k;
[0156] S33: Data splitting, randomly split the data into p data blocks;
[0157] S34: Thread matching, randomly match the p split data blocks with the p communication threads;
[0158] S35: Data encryption and transmission, perform double-selection encryption on the matched data blocks, and then transmit them through the corresponding threads.
[0159] In the step S32, the encryption algorithms include symmetric encryption algorithms, asymmetric encryption algorithms, and hash encryption algorithms.
[0160] In the step S32, the arrangement modes of the encryption algorithms within each set are all different.
[0161] In the step S35, the method of dual-selection encryption includes the following steps:
[0162] S351: Encryption set selection, selecting the encryption set with the same thread number as that matching the data block;
[0163] S352: Encryption algorithm selection, obtaining the data characteristics of the data block, normalizing the data characteristics to the interval (0, k), then taking the integer of the normalized data characteristics, and then selecting the data with the same number as the normalized and integerized data in the encryption set for encryption.
[0164] In the step S352, the data characteristics are any one of the memory size occupied by the data block, the total number of characters in the data block, and the number of 0 / 1 in the data block code.
[0165] In the step S352, the normalization model is where x is the data characteristic before normalization, x' is the data characteristic after normalization, min(x) is the minimum value of all data characteristics before normalization, and max(x) is the maximum value of all data characteristics before normalization.
[0166] In the present invention, by converting the format of the audio transmitted via Bluetooth, encoding the data and then performing IP transmission, ultra-long-distance audio transmission can be realized.
[0167] In the present invention, for data encryption, dual selection of the thread number and the encryption algorithm number is adopted, and data is transmitted in blocks, so that the encryption algorithms of each different data block of each thread are all different, thereby enhancing data security.
[0168] The above is only a preferred specific embodiment 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, according to the technical solution and inventive concept of the present invention, making equivalent replacements or changes, shall be covered by the protection scope of the present invention.
Claims
1. A method for ultra-long-distance audio transmission based on Bluetooth, characterized in that: The following steps are involved: S1: Data encapsulation, establishing a Bluetooth connection, obtaining Bluetooth transmission data, and encapsulating the Bluetooth transmission data; S2: Format conversion: converting the encapsulated data into an IP network transmission format; S3: Data encryption and transmission: encrypt the converted data and then transmit it through the IP network.
2. The method for ultra-long-distance audio transmission based on Bluetooth according to claim 1, characterized in that: In the step S1, the encapsulation content includes a data source address, data content and a destination address.
3. The method for ultra-long-distance audio transmission based on Bluetooth according to claim 1, characterized in that: The step S2 comprises the following steps: S21: Data decoding, firstly decoding the received Bluetooth data to convert it into original PCM data or other uncompressed audio format; S22: Data encoding, segmenting the decoded data and adding a TCP header to build a complete IP data packet; S23: Select the transport protocol, select TCP as the transport protocol.
4. The method for ultra-long-distance audio transmission based on Bluetooth according to claim 1, characterized in that: The step S3 includes the following steps: S31: Divide the entire communication path into p communication threads, and number each thread as: 1, 2, ..., p; S32: Establish p encryption sets, and number each encryption set as 1, 2, ..., p. Each encryption set contains k encryption algorithms, and the encryption algorithms in each set are numbered as 1, 2, ..., k. S33: data splitting, randomly splitting the data into p data blocks; S34: thread matching, randomly matching the p split data blocks with p communication threads; S35: Data encryption and transmission, the matched data blocks are double-selectively encrypted and then transmitted through the corresponding thread.
5. The method for ultra-long-distance audio transmission based on Bluetooth according to claim 4, characterized in that: In the step S32, the encryption algorithm includes a symmetric encryption algorithm, an asymmetric encryption algorithm, and a hash encryption algorithm.
6. The method for ultra-long distance audio transmission based on Bluetooth according to claim 5, characterized in that: In the step S32, the encryption algorithms in each set are arranged differently.
7. The method for ultra-long distance audio transmission based on Bluetooth according to claim 4, characterized in that: In the step S35, the method of double selection encryption includes the following steps: S351: Encryption set selection, selecting an encryption set with the same number as the data block matching thread; S352: Encryption algorithm selection, obtaining data features of the data block, and normalizing the data features to the interval (0, k), then rounding the normalized data features, and then selecting the data in the encryption set with the same number as the normalized and rounded data for encryption.
8. The method for ultra-long distance audio transmission based on Bluetooth according to claim 7, characterized in that: In the step S352, the data feature is any one of the memory size occupied by the data block, the total number of characters in the data block, and the number of 0 / 1 in the data block code.
9. The method for ultra-long-distance audio transmission based on Bluetooth according to claim 8, characterized in that: In the step S352, the normalized model is Where x is the data feature before normalization, x′ is the data feature after normalization, min(x) is the minimum value of all data features before normalization, and max(x) is the maximum value of all data features before normalization.