A data transmission method and device based on an LE-audio smart watch

By converting data packets into audio data using the LE-audio module and leveraging changes in audio characteristics to achieve one-to-many communication, the limitation of one-to-one communication in smartwatches is overcome, enabling simultaneous communication between multiple smartwatches.

CN116546445BActive Publication Date: 2026-06-16MINAMI ACOUSTICS LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
MINAMI ACOUSTICS LTD
Filing Date
2023-05-29
Publication Date
2026-06-16

Smart Images

  • Figure CN116546445B_ABST
    Figure CN116546445B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of smart watch communication, and particularly provides a data transmission method and device based on an LE-audio smart watch, the method comprises the following steps: acquiring binary codes of data packets; two different numerical values in the same audio feature are used to represent 0 and 1 in the binary codes, the binary codes are compiled into audio data, and the audio data is sent through an LE-audio module; after receiving the audio data, a receiving device reversely generates binary codes according to an encoding rule; binary codes are read to acquire information in the data packets; the data transmission device based on the LE-audio smart watch disclosed by the application represents binary information of the data packets through changes of audio features, then the audio features are sent to the receiving device through the LE-audio module, so that the smart watch can realize one-to-one communication, and can also realize one-to-many communication in the form of broadcasting, the communication mode of the smart watch is enriched, and the simultaneous communication of a plurality of smart watches is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of smartwatch communication technology, and in particular to a data transmission method and device based on an LE-audio smartwatch. Background Technology

[0002] Smartwatches have seen rapid development in recent years. Compared to traditional mobile devices such as mobile phones or smartphones, they are increasingly accepted by people due to their portability and decorative appeal.

[0003] Currently, smartwatches use various communication methods, including WiFi, Bluetooth, cellular network, and NFC. Smartwatches with WiFi and cellular network capabilities are relatively expensive. Most smartwatches use Bluetooth or NFC, with NFC typically used for payments. Communication between smartwatches and smartphones is usually via Bluetooth. However, current communication methods between smartwatches and smartphones are limited to one-to-one communication, not one-to-many. When a smartphone needs to transmit information to multiple smartwatches, it must connect to each smartwatch sequentially, which is inconvenient. Therefore, this application proposes a data transmission method and apparatus based on an LE-audio smartwatch. Summary of the Invention

[0004] The purpose of this invention is to provide a data transmission method and device based on LE-audio smartwatches, so as to solve the problem that current smartwatches can only communicate one-to-one.

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

[0006] A data transmission method based on an LE-audio smartwatch, the method comprising the following steps:

[0007] Obtain the binary code of the data packet;

[0008] The binary code is represented by two different values ​​in the same audio feature, which are then compiled into audio data and sent through the LE-audio module.

[0009] After receiving audio data, the receiving device reverse-engineers binary code according to the encoding rules, wherein the encoding rules are the audio features representing 0 and 1 in the binary code and the method for forming audio data;

[0010] Read the binary code to obtain information within the data packet.

[0011] Furthermore, the method for encoding binary code into audio data includes the following steps:

[0012] Obtain the order of 0s and 1s in the binary code;

[0013] A function for the variation of audio is generated by using the sequence number of 0 and 1 as the independent variable and the audio features as the dependent variable.

[0014] Audio data is generated based on a change function.

[0015] Furthermore, the change function is a discrete function.

[0016] Furthermore, the method for reverse engineering binary code includes the following steps:

[0017] Read the output signal of the LE-audio module;

[0018] Obtain the time-domain variation characteristics of the output signal;

[0019] Generate binary code according to the encoding rules.

[0020] Furthermore, when representing 0 and 1 in binary code, 0 and 1 are represented with different amplitudes; when compiling audio data, the audio data is compiled with constantly changing amplitude according to the order in which 0 and 1 appear in binary code.

[0021] Furthermore, when representing 0 and 1 in binary code, 0 and 1 are represented at different frequencies; when compiling audio data, the frequency of audio data is constantly changing according to the order in which 0 and 1 appear in binary code.

[0022] Furthermore, the following steps are included before sending the audio data:

[0023] Connect to the receiving device and verify its identity;

[0024] Encoding rules for sending audio data to the receiving device.

[0025] Furthermore, the receiving device includes the following steps after receiving the audio data:

[0026] Analyze audio data to obtain audio features that have only two variations;

[0027] The encoding rules located in the database are read based on the acquired audio features.

[0028] The present invention also discloses a data transmission device based on an LE-audio smartwatch. The device includes a memory and a processor. The memory stores a computer program. When the computer program is executed by the processor, the processor performs the steps of the data transmission method based on an LE-audio smartwatch as described in any of the above claims.

[0029] Furthermore, the device also includes:

[0030] Encoding unit, used to encode binary code into audio data;

[0031] The LE-audio unit is used to transmit audio data;

[0032] The decoding unit is used to convert the information contained in the audio data into binary code and generate data packets.

[0033] In summary, the present invention has the following advantages compared with the prior art:

[0034] The data transmission method for LE-audio smartwatches disclosed in this invention converts the information in data packets into audio data, represents the binary information of the data packets through changes in audio characteristics, and then sends it to the receiving device through the LE-audio module. Since LE-audio can communicate one-to-one or one-to-many in the form of broadcast, it enriches the communication methods of smartwatches and enables a single terminal to send information to multiple terminals at the same time, realizing simultaneous communication of several smartwatches. Attached Figure Description

[0035] Figure 1 This is a schematic flowchart of the data transmission method based on the LE-audio smartwatch disclosed in an embodiment of the present invention.

[0036] Figure 2 This is a flowchart illustrating one of the subroutines of the data transmission method based on the LE-audio smartwatch disclosed in an embodiment of the present invention.

[0037] Figure 3 This is a flowchart illustrating another subroutine of the data transmission method based on the LE-audio smartwatch disclosed in an embodiment of the present invention.

[0038] Figure 4 This is a flowchart illustrating another subroutine of the data transmission method based on the LE-audio smartwatch disclosed in an embodiment of the present invention.

[0039] Figure 5 This is a flowchart illustrating another subroutine of the data transmission method based on the LE-audio smartwatch disclosed in an embodiment of the present invention.

[0040] Figure 6 This is a schematic diagram illustrating the communication between the smartwatch and the mobile phone in the data transmission method based on the LE-audio smartwatch disclosed in an embodiment of the present invention. Detailed Implementation

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

[0042] Example 1

[0043] like Figure 1 The invention provides a data transmission method based on an LE-audio smartwatch, the method comprising the following steps:

[0044] Step S100: Obtain the binary code of the data packet;

[0045] Specifically, in this embodiment, before transmitting data, the binary code of the data to be transmitted (i.e., the data packet) is first obtained. In this embodiment, the binary code is obtained using tools in the prior art.

[0046] As shown in the code below,

[0047]

[0048]

[0049] This code, implemented in C, can convert a text document a1 into binary code and store it in another text document a2. By reading the contents of text document a2, the binary code representing text document a1 can be obtained. It should be noted that this code is excerpted from the Internet and is only used to illustrate that converting data into binary code is an existing technology.

[0050] Of course, data can be converted into binary code in other ways. The specific code will not be described in this embodiment. Those skilled in the art can obtain it from open source libraries (such as GitHub) or develop corresponding programs based on their own programming experience to achieve the function of reading binary code of data.

[0051] Step S200: Represent 0 and 1 in the binary code with two different values ​​in the same audio feature, compile the binary code into audio data, and send the audio data through the LE-audio module;

[0052] Specifically, in this embodiment, audio features representing binary code, such as frequency and amplitude, are selected, and the values ​​of the audio features are set to represent 0 and 1 respectively. For example, 40Hz in frequency represents 0, and 10Hz in frequency represents 1. Then, the frequency change pattern of the audio data compiled from the binary code 00011100 is 40Hz, 40Hz, 40Hz, 40Hz, 10Hz, 10Hz, 10Hz, 40Hz, 40Hz; the binary code is compiled into audio data; and the compiled audio data is sent through the LE-audio module.

[0053] As a preferred embodiment of this example, Figure 2 As shown, the method for compiling binary code into audio data includes the following steps:

[0054] Step S210: Obtain the order of 0s and 1s in the binary code;

[0055] Step S220: Generate a function to change the audio, using the sequence number of 0 and 1 as the independent variable and the audio features as the dependent variable.

[0056] Step S230: Generate audio data based on the change function;

[0057] Specifically, in this step, after obtaining the binary code of the data packet, the order of occurrence of 0 and 1 in the binary code is read, for example, 000111001. The order of occurrence of 0 and 1 is used as the time order, the time change is used as the independent variable, and the audio features are used as the dependent variable (e.g., frequency, amplitude) to generate a change function. After generating the change function, audio data is generated based on the changes in the audio features in the change function.

[0058] For example, if 40Hz represents 0 and 10Hz represents 1, then the change function of the audio data encoded from binary code 00011100 is: Where x is time, 1 represents the first microsecond, 2 represents the second microsecond, and so on. In the generated audio data, the frequency of the first microsecond is 40Hz, the frequency of the second microsecond is 40Hz, and so on, the frequency of the eighth microsecond is 40Hz.

[0059] Preferably, the change function is a discrete function. Since the arrangement of 0 and 1 in binary code is discrete, the change function should be a discrete function to prevent transmission errors.

[0060] In one embodiment of this example, 0 and 1 in binary code are represented by different amplitudes; when compiling audio data, the amplitude of the audio data is continuously changed according to the order of appearance of 0 and 1 in binary code.

[0061] For example, if amplitude 1 represents 1 and amplitude -1 represents 1, then the amplitude changes of the audio data generated by data 000111001 are 1, 1, 1, -1, -1, -1, 1, 1, -1;

[0062] In another embodiment of this example, 0 and 1 in binary code are represented at different frequencies; when compiling audio data, the frequency of audio data is continuously changed according to the order of appearance of 0 and 1 in binary code.

[0063] For example, 40Hz represents 0 and 10Hz represents 1. Then the frequency variation pattern of the audio data compiled from the data 00011100 is 40Hz, 40Hz, 40Hz, 40Hz, 10Hz, 10Hz, 10Hz, 40Hz, 40Hz.

[0064] As a preferred embodiment of this example, Figure 3 As shown, the following steps are included before sending audio data:

[0065] Step S240: Connect the receiving device and verify the identity of the receiving device;

[0066] Step S250: Send the encoding rules of the audio data to the receiving device;

[0067] Specifically, in this embodiment, before the terminal sends audio data to the receiving device, it needs to connect to the receiving device and verify the identity of the receiving device. The method of connecting to the receiving device is the existing technology, such as connecting to the receiving device sequentially via Bluetooth. When verifying the identity, the identity of the receiving device can be verified through a pairing code.

[0068] After connecting to the receiving device, the encoding rules are sent to the receiving device in sequence. The encoding rules are the audio features of 0 and 1 in binary code and the method of forming audio data. For example, when the selected audio feature is frequency, 40Hz in frequency represents 0 and 10Hz in frequency represents 1. The order of 0 and 1 in binary code is the order of frequency change in audio data.

[0069] Step S300: After receiving the audio data, the receiving device reverses the encoding rules to generate binary code;

[0070] In this embodiment, after receiving audio data, the receiving device reads the audio based on the encoding rules. That is, after receiving the audio data, the LE-audio module converts the audio data into a digital signal for output. By reading the digital signal output by the LE-audio module, information about the audio data can be obtained, such as the frequency variation over time or the amplitude variation over time in the audio data.

