CN114884584A - Data transmission method, related device and computer program product - Google Patents

Data transmission method, related device and computer program product Download PDF

Info

Publication number
CN114884584A
CN114884584A CN202210470401.8A CN202210470401A CN114884584A CN 114884584 A CN114884584 A CN 114884584A CN 202210470401 A CN202210470401 A CN 202210470401A CN 114884584 A CN114884584 A CN 114884584A
Authority
CN
China
Prior art keywords
bit
data
sound wave
rule
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210470401.8A
Other languages
Chinese (zh)
Other versions
CN114884584B (en
Inventor
顾亚辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Xiaodu Technology Co Ltd
Original Assignee
Shanghai Xiaodu Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Xiaodu Technology Co Ltd filed Critical Shanghai Xiaodu Technology Co Ltd
Priority to CN202210470401.8A priority Critical patent/CN114884584B/en
Publication of CN114884584A publication Critical patent/CN114884584A/en
Application granted granted Critical
Publication of CN114884584B publication Critical patent/CN114884584B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B11/00Transmission systems employing sonic, ultrasonic or infrasonic waves
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • G10L19/04Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis using predictive techniques
    • G10L19/16Vocoder architecture
    • G10L19/167Audio streaming, i.e. formatting and decoding of an encoded audio signal representation into a data stream for transmission or storage purposes

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The disclosure provides a data transmission method, a data transmission device, an electronic device, a computer readable storage medium and a computer program product, and relates to the technical field of information transmission such as data transmission, near field communication and data exchange. One embodiment of the method comprises: after the bit coding rule of the sound wave data is determined, the target data to be transmitted is coded into the target sound wave data according to the bit coding rule, and the target data is obtained by analyzing the data receiving terminal receiving the target sound wave data according to the bit coding rule in a mode of playing the target sound wave data. According to the embodiment, after the target data are coded into the sound wave data, the transmission of the target data is realized in a mode of playing the sound wave data, and the data transmission can be completed under the scene that the wireless network communication and the Bluetooth communication are not convenient to apply.

Description

Data transmission method, related device and computer program product
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to the field of information transmission technologies such as data transmission, near field communication, and data exchange, and in particular, to a data transmission method, an apparatus, an electronic device, a computer-readable storage medium, and a computer program product.
Background
The appearance of terminals supporting wireless communication brings great convenience to people, data transmission between different terminals is realized by establishing communication links by means of communication technologies such as action hotspots, Bluetooth and the like for realizing data transmission between wireless terminals, and at the moment, corresponding wireless adapters and corresponding supporting software are required to be configured for adaptive transmission interaction.
Disclosure of Invention
The embodiment of the disclosure provides a data transmission method, a data transmission device, an electronic device, a computer-readable storage medium and a computer program product.
In a first aspect, an embodiment of the present disclosure provides a data transmission method, including: determining a bit coding rule of the sound wave data, coding target data to be transmitted into the target sound wave data according to the bit coding rule, and playing the target sound wave data so that a data receiving terminal receiving the target sound wave data can analyze the target data according to the bit coding rule.
In a second aspect, an embodiment of the present disclosure provides a data transmission apparatus, including: an encoding rule determination unit configured to determine a bit encoding rule of the acoustic wave data; the data coding unit is configured to code target data to be transmitted into target sound wave data according to the bit coding rule; and the data sending unit is configured to play the target sound wave data so that the data receiving terminal receiving the target sound wave data can analyze the target sound wave data according to the bit coding rule.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executable by the at least one processor to enable the at least one processor to implement the data transmission method as described in any implementation manner of the first aspect when executed.
In a fourth aspect, an embodiment of the present disclosure provides a data transmission system, where the data transmission system includes: the data transmitting terminal is configured to determine a bit coding rule of the sound wave data, code target data to be transmitted into the target sound wave data according to the bit coding rule, and play the target sound wave data so that a data receiving terminal receiving the target sound wave data obtains the target data through analysis according to the bit coding rule; and the data receiving terminal is configured to respond to the target sound wave data played by the data sending terminal, and analyze the target sound wave data according to the bit coding rule to obtain the target data.
In a fifth aspect, the disclosed embodiments provide a non-transitory computer-readable storage medium storing computer instructions for enabling a computer to implement the data transmission method as described in any implementation manner of the first aspect when executed.
In a sixth aspect, the disclosed embodiments provide a computer program product comprising a computer program, which when executed by a processor is capable of implementing the data transmission method as described in any one of the implementations of the first aspect.
According to the data transmission method, the data transmission device, the electronic equipment, the computer readable storage medium and the computer program product provided by the embodiments of the disclosure, after the bit coding rule of the sound wave data is determined, the target data to be transmitted is coded into the target sound wave data according to the bit coding rule, and the target data is obtained by analyzing the data receiving terminal receiving the target sound wave data according to the bit coding rule in a manner of playing the target sound wave data.
The present disclosure provides a data transmission method, which can encode target data into sound wave data to facilitate transmission of the target data by playing the sound wave data, and can complete data transmission in a scenario not convenient for wireless network communication and bluetooth communication.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
Other features, objects and advantages of the present disclosure will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:
FIG. 1 is an exemplary system architecture to which the present disclosure may be applied;
fig. 2 is a flowchart of a data transmission method provided in an embodiment of the present disclosure;
fig. 3 is a flowchart of another data transmission method provided by the embodiment of the present disclosure;
fig. 4 is a flowchart of another data transmission method provided by the embodiment of the present disclosure;
fig. 5a, 5b, and 5c are schematic diagrams illustrating effects of a data transmission method in an application scenario according to an embodiment of the present disclosure;
fig. 6 is a block diagram of a data transmission device according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of an electronic device suitable for executing a data transmission method according to an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness. It should be noted that, in the present disclosure, the embodiments and features of the embodiments may be combined with each other without conflict.
In addition, in the technical scheme related to the disclosure, the processes of obtaining the personal information of the user (for example, the data to be transmitted included in the disclosure is the personal information of the user), storing, using, processing, transporting, providing, disclosing and the like all conform to the regulations of the relevant laws and regulations, and do not violate the good custom of the public order.
Fig. 1 illustrates an exemplary system architecture 100 to which embodiments of the data transmission method, apparatus, electronic device, and computer-readable storage medium of the present disclosure may be applied.
As shown in fig. 1, the system architecture 100 may include terminals 101, 102, and 103, wherein the terminals 101, 102, and 103 are generally provided with a sound wave playing component such as a speaker and a loudspeaker, and a corresponding sound wave collecting and receiving component, and a user may use the sound wave playing component and the sound wave collecting and receiving component of the terminals 101, 102, and 103 to implement sending and receiving of sound wave data. The terminals 101, 102, 103 may be installed with various applications for implementing information communication between the two, such as data interaction application, instant messaging application, etc.
The terminals 101, 102, 103 may be hardware or software. When the terminals 101, 102, and 103 are hardware, they may be various electronic devices provided with sound wave playing components such as speakers and speakers, and corresponding sound wave collecting and receiving components, including but not limited to smart wearable devices, smart phones, laptop portable computers, desktop computers, and the like; when the terminals 101, 102, 103 are software, they may be installed in the electronic devices listed above, and they may be implemented as a plurality of software or software modules, or may be implemented as a single software or software module, and are not limited in this respect.
The terminals 101, 102, and 103 may provide various services through various built-in applications, taking the terminal 101 installed with a data interaction application that may provide a data transmission service as an example, when the terminal 101 runs the data interaction application, the following effects are achieved: first, the terminal 101 determines a bit encoding rule of the acoustic wave data; then, the terminal 101 encodes the target data to be transmitted into the target sound wave data according to the bit encoding rule, and finally, the terminal 101 plays the target sound wave data, so that a data receiving terminal (for example, the terminal 102) receiving the target sound wave data analyzes according to the bit encoding rule to obtain the target data.
Since the transmission distance of the acoustic data is limited, the transmission of the acoustic data is generally implemented based on a terminal used by a user, so that the data transmission method is generally performed by the terminal used by the user for the convenience of the user, so that the user can transmit the acoustic data obtained by the data transmission method, and accordingly, the data transmission device is generally disposed in the terminals 101, 102, and 103. It should be noted that, in some application scenarios, the system architecture 100 may further include a server, which may implement the same functions as the terminals described above, and the above description of the terminals does not constitute any limitation on the selection of the execution subject in the present disclosure.
It should be understood that the number of terminals in fig. 1 is merely illustrative. There may be any number of terminals, and additional servers to combine the needs, as desired.
Referring to fig. 2, fig. 2 is a flowchart of a data transmission method according to an embodiment of the disclosure, where the process 200 includes the following steps:
step 201, determining a bit encoding rule of the sound wave data.
In this embodiment, the execution body of the data transmission method (for example, the terminal 101 shown in fig. 1) determines the bit encoding rule of the acoustic data, and the bit encoding rule is usually configured in advance in each data transmission terminal and data reception terminal.
The bit encoding rule is that information represented by a specific tone, amplitude and frequency can be determined based on at least one of tone, amplitude and frequency in sound wave, for example, when binary information is transmitted, it can be determined that tone "Do" represents "1" in binary, that is, when tone "Do" is received, it can be determined that information "1" is received.
Step 202, encoding target data to be transmitted into target sound wave data according to a bit encoding rule.
In this embodiment, after determining the bit encoding rule of the sound wave data based on the step 201, the target data is converted into the target sound wave data based on the bit encoding rule, where when the data to be transmitted is different from the information format supported by the bit encoding rule, the data to be transmitted may be converted into the target data in the information format supported by the bit encoding rule, for example, when the bit encoding rule is encoded based on binary data, the data to be transmitted may be converted into the target data in the corresponding binary information format.
And step 203, playing the target sound wave data so that the data receiving terminal receiving the target sound wave data obtains the target data through analysis according to the bit coding rule.
In this embodiment, after the target sound wave data is generated based on the step 202, the target sound wave data may be played, so that the data receiving terminal receiving the target sound wave data may analyze the target sound wave data according to the bit encoding rule to obtain the target data.
According to the data transmission method provided by the embodiment of the disclosure, after the target data is encoded into the sound wave data, the transmission of the target data is realized in a way of playing the sound wave data, and the data transmission can be completed under a scene which is not convenient for wireless network communication and Bluetooth communication.
Referring to fig. 3, fig. 3 is a flowchart of another data transmission method according to an embodiment of the disclosure, where the process 300 includes the following steps:
step 301, playing a preset pairing request audio.
In this embodiment, the executing entity may play the pairing request audio to determine the data receiving terminal that subsequently receives the target data, where the pairing request audio is usually preset with specific sound wave data, and the terminal 101 may also play the specific sound wave data through a speaker to play the preset pairing request audio.
In step 302, bit-encoded sound waves are extracted from the received paired response audio.
In this embodiment, after receiving the pairing request audio sent in step 301, the data receiving terminal may respond to this, and return a pairing response audio to the execution main body, where the pairing response audio includes a bit-encoded sound wave randomly generated by the data receiving terminal.
In some optional implementations of this embodiment, determining the bit encoding rule according to the bit-encoded sound wave includes: in response to the bit-coded sound wave being marked with sound wave bit information, the bit-coding rule is generated based on the sound wave bit information.
Specifically, after receiving the pairing request audio transmitted by the execution main body, the data receiving terminal may randomly generate a bit-coded sound wave locally at the data receiving terminal, determine a marking principle based on at least one parameter of timbre, amplitude and frequency in the bit-coded sound wave, and mark the bit information of the sound wave, illustratively, describe the realization of the bit information marking of the sound wave by timbre, the data receiving terminal may mark the timbre in the sound wave data, generate the bit information of the sound wave corresponding to the bit-coded sound wave by representative bit information corresponding to each timbre, and collect the bit information corresponding to each timbre, wherein the execution main body and the data receiving terminal may transmit the bit information of the sound wave in advance through a pre-configured protocol, illustratively, a bit "1" corresponding to the timbre transmitted after "Do" is recorded in the pre-configured protocol, the tone sent after the 'Re' corresponds to a bit '0', so that a bit coding rule is determined according to the configuration of the data receiving terminal, the pairing efficiency is improved, and meanwhile, the configuration resource requirement of the data receiving terminal is reduced.
Furthermore, the bit encoding rule can be determined by marking the bit encoding sound wave received within the preset time after the sound with the specific frequency is received, corresponding to the specific bit information.
Furthermore, different timbres can be distinguished in advance to avoid the condition that the same timbre is used for marking sound wave bit information and determining bit coding rules, and different timbres can be distinguished in advance.
Step 303, determining the bit encoding rule according to the bit encoded sound wave.
In this embodiment, a bit encoding rule is generated based on the sound wave bit information, and for example, in binary encoding, after receiving a bit encoded sound wave returned from the data receiving terminal, the tone color corresponding to each of the bits "1" and "0" is determined based on the sound wave bit information therein.
And step 304, encoding the target data to be transmitted into target sound wave data according to a bit encoding rule.
And 305, playing the target sound wave data so that the data receiving terminal receiving the target sound wave data obtains the target data through analysis according to the bit coding rule.
The above steps 304 and 305 are the same as the steps 202 and 203 shown in fig. 2, and the content of the same part refers to the corresponding part of the previous embodiment, which is not described herein again, and on the basis of the embodiment shown in fig. 2 in this embodiment, further, the data to be transmitted may be encoded into the acoustic wave data based on the bit encoded acoustic wave randomly configured by the data receiving terminal, so as to reduce the hardware requirement for data transmission, dynamically configure the encoding rule, and improve the security of data transmission.
In some optional implementations of this embodiment, the generating the bit encoding rule based on the sonic bit information in response to the sonic bit information being marked in the bit-encoded sonic wave includes: responding to the sound wave bit information marked in the bit-coded sound wave, generating a duplication-checking bit coding rule based on the sound wave bit information, and transmitting the duplication-checking bit coding rule to the data receiving terminal in a sound wave form; controlling the data receiving terminal to inquire whether the coding rule of the bit to be checked is triggered; and in response to receiving the indication information that the duplication bit rule to be checked is not triggered, determining the duplication bit encoding rule to be checked as the bit encoding rule.
Specifically, when the executing body responds when the bit-coded sound wave is marked with sound wave bit information, and generates a to-be-checked bit coding rule based on the sound wave bit information, the generation manner of the to-be-checked bit coding rule is the same as the manner of determining the bit coding rule in the step 303, which is not described herein again, after the to-be-checked bit coding rule is generated, the executing body returns the to-be-checked bit coding rule to the data receiving terminal, and controls the data receiving terminal to query whether the to-be-checked bit coding rule is triggered, that is, controls the data receiving terminal to query whether the to-be-checked bit coding rule is used for establishing a communication connection for data transmission with other terminal devices other than the executing body, and when the data receiving terminal determines that the to-be-checked bit rule is not triggered (that is not used for establishing a communication connection for data transmission with other terminal devices other than the executing body), the data receiving terminal returns indication information that the duplication bit rule to be checked is not triggered to the execution main body, the execution main body can respond when receiving the indication information, the duplication bit coding rule to be checked is determined as the bit coding rule, and the bit coding rule determined by the execution main body is secondarily confirmed through the method, so that the situation that a plurality of terminal devices use the same bit coding rule to generate mutual interference is avoided, and data safety is improved.
Referring to fig. 4, fig. 4 is a flowchart of another data transmission method according to an embodiment of the disclosure, where the process 400 includes the following steps:
step 401, playing a preset pairing request audio.
In step 402, bit-encoded sound waves are extracted from the received paired response audio.
And step 403, responding to the bit information of the sound wave which is not marked in the bit coding sound wave, and sending a quadrant query request to the data receiving terminal.
In this embodiment, the execution main body responds when the bit-coded sound wave is not marked with sound wave bit information, and sends a quadrant query request to the data receiving terminal by sending pre-configured sound wave data to the data receiving terminal when the bit-coded sound wave is not marked with sound wave bit information, so that the data receiving terminal returns a quadrant rule which is expected to be used correspondingly according to the quadrant query request, and the execution main body splits the bit-coded sound wave according to the quadrant rule and determines the bit-coded rule.
Step 404, splitting the waveform of the bit coding sound wave according to the quadrant information returned by the data receiving terminal according to the quadrant query request, and determining the bit coding rule.
In this embodiment, the execution main body data receiving terminal splits the waveform of the bit-coded sound wave based on the quadrant information returned by the quadrant query request sent in step 403, determines a bit-coding rule, illustratively, if the quadrant information returned from the data receiving terminal is a four-quadrant, four different portions may be correspondingly selected from the waveform of the bit-coded sound wave, and respectively represent the four quadrants, so as to select an appropriate splitting manner and a bit-coding rule according to the processing capability of the data receiving terminal, balance the relationship between the receiving capability of the data receiving terminal and the data coding efficiency, illustratively, if the quadrant information returned from the data receiving terminal is a four-quadrant, four different portions may be correspondingly selected from the waveform of the bit-coded sound wave, and respectively represent the four quadrants, therefore, a proper splitting mode and a proper bit coding rule are selected according to the processing capacity of the data receiving terminal, and the relation between the receiving capacity of the data receiving terminal and the data coding efficiency is balanced.
Step 405, the bit encoding rule is sent to the data receiving terminal.
In this embodiment, the bit encoding rule determined in step 404 is sent to the data receiving terminal, which can be implemented in the same manner that the execution main body acquires the bit encoded sound wave from the data receiving terminal and determines the bit encoding rule in step 302 and step 303 shown in fig. 3, and details are not repeated here.
And step 406, encoding the target data to be transmitted into target sound wave data according to the bit encoding rule.
Step 407, playing the target sound wave data, so that the data receiving terminal receiving the target sound wave data obtains the target data by parsing according to the bit encoding rule.
The above steps 406 and 407 are the same as the steps 202 and 203 shown in fig. 2, and the contents of the same parts refer to corresponding parts in the previous embodiment, which are not described herein again, and on the basis of the embodiment shown in fig. 2 in this embodiment, further, the bit encoding rule may be determined by a terminal usually embodied as a data sending terminal, so as to reduce the calculation requirement on the data receiving terminal.
In some optional implementations of this embodiment, the method further includes: and in response to the fact that a plurality of check bit sound wave data exist in the target sound wave data and the confirmation information fed back by the data receiving end is not received within the preset time after the current check bit sound wave data are played, the target sound wave data between the current check bit sound wave data and the adjacent historical check bit sound wave data are played again.
Specifically, in the process of obtaining the target acoustic wave data through encoding, multiple check bit acoustic wave data can be added into the obtained target acoustic wave data, the data receiving end is controlled to feed back when the check bit acoustic wave data can be successfully received, the data receiving end responds when confirmation information fed back by the data receiving end is not received within preset time after the current check bit acoustic wave data is played, the acoustic wave data between the current check bit acoustic wave data and the adjacent historical check bit acoustic wave data which receive the confirmation information fed back by the data receiving terminal are played again, the data sending terminal can conveniently determine the receiving condition of the data receiving terminal on the acoustic wave data through the feedback of the data receiving terminal on the check bit acoustic wave data, and the data transmission quality is improved.
In order to deepen understanding, the present disclosure further provides a specific implementation scheme in combination with a specific application scenario, where after the data transmission terminal a encodes locally stored data to be transmitted into sound wave data, the data to be transmitted is transmitted to the data reception terminal B based on the sound wave data, and the specific implementation scheme is as follows:
first, as shown in fig. 5a, the data transmission terminal a transmits the acoustic wave data of "Do, Do" to the data reception terminal B to transmit the acquisition request of the bit-encoded acoustic wave to the data reception terminal.
Next, as shown in fig. 5B, the data receiving terminal B randomly generates a bit-encoded sound wave and returns the bit-encoded sound wave to the data transmitting terminal a.
Further, the data transmission terminal a responds when the sound wave bit information is marked in the bit-coded sound wave, and generates a bit-coding rule based on the sound wave bit information.
After the data transmission terminal a binarizes the data to be transmitted into a binary data stream "0, 1, 0, 1", the data to be transmitted is encoded into sound wave data with sound waves as shown in fig. 5c based on the bit encoding rule.
Finally, the data sending terminal a sends the initial sound wave data of "Mi, Mi" to the data receiving terminal B, and after receiving the confirmation sound wave data fed back by the data receiving terminal B for the initial sound wave data, plays the sound wave data shown in fig. 5c to the data receiving terminal B, and controls the data receiving terminal B to parse the sound wave data based on the bit encoding rule.
With further reference to fig. 6, as an implementation of the methods shown in the above-mentioned figures, the present disclosure provides an embodiment of a data transmission apparatus, which corresponds to the method embodiment shown in fig. 2, and which can be specifically applied to various electronic devices.
As shown in fig. 6, the data transmission device 600 of the present embodiment may include: an encoding rule determination unit 601, a data encoding unit 602, and a data transmission unit 603. Wherein, the encoding rule determining unit 601 is configured to determine a bit encoding rule of the acoustic wave data; a data encoding unit 602 configured to encode target data to be transmitted into target acoustic wave data according to the bit encoding rule; a data transmitting unit 603 configured to play the target sound wave data, so that the data receiving terminal receiving the target sound wave data parses the target data according to the bit coding rule.
In the present embodiment, in the data transmission apparatus 600: the detailed processing of the encoding rule determining unit 601, the data encoding unit 602, and the data sending unit 603 and the technical effects brought by the detailed processing can refer to the related descriptions of step 201 and step 203 in the corresponding embodiment of fig. 2, and are not repeated herein.
In some optional implementations of this embodiment, the encoding rule determining unit 601 includes: a pairing request subunit configured to play a preset pairing request audio; a coded sound wave extracting unit configured to extract bit-coded sound waves from the received paired response audio; wherein the bit-encoded acoustic wave is randomly generated by the data receiving terminal; a coding rule determining subunit configured to determine the bit coding rule from the bit coded sound wave.
In some optional implementations of this embodiment, the determining the sub-unit according to the encoding rule includes: a first rule determination module configured to generate the bit encoding rule based on the sonic bit information in response to the bit encoded sonic being marked with sonic bit information; and a second rule determining module configured to determine the bit encoding rule based on the waveform of the bit encoded sound wave in response to the bit encoded sound wave not being marked with the sound wave bit information.
In some optional implementations of this embodiment, the first rule determining module includes: a rule duplication checking module configured to respond to the sound wave bit information marked in the bit-coded sound wave, generate a duplication checking bit coding rule based on the sound wave bit information, and send the duplication checking bit coding rule to the data receiving terminal in a sound wave form; the duplication checking control submodule is configured to control the data receiving terminal to inquire whether the coding rule of the duplication bits to be checked is triggered; a first encoding rule determining submodule configured to determine the duplication bit encoding rule to be checked as the bit encoding rule in response to receiving indication information that the duplication bit encoding rule to be checked is not triggered.
In some optional implementations of this embodiment, the second rule determining module includes: a quadrant inquiry submodule configured to send a quadrant inquiry request to the data receiving terminal in response to the bit information of the sound wave not marked in the bit-coded sound wave; a second coding rule determining submodule configured to split the waveform of the bit coding sound wave according to quadrant information returned by the data receiving terminal for the quadrant query request, and determine the bit coding rule; and further comprising: and an encoding rule transmitting unit configured to transmit the bit encoding rule to the data receiving terminal.
In some optional implementations of this embodiment, the method further includes: and the verification playing unit is configured to replay the current check bit acoustic data to the target acoustic data between the adjacent historical check bit acoustic data in response to the check bit acoustic data existing in the acoustic data and the confirmation information fed back by the data receiving end not being received within the preset time after the current check bit acoustic data is played.
The present embodiment exists as an apparatus embodiment corresponding to the above method embodiment, and the data transmission apparatus provided in the present embodiment may encode the target data into the sound wave data, so as to implement transmission of the target data by playing the sound wave data, and may complete data transmission in a scenario where wireless network communication and bluetooth communication are not convenient to apply.
The present disclosure also provides a data transmission system, an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
The data transmission system comprises: the data transmitting terminal is configured to determine a bit coding rule of the sound wave data, code target data to be transmitted into the target sound wave data according to the bit coding rule, and play the target sound wave data so that a data receiving terminal receiving the target sound wave data obtains the target data through analysis according to the bit coding rule; and the data receiving terminal is configured to respond to the target sound wave data played by the data sending terminal, and the target sound wave data is obtained by analyzing the target sound wave data according to the bit coding rule.
Further, fig. 7 illustrates a schematic block diagram of an example electronic device 700 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic devices may also represent various forms of mobile devices, such as personal digital processors, cellular telephones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 7, the device 700 comprises a computing unit 701, which may perform various suitable actions and processes according to a computer program stored in a Read Only Memory (ROM)702 or a computer program loaded from a storage unit 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other by a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
Various components in the device 700 are connected to the I/O interface 705, including: an input unit 706 such as a keyboard, a mouse, or the like; an output unit 707 such as various types of displays, speakers, and the like; a storage unit 708 such as a magnetic disk, optical disk, or the like; and a communication unit 709 such as a network card, modem, wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
Computing unit 701 may be a variety of general purpose and/or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The calculation unit 701 executes the respective methods and processes described above, such as the data transmission method. For example, in some embodiments, the data transfer method may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 708. In some embodiments, part or all of a computer program may be loaded onto and/or installed onto device 700 via ROM 702 and/or communications unit 709. When the computer program is loaded into the RAM 703 and executed by the computing unit 701, one or more steps of the data transfer method described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured to perform the data transfer method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The Server may be a cloud Server, which is also called a cloud computing Server or a cloud host, and is a host product in a cloud computing service system, so as to solve the defects of high management difficulty and weak service extensibility in the conventional physical host and Virtual Private Server (VPS) service. The server may also be divided into servers of a distributed system, or servers that incorporate a blockchain.
According to the technical scheme of the embodiment of the disclosure, after the target data are coded into the sound wave data, the transmission of the target data is realized in a mode of playing the sound wave data, and the data transmission can be completed under the scene which is not convenient for being suitable for wireless network communication and Bluetooth communication.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in this disclosure may be performed in parallel or sequentially or in a different order, as long as the desired results of the technical solutions provided by this disclosure can be achieved, and are not limited herein.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (16)

1. A method of data transmission, comprising:
determining a bit encoding rule of the sound wave data;
encoding target data to be transmitted into target sound wave data according to the bit encoding rule;
and playing the target sound wave data so that a data receiving terminal receiving the target sound wave data obtains the target data through analysis according to the bit coding rule.
2. The method of claim 1, wherein the determining a bit encoding rule for the sonic data comprises:
playing preset pairing request audio;
extracting bit-encoded sound waves from the received paired response audio; wherein the bit-encoded acoustic waves are randomly generated by the data receiving terminal;
determining the bit encoding rule from the bit encoded sound wave.
3. The method of claim 2, wherein said determining the bit encoding rule from the bit encoded sound wave comprises:
generating the bit encoding rule based on the sound wave bit information in response to the sound wave bit information being marked in the bit encoded sound wave;
in response to the bit information of the sound wave not being marked in the bit-coded sound wave, determining the bit coding rule based on the waveform of the bit-coded sound wave.
4. A method according to claim 3, wherein said generating the bit-encoding rule based on the sonic bit information in response to the sonic bit information being marked in the bit-encoded sonic wave comprises:
responding to the sound wave bit information marked in the bit-coded sound wave, generating a duplication-checking bit coding rule based on the sound wave bit information, and sending the duplication-checking bit coding rule to the data receiving terminal in a sound wave form;
controlling the data receiving terminal to inquire whether the coding rule of the bit to be checked is triggered or not;
in response to receiving indication information that the duplication bit rule to be checked is not triggered, determining the duplication bit encoding rule to be checked as the bit encoding rule.
5. The method of claim 3, wherein said determining the bit encoding rule based on the waveform of the bit encoded sound wave in response to the bit encoded sound wave not being marked with the sound wave bit information comprises:
responding to the bit information of the sound waves which are not marked in the bit coding sound waves, and sending a quadrant query request to the data receiving terminal;
splitting the waveform of the bit coding sound wave according to quadrant information returned by the data receiving terminal aiming at the quadrant query request, and determining the bit coding rule; and
further comprising:
and sending the bit coding rule to the data receiving terminal.
6. The method of claim 1, further comprising:
and in response to the fact that a plurality of check bit sound wave data exist in the target sound wave data and the confirmation information fed back by the data receiving end is not received within the preset time after the current check bit sound wave data are played, re-playing the target sound wave data between the current check bit sound wave data and the adjacent historical check bit sound wave data.
7. A data transmission apparatus comprising:
an encoding rule determination unit configured to determine a bit encoding rule of the acoustic wave data;
the data coding unit is configured to code target data to be transmitted into target sound wave data according to the bit coding rule;
and the data sending unit is configured to play the target sound wave data so that a data receiving terminal receiving the target sound wave data obtains the target data through analysis according to the bit coding rule.
8. The apparatus of claim 7, wherein the encoding rule determining unit comprises:
a pairing request subunit configured to play a preset pairing request audio;
a coded sound wave extracting unit configured to extract bit-coded sound waves from the received paired response audio; wherein the bit-encoded acoustic waves are randomly generated by the data receiving terminal;
a coding rule determination subunit configured to determine the bit coding rule from the bit-coded sound wave.
9. The apparatus of claim 8, wherein the encoding rule determining subunit comprises:
a first rule determination module configured to generate the bit encoding rule based on the sonic bit information in response to sonic bit information being marked in the bit encoded sonic wave;
a second rule determination module configured to determine the bit encoding rule based on a waveform of the bit encoded sound wave in response to the bit encoded sound wave not being marked with the sound wave bit information.
10. The apparatus of claim 9, wherein the first rule determination module comprises:
the rule duplication checking module is configured to respond to the sound wave bit information marked in the bit-coded sound wave, generate a duplication checking bit coding rule based on the sound wave bit information, and send the duplication checking bit coding rule to the data receiving terminal in a sound wave form;
the duplication checking control sub-module is configured to control the data receiving terminal to inquire whether the coding rule of the duplication bits to be checked is triggered or not;
a first encoding rule determining submodule configured to determine the duplication bit encoding rule to be checked as the bit encoding rule in response to receiving indication information that the duplication bit encoding rule to be checked is not triggered.
11. The apparatus of claim 9, wherein the second rule determination module comprises:
a quadrant query submodule configured to send a quadrant query request to the data receiving terminal in response to the bit information of the sound wave not marked in the bit-coded sound wave;
a second encoding rule determining sub-module configured to split the waveform of the bit encoding sound wave according to quadrant information returned by the data receiving terminal for the quadrant query request, and determine the bit encoding rule; and
further comprising:
an encoding rule transmitting unit configured to transmit the bit encoding rule to the data receiving terminal.
12. The apparatus of claim 7, further comprising:
and the verification playing unit is configured to replay the target sound wave data between the current check bit sound wave data and the adjacent historical check bit sound wave data in response to the fact that a plurality of check bit sound wave data exist in the sound wave data and the confirmation information fed back by the data receiving end is not received within the preset time after the current check bit sound wave data is played.
13. A data transmission system comprising:
the data transmitting terminal is configured to determine a bit coding rule of sound wave data, code target data to be transmitted into the target sound wave data according to the bit coding rule, and play the target sound wave data so that a data receiving terminal receiving the target sound wave data obtains the target data through analysis according to the bit coding rule;
and the data receiving terminal is configured to respond to the target sound wave data played by the data sending terminal, and analyze the target sound wave data according to the bit coding rule to obtain the target data.
14. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the data transfer method of any of claims 1-6.
15. A non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the data transmission method of any one of claims 1-6.
16. A computer program product comprising a computer program which, when executed by a processor, implements a data transmission method according to any one of claims 1-6.
CN202210470401.8A 2022-04-28 2022-04-28 Data transmission method, related device and computer program product Active CN114884584B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210470401.8A CN114884584B (en) 2022-04-28 2022-04-28 Data transmission method, related device and computer program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210470401.8A CN114884584B (en) 2022-04-28 2022-04-28 Data transmission method, related device and computer program product

Publications (2)

Publication Number Publication Date
CN114884584A true CN114884584A (en) 2022-08-09
CN114884584B CN114884584B (en) 2023-11-03

Family

ID=82674342

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210470401.8A Active CN114884584B (en) 2022-04-28 2022-04-28 Data transmission method, related device and computer program product

Country Status (1)

Country Link
CN (1) CN114884584B (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130091359A1 (en) * 2010-06-22 2013-04-11 Shanghai Cloudway Information Technology Co., Ltd. Short-range Secure Data Communication Method Based on Sound Wave or Audio, and Apparatus Thereof
CN103560836A (en) * 2013-10-31 2014-02-05 深圳市凡趣科技有限公司 Sound wave wireless communication method and device
US20150085616A1 (en) * 2013-01-15 2015-03-26 X.On Communications Limited Wireless communication system and method thereof
CN106059681A (en) * 2016-05-25 2016-10-26 努比亚技术有限公司 Information transmission method and mobile terminal
CN106550145A (en) * 2016-10-27 2017-03-29 北京小米移动软件有限公司 Information interacting method and device
CN107786282A (en) * 2016-08-26 2018-03-09 腾讯科技(深圳)有限公司 Information interacting method, electronic equipment and server based on sound wave
CN107977562A (en) * 2017-11-30 2018-05-01 努比亚技术有限公司 Personal identification method, identification terminal and storage medium
CN108492831A (en) * 2018-01-29 2018-09-04 歌尔科技有限公司 A kind of data transmission method, audio frequency apparatus, intelligent terminal
CN108777596A (en) * 2018-05-30 2018-11-09 上海惠芽信息技术有限公司 A kind of communication means, communication system and computer readable storage medium based on sound wave
CN109981185A (en) * 2018-11-29 2019-07-05 招商银行股份有限公司 Data transmission and reception method, apparatus and computer readable storage medium
CN110875783A (en) * 2018-09-04 2020-03-10 苏州迪芬德物联网科技有限公司 Ultrasonic communication method
CN112367125A (en) * 2020-10-28 2021-02-12 深圳市潮流网络技术有限公司 Information transmission method, information transmission device, communication equipment and computer readable storage medium
US20210152564A1 (en) * 2017-11-24 2021-05-20 Mobidoo Co.,Ltd. Sound wave communication platform, communication method using sound wave signal, and device therefor
WO2021160040A1 (en) * 2020-02-11 2021-08-19 华为技术有限公司 Audio transmission method and electronic device
CN113672230A (en) * 2021-06-23 2021-11-19 重庆斯欧智能科技研究院有限公司 Industrial element identification coding method

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130091359A1 (en) * 2010-06-22 2013-04-11 Shanghai Cloudway Information Technology Co., Ltd. Short-range Secure Data Communication Method Based on Sound Wave or Audio, and Apparatus Thereof
US20150085616A1 (en) * 2013-01-15 2015-03-26 X.On Communications Limited Wireless communication system and method thereof
CN103560836A (en) * 2013-10-31 2014-02-05 深圳市凡趣科技有限公司 Sound wave wireless communication method and device
CN106059681A (en) * 2016-05-25 2016-10-26 努比亚技术有限公司 Information transmission method and mobile terminal
CN107786282A (en) * 2016-08-26 2018-03-09 腾讯科技(深圳)有限公司 Information interacting method, electronic equipment and server based on sound wave
CN106550145A (en) * 2016-10-27 2017-03-29 北京小米移动软件有限公司 Information interacting method and device
US20210152564A1 (en) * 2017-11-24 2021-05-20 Mobidoo Co.,Ltd. Sound wave communication platform, communication method using sound wave signal, and device therefor
CN107977562A (en) * 2017-11-30 2018-05-01 努比亚技术有限公司 Personal identification method, identification terminal and storage medium
CN108492831A (en) * 2018-01-29 2018-09-04 歌尔科技有限公司 A kind of data transmission method, audio frequency apparatus, intelligent terminal
CN108777596A (en) * 2018-05-30 2018-11-09 上海惠芽信息技术有限公司 A kind of communication means, communication system and computer readable storage medium based on sound wave
CN110875783A (en) * 2018-09-04 2020-03-10 苏州迪芬德物联网科技有限公司 Ultrasonic communication method
CN109981185A (en) * 2018-11-29 2019-07-05 招商银行股份有限公司 Data transmission and reception method, apparatus and computer readable storage medium
WO2021160040A1 (en) * 2020-02-11 2021-08-19 华为技术有限公司 Audio transmission method and electronic device
CN112367125A (en) * 2020-10-28 2021-02-12 深圳市潮流网络技术有限公司 Information transmission method, information transmission device, communication equipment and computer readable storage medium
CN113672230A (en) * 2021-06-23 2021-11-19 重庆斯欧智能科技研究院有限公司 Industrial element identification coding method

Also Published As

Publication number Publication date
CN114884584B (en) 2023-11-03

Similar Documents

Publication Publication Date Title
EP4033791A2 (en) Method for vehicle-machine interconnection and apparatus for vehicle-machine interconnection
US9311920B2 (en) Voice processing method, apparatus, and system
CN105518645B (en) Load balanced persistent connection technique
CN113438355B (en) Communication method, device, equipment and storage medium based on cloud mobile phone
CN112822161B (en) Method and equipment for realizing conference message synchronization
CN113489805B (en) Butt joint method, device, equipment and storage medium of cloud desktop system
CN113766270B (en) Video playing method, system, server, terminal equipment and electronic equipment
WO2023066183A1 (en) Data processing method and apparatus, device, and storage medium
CN108696899A (en) Sip message transmits and method of reseptance and transmission and reception device
CN113746837B (en) Information processing method and apparatus, electronic device, and computer readable medium
CN106896933A (en) Phonetic entry is converted into method, device and the voice-input device of text input
CN113012695B (en) Intelligent control method and device, electronic equipment and computer readable storage medium
WO2023179801A1 (en) Data processing method and apparatus, communication system, electronic device, and storage medium
CN114884584B (en) Data transmission method, related device and computer program product
CN104796202A (en) Near-field data transmission device and system and operating method thereof
JP2002182896A (en) Voice recognizing system, voice recognizing device and method therefor
CN110471776B (en) Application data communication method, device and system
CN114221940B (en) Audio data processing method, system, device, equipment and storage medium
CN108492831B (en) Data transmission method, audio equipment and intelligent terminal
CN114301702B (en) Proxy confusing transmission method and device, storage medium and electronic equipment
CN113726881B (en) Communication connection establishment method, related device and computer readable storage medium
CN114283808A (en) Multi-path outbound system, method, apparatus, medium, and product
CN114143907A (en) Wireless connection establishing method and device, electronic equipment and storage medium
CN114267358B (en) Audio processing method, device, equipment and storage medium
CN110399615A (en) Transaction risk monitoring method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant