Broadcast key generation method, broadcast key generation system and Bluetooth broadcast equipment

By generating a unique authentication key for the transmitting device to encrypt Bluetooth broadcast data, the risk of counterfeiting in unencrypted Bluetooth broadcasts is resolved, communication security is improved, and the operation process is simplified.

CN120676348AActive Publication Date: 2025-09-19SHENZHEN FENGHEYUAN TECH
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202511140569.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-15
Publication Date
2025-09-19
Estimated Expiration
2045-08-15

AI Technical Summary

Technical Problem

Bluetooth broadcasting without encryption poses a risk of counterfeiting. The lack of an effective encryption mechanism reduces the security of the connection between the transmitting module and the receiving module. The authentication password of a traditional wireless transmitter is easy to crack and is complicated to operate.

Method used

By constructing the unique broadcast name information and digital code of the transmitting device, an unpredictable authentication key is generated using a preset algorithm to encrypt the broadcast data to ensure communication security.

Benefits of technology

The communication security between the transmitting module and the receiving module is improved, the risk of password leakage is avoided, the operation process is simplified, and the invisibility of the device is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120676348A_ABST
    Figure CN120676348A_ABST
Patent Text Reader

Abstract

The invention discloses a broadcast key generation method, a broadcast key generation system and Bluetooth broadcast equipment, and relates to the technical field of wireless communication, and the method comprises the steps: constructing broadcast name information; generating a unique digital code of the transmitting equipment; and calculating the broadcast name information and the digital code through a preset algorithm to obtain an authentication key for encrypting the to-be-encrypted broadcast data. Therefore, the unique and unpredictable authentication key of the transmitting equipment is generated, and the password is automatically generated and has invisibility, so that the to-be-encrypted broadcast data is encrypted, and the security of communication between the transmitting module and the receiving module is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of wireless communications, and more specifically, to a broadcast key generation method, a broadcast key generation system, and a Bluetooth broadcast device. Background Art

[0002] In the case of unencrypted Bluetooth broadcasting, there is a risk of counterfeiting due to the lack of an effective encryption mechanism, which reduces the security of the connection between the transmitting module and the receiving module. A wireless transmitter is usually used to implement Bluetooth broadcast encryption. The wireless transmitter itself has an authentication password, which is factory preset or user-defined. The factory preset is generally the default setting, which is marked on the product or in the instruction manual. Some products can also be customized or modified according to user selection. The authentication password is relatively fixed and single, and is visible and easy to crack, which lacks security. Summary of the Invention

[0003] In view of the above problems, the present application proposes a broadcast key generation method, a broadcast key generation system and a Bluetooth broadcast device to solve the above problems.

[0004] In the first aspect, an embodiment of the present application provides a broadcast key generation method, which is applied to a transmitting device. The method includes: constructing broadcast name information; generating a unique digital code for the transmitting device; calculating the broadcast name information and the digital code through a preset algorithm to obtain an authentication key for encrypting the encrypted broadcast data.

[0005] Optionally, constructing the broadcast name information specifically includes: obtaining the device name, device model and any four digits of the Bluetooth address of the transmitting device; determining the broadcast name information based on a character string formed by splicing any four digits of the device name, device model and Bluetooth address, wherein the Bluetooth address and the device name or device model are separated by an underscore character.

[0006] Optionally, if the character length of the generated string is an odd number, a space character is added to the last position of the string to make the character length of the string an even number.

[0007] Optionally, the Bluetooth address is the last four hexadecimal characters of the MAC address of the transmitting device.

[0008] Optionally, all characters are encoded in ASCII.

[0009] Optionally, the number is encoded as a 4-byte integer and represented as a 6-digit string, where the value range of the string is 000001~999999.

[0010] Optionally, the method includes: concatenating the broadcast name information character string and the digitally encoded 6-digit character string to generate an input character string; calculating the MD5 digest based on the input character string using a preset MD5 algorithm, converting the MD5 digest into a 32-digit hexadecimal character string, and intercepting any continuous 6-digit character string as an authentication key.

[0011] Optionally, the digital code is updated periodically.

[0012] In the second aspect, an embodiment of the present application provides a broadcast key generation system, which includes: a construction module for constructing broadcast name information; a generation module for generating a unique digital code for the transmitting device; and an execution module for calculating the broadcast name information and the digital code through a preset algorithm to obtain an authentication key for encrypting the encrypted broadcast data.

[0013] In a third aspect, an embodiment of the present application provides a Bluetooth broadcast device, comprising a processor, a memory, and one or more applications; the one or more applications are stored in the memory and configured to be executed by the processor to implement the above-mentioned broadcast key generation method.

[0014] The technical solution provided by this application includes: constructing broadcast name information; generating a digital code unique to the transmitting device; and calculating the broadcast name information and the digital code using a preset algorithm to obtain an authentication key for encrypting the encrypted broadcast data. By generating a unique and unpredictable authentication key for the transmitting device, a password is automatically generated and invisible to encrypt the encrypted broadcast data, thereby improving the security of communication between the transmitting module and the receiving module. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the technical solutions in the embodiments of this application, the following is a brief introduction to the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments and drawings obtained by ordinary technicians in this field without creative work are within the scope of protection of this invention.

[0016] Figure 1 A flow chart of a broadcast key generation method provided in an embodiment of the present application is shown.

[0017] Figure 2 A digital code generation flow chart of a broadcast key generation system provided in an embodiment of the present application is shown.

[0018] Figure 3 A structural diagram of a broadcast key generation system provided in an embodiment of the present application is shown.

[0019] Figure 4 A schematic diagram of the structure of a Bluetooth broadcast device provided in an embodiment of the present application.

[0020] Figure 5 A schematic structural diagram of a computer-readable storage medium provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0021] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0022] Bluetooth broadcasting has two modes: encrypted and unencrypted. In the case of unencrypted broadcasting, the receiving device usually directly identifies it based on the identity characteristics corresponding to the broadcast. There is a lack of effective encryption mechanism, there is a risk of counterfeiting, and the security of the connection between the transmitting device and the receiving device is reduced. Separate encryption can be performed on the broadcast source device such as a speaker or a computer external wireless transmitter (Dongle). The wireless transmitter itself has an authentication password, which is factory preset or user-defined. The factory preset is generally the default setting, which is marked on the product or in the manual. Some products can also be customized or modified according to user selection.

[0023] Usually, a wireless transmitter can not only encrypt its broadcast information separately, but also has the ability to transmit the audio information of the connected speakers or computers through Bluetooth broadcast. When mobile devices such as speakers or computers do not have Bluetooth broadcast function, they also need to be configured with a wireless transmitter. At this time, the wireless transmitter acts as a transmitting device and only transmits broadcast signals to the outside world. The receiving device outside can scan the Bluetooth broadcast signal. After the receiving device enters the password, it can be paired with it to complete the broadcast network and transmit the broadcast signal. Since the wireless transmitter itself has no input interface and the receiving device requires password verification, the traditional wireless transmitter needs to rely on a medium for transmitting password pairing, such as a mobile phone app. After the mobile phone is connected to the receiving device by Bluetooth, it will be displayed in the app. After selecting the receiving device and entering the password, the device connected to the mobile phone can receive the broadcast of the transmitting device. This method requires the collaboration of multiple devices and is complicated to operate. In addition, the visibility of the password and the reliance on the app to transmit the password pose the risk of password leakage.

[0024] In order to improve the above problems, the present application provides a broadcast key generation method, a broadcast key generation system and a Bluetooth broadcast device, which are applied to a transmitting device. The method includes: constructing broadcast name information; generating a unique digital code for the transmitting device; calculating the broadcast name information and the digital code through a preset algorithm to obtain an authentication key for encrypting the encrypted broadcast data.

[0025] Thus, by generating a unique and unpredictable authentication key for the transmitting device to encrypt the broadcast data to be encrypted, the password is automatically generated and invisible, thereby improving the security of communication between the transmitting device and the receiving device.

[0026] See also Figure 1 , Figure 1 FIG. 1 shows a flow chart of a broadcast key generation method provided by an embodiment of the present application. Figure 1 As shown, the method may include steps 110 to 130 and may be applied to a transmitting device. Specifically: In step 110, broadcast name information is constructed.

[0027] In some implementations, a broadcast source device is connected to an external wireless transmitter (dongle) and transmits broadcasts through the wireless transmitter, which serves as the transmitting device. The broadcast source device can be a laptop, desktop computer, mobile phone, headset, or electronic game console. For example, the electronic game console can be a PS4 or PS5. The broadcast name information is the broadcast name information of the transmitting device (i.e., the wireless transmitter).

[0028] By constructing the broadcast name information of the transmitting device, it is possible to facilitate the subsequent steps of constructing a unique and unpredictable authentication key for the transmitting device based on the broadcast name information. Specifically, in some embodiments, the step of "constructing the broadcast name information" may include the following steps: (1) Get the device name, device model, and any four digits of the Bluetooth address of the transmitting device.

[0029] (2) Determine the broadcast name information based on a string consisting of any four digits of the device name, device model, and Bluetooth address, where the Bluetooth address and the device name or device model are separated by an underscore character.

[0030] In some embodiments, the device name may be a prefix of the transmitting device. The prefix can be customized and is generally the brand name of the transmitting device. For example, the prefix of the brand of the wireless transmitter may be "BRD," "AUD," or "DEV," etc.

[0031] In some embodiments, the device model may be a model of a transmitting device, for example, "Speaker 1," "Mic," or "Device," etc.

[0032] In some embodiments, the Bluetooth address is any four hexadecimal characters of the MAC address of the transmitting device. The Bluetooth address of the transmitting device is typically a 6-byte MAC address, and the format of the Bluetooth address of the transmitting device can be expressed as: "XX:XX:XX:XX:XX:XX." For example, if the Bluetooth address is "11:22:33:44:55:66," then any four characters of the Bluetooth address can be "1122," "2233," "3344," "4455," or "5566." In other words, any four characters of the Bluetooth address are the four characters in the Bluetooth address, excluding the colon.

[0033] In one specific embodiment, the Bluetooth address can be the last four hexadecimal characters of the transmitting device's MAC address. For example, if the Bluetooth address is "11:22:33:44:55:66," the last four characters of the Bluetooth address are "5566." The last four characters are used to facilitate subsequent calculations and unified generation rules.

[0034] The transmitting device concatenates the device name, model, and the last four digits of the Bluetooth address to create a specific broadcast name. The Bluetooth address and device name or model are separated by an underscore character. The underscore character specifies the order of concatenation, making it more difficult to construct a disguised device and improving security.

[0035] That is, the broadcast name information is "device name" + "device model" + "_" + "the last four digits of the Bluetooth address". Alternatively, the broadcast name information is "device model" + "device name" + "_" + "the last four digits of the Bluetooth address". For example: "broadcast name information" = "device name" + "device model" + "_" + "the last four digits of the Bluetooth address".

[0036] It is worth noting that the length of the string corresponding to the broadcast name information, which is formed by concatenating any four digits of the corresponding device name, device model, and Bluetooth address of the transmitting device, may be an odd number. Since the length of the corresponding broadcast name information is odd, it is not convenient for subsequent calculation or processing, while the length of the corresponding broadcast name information is even. For example, in embedded systems or Bluetooth protocols, data is processed in bytes. Even lengths can simplify memory access, checksum calculations (e.g., CRC), or data transmission alignment with the 32-byte limit of Bluetooth broadcast packets (avoiding alignment issues). Therefore, in some embodiments, the broadcast key generation method may also include: if the character length of the generated string is odd, padding the last digit of the string with a space character to make the character length of the string even.

[0037] By padding the last digit of the broadcast name information string with a space character, not only can the length of the broadcast name information string be adjusted to an even number, but the impact on the readability of the broadcast name information can also be minimized.

[0038] It is understandable that if the length of the string corresponding to the broadcast name information constructed by the transmitting device is an even number, then there is no need to pad the length of the broadcast name information with space characters. In other words, the final broadcast name information constructed by the transmitting device is a string with an even length.

[0039] In some embodiments, all characters are encoded in ASCII. That is, all characters included in the broadcast name information are encoded in ASCII. Encoding all characters in ASCII ensures that the broadcast name information remains consistent across devices, aligns with the 32-byte limit of Bluetooth advertising packets, unifies broadcast data, and reduces broadcast latency.

