Cross-device data transmission method, device, system and medium
By converting data into floating-point audio sample data and transmitting it as audio, the problem of low reliability of data transmission across network partitions in the Internet of Things is solved, efficient data transmission without isolation equipment is achieved, and the stability and performance of the transmission are improved. .
Patent Information
- Application Number
- CN202410977218.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-07-19
AI Technical Summary
In the Internet of Things, data transmission between physical devices across network partitions is less reliable, especially when network isolation devices fail, resulting in communication interruptions and bandwidth limitations.
By converting notification information, data header information and business information into floating-point audio sample data, and using the audio conversion device to convert it into audio transmission, the receiving end device then converts the audio into original data to achieve cross-device data transmission. Avoids the need to set up network isolation equipment.
It improves the reliability and performance of data transmission between physical devices, reduces network requests and bandwidth limitations, and enhances the stability and efficiency of data transmission.
Smart Images

Figure CN118509070B
Abstract
Description
Technical Field
[0001] The present application belongs to the field of data processing, and in particular, relates to a method, device, system and medium for cross-device data transmission. Background Art
[0002] The Internet of Things can be a network based on information carriers such as the Internet and telecommunications networks to achieve interconnection and interoperability of independently addressable physical objects. The Internet of Things involves the deployment of multiple physical devices. In various business scenarios such as electricity, transportation, and finance, network partitions will be set up to ensure business security and stability. Physical devices in the Internet of Things may be distributed in different network partitions, and physical devices in different network partitions need to transmit data across network partitions. In order to achieve data transmission between physical devices across network partitions, it is necessary to set up network isolation devices, and data transmission between physical devices across network partitions is achieved through network isolation devices. However, during the data transmission process, if the network isolation device fails, all communications that need to pass through the network isolation device will be interrupted, resulting in low reliability of data transmission between physical devices. Summary of the invention
[0003] The embodiments of the present application provide a cross-device data transmission method, device, system and medium, which can improve the reliability of data transmission between physical devices.
[0004] In a first aspect, an embodiment of the present application provides a cross-device data transmission method, which is applied to a sending device, the method comprising: converting notification information, data header information and collected business information into floating-point audio sample data according to the conversion rules of floating-point audio data, one floating-point audio sample data corresponds to an N-bit binary number, N is a positive integer, the notification information is used by the receiving device to distinguish valid information, and the data header information includes encoding related information; using an audio conversion device to obtain the target audio based on the floating-point audio sample data obtained by conversion; and propagating the target audio outward.
[0005] In some possible embodiments, the notification information, data header information and collected business information are converted into floating-point audio sample data according to the conversion rules of floating-point audio data, including: according to the arrangement order of the binary data of the notification information, the binary data of the data header information and the binary data of the business information, and according to the conversion rules, every N binary digits in the binary data are converted into a floating-point audio sample data.
[0006] In some possible embodiments, target audio is obtained based on the converted floating-point audio sample data using an audio conversion device, including: smoothing the converted multiple floating-point audio sample data to obtain first floating-point audio sample data; shifting the center frequency of the first floating-point audio sample data from the original frequency to a preset audio transmission frequency range to obtain target floating-point audio sample data; and converting the target floating-point audio sample data into target audio using the audio conversion device.
[0007] In some possible embodiments, smoothing is performed on the multiple floating-point audio sample data obtained by conversion to obtain first floating-point audio sample data, including: inserting one or more smoothing values between two adjacent floating-point audio sample data according to the gap between two adjacent floating-point audio sample data obtained by conversion to obtain the first floating-point audio sample data; or inserting one or more smoothing values between two adjacent floating-point audio sample data according to the gap between two adjacent floating-point audio sample data obtained by conversion, and performing polynomial smoothing on the floating-point audio sample data after the smoothing values are inserted to obtain the first floating-point audio sample data.
[0008] In some possible embodiments, target floating-point audio sample data is converted into target audio using an audio conversion device, including: grouping multiple target floating-point audio sample data according to the data processing quantity of the audio conversion device to obtain target data groups; and converting each target data group using the audio conversion device to obtain target audio.
[0009] In some possible embodiments, the encoding related information includes a checksum of the business information, or the encoding related information includes a checksum of the business information and a checksum of the data header information; the floating-point audio sample data is carried in the data frame; the method also includes: using a forward error correction method to add redundant information to the data frame.
[0010] In a second aspect, an embodiment of the present application provides a cross-device data transmission method, which is applied to a receiving device, the method comprising: receiving target audio; using an audio conversion device to obtain floating-point audio sample data based on the target audio, one floating-point audio sample data corresponds to an N-bit binary number, N is a positive integer; according to the conversion rules of the floating-point audio data, the floating-point audio sample data is converted into notification information, data header information and collected business information, the notification information is used by the receiving device to distinguish valid information, and the data header information includes encoding-related information.
[0011] In some possible embodiments, obtaining floating-point audio sample data based on target audio using an audio conversion device includes: converting the target audio into target floating-point audio sample data using the audio conversion device; shifting the center frequency of the target floating-point audio sample data to a preset original frequency to obtain first floating-point audio sample data; and restoring the first floating-point audio sample data to obtain multiple floating-point audio sample data.
[0012] In some possible embodiments, restoring the first floating-point audio sample data to obtain multiple floating-point audio sample data includes: discarding one or more flat values inserted between each two adjacent floating-point audio sample data to obtain multiple floating-point audio sample data.
[0013] In some possible embodiments, according to the conversion rules of floating-point audio data, floating-point audio sample data is converted into notification information, data header information and collected business information, including: according to the conversion rules, each floating-point audio sample data is converted into N-bit binary data; according to the arrangement order of the binary data, the notification information, data header information and business information are obtained.
[0014] In some possible embodiments, an audio conversion device is used to obtain floating-point audio sample data based on the target audio, including: grouping the target audio according to the data processing quantity of the audio conversion device to obtain target audio groups; using the audio conversion device to convert each target audio group to obtain a target data group, the target data group including corresponding floating-point audio sample data.
[0015] In some possible embodiments, the encoding related information includes a checksum of the service information, or the encoding related information includes a checksum of the service information and a checksum of the data header information; the floating point audio sample data is carried in the data frame;
[0016] According to the conversion rule of floating-point audio data, the floating-point audio sample data is converted into notification information, data header information and collected business information, and also includes: using a forward error correction method to process redundant information in the data frame to obtain a data frame after forward error correction;
[0017] The method also includes: parsing the data header information, and verifying the business information using the checksum in the data header information, or verifying the business information and the data header information using the checksum in the data header information.
[0018] In a third aspect, an embodiment of the present application provides a sending end device, which is applied to a sending end device, and the sending end device includes: a first digital data conversion module, which is used to convert notification information, data header information and collected business information into floating-point audio sample data according to the conversion rules of floating-point audio data, one floating-point audio sample data corresponds to an N-bit binary number, N is a positive integer, the notification information is used by the receiving end device to distinguish valid information, and the data header information includes encoding-related information; a first audio conversion module, which is used to obtain the target audio based on the floating-point audio sample data obtained by conversion; a sending module, which is used to propagate the target audio to the outside.
[0019] In a fourth aspect, an embodiment of the present application provides a receiving device, which is applied to a receiving device, and the receiving device includes: a receiving module, which is used to receive the target audio; a second audio conversion module, which is used to use the audio conversion device to obtain floating-point audio sample data based on the target audio, one floating-point audio sample data corresponds to an N-bit binary number, and N is a positive integer; a second digital data conversion module, which is used to convert the floating-point audio sample data into notification information, data header information and collected business information according to the conversion rules of the floating-point audio data, the notification information is used for the receiving device to distinguish valid information, and the data header information includes encoding-related information.
[0020] In a fifth aspect, an embodiment of the present application provides a sending end device, comprising: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the cross-device data transmission method of the first aspect is implemented.
[0021] In a sixth aspect, an embodiment of the present application provides a receiving device, comprising: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the cross-device data transmission method of the second aspect is implemented.
[0022] In a seventh aspect, an embodiment of the present application provides a cross-device data transmission system, including: a sending end device in the fifth aspect; and a receiving end device in the sixth aspect.
[0023] In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium having computer program instructions stored thereon. When the computer program instructions are executed by a processor, the cross-device data transmission method of the first aspect or the cross-device data transmission method of the second aspect is implemented.
[0024] The embodiments of the present application provide a cross-device data transmission method, device, system and medium, in which the sending device can convert the business information to be sent together with the communication information used to distinguish valid information and the data header information containing encoding-related information into standardized floating-point audio sample data, and convert the floating-point audio sample data into audio, and transmit the audio outward. The receiving device can receive the audio, convert the audio into floating-point audio sample data, and then restore the floating-point audio sample data into notification information, data header information and business information. Business information is transmitted between the sending device and the receiving device through audio, and there is no need to set up a network isolation device between the sending device and the receiving device, which can improve the reliability of data transmission between physical devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0026] Figure 1 A schematic diagram of the structure of a cross-device data transmission system provided in an embodiment of the present application;
[0027] Figure 2 A schematic diagram of the structure of a cross-device data transmission system provided by another embodiment of the present application;
[0028] Figure 3 A flowchart of a cross-device data transmission method applied to a sending device provided in an embodiment of the present application;
[0029] Figure 4 A flowchart of a cross-device data transmission method applied to a sending device provided by another embodiment of the present application;
[0030] Figure 5 A flowchart of a cross-device data transmission method applied to a receiving device provided in an embodiment of the present application;
[0031] Figure 6 A flowchart of a cross-device data transmission method applied to a receiving device provided by another embodiment of the present application;
[0032] Figure 7 A schematic diagram of the structure of a transmitting end device provided in an embodiment of the present application;
[0033] Figure 8 A schematic diagram of the structure of a receiving device provided in one embodiment of the present application;
[0034] Fig. 9 A schematic diagram of the structure of a sending end device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0035] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0036] The Internet of Things can be a network based on information carriers such as the Internet and telecommunications networks to achieve interconnection and intercommunication of independently addressable physical objects. The Internet of Things involves the deployment of multiple physical devices. In various business scenarios such as electricity, transportation, and finance, network partitions will be set up to ensure business security and stability. Physical devices in the Internet of Things may be distributed in different network partitions, and physical devices in different network partitions need to transmit data across network partitions. In order to achieve data transmission between physical devices across network partitions, it is necessary to set up network isolation devices, and data transmission between physical devices across network partitions is achieved through network isolation devices. In some scenarios with long network transmission links, a large number of network isolation devices will be set up as intermediate nodes between physical devices across network partitions. During the data transmission process, if any network isolation device as an intermediate node fails, all communications through the network isolation device will be interrupted, resulting in low reliability of data transmission between physical devices. In addition, all network requests need to pass through network isolation devices, but the bandwidth of network isolation devices is limited, which also limits the number of network requests and transmission bandwidth.
[0037] The present application provides a cross-device data transmission method, device, system and medium. The sending end device can convert the text data to be transmitted into standardized floating-point audio sample data, and convert the floating-point audio sample data into audio transmission. The receiving end device receives the audio, converts the audio into floating-point audio sample data, and then restores the floating-point audio sample data to text data. The data transmission process is audio transmission. In the case where the sending end device and the receiving end device are physical devices across network partitions, there is no need to set up a network isolation device, and data transmission between the sending end device and the receiving end device can be achieved, thereby improving the reliability of data transmission between physical devices. And because there is no need to set up a network isolation device, the number of network requests and the transmission bandwidth will not be limited, and the performance of data transmission can also be improved.
[0038] To facilitate understanding, the application scenario of the cross-device data transmission method in the embodiment of the present application is first described here. Figure 1 and Figure 2 They are schematic diagrams of the structure of a cross-device data transmission system provided in an embodiment of the present application, such as Figure 1 and Figure 2 As shown, the cross-device data transmission system may include a sending end device 11 and a receiving end device 12 .
[0039] Any device that needs to send data can be regarded as a sending device 11, and any device that needs to receive data can be regarded as a receiving device 12. The identity of the same device can be switched when it sends and receives data, that is, the same device can be both a sending device 11 and a receiving device 12. The network partition where the sending device 11 is located may be different from the network partition where the receiving device 12 is located, but the cross-device data transmission method, device, system and medium provided in this application can also be applied to the sending device 11 and the receiving device 12 located in the same network partition.
[0040] In order to convert floating-point audio sample data into audio, and vice versa, an audio conversion device capable of converting floating-point audio sample data and audio is required. The audio conversion device may include a device capable of realizing the conversion function, such as a sound card, but is not limited here. Figure 1 As shown, the first audio conversion device 111 can be set independently of the sending end device 11, and the second audio conversion device 121 can be set independently of the receiving end device 12. Alternatively, Figure 2 As shown, a first audio conversion device 111 is provided in the transmitting device 11 and a second audio conversion device 121 is provided in the receiving device 12 .
[0041] In addition, an audio transmission device for transmitting audio may be provided, and the audio transmission device may include a device capable of outputting audio, such as a speaker, a device capable of inputting audio, such as a microphone, or a device capable of transmitting audio, such as a cable, which is not limited here. Figure 1 As shown, the first audio transmission device 112 can be set independently of the transmitting end device 11, and the second audio transmission device 122 can be set independently of the receiving end device 12. Alternatively, Figure 2 As shown, a first audio transmission device 112 is provided in the transmitting device 11 and a second audio transmission device 122 is provided in the receiving device 12 .
[0042] The sending end device 11 can convert data such as data files and data instructions into floating-point audio sample data, convert the floating-point audio sample data into audio through the audio conversion device of the sending end, and output it through the audio transmission device of the sending end. The audio transmission device of the receiving end receives the audio, and the receiving end device 12 can control the audio conversion device of the receiving end to cyclically monitor the audio received by the audio transmission device of the receiving end, and convert the audio into floating-point audio sample data. The receiving end device 12 then restores the floating-point audio sample data to data files, data instructions and other data.
[0043] The cross-device data transmission method, device, system and medium provided by the present application are described below respectively.
[0044] A first aspect of the present application provides a cross-device data transmission method, which is applied to a sending end device, that is, the cross-device data transmission method can be executed by the sending end device. Figure 3 A flowchart of a cross-device data transmission method applied to a sending device according to an embodiment of the present application is provided. Figure 3 As shown, the cross-device data transmission method may include steps S201 to S203.
[0045] In step S201, the notification information, the data header information and the collected service information are converted into floating-point audio sample data according to the conversion rules of floating-point audio data.
[0046] The notification information is used by the receiving device to distinguish valid information. The notification information can be regarded as an identification information. When the receiving device recognizes the notification information, it can be determined that valid information has been received and subsequent processing is required. The notification information can effectively distinguish valid information from invalid information. In an embodiment of the present application, the notification information, data header information and business information are all valid data. The data header information is the description part of the valid data and may include encoding-related information. The encoding-related information may include information related to the floating-point audio sample data obtained by encoding. The encoding-related information can be used to restore the information and verify the information. For example, the encoding-related information may include verification information of the information and the agreed encoding method of the data. Business information is the main information that needs to be transmitted and can carry various types of business data. For example, business information may include power data, traffic data, payment data, etc.
[0047] Notification information, data header information and business information are all digital information and can be presented as a series of binary numbers. The conversion rules for floating-point audio data will pre-set the binary numbers of notification information, data header information and business information. Every N-bit binary number is converted into a floating-point audio sample data, that is, a floating-point audio sample data corresponds to an N-bit binary number, and N is a positive integer. The floating-point audio sample data is 32-bit floating-point data, and the sampling rate of the floating-point audio sample data can be 44100. The smaller N is, the higher the data conversion accuracy, and the more accurate the information restored by the subsequent receiving device, but the slower the data transmission speed; the larger N is, the lower the data conversion accuracy, and the information restored by the subsequent receiving device is less accurate, but the data transmission speed is faster. The value of N can be pre-set according to specific scenarios, requirements, etc., and is not limited here.
[0048] In some examples, the transmitting device may convert each N-bit binary number in the binary data into a floating-point audio sample data according to the arrangement order of the binary data of the notification information, the binary data of the data header information, and the binary data of the service information and the conversion rule.
[0049] When the value of N is fixed, different N-bit binary numbers can be converted to different floating-point audio sample data. The specific floating-point audio sample data converted can be preset. The sum of the floating-point audio sample data converted from different N-bit binary numbers can be within a preset balance range, which is equivalent to a normalization, which can reduce the error of data conversion. In some examples, N can be any value from 1 to 8.
[0050] For example, the binary number of the notification information, data header information and business information is 001101011001. If N=1, each bit of the binary number will be converted into a floating-point audio sample data. A binary number can only be 0 or 1. The floating-point audio sample data converted from 0 is different from the floating-point audio sample data converted from 1. The sum of the floating-point audio sample data converted from 0 and the floating-point audio sample data converted from 1 can be within a preset balance range. For example, the sum of the floating-point audio sample data converted from 0 and the floating-point audio sample data converted from 1 is 0. , the floating-point audio sample data obtained by converting 0 is -1.0f, and the floating-point audio sample data obtained by converting 1 is 1.0f. Here f refers to floating-point data. The binary number 001101011001 can be converted to 12 floating-point sample data. The 12 floating-point sample data obtained by converting the binary number 001101011001 of the notification information, data header information and business information are -1.0f, -1.0f, 1.0f, 1.0f, -1.0f, 1.0f, -1.0f, 1.0f, 1.0f, -1.0f, -1.0f, 1.0f, 1.0f, -1.0f, 1.0f.
[0051] For another example, the binary number of notification information, data header information and service information is 001101011001. If N=2, then every two binary digits in the binary number will be converted into a floating-point audio sample data. The two binary digits can only be 00, 01, 10 or 11. The floating-point audio sample data converted from 00, the floating-point audio sample data converted from 01, the floating-point audio sample data converted from 10, and the floating-point audio sample data converted from 11 are different, so that the floating-point audio sample data converted from 00 The sum of the floating-point audio sample data converted from 00, the floating-point audio sample data converted from 01, the floating-point audio sample data converted from 10, and the floating-point audio sample data converted from 11 is within the preset balance range. For example, the sum of the floating-point audio sample data converted from 00, the floating-point audio sample data converted from 01, the floating-point audio sample data converted from 10, and the floating-point audio sample data converted from 11 is 0, the floating-point audio sample data converted from 00 is -1.0f, and the floating-point audio sample data converted from 01 is - The floating-point audio sample data obtained by converting 0.5f and 11 is 0.5f, and the floating-point audio sample data obtained by converting 11 is 1.0f. Here, f refers to floating-point data. If -1.0f is expanded to 32 bits, it is 101111111000000000000000000000000000, and if -0.5f is expanded to 32 bits, it is 10111111000000000000000000000000000, and if 0.5f is expanded to 32 bits, it is 001111110000 00000000000000000000, 1.0f is expanded to 32 bits to be 0011111110000000000000000000000000, the binary number 001101011001 can be converted to obtain 6 floating-point sample data, and the 6 floating-point sample data obtained by converting the binary numbers 001101011001 of the notification information, data header information and business information are -1.0f, 1.0f, -0.5f, -0.5f, 0.5f, -0.5f respectively. If the value of N is larger, interpolation can be continued within the range of the converted floating-point audio sample data to obtain more floating-point audio sample data to correspond to different N-bit binary numbers.
[0052] In step S202, the target audio is obtained by using an audio conversion device based on the converted floating-point audio sample data.
[0053] The floating-point audio sample data is digital data, and needs to be converted into audio through an audio conversion device, and the converted audio is the target audio. The frequency of the target audio can be adjusted according to the scene and needs. For example, the frequency of the target audio can be adjusted to between 20Hz and 20kHz, and the target audio is audible to the human ear; for another example, the frequency of the target audio can be adjusted to above 20kHz to make it ultrasonic, and the target audio is inaudible to the human ear.
[0054] In step S203, the target audio is propagated outward.
[0055] The transmitting device can transmit the target audio to the receiving device via a cable. The transmitting device can also transmit the target audio to the receiving device via an air medium. When the target audio is transmitted via an air medium, the target audio can be in an ultrasonic form to reduce the impact on the environment.
[0056] In an embodiment of the present application, the sending end device can convert the business information to be sent together with the communication information used to distinguish valid information and the data header information containing encoding-related information into standardized floating-point audio sample data, and convert the floating-point audio sample data into audio, and transmit the audio outward. The receiving end device can receive the audio, convert the audio into floating-point audio sample data, and then restore the floating-point audio sample data to notification information, data header information and business information. The business information is transmitted between the sending end device and the receiving end device through audio, and there is no need to set up a network isolation device between the sending end device and the receiving end device, which can improve the reliability of data transmission between physical devices. And because there is no need to set up a network isolation device, the number of network requests and the transmission bandwidth will not be limited, and the performance of data transmission can also be improved.
[0057] In some embodiments, during the process of converting floating-point audio sample data into target audio, the floating-point audio sample data may be smoothed and frequency-converted to reduce the possibility of data loss and further improve the performance of data transmission. Figure 4 A flowchart of a cross-device data transmission method applied to a sending device provided by another embodiment of the present application, Figure 4 and Figure 3 The difference is that Figure 3 The step S202 shown can be specifically broken down into Figure 4 Steps S2021 to S2023 are shown.
[0058] In step S2021, a plurality of floating-point audio sample data obtained by conversion is smoothed to obtain first floating-point audio sample data.
[0059] The audio conversion device has a processing trend in the conversion process of floating-point audio sample data and audio. If data that changes too quickly appears, this part of the data that changes too quickly is very likely to be filtered out by the audio conversion device. Therefore, in order to reduce the possibility of data being filtered out and lost, the floating-point audio sample data obtained by conversion can be smoothed. The smoothing process can limit the speed of data change, so that the audio conversion device will not filter out valid data during the conversion process. The first floating-point audio sample data is the floating-point audio sample data after the smoothing process.
[0060] In some examples, the smoothing process may include, but is not limited to, an interpolation process, a polynomial smoothing process, and the like.
[0061] For example, according to the gap between two adjacent floating-point audio sample data obtained by conversion, more than one flat value can be inserted between the two adjacent floating-point audio sample data to obtain the first floating-point audio sample data. Specifically, when the gap between two adjacent floating-point audio sample data exceeds the flat range, that is, when the gap between the two adjacent floating-point audio sample data is large, a flat value can be inserted between the two adjacent floating-point audio sample data. The flat value can be 0, and the number of flat values between the two adjacent floating-point audio sample data can be determined according to the size of the gap between the two adjacent floating-point audio sample data. For example, the larger the gap between the two adjacent floating-point audio sample data, the more flat values are inserted between the two floating-point audio sample data; the smaller the gap between the two adjacent floating-point audio sample data, the fewer the number of flat values are inserted between the two floating-point audio sample data, and even no flat value can be inserted between the two floating-point audio sample data. The number of smooth values inserted between two adjacent floating-point audio sample data can also be set according to the requirements for data reliability and transmission rate. If the data reliability requirement is higher, a larger number of smooth values can be inserted between two adjacent floating-point audio sample data. If the transmission rate requirement is higher, a smaller number of smooth values can be inserted between two adjacent floating-point audio sample data, or even no smooth values can be inserted.
[0062] For another example, according to the gap between two adjacent floating-point audio sample data obtained by conversion, more than one flat value can be inserted between the two adjacent floating-point audio sample data, and the floating-point audio sample data after the flat value is inserted is subjected to polynomial smoothing to obtain the first floating-point audio sample data. The specific content of inserting the flat value can refer to the relevant description in the above embodiment, which will not be repeated here. The polynomial smoothing process can reduce the noise of the data by fitting a polynomial to approximate the original data points. Performing the polynomial smoothing process after inserting the flat value can further make the data change smaller and improve the reliability of the data.
[0063] In step S2022, the center frequency of the first floating-point audio sample data is shifted from the original frequency to within a preset audio transmission frequency range to obtain target floating-point audio sample data.
[0064] After the smoothing process, the first floating-point audio sample data has a longer length and a longer period than the converted floating-point audio sample data, and the frequency is reduced. However, the frequency of the target audio obtained by conversion is required to be within the preset audio transmission frequency range. In order to make the frequency of the target audio within the audio transmission frequency range, the first floating-point audio sample data can be up-converted to shift the center frequency of the first floating-point audio sample data to the audio transmission frequency range. The target floating-point audio sample data is the first floating-point audio sample data after the center frequency is shifted. For example, if the original frequency is 0 Hz, the audio transmission frequency range is 8 kHz to 12 kHz, or the audio transmission frequency range is 18 kHz to 20 kHz, the center frequency of the first floating-point audio sample data can be shifted from 0 Hz to within the range of 8 kHz to 12 kHz, or to within the range of 18 kHz to 20 kHz.
[0065] In step S2023, the target floating-point audio sample data is converted into target audio using an audio conversion device.
[0066] The audio conversion device itself has a data processing capacity, which is the number of data in a batch that the audio conversion device can process. According to the data processing capacity of the audio conversion device, multiple target floating-point audio sample data can be grouped to obtain target data groups; each target data group is converted by the audio conversion device to obtain target audio. Each target data group is a batch of data processed by the audio conversion device. For example, if the audio conversion device includes a sound card, the number of data in a batch that the sound card can process is 2 8 to 2 16 Any 2 to the power of M, where M is an integer greater than or equal to 8 and less than or equal to 16, in order to match the data processing quantity of the sound card, every 2 to the power of M target floating-point audio sample data can be divided into a target data group for conversion.
[0067] The floating-point audio sample data in the above embodiment is carried in a data frame, and each data frame is a completely independent data packet. In the embodiment of the present application, the floating-point audio sample data is transmitted in the form of a frame, and the header of each data frame can be provided with a synchronization sequence for identifying the data frame, so as to facilitate decoding by the receiving device. In some examples, the encoding related information in the data header information may include a checksum of the business information, and the checksum algorithm for checking the checksum may include but is not limited to algorithms such as CRC32 and MD5. The checksum of the business information can be used by the receiving device to perform integrity check on the business information, and the data frame in which the transmission error occurs can be determined by the checksum of the business information. In other examples, the encoding related information in the data header information may include a checksum of the business information and a checksum of the data header information. The specific content of the checksum of the business information can refer to the relevant description in the above embodiment, and will not be repeated here. The checksum of the data header information can be used by the receiving device to perform integrity check on the data header information, and the data frame in which the transmission error occurs can be determined by the checksum of the data header information. In order to ensure the correctness of the data, data frames with transmission errors determined based on the checksum of the business information and the checksum of the data header information will be discarded. However, in order to avoid discarding too many data frames and causing a decrease in data reliability, the sending device can use a forward error correction method to add redundant information to the data frame so that the receiving device can restore accurate data based on the redundant information added to the data frame. For example, the forward error correction method used by the sending device can be to repeat each bit in the data frame three times, and the receiving device can select the bit that appears most when receiving the data frame. For example, if there are two 1s and one 0 in the three bits received by the receiving device, 1 can be selected as a reliable data bit. For another example, the forward error correction method used by the sending device may also include, but is not limited to, convolutional codes. The reliability of data transmission can be further improved by the forward error correction method.
[0068] A second aspect of the present application provides a cross-device data transmission method, which can be applied to a receiving device, that is, the cross-device data transmission method is executed by the receiving device. Figure 5 A flowchart of a cross-device data transmission method applied to a receiving device according to an embodiment of the present application is provided. Figure 5 As shown, the cross-device data transmission method may include steps S301 to S303.
[0069] In step S301, target audio is received.
[0070] In step S302, the audio conversion device is used to obtain floating-point audio sample data based on the target audio.
[0071] One floating-point audio sample data corresponds to an N-bit binary number, where N is a positive integer.
[0072] In step S303, the floating-point audio sample data is converted into notification information, data header information and collected service information according to the conversion rules of floating-point audio data.
[0073] The notification information is used by the receiving device to distinguish valid information. Communication information may include but is not limited to agreed identifiers, data timing information and other data. In addition to the target audio, the receiving device may also receive other invalid audio. The floating-point data converted from the invalid audio will not include communication information, data header information and business information. The receiving device can determine where the valid data starts by detecting the agreed identifier. The data timing information can be used to characterize the timing of the data sent by the sending device. For example, the data timing information can characterize how many floating-point audio sample data are sent by the sending device. The receiving device can align the received floating-point audio sample data according to the data timing information, thereby reversing the deviation problem caused by the channel.
[0074] The receiving device can parse and verify the floating-point audio sample data according to the encoding related information in the data header information. During the data transmission process, the target audio may be lost. Similarly, the floating-point audio sample data converted from the target audio may also be lost. The lost data can be restored to the closest standard value. For example, the floating-point audio sample data converted from the target audio is [0.95, -0.8, 1], and the corresponding data can be restored to [1, 0, 1]. The data header information includes encoding related information.
[0075] In some examples, the receiving device may convert each floating-point audio sample data into N-bit binary data according to the conversion rule; and obtain notification information, data header information, and service information according to the arrangement order of the binary data. The process of converting the floating-point audio sample data into notification information, data header information, and service information is the reverse process of converting the notification information, data header information, and service information into floating-point audio sample data in step S201 in the above embodiment. For details, please refer to the relevant description in the above embodiment, which will not be repeated here.
[0076] In an embodiment of the present application, the sending end device can convert the business information to be sent together with the communication information used to distinguish valid information and the data header information containing encoding-related information into standardized floating-point audio sample data, and convert the floating-point audio sample data into audio, and transmit the audio outward. The receiving end device can receive the audio, convert the audio into floating-point audio sample data, and then restore the floating-point audio sample data to notification information, data header information and business information. The business information is transmitted between the sending end device and the receiving end device through audio, and there is no need to set up a network isolation device between the sending end device and the receiving end device, which can improve the reliability of data transmission between physical devices. And because there is no need to set up a network isolation device, the number of network requests and the transmission bandwidth will not be limited, and the performance of data transmission can also be improved.
[0077] In some embodiments, the target audio is obtained by converting floating-point audio sample data after smoothing and up-conversion, and the receiving device also needs to perform partial processing accordingly to obtain accurate floating-point audio sample data. Figure 6 A flowchart of a cross-device data transmission method applied to a receiving device provided by another embodiment of the present application, Figure 6 and Figure 5 The difference is that Figure 5 Step S302 in the above example can be specifically broken down into Figure 6 Steps S3021 to S3023 in .
[0078] In step S3021, the target audio is converted into target floating-point audio sample data using an audio conversion device.
[0079] The process of converting the target audio into the target floating-point audio sample data is the reverse process of the process recorded in step S2023 of the above embodiment, and will not be described in detail here.
[0080] In step S3022, the center frequency of the target floating-point audio sample data is shifted to a preset original frequency to obtain first floating-point audio sample data.
[0081] The process of shifting the center frequency of the target floating-point audio sample data to the original frequency is the reverse process of the process recorded in step S2022 in the above embodiment, and will not be described in detail here.
[0082] In step S3023, the first floating-point audio sample data is restored to obtain a plurality of floating-point audio sample data.
[0083] In some examples, the restoration process may include: discarding one or more flat values inserted between each two adjacent floating-point audio sample data to obtain multiple floating-point audio sample data. The process of processing the first floating-point audio sample data into multiple floating-point audio sample data is the reverse process of the process recorded in step S2021 in the above embodiment, and will not be repeated here.
[0084] In some embodiments, the above step S302 can be specifically refined as follows: grouping the target audio according to the data processing quantity of the audio conversion device to obtain a target audio group; using the audio conversion device to convert each target audio group to obtain a target data group, the target data group including the corresponding floating-point audio sample data. This process can be regarded as the reverse process of the process from the target floating-point audio sample data to the target data group, and then from the target data group to the target audio in the above embodiment, and will not be repeated here.
[0085] In some embodiments, the floating-point audio sample data is carried in a data frame. The encoding related information includes a checksum of the service information, or the encoding related information includes a checksum of the service information and a checksum of the data header information. The receiving end device can process the redundant information in the data frame using a forward error correction method to obtain a data frame after forward error correction. The receiving end device can also parse the data header information and use the checksum in the data header information to check the service information, or use the checksum in the data header information to check the service information and the data header information.
[0086] It should be noted that the cross-device data transmission method applied to the sending device in the second aspect embodiment is a method applied to the receiving device corresponding to the cross-device data transmission method in the first aspect embodiment above. All implementation methods in the first aspect method embodiment above are applicable to the second aspect method embodiment and can achieve the same technical effect, which will not be repeated here.
[0087] A third aspect of the present application provides a sending end device, which is applied to a sending end device. Figure 7 A schematic diagram of the structure of a transmitting end device provided in an embodiment of the present application is shown in FIG. Figure 7 As shown, the transmitting end device 400 may include a first digital data conversion module 401 , a first audio conversion module 402 and a transmitting module 403 .
[0088] The first digital data conversion module 401 may be used to convert notification information, data header information and collected service information into floating-point audio sample data according to the conversion rules of floating-point audio data.
[0089] A floating-point audio sample data corresponds to an N-bit binary number, where N is a positive integer. The notification information is used by the receiving device to distinguish valid information. The data header information includes encoding-related information.
[0090] The first audio conversion module 402 may be used to obtain target audio based on the converted floating-point audio sample data.
[0091] The sending module 403 may be used to transmit the target audio outward.
[0092] In some embodiments, the first digital data conversion module 401 can be specifically used to: convert each N-bit binary number in the binary data into a floating-point audio sample data according to the arrangement order of the binary data of the notification information, the binary data of the data header information and the binary data of the business information and according to the conversion rules.
[0093] In some embodiments, the first audio conversion module 402 can be specifically used to: smooth the multiple floating-point audio sample data obtained by conversion to obtain first floating-point audio sample data; shift the center frequency of the first floating-point audio sample data from the original frequency to a preset audio transmission frequency range to obtain target floating-point audio sample data; and convert the target floating-point audio sample data into target audio.
[0094] In some examples, the first audio conversion module 402 may be specifically used to: insert one or more smooth values between two adjacent floating-point audio sample data according to the gap between two adjacent floating-point audio sample data obtained by conversion to obtain first floating-point audio sample data; or, insert one or more smooth values between two adjacent floating-point audio sample data according to the gap between two adjacent floating-point audio sample data obtained by conversion, and perform polynomial smoothing on the floating-point audio sample data after the smooth values are inserted to obtain first floating-point audio sample data.
[0095] In some examples, the first audio conversion module 402 can be specifically used to: group multiple target floating-point audio sample data according to the data processing quantity of the audio conversion device to obtain a target data group; and use the audio conversion device to convert each target data group to obtain target audio.
[0096] In some embodiments, the encoding related information includes a checksum of the service information, or the encoding related information includes a checksum of the service information and a checksum of the data header information. The floating point audio sample data is carried in the data frame. The first audio conversion module 402 can also be used to add redundant information to the data frame using a forward error correction method.
[0097] It should be noted that the sending end device 400 is a device corresponding to the cross-device data transmission method in the above-mentioned first aspect embodiment. All implementation methods in the above-mentioned method embodiment are applicable to the embodiment of the device and can achieve the same technical effect, which will not be repeated here.
[0098] A fourth aspect of the present application provides a receiving end device, which can be applied to a receiving end device. Figure 8 A schematic diagram of the structure of a receiving end device provided in an embodiment of the present application is shown in FIG. Figure 8 As shown, the receiving end device 500 may include a receiving module 501 , a second audio conversion module 502 , and a second digital data conversion module 503 .
[0099] The receiving module 501 may be configured to receive target audio.
[0100] The second audio conversion module 502 may be used to obtain floating-point audio sample data based on the target audio using an audio conversion device.
[0101] One floating-point audio sample data corresponds to an N-bit binary number, where N is a positive integer.
[0102] The second digital data conversion module 503 may be used to convert the floating-point audio sample data into notification information, data header information and collected service information according to the conversion rules of floating-point audio data.
[0103] The notification information is used by the receiving device to distinguish valid information. The data header information includes encoding related information.
[0104] In some embodiments, the second audio conversion module 502 can be specifically used to: use an audio conversion device to convert the target audio into target floating-point audio sample data; shift the center frequency of the target floating-point audio sample data to a preset original frequency to obtain first floating-point audio sample data; and restore the first floating-point audio sample data to obtain multiple floating-point audio sample data.
[0105] In some examples, the second audio conversion module 502 may be specifically configured to discard one or more flat values inserted between each two adjacent floating-point audio sample data to obtain a plurality of floating-point audio sample data.
[0106] In some embodiments, the second digital data conversion module 503 can be specifically used to: convert each floating-point audio sample data into N-bit binary data according to the conversion rule; and obtain notification information, data header information and service information according to the arrangement order of the binary data.
[0107] In some examples, the second audio conversion module 502 can be specifically used to: group the target audio according to the data processing quantity of the audio conversion device to obtain a target audio group; use the audio conversion device to convert each target audio group to obtain a target data group, and the target data group includes corresponding floating-point audio sample data.
[0108] In some embodiments, the encoding related information includes a checksum of the service information, or the encoding related information includes a checksum of the service information and a checksum of the data header information. The floating point audio sample data is carried in a data frame.
[0109] The second audio conversion module 502 may also be used to: process redundant information in the data frame using a forward error correction method to obtain a data frame after forward error correction.
[0110] The second digital data conversion module 503 may also be used to: parse the data header information, and verify the service information using the checksum in the data header information, or verify the service information and the data header information using the checksum in the data header information.
[0111] It should be noted that the access receiving end device 500 in the fourth aspect embodiment is a device corresponding to the cross-device data transmission method in the above-mentioned second aspect embodiment. All implementation methods in the above-mentioned method embodiment are applicable to the embodiments of the device and can achieve the same technical effects, which will not be repeated here.
[0112] The fifth aspect of the present application also provides a sending end device. Fig. 9 A schematic diagram of the structure of a transmitting end device provided in an embodiment of the present application is shown in FIG. Fig. 9 As shown, the transmitting end device 600 includes a memory 601 , a processor 602 , and a computer program stored in the memory 601 and executable on the processor 602 .
[0113] In some examples, the processor 602 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0114] The memory 601 may include a read-only memory (ROM), a random access memory (RAM), a disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Therefore, generally, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the data transmission method across devices in the first aspect of the present application.
[0115] The processor 602 runs a computer program corresponding to the executable program code by reading the executable program code stored in the memory 601, so as to implement the cross-device data transmission method in the above-mentioned first aspect embodiment.
[0116] In some examples, the transmitting device 600 may further include a communication interface 603 and a bus 604. Fig. 9 As shown, the memory 601, the processor 602, and the communication interface 603 are connected via a bus 604 and communicate with each other.
[0117] The communication interface 603 is mainly used to realize the communication between the modules, devices, units and / or equipment in the embodiment of the present application. The communication interface 603 can also be used to access input devices and / or output devices.
[0118] The bus 604 includes hardware, software or both, and couples the components of the transmitting end device 600 to each other. For example, but not limitation, the bus 604 may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnection, an Industry Standard Architecture (ISA) bus, an InfiniBand interconnection, a Low Pin Count (LPC) bus, a Memory Bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-E) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses or a combination of two or more of these. Where appropriate, the bus 604 may include one or more buses. Although embodiments of the present application describe and illustrate a particular bus, the present application contemplates any suitable bus or interconnect.
[0119] A sixth aspect of the present application provides a receiving device, which may include a memory, a processor, and a computer program stored in the memory and executable on the processor.
[0120] The memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method for transmitting data across devices in the second aspect of the present application.
[0121] The processor runs a computer program corresponding to the executable program code by reading the executable program code stored in the memory, so as to implement the cross-device data transmission method in the above-mentioned second aspect embodiment.
[0122] In some examples, the receiving device may also include a communication interface and a bus, and the memory, processor, and communication interface are connected through the bus to complete communication with each other.
[0123] The connection between the memory, processor, communication interface, and bus in the receiving device and the specific implementation method can be found in the relevant description of the embodiment of the sending device in the fifth aspect above, and will not be repeated here.
[0124] The seventh aspect of the present application provides a cross-device data transmission system, which includes the sending end device and the receiving end device in the above-mentioned embodiments. The specific content can be found in the relevant descriptions in the above-mentioned embodiments, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0125] In an eighth aspect of the present application, a computer-readable storage medium is provided, on which a computer program instruction is stored. When the computer program instruction is executed by a processor, the cross-device data transmission method in the first aspect embodiment or the cross-device data transmission method in the second aspect embodiment can be implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. Among them, the above-mentioned computer-readable storage medium may include a non-transitory computer-readable storage medium, such as a read-only memory (Read-Only Memory, referred to as ROM), a random access memory (RandomAccess Memory, referred to as RAM), a disk or an optical disk, etc., which is not limited here.
[0126] An embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements the cross-device data transmission method in the first aspect embodiment or the cross-device data transmission method in the second aspect embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0127] It should be clear that the various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. For the transmitting device embodiment, the receiving device embodiment, the system embodiment, the computer-readable storage medium embodiment, and the computer program product embodiment, the relevant parts can refer to the description part of the method embodiment. The present application is not limited to the specific steps and structures described above and shown in the figures. Those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application. In addition, for the sake of brevity, a detailed description of the known technology is omitted here.
[0128] The above describes various aspects of the present application with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present application. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the functions / actions specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0129] Those skilled in the art should understand that the above embodiments are exemplary rather than restrictive. Different technical features appearing in different embodiments can be combined to achieve beneficial effects. Based on the study of the drawings, the specification and the claims, those skilled in the art should be able to understand and implement other variations of the disclosed embodiments. In the claims, the term "comprising" does not exclude other devices or steps; the quantifier "one" does not exclude multiple; the terms "first" and "second" are used to indicate names rather than to indicate any specific order. Any figure marks in the claims should not be understood as limiting the scope of protection. The functions of multiple parts appearing in the claims can be implemented by a single hardware or software module. The appearance of certain technical features in different dependent claims does not mean that these technical features cannot be combined to achieve beneficial effects.
Claims
1. A method for data transmission across devices, characterized in that: Applied to a transmitting device, the method comprises: According to the conversion rules of floating-point audio data, the notification information, the data header information and the collected business information are converted into floating-point audio sample data, where one floating-point audio sample data corresponds to an N-bit binary number, where N is a positive integer, the notification information is used by the receiving end device to distinguish valid information, and the data header information includes encoding related information; Using an audio conversion device to obtain target audio based on the floating-point audio sample data obtained by conversion; broadcasting the target audio outwardly; The converting of notification information, data header information and collected service information into floating-point audio sample data according to the conversion rules of floating-point audio data includes: According to the arrangement order of the binary data of the notification information, the binary data of the data header information, and the binary data of the service information, and in accordance with the conversion rule, each N-bit binary number in the binary data is converted into a floating-point audio sample data; The method of obtaining the target audio by using the audio conversion device based on the floating-point audio sample data obtained by conversion includes: Performing smoothing processing on the multiple floating-point audio sample data obtained by conversion to obtain first floating-point audio sample data; Shifting the center frequency of the first floating-point audio sample data from the original frequency to within a preset audio transmission frequency range to obtain target floating-point audio sample data; Using the audio conversion device to convert the target floating-point audio sample data into the target audio; The step of performing smoothing processing on the converted multiple floating-point audio sample data to obtain first floating-point audio sample data includes: According to the gap between two adjacent floating-point audio sample data obtained by conversion, one or more smooth values are inserted between two adjacent floating-point audio sample data to obtain the first floating-point audio sample data; or, According to the gap between two adjacent floating-point audio sample data obtained by conversion, one or more smooth values are inserted between the two adjacent floating-point audio sample data, and polynomial smoothing is performed on the floating-point audio sample data after the smooth values are inserted to obtain the first floating-point audio sample data.
2. The method according to claim 1, characterized in that The step of converting the target floating-point audio sample data into the target audio by using the audio conversion device comprises: According to the data processing quantity of the audio conversion device, a plurality of the target floating-point audio sample data are grouped to obtain a target data group; The audio conversion device is used to convert each of the target data groups to obtain the target audio.
3. The method according to claim 1, characterized in that The encoding related information includes a checksum of the service information, or the encoding related information includes a checksum of the service information and a checksum of the data header information; Floating point audio sample data is carried in the data frame; The method further comprises: Redundant information is added to the data frame using a forward error correction method.
4. A method for data transmission across devices, characterized in that: Applied to a receiving device, the method comprises: Receive target audio; Using an audio conversion device to obtain floating-point audio sample data based on the target audio, one floating-point audio sample data corresponds to an N-bit binary number, where N is a positive integer; According to the conversion rule of floating-point audio data, the floating-point audio sample data is converted into notification information, data header information and collected business information, wherein the notification information is used by the receiving end device to distinguish valid information, and the data header information includes encoding related information; The converting of the floating-point audio sample data into notification information, data header information and collected business information according to the conversion rules of the floating-point audio data includes: According to the conversion rule, each floating-point audio sample data is converted into N-bit binary data; Obtaining the notification information, the data header information and the service information according to the arrangement order of the binary data; The encoding related information includes a checksum of the service information, or the encoding related information includes a checksum of the service information and a checksum of the data header information; the floating point audio sample data is carried in a data frame; The method of converting the floating-point audio sample data into notification information, data header information and collected business information according to the conversion rules of the floating-point audio data also includes: Processing redundant information in the data frame using a forward error correction method to obtain the data frame after forward error correction; The method further comprises: Parse the data header information, and verify the service information using the checksum in the data header information, or verify the service information and the data header information using the checksum in the data header information.
5. The method according to claim 4, characterized in that The method of using an audio conversion device to obtain floating-point audio sample data based on the target audio includes: Using an audio conversion device to convert the target audio into target floating-point audio sample data; Shifting the center frequency of the target floating-point audio sample data to a preset original frequency to obtain first floating-point audio sample data; The first floating-point audio sample data is restored to obtain a plurality of floating-point audio sample data.
6. The method according to claim 5, characterized in that The restoring process of the first floating-point audio sample data to obtain a plurality of floating-point audio sample data includes: One or more flat values inserted between each two adjacent floating-point audio sample data are discarded to obtain a plurality of floating-point audio sample data.
7. The method according to claim 4, characterized in that The method of using an audio conversion device to obtain floating-point audio sample data based on the target audio includes: According to the data processing quantity of the audio conversion device, the target audio is grouped to obtain a target audio group; Each of the target audio groups is converted using the audio conversion device to obtain a target data group, wherein the target data group includes corresponding floating-point audio sample data.
8. A transmitting end device, characterized in that: Applied to a sending end device, the sending end device comprises: A first digital data conversion module is used to convert the notification information, the data header information and the collected business information into floating-point audio sample data according to the conversion rules of floating-point audio data, wherein one floating-point audio sample data corresponds to an N-bit binary number, where N is a positive integer, the notification information is used by a receiving end device to distinguish valid information, and the data header information includes encoding related information; A first audio conversion module, used for obtaining target audio based on the floating-point audio sample data obtained by conversion; A sending module, used for transmitting the target audio outwards; The first digital data conversion module is specifically used to: according to the arrangement order of the binary data of the notification information, the binary data of the data header information and the binary data of the service information, and according to the conversion rule, convert each N-bit binary number in the binary data into a floating-point audio sample data; The first digital data conversion module is specifically used to: perform smoothing processing on the converted multiple floating-point audio sample data to obtain first floating-point audio sample data; shift the center frequency of the first floating-point audio sample data from the original frequency to a preset audio transmission frequency range to obtain target floating-point audio sample data; and use an audio conversion device to convert the target floating-point audio sample data into the target audio; The first digital data conversion module is specifically used to: insert one or more smooth values between two adjacent floating-point audio sample data according to the gap between two adjacent floating-point audio sample data obtained by conversion, so as to obtain the first floating-point audio sample data; or insert one or more smooth values between two adjacent floating-point audio sample data according to the gap between two adjacent floating-point audio sample data obtained by conversion, and perform polynomial smoothing processing on the floating-point audio sample data after the smooth values are inserted, so as to obtain the first floating-point audio sample data.
9. A receiving end device, characterized in that: Applied to a receiving end device, the receiving end device comprises: A receiving module, used for receiving target audio; A second audio conversion module is used to obtain floating-point audio sample data based on the target audio using an audio conversion device, wherein one floating-point audio sample data corresponds to an N-bit binary number, where N is a positive integer; A second digital data conversion module is used to convert the floating-point audio sample data into notification information, data header information and collected business information according to the conversion rules of floating-point audio data, wherein the notification information is used by the receiving end device to distinguish valid information, and the data header information includes encoding related information; The second digital data conversion module is specifically used to: convert each floating-point audio sample data into N-bit binary data according to the conversion rule; obtain the notification information, the data header information and the service information according to the arrangement order of the binary data; The encoding related information includes a checksum of the service information, or the encoding related information includes a checksum of the service information and a checksum of the data header information; the floating point audio sample data is carried in a data frame; The second audio conversion module is further used to: process the redundant information in the data frame using a forward error correction method to obtain the data frame after forward error correction; The second digital data conversion module is further used to: parse the data header information, and verify the business information using the checksum in the data header information, or verify the business information and the data header information using the checksum in the data header information.
10. A transmitting end device, characterized in that: include: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the cross-device data transmission method according to any one of claims 1 to 3 is implemented.
11. A receiving device, characterized in that: include: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, it implements the cross-device data transmission method as described in any one of claims 4 to 7.
12. A cross-device data transmission system, characterized in that: include: The transmitting end device as claimed in claim 10; The receiving device as claimed in claim 11.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the cross-device data transmission method according to any one of claims 1 to 7 is implemented.