[0071] In this embodiment, reading information from audio data is a prior art technique, such as the audio reading module in the software Adobe Audition, which can display audio data as a spectrogram. Similarly, music software in the prior art can also display audio data as a spectrogram. When reading information from audio data, the music software or the corresponding module in Adobe Audition can read the information from the audio data. Based on the read information, the changing patterns of audio features in the audio data are obtained, and binary code is generated in reverse using these changing patterns. For example, if the frequency changing pattern in the audio data is 40Hz, 40Hz, 40Hz, 40Hz, 10Hz, 10Hz, 10Hz, 40Hz, 40Hz, then the reverse-generated binary code is 00011100 or 11100011. Since the encoding rule in step 200 is known to be 40Hz representing 0 and 10Hz representing 1, the reverse-generated binary code is 00011100.

[0072] As a preferred embodiment of this example, Figure 4 As shown, the method for reverse engineering binary code includes the following steps:

[0073] Step S310: Read the output signal of the LE-audio module;

[0074] Step S320: Obtain the time domain variation characteristics of the output signal;

[0075] Step S330: Generate binary code according to the encoding rules.

[0076] As a preferred embodiment of this example, Figure 5 As shown, the receiving device further includes the following steps after receiving the audio data:

[0077] Step S340: Analyze the audio data to obtain audio features that have only two variations in the audio data;

[0078] Step S340: Read the encoding rules located in the database based on the acquired audio features;

[0079] Specifically, in this embodiment, after reading the audio data, the output signal of the LE-audio module is acquired and analyzed to obtain the features in the output signal that have only two variations, such as frequency or amplitude. Since binary code consists only of 0 and 1, when binary code is represented in the form of audio data, the audio features representing binary code in the audio data have only two variations. Therefore, by analyzing the audio features in the audio data, it can be determined which audio features represent 0 and 1.

[0080] Then, pre-stored encoding rules are read from the database, and the information contained in the audio data is converted into binary code based on the pre-stored encoding rules.

[0081] Step S400: Read the binary code to obtain information from the data packet;

[0082] Specifically, the process involves reading binary code and converting it into corresponding data, thus completing the data transmission. The method of converting binary code into data is an existing technology; for example, the following code can convert binary code into a text document:

[0083]

[0084]

[0085] This code is implemented in C language and can restore binary code and store it in a text document a3. It should be noted that the code is excerpted from the Internet and is only used to illustrate that converting data into binary code is an existing technology.

[0086] Of course, the binary code can be restored to data in other ways. The specific code will not be described in this embodiment. Those skilled in the art can obtain it from open source libraries (such as GitHub) or develop corresponding programs based on their own programming experience to realize the function of reading the binary code of data.

[0087] The data transmission device based on an LE-audio smartwatch disclosed in this invention converts the information within a data packet into audio data, represents the binary information of the data packet through changes in audio characteristics, and then sends it to the receiving device via the LE-audio module. Since LE-audio can communicate one-to-one, it can also be used in other ways, such as... Figure 6 The broadcast format shown enriches the communication methods of smartwatches, allowing a single terminal to send information to multiple terminals simultaneously, thus enabling simultaneous communication among several smartwatches.

[0088] Example 2

[0089] This invention also discloses a data transmission device based on an LE-audio smartwatch. The device includes a memory and a processor. The memory stores a computer program. When the computer program is executed by the processor, the processor performs the steps of the data transmission method based on an LE-audio smartwatch as described in Embodiment 1.

[0090] For example, in this embodiment, the smartwatch is equipped with a processing chip and a storage chip. The storage chip is used to store information, and the processing chip is used to process information. The conversion of data packets into audio data or audio data into data packets is achieved through the processing chip.

[0091] Furthermore, the device also includes:

[0092] Encoding unit, used to encode binary code into audio data;