[0040] For example, assume the transmitting device's device name is "BRD," its device model is "Speaker1," and its Bluetooth address is "00:1A:7D:DA:71:13." The arbitrary four digits of the Bluetooth address are assumed to be the last four digits (7113). The transmitting device constructs the broadcast name information string as follows: "BRD" + "Speaker1" + "_" + "7113" = "BRDSpeaker1_7113." Because its length is 17 characters, it is necessary to append a space character to the end to ensure an even number of spaces. That is, the transmitting device constructs the broadcast name information string as follows: "BRDSpeaker1_7113" (with a space at the end, for a total of 18 characters). This is the final broadcast name information constructed by the transmitting device.

[0041] For example, assuming the transmitter's device name is "BRD," its device model is "Mic," and any four digits of the Bluetooth address are the last four digits (1234), the transmitter constructs the broadcast name string as follows: "BRD" + "Mic" + "_" + "1234" = "BRDMic_1234." Since the string is 14 characters long, there's no need to append a space character to an even number of characters. The final broadcast name constructed by the transmitter is "BRDMic_1234."

[0042] The transmitting device constructs a broadcast name information with an even length and ASCII encoding using any four bits of the device name, device model, and Bluetooth address to ensure that the broadcast names of different devices are unique. In subsequent steps, a unique and unpredictable authentication key for the transmitting device is generated based on the constructed broadcast name information.

[0043] Further: in step 120, a unique digital code of the transmitting device is generated.

[0044] In some embodiments, the digital code may be a unique broadcast ID of the transmitting device, which is a unique identifier customized by the transmitting device manufacturer. When the transmitting device is first started, an initial code is generated based on the hardware unique ID (such as a chip serial number).

[0045] In some embodiments, the digital code is a 4-byte integer, which is represented by a 6-digit string, wherein the value range of the string is 000001 to 999999. For example, the string corresponding to the digital code is "999999". Figure 2 As shown, when the device is first started, the digital code generates a 4-byte initial value through a hash operation based on the hardware unique identifier (such as the chip serial number) and converts it into a 6-digit string. This allows different devices to have different hardware IDs without duplication, and only 32 bits of memory are occupied when stored as a 4-byte integer. The 6-bit string transmission can adapt to the 6-8 byte payload limit of the BLE Bluetooth broadcast packet, saving storage space resources.

[0046] It is worth noting that if the string corresponding to the digital code is less than 6 digits, you can add 0 in front of the string to make it 6 digits. For example, if the string corresponding to the digital code is "123", you can add 0 in front of the string to get the string corresponding to the digital code as "000123". For example, if the string corresponding to the digital code is "1", you can add 0 in front of the string to get the string corresponding to the digital code as "000001".

[0047] In some implementations, the digital code is updated periodically, such as every 24 hours. This increases the unpredictability of authentication keys generated in subsequent steps, thereby enhancing the security of encrypted broadcast data. Updates can be made based on a random number from the hardware device to enhance dynamic security. This includes incorporating the current random value of the hardware device (e.g., the device's current temperature, as captured by a temperature sensor) to generate a random number based on the temperature. Even with a known algorithm, the next code cannot be predicted. The updated digital code is then generated using the algorithm for updating the code (current code + random number), ensuring that the code range is 000001 to 999999.

[0048] Furthermore, in step 130, the broadcast name information and the digital code are calculated using a preset algorithm to obtain an authentication key for encrypting the broadcast data to be encrypted.

[0049] In some implementations, the preset algorithm may be a preset MD5 algorithm. It is understandable that the preset algorithm may also be other encryption algorithms, and this application does not impose any specific limitation on this.

[0050] This application uses a pre-defined MD5 algorithm to generate authentication keys, which irreversibly protects device information. Even if the authentication key is obtained, the device name or digital code cannot be deduced. Furthermore, MD5 calculations require only 512 bytes of RAM, making them fast and time-efficient, better meeting the real-time requirements of Bluetooth broadcasts.

[0051] Specifically, in some implementations, the broadcast key generation method may further include the following steps: (1) Concatenate the broadcast name information string and the digitally encoded 6-digit string to generate the input string.

[0052] (2) Calculate the MD5 digest based on the input string using the preset MD5 algorithm, convert the MD5 digest into a 32-bit hexadecimal string, and intercept any continuous 6-bit string as the authentication key.

[0053] As can be seen from the above description, if the character string corresponding to the digital code is less than 6 bits, it needs to be converted into a 6-bit character string first, and then the character string of the broadcast name information and the 6-bit character string of the digital code are spliced.

[0054] The transmitting device concatenates the broadcast name information string and the digitally encoded 6-digit string to obtain the input string. The transmitting device then calculates the MD5 digest of the entire concatenated string (i.e., the input string), converts the MD5 digest result into a 32-character hexadecimal string (usually lowercase, but the last character must be uppercase), and then takes any 6 hexadecimal characters (uppercase) of the MD5 digest result as the authentication key.

[0055] For example, the string format of the broadcast name information of the Bluetooth device is "BRDSpeaker_7113" (with a space at the end, a total of 16 characters); the string format of the digital code of the Bluetooth device is "000123"; then the input string is: "BRDSpeaker_7113" + "000123" = "BRDSpeaker_7113 000123". Directly concatenating the head and tail can reduce the length of the broadcast packet. The concatenated input string is then converted into a byte sequence, which can be expressed as: "B:66, R:82, D:68, S:83, p:112, e:101, a:97, k:107, e:101, r:114, _:95, 7:55, 1:49, 1:49, 3:51, space:32,0:48, 0:48, 0:48, 1:49, 2:50, 3:51", then calculate the MD5 of these bytes using the preset MD5 algorithm. Assume that the calculated MD5 hexadecimal string (32 characters) is: "1a2b3c4d5e6f78901234567890abcdef", and select any six characters (uppercase) as the authentication key. For example, the authentication key can be "1A2B3C", "4D5E6F", "789012", "345678", or "90ABCD".

[0056] In a specific embodiment, the transmitting device calculates an MD5 digest based on the input character string using a preset MD5 algorithm, converts the MD5 digest into a 32-digit hexadecimal character string, extracts the first 6 hexadecimal characters in the MD5 digest and converts them into uppercase as the authentication key.

[0057] For example, the input string is: input string = "BRDSpeaker_7113 000123". The concatenated input string is then converted into a byte sequence, which can be represented as: "B:66, R:82, D:68, S:83, p:112, e:101, a:97, k:107, e:101, r:114, _:95, 7:55, 1:49, 1:49, 3:51, space:32, 0:48, 0:48, 0:48, 1:49, 2:50, 3:51." The MD5 of these bytes is then calculated using the preset MD5 algorithm. Assume that the calculated MD5 hexadecimal string (32 characters) is: "1a2b3c4d5e6f78901234567890abcdef." The first six characters (in uppercase) are used as the authentication key. For example, the authentication key is "1A2B3C." The unified uppercase hexadecimal format eliminates platform compatibility issues, and the fixed interception position (the first 6 digits) ensures that the receiving end does not need additional signaling to synchronize the key position, reducing protocol complexity.

[0058] After obtaining the authentication key "1A2B3C," the authentication key is used to encrypt broadcast data packets sent by the transmitting device, rendering the broadcast private. Subsequent receiving devices must obtain the authentication key to decrypt the broadcast data packets. In some embodiments, after the digital code is periodically updated, for example, when the digital code "000123" is updated to "000124," the authentication key generated for the same broadcast name changes from "1A2B3C" to "8E9F0A." This key is also updated promptly before the broadcast is retransmitted, using the new authentication key for encryption.

[0059] It can be seen from this that the transmitting device forms the broadcast name information of the transmitting device through the device name, device model and Bluetooth address; the transmitting device then generates a unique and unpredictable authentication key for the transmitting device based on the broadcast name information, digital code and preset algorithm, and encrypts the encrypted data according to the authentication key to obtain encrypted broadcast information, and then forms a broadcast data packet including the broadcast name information, digital code and encrypted broadcast information, and broadcasts the broadcast data packet for the receiving device to scan the broadcast data packet to perform corresponding operations.

[0060] Not only that, the receiving device generates an authentication key through the same logic. When the receiving device scans the broadcast of the transmitting device from the outside world, the broadcast data includes a plaintext part and a ciphertext part. The ciphertext is the data encrypted by the authentication key. The plaintext part can be directly scanned, obtained and parsed by the outside world, such as the name of the transmitting device, the device model of the transmitting device, the Bluetooth address of the transmitting device, the digital code of the transmitting device, etc. The plaintext part is extracted from the broadcast data packet and can be used as a decryption condition parameter. The receiving device is matched with the receiving device and has the same logical algorithm as the transmitting device.

[0061] The receiving device directly obtains the name, model, and last four digits of the Bluetooth address of the transmitting device from the advertising data packet. Based on the logical algorithm, it constructs the broadcast name information, such as the broadcast name "BRDSpeaker_7113". The digital code of the transmitting device is then parsed from the advertising data packet to obtain a six-digit string "000123". The input string "BRDSpeaker_7113 000123" is then concatenated. The MD5 is calculated and the first six hexadecimal digits are taken: "1A2B3C". The key is used to decrypt the ciphertext of the advertising data packet. If the verification is successful, the legitimacy of the device is authenticated and the connection is successful.

[0062] So far, it can be seen that the receiving device scans the broadcast data packet and can obtain the broadcast name information of the transmitting device, including the device name, device model and Bluetooth address, from the broadcast plaintext, as well as the digital code as the decryption authentication key data. The decryption authentication key is generated through a preset algorithm, the ciphertext in the broadcast data packet is decrypted, and a matching connection is performed. The decryption and connection operation can be completed without manually entering the authentication key, which is safe and convenient.

[0063] See also Figure 3 , Figure 3 The structure diagram of a broadcast key generation system provided by an embodiment of the present application is shown. The broadcast key generation system 200 includes: a construction module 210, a generation module 220 and an execution module 230. Specifically: The construction module 210 is used to construct broadcast name information.

[0064] The generating module 220 is configured to generate a unique digital code for the transmitting device.

[0065] The execution module 230 is configured to calculate the broadcast name information and the digital code through a preset algorithm to obtain an authentication key for encrypting the broadcast data to be encrypted.

[0066] In some implementations, the construction module 210 may further include an acquisition unit and an execution unit, wherein: An acquisition unit, used to acquire the device name, device model, and any four digits of the Bluetooth address of the transmitting device; The execution unit is used to determine the broadcast name information according to a string formed by splicing any four digits of the device name, device model and Bluetooth address, wherein the Bluetooth address and the device name or device model are separated by an underscore character.

[0067] In some implementations, the construction module 210 may further include a padding unit configured to pad the last digit of the generated string with a space character if the character length of the generated string is an odd number, so as to make the character length of the string an even number.

[0068] In some implementations, the Bluetooth address in the execution unit is the last four hexadecimal characters of the MAC address of the transmitting device.

[0069] In some implementations, all characters in the execution unit are encoded using ASCII.

[0070] In some implementations, the digital code in the generation module 220 is a 4-byte integer, which is represented as a 6-digit string, where the value range of the string is 000001-999999.

[0071] In some implementations, the digital code in the generation module 220 is updated periodically.

[0072] In some embodiments, the execution module 230 further includes a splicing unit and a determining unit, wherein: The concatenation unit is used to concatenate the character string of the broadcast name information and the 6-digit character string of the digital code to generate an input character string.

[0073] The determination unit is used to calculate the MD5 digest according to the input character string through the preset MD5 algorithm, convert the MD5 digest into a 32-digit hexadecimal character string, and intercept the first 6 consecutive characters of the character string as the authentication key.

[0074] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0075] In several embodiments provided in this application, the coupling or direct coupling or communication connection between the modules shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.