[0093] The LE-audio unit is used to transmit audio data;

[0094] The decoding unit is used to convert the information contained in the audio data into binary code and generate data packets;

[0095] Specifically, in this embodiment, the encoding unit can be a program stored in a memory or a separate encoding chip. When the encoding unit is a separate encoding chip, the encoding unit is electrically connected to the processor.

[0096] The LE-audio unit is existing technology, and the LE-audio unit is electrically connected to the processor;

[0097] The decoding unit can be a program stored in memory or a separate encoding chip. When the decoding unit is a separate encoding chip, the decoding unit is electrically connected to the processor.

[0098] Example 3

[0099] The present invention also discloses a readable storage medium storing a computer program, which, when executed by a processor, causes the processor to implement the steps of the data transmission method based on the LE-audio smartwatch as described in Embodiment 1.

[0100] In the several embodiments provided by this invention, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0101] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0102] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in the form of hardware plus software functional units.

[0103] In a typical configuration of an embodiment of the present invention, the electronic device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0104] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash memory (flash-RAM). Memory is an example of computer-readable media.

[0105] Readable storage media include both permanent and non-permanent, removable and non-removable media, and information storage can be achieved by any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data.

[0106] Examples of storage media for electronic devices include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media do not include non-transitory computer-readable media, such as modulated data signals and carrier waves.

[0107] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional modules is merely an example. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working process of the device described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

Claims

1. A data transmission method based on an LE-audio smartwatch, characterized in that, The method includes the following steps: Obtain the binary code of the data packet; Using two different values ​​in the same audio feature to represent 0 and 1 in binary code, the binary code is compiled into audio data. The method for compiling the binary code into audio data includes the following steps: obtaining the order of 0 and 1 in the binary code; generating a discrete change function of the audio using the order of 0 and 1 as the independent variable of the audio and the audio feature as the dependent variable of the audio; generating audio data based on the change function; and sending the audio data through the LE-audio module. After receiving audio data, the receiving device reverse-engineers binary code according to encoding rules. The encoding rules represent the audio features of 0 and 1 in the binary code and the method for forming audio data. The receiving device further includes the following steps after receiving the audio data: analyzing the audio data to obtain audio features that have only two variations; and reading the encoding rules located in the database based on the obtained audio features. Read the binary code to obtain information within the data packet.

2. The data transmission method based on an LE-audio smartwatch according to claim 1, characterized in that, The method for reverse engineering binary code includes the following steps: Read the output signal of the LE-audio module; Obtain the time-domain variation characteristics of the output signal; Generate binary code according to the encoding rules.

3. The data transmission method based on an LE-audio smartwatch according to claim 1, characterized in that, When representing 0 and 1 in binary code, different amplitudes are used to represent 0 and 1; when compiling audio data, the amplitude of the audio data is constantly changing according to the order in which 0 and 1 appear in binary code.

4. The data transmission method based on an LE-audio smartwatch according to claim 1, characterized in that, When representing 0 and 1 in binary code, 0 and 1 are represented at different frequencies; when compiling audio data, the frequency of audio data is constantly changing according to the order in which 0 and 1 appear in binary code.

5. The data transmission method based on an LE-audio smartwatch according to any one of claims 1-4, characterized in that, Before sending the audio data, the following steps are also included: Connect to the receiving device and verify its identity; Encoding rules for sending audio data to the receiving device.

6. A data transmission device based on an LE-audio smartwatch, the device comprising a memory and a processor, the memory storing a computer program, characterized in that, When the computer program is executed by the processor, the processor performs the steps of the data transmission method based on the LE-audio smartwatch as described in any one of claims 1-5.

7. The data transmission device based on an LE-audio smartwatch according to claim 6, characterized in that, The device further includes: Encoding unit, used to encode binary code into audio data; The LE-audio unit is used to transmit audio data; The decoding unit is used to convert the information contained in the audio data into binary code and generate data packets.