[0076] In addition, the functional modules in the various embodiments of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into a single module. The above-mentioned integrated modules may be implemented in the form of hardware or software functional modules.

[0077] See also Figure 4 , Figure 4 This is a schematic diagram of the structure of a Bluetooth broadcast device provided in an embodiment of the present application. The Bluetooth broadcast device 300 in this application may include one or more of the following components: a processor 310, a memory 320, and one or more application programs. The one or more application programs may be stored in the memory 320 and configured to be executed by the one or more processors 310. The one or more programs are configured to execute the broadcast key generation method described in the aforementioned method embodiment. The Bluetooth broadcast device also includes an encryption system for encrypting broadcast data based on the generated authentication key.

[0078] The processor 310 may include one or more processing cores. Using various interfaces and circuits, the processor 310 connects various components within the Bluetooth broadcast device 300. By running or executing instructions, programs, code sets, or instruction sets stored in the memory 320, and accessing data stored in the memory 320, the processor 310 performs various functions and processes data within the Bluetooth broadcast device 300. Optionally, the processor 310 may be implemented in hardware using at least one of a digital signal processing (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The processor 310 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. The CPU primarily handles the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem handles wireless communications. It is understood that the modem may also be implemented independently of the processor 310 via a separate communications chip.

[0079] The memory 320 may include random access memory (RAM) or read-only memory (ROM). The memory 320 may be used to store instructions, programs, code, code sets, or instruction sets. The memory 320 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function, and instructions for implementing the various method embodiments described below. The data storage area may also store data generated by the Bluetooth broadcast device 300 during use.

[0080] See also Figure 5 , Figure 5 A schematic diagram of the structure of a computer-readable storage medium provided in an embodiment of the present application is shown. The computer-readable storage medium 400 stores program code, which can be called by a processor to execute the broadcast key generation method described in the above method embodiment.

[0081] Computer-readable storage medium 400 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read-Only Memory), EPROM, a hard disk, or ROM. Alternatively, computer-readable storage medium 400 may include non-transitory computer-readable storage medium. Computer-readable storage medium 400 has storage space for program code 410 for executing any of the method steps described above. This program code can be read from or written to one or more computer program devices. Program code 410 may be compressed, for example, in a suitable format.

[0082] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for generating a broadcast key, characterized in that: Applied to a transmitting device, the method includes: Construct broadcast name information; Generate a unique digital code for the transmitting device; The broadcast name information and the digital code are calculated using a preset algorithm to obtain an authentication key used for encrypting the broadcast data to be encrypted.

2. The broadcast key generation method according to claim 1, wherein: The constructing broadcast name information specifically includes: Obtain the device name, device model, and any four digits of the Bluetooth address of the transmitting device; The broadcast name information is determined according to a string formed by splicing any four digits of the device name, the device model, and the Bluetooth address, wherein the Bluetooth address and the device name or the device model are separated by an underscore character.

3. The broadcast key generation method according to claim 2, wherein: If the character length of the generated character string is an odd number, a space character is padded at the end of the character string to make the character length of the character string an even number.

4. The method for generating a broadcast key according to claim 2, wherein: The Bluetooth address is the last four hexadecimal characters of the MAC address of the transmitting device.

5. The broadcast key generation method according to claim 2, wherein: All characters are encoded in ASCII.

6. The broadcast key generation method according to any one of claims 2 to 5, characterized in that: The digital code is a 4-byte integer and is represented in the form of a 6-digit string, where the value range of the string is 000001~999999.

7. The method for generating a broadcast key according to claim 6, wherein: The method comprises: Concatenate the broadcast name information character string and the digitally encoded 6-digit character string to generate an input character string; The MD5 digest is calculated according to the input character string using a preset MD5 algorithm, the MD5 digest is converted into a 32-digit hexadecimal character string, and any continuous 6-digit character string is intercepted as the authentication key.

8. The method for generating a broadcast key according to claim 6, wherein: The digital code is updated periodically.

9. A broadcast key generation system, characterized in that: include: A construction module, used for constructing broadcast name information; A generation module, used to generate a unique digital code for the transmitting device; The execution module is used to calculate the broadcast name information and the digital code through a preset algorithm to obtain an authentication key used for encrypting the encrypted broadcast data.

10. A Bluetooth broadcasting device, characterized in that: include: one or more processors; Memory; One or more applications, wherein the one or more applications are stored in the memory and are configured to execute the broadcast key generation method according to any one of claims 1 to 8 by the one or more processors.

Citation Information

Patent Citations

  • Authenticator and communication method thereof

    CN112291773A

  • System and method to broadcast message to accelerators

    CN112953855A

  • Secure beacons

    CN113302961A

  • Encryption method and system based on communication between Bluetooth beacon and mobile phone APP

    CN116980889A

  • Method and device for sending and receiving Bluetooth broadcast audio data

    CN119562256A