CN116261124A - Data transmission method and device, electronic equipment and intelligent terminal - Google Patents

Data transmission method and device, electronic equipment and intelligent terminal Download PDF

Info

Publication number
CN116261124A
CN116261124A CN202111500800.6A CN202111500800A CN116261124A CN 116261124 A CN116261124 A CN 116261124A CN 202111500800 A CN202111500800 A CN 202111500800A CN 116261124 A CN116261124 A CN 116261124A
Authority
CN
China
Prior art keywords
intelligent terminal
ultrasonic signal
electronic device
data
ultrasonic
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.)
Pending
Application number
CN202111500800.6A
Other languages
Chinese (zh)
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202111500800.6A priority Critical patent/CN116261124A/en
Publication of CN116261124A publication Critical patent/CN116261124A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/70Services for machine-to-machine communication [M2M] or machine type communication [MTC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B11/00Transmission systems employing sonic, ultrasonic or infrasonic waves
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Abstract

The embodiment of the application provides a data transmission method, a device, electronic equipment and an intelligent terminal, in the data transmission method, the electronic equipment detects an ultrasonic signal, if the ultrasonic signal is detected, and the acoustic power value of the detected ultrasonic signal is greater than or equal to a preset threshold value, the ultrasonic signal is decoded, a delivery protocol supported by the intelligent terminal and corresponding connection information carried by the ultrasonic signal are obtained, then a confirmation instruction is sent to the intelligent terminal, a transmission channel is established according to the delivery protocol and the connection information, data is transmitted to the intelligent terminal, the intelligent terminal processes the data, and therefore short-distance detection between the electronic equipment and the intelligent terminal can be achieved through the ultrasonic signal.

Description

Data transmission method and device, electronic equipment and intelligent terminal
Technical Field
The embodiment of the application relates to the technical field of intelligent terminals, in particular to a data transmission method, a data transmission device, electronic equipment and an intelligent terminal.
Background
Along with development of science and technology, intelligent audio amplifier is more and more popular, and intelligent audio amplifier has integrated bluetooth communication interface, and electronic equipment can broadcast the audio frequency propelling movement to intelligent audio amplifier through bluetooth. In the prior art, before an electronic device (such as a smart phone or a tablet personal computer) pushes audio to an intelligent sound box, close-range detection is required between the intelligent sound box and the electronic device, and at present, the intelligent sound box mainly adopts a near field communication (near field communication, NFC) tag or Bluetooth to carry out close-range detection, but a detection scheme of the NFC tag requires the electronic device to support an NFC function, so that the intelligent sound box has the limitation, and has higher implementation cost, and a Bluetooth detection scheme has complex implementation and poor stability.
Disclosure of Invention
The embodiment of the application provides a data transmission method, a data transmission device, electronic equipment and an intelligent terminal, and also provides a computer readable storage medium for realizing close range detection between the electronic equipment and the intelligent terminal through ultrasonic signals and improving the precision of the close range detection.
In a first aspect, the present application provides a data transmission method, applied to an electronic device, where the method includes: detecting an ultrasonic signal; if an ultrasonic signal is detected and the acoustic power value of the detected ultrasonic signal is greater than or equal to a preset threshold value, decoding the ultrasonic signal to obtain a release protocol supported by an intelligent terminal carried by the ultrasonic signal and connection information corresponding to the release protocol; the intelligent terminal is equipment for sending the ultrasonic signals; sending a confirmation instruction to the intelligent terminal to instruct the intelligent terminal to wait for establishing a transmission channel; establishing a transmission channel with the intelligent terminal according to a release protocol supported by the intelligent terminal and the connection information; and transmitting data to the intelligent terminal through the transmission channel so that the intelligent terminal can process the data.
In the data transmission method, the electronic device detects the ultrasonic signal, if the ultrasonic signal is detected and the acoustic power value of the detected ultrasonic signal is greater than or equal to a preset threshold value, the ultrasonic signal is decoded, a delivery protocol supported by the intelligent terminal and the connection information corresponding to the delivery protocol carried by the ultrasonic signal are obtained, then a confirmation instruction is sent to the intelligent terminal to instruct the intelligent terminal to wait for establishing a transmission channel, and then a transmission channel between the electronic device and the intelligent terminal is established according to the delivery protocol supported by the intelligent terminal and the connection information, and data is transmitted to the intelligent terminal through the transmission channel so as to process the data by the intelligent terminal.
In one possible implementation manner, the detecting the ultrasonic signal includes: detecting ultrasonic signals at least two preset frequency points; the detecting of the ultrasonic signal includes: detecting ultrasonic signals at the at least two frequency points; the ultrasonic signal having an acoustic power value greater than or equal to a predetermined threshold value comprises: the acoustic power value of the ultrasonic signal detected at the at least two frequency points is greater than or equal to a predetermined threshold.
In one possible implementation manner, the decoding the ultrasonic signal to obtain a delivery protocol supported by the intelligent terminal carried by the ultrasonic signal, and the connection information corresponding to the delivery protocol include: decoding the ultrasonic signals detected on each frequency point in the at least two frequency points to obtain a release protocol supported by an intelligent terminal carried in the ultrasonic signals of each frequency point and connection information corresponding to the release protocol; and fusing the release protocol supported by the intelligent terminal and the connection information corresponding to the release protocol carried in the ultrasonic signal of each frequency point to obtain the release protocol supported by the intelligent terminal and the connection information corresponding to the release protocol.
In one possible implementation manner, the ultrasonic signal also carries equipment information of the intelligent terminal; the sending the confirmation indication to the intelligent terminal comprises the following steps: according to the device information of the intelligent terminal, determining that the intelligent terminal is a target device for data transmission of the electronic device; and sending a confirmation instruction to the intelligent terminal.
In one possible implementation manner, after determining, according to the device information of the intelligent terminal, that the intelligent terminal is the target device for data transmission of the electronic device, the method further includes: if the electronic equipment is the equipment information of the intelligent terminal, displaying prompt information of whether to carry out data transmission or not; the sending the confirmation indication to the intelligent terminal comprises the following steps: and after acquiring the instruction of determining to transmit data by the user using the electronic equipment, sending a confirmation instruction to the intelligent terminal.
In one possible implementation manner, the intelligent terminal is an intelligent sound box, and the data is audio data; transmitting data to the intelligent terminal through the transmission channel, so that the intelligent terminal processes the data, wherein the data processing comprises the following steps: and transmitting audio data to the intelligent terminal through the transmission channel so that the intelligent sound box can play the audio data.
In a second aspect, an embodiment of the present application provides a data transmission method, applied to an intelligent terminal, where the method includes: transmitting an ultrasonic signal; the signal intensity distance of the ultrasonic signal is smaller than or equal to a preset distance, and the ultrasonic signal carries a release protocol supported by the intelligent terminal and connection information corresponding to the release protocol; receiving a confirmation instruction sent by the electronic equipment; the confirmation instruction is that the electronic equipment decodes the ultrasonic signal when detecting the ultrasonic signal and the sound power value of the detected ultrasonic signal is larger than or equal to a preset threshold value, and sends the ultrasonic signal to the intelligent terminal after obtaining a release protocol supported by the intelligent terminal and connection information corresponding to the release protocol carried by the ultrasonic signal; starting a functional module corresponding to the delivery protocol, and waiting for the electronic equipment to establish a transmission channel; after the electronic equipment establishes a transmission channel with the intelligent terminal, receiving data transmitted by the electronic equipment through the transmission channel; and processing the data.
In the data transmission method, an intelligent terminal sends an ultrasonic signal, the signal intensity distance of the ultrasonic signal is smaller than or equal to a preset distance, and the ultrasonic signal carries a release protocol supported by the intelligent terminal and connection information corresponding to the release protocol. After receiving the confirmation instruction sent by the electronic equipment, starting the functional module corresponding to the delivery protocol, waiting for the electronic equipment to establish a transmission channel, further receiving data transmitted by the electronic equipment through the transmission channel after the electronic equipment establishes the transmission channel with the intelligent terminal, and processing the data. Therefore, the near-distance detection between the electronic equipment and the intelligent terminal can be realized through ultrasonic signals, and in the data transmission method, the electronic equipment and the intelligent terminal perform the near-distance detection through mutually sending ultrasonic signals, and do not perform the near-distance detection in a mode of receiving and transmitting detection echoes through a single device, so that the accuracy of the near-distance detection is improved.
In one possible implementation manner, the sending the ultrasonic signal includes: periodically transmitting ultrasonic signals at least at two preset frequency points; and the intelligent terminal transmits ultrasonic signals at different frequency points by using different transmitting powers.
In one possible implementation manner, the delivery protocol supported by the intelligent terminal and the connection information corresponding to the delivery protocol carried in the ultrasonic signal are encrypted delivery protocol and encrypted connection information.
In one possible implementation manner, the intelligent terminal is an intelligent sound box; the data are audio data; the processing of the data includes: and playing the audio data.
In a third aspect, an embodiment of the present application provides a data transmission apparatus, where the apparatus is included in an electronic device, and the apparatus has a function of implementing the behavior of the electronic device in the first aspect and possible implementations of the first aspect. The functions may be realized by hardware, or may be realized by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the functions described above. Such as an ultrasound playback unit or module, an ultrasound sound reception unit or module, an audio delivery unit or module, etc.
In a fourth aspect, embodiments of the present application provide a data transmission device, where the device is included in an intelligent terminal, and the device has a function of implementing the actions of the intelligent terminal in the second aspect and possible implementations of the second aspect. The functions may be realized by hardware, or may be realized by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the functions described above. For example, an ultrasound playback unit or module, an ultrasound sound reception unit or module, an audio playback unit or module, and the like.
In a fifth aspect, embodiments of the present application provide an electronic device, including: one or more processors; a memory; a plurality of applications; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions, which when executed by the electronic device, cause the electronic device to perform the steps of: detecting an ultrasonic signal; if an ultrasonic signal is detected and the acoustic power value of the detected ultrasonic signal is greater than or equal to a preset threshold value, decoding the ultrasonic signal to obtain a release protocol supported by an intelligent terminal carried by the ultrasonic signal and connection information corresponding to the release protocol; the intelligent terminal is equipment for sending the ultrasonic signals; sending a confirmation instruction to the intelligent terminal to instruct the intelligent terminal to wait for establishing a transmission channel; establishing a transmission channel with the intelligent terminal according to a release protocol supported by the intelligent terminal and the connection information; and transmitting data to the intelligent terminal through the transmission channel so that the intelligent terminal can process the data.
In one possible implementation, the step of causing the electronic device to perform the detecting the ultrasonic signal includes: detecting ultrasonic signals at least two preset frequency points; the detecting of the ultrasonic signal includes: detecting ultrasonic signals at the at least two frequency points; the ultrasonic signal having an acoustic power value greater than or equal to a predetermined threshold value comprises: the acoustic power value of the ultrasonic signal detected at the at least two frequency points is greater than or equal to a predetermined threshold.
In one possible implementation manner, when the instruction is executed by the electronic device, the step of causing the electronic device to execute the decoding of the ultrasonic signal to obtain a delivery protocol supported by an intelligent terminal carried by the ultrasonic signal, and the connection information corresponding to the delivery protocol includes: decoding the ultrasonic signals detected on each frequency point in the at least two frequency points to obtain a release protocol supported by an intelligent terminal carried in the ultrasonic signals of each frequency point and connection information corresponding to the release protocol; and fusing the release protocol supported by the intelligent terminal and the connection information corresponding to the release protocol carried in the ultrasonic signal of each frequency point to obtain the release protocol supported by the intelligent terminal and the connection information corresponding to the release protocol.
In one possible implementation manner, the ultrasonic signal also carries equipment information of the intelligent terminal; when the instructions are executed by the electronic device, the step of causing the electronic device to perform the sending of the confirmation indication to the intelligent terminal includes: according to the device information of the intelligent terminal, determining that the intelligent terminal is a target device for data transmission of the electronic device; and sending a confirmation instruction to the intelligent terminal.
In one possible implementation manner, when the instruction is executed by the electronic device, after the step of determining, according to the device information of the intelligent terminal, that the intelligent terminal is the target device for data transmission of the electronic device, the electronic device further executes the following steps: if the electronic equipment is the equipment information of the intelligent terminal, displaying prompt information of whether to carry out data transmission or not; the sending the confirmation indication to the intelligent terminal comprises the following steps: and after acquiring the instruction of determining to transmit data by the user using the electronic equipment, sending a confirmation instruction to the intelligent terminal.
In one possible implementation manner, the intelligent terminal is an intelligent sound box, and the data is audio data; when the instruction is executed by the electronic device, the step of causing the electronic device to execute the data transmission to the intelligent terminal through the transmission channel, so that the intelligent terminal processes the data includes: and transmitting audio data to the intelligent terminal through the transmission channel so that the intelligent sound box can play the audio data.
In a sixth aspect, an embodiment of the present application provides an intelligent terminal, including: one or more processors; a memory; a plurality of applications; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions that, when executed by the intelligent terminal, cause the intelligent terminal to perform the steps of: transmitting an ultrasonic signal; the signal intensity distance of the ultrasonic signal is smaller than or equal to a preset distance, and the ultrasonic signal carries a release protocol supported by the intelligent terminal and connection information corresponding to the release protocol; receiving a confirmation instruction sent by the electronic equipment; the confirmation instruction is that the electronic equipment decodes the ultrasonic signal when detecting the ultrasonic signal and the sound power value of the detected ultrasonic signal is larger than or equal to a preset threshold value, and sends the ultrasonic signal to the intelligent terminal after obtaining a release protocol supported by the intelligent terminal and connection information corresponding to the release protocol carried by the ultrasonic signal; starting a functional module corresponding to the delivery protocol, and waiting for the electronic equipment to establish a transmission channel; after the electronic equipment establishes a transmission channel with the intelligent terminal, receiving data transmitted by the electronic equipment through the transmission channel; and processing the data.
In one possible implementation, the step of causing the intelligent terminal to perform the step of transmitting the ultrasonic signal includes: periodically transmitting ultrasonic signals at least at two preset frequency points; and the intelligent terminal transmits ultrasonic signals at different frequency points by using different transmitting powers.
In one possible implementation manner, the delivery protocol supported by the intelligent terminal and the connection information corresponding to the delivery protocol carried in the ultrasonic signal are encrypted delivery protocol and encrypted connection information.
In one possible implementation manner, the intelligent terminal is an intelligent terminal; the data are audio data; when the instructions are executed by the intelligent terminal, the step of causing the intelligent terminal to perform the processing of the data includes: and playing the audio data.
It should be understood that, the third aspect and the fifth aspect of the embodiments of the present application are consistent with the technical solutions of the first aspect of the embodiments of the present application, and the beneficial effects obtained by each aspect and the corresponding possible implementation manner are similar, and are not repeated.
It should be understood that, the fourth aspect and the sixth aspect of the embodiments of the present application are consistent with the technical solutions of the second aspect of the embodiments of the present application, and the beneficial effects obtained by each aspect and the corresponding possible implementation manner are similar, and are not repeated.
In a seventh aspect, embodiments of the present application provide a computer-readable storage medium having a computer program stored therein, which when run on a computer, causes the computer to perform the method provided in the first aspect.
In an eighth aspect, embodiments of the present application provide a computer-readable storage medium having a computer program stored therein, which when run on a computer, causes the computer to perform the method provided in the second aspect.
In a ninth aspect, embodiments of the present application provide a computer program for performing the method provided in the first aspect, when the computer program is executed by a computer.
In a tenth aspect, embodiments of the present application provide a computer program for performing the method provided in the second aspect when the above computer program is executed by a computer.
In one possible design, the program in the ninth aspect and the tenth aspect may be stored in whole or in part on a storage medium packaged together with the processor, or in part or in whole on a memory not packaged together with the processor.
Drawings
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
Fig. 2 is a schematic structural diagram of an intelligent terminal according to an embodiment of the present application;
fig. 3 is an interaction diagram of internal modules of the electronic device 100 and the intelligent terminal 200 according to an embodiment of the present application;
fig. 4 is a flowchart of a data transmission method according to an embodiment of the present application;
fig. 5 is a flowchart of a data transmission method according to another embodiment of the present application;
fig. 6 is a flowchart of a data transmission method according to still another embodiment of the present application;
fig. 7 is a flowchart of a data transmission method according to still another embodiment of the present application;
fig. 8 is a flowchart of a data transmission method according to still another embodiment of the present application;
FIG. 9 is a schematic diagram of close-range detection by ultrasonic signals according to one embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device according to another embodiment of the present application;
fig. 11 is a schematic structural diagram of an intelligent terminal according to another embodiment of the present application.
Detailed Description
The terminology used in the description section of the present application is for the purpose of describing particular embodiments of the present application only and is not intended to be limiting of the present application.
In the prior art, the intelligent sound box mainly adopts the NFC label or Bluetooth to carry out close range detection, but the detection scheme of the NFC label needs the electronic equipment to support the NFC function, has limitation, has higher realization cost, and the Bluetooth detection scheme is complex to realize and has poor stability. Therefore, the ultrasonic scheme can be used for short-distance detection, and the detection is simpler and more reliable.
The existing ultrasonic distance detection scheme is a scheme that a single device actively carries out distance detection by receiving and transmitting detection echoes, the algorithm is complex, and the scheme can only carry out distance detection and cannot identify whether the target device is the target device.
The following describes an existing ultrasonic distance detection scheme, which discloses a microphone assembly and an electronic device, the microphone assembly comprises: the ultrasonic wave receiving and transmitting device is used for responding to the excitation signal to emit first ultrasonic waves and receiving second ultrasonic waves, and the second ultrasonic waves are reflected when the first ultrasonic waves encounter an obstacle. Through locating the ultrasonic transceiver in the microphone main part, ultrasonic wave that ultrasonic transceiver transmitted and received propagates through electronic equipment sound wave propagation channel, realized carrying out proximity detection through the ultrasonic wave to avoided needing to set up the problem that proximity sensor installation region and the electronic equipment screen ratio that leads to is low on electronic equipment specially, improved electronic equipment's screen ratio.
In the ultrasonic distance detection scheme, the single equipment actively carries out distance detection by receiving and transmitting detection echoes, the algorithm is complex, and the close-range accuracy control difficulty is high; in addition, in the above scheme, the electronic device can only perform distance detection, and cannot identify whether the electronic device is the target device.
Based on the above problems, the embodiment of the application provides a data transmission method, which can realize close-range detection between electronic equipment and an intelligent terminal through ultrasonic signals, and the electronic equipment can safely identify the identity of the intelligent terminal, so that the safety of data transmission is improved.
The data transmission method provided by the embodiment of the application may be applied to an electronic device, where the electronic device may be a smart phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (augmented reality, AR)/Virtual Reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), and the like; the embodiment of the application does not limit the specific type of the electronic device.
For example, fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application, as shown in fig. 1, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a first ultrasonic playing module 170E, a first ultrasonic receiving module 170F, an audio delivering module 170G, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identity module (subscriber identification module, SIM) card interface 195.
It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
The I2C interface is a bi-directional synchronous serial bus comprising a serial data line (SDA) and a serial clock line (derail clock line, DCL). In some embodiments, the processor 110 may contain multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, charger, flash, camera 193, etc., respectively, through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through an I2C interface, such that the processor 110 communicates with the touch sensor 180K through an I2C bus interface to implement a touch function of the electronic device 100.
The I2S interface may be used for audio communication. In some embodiments, the processor 110 may contain multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 via an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through the I2S interface, to implement a function of answering a call through the bluetooth headset.
PCM interfaces may also be used for audio communication to sample, quantize and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface to implement a function of answering a call through the bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus for asynchronous communications. The bus may be a bi-directional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is typically used to connect the processor 110 with the wireless communication module 160. For example: the processor 110 communicates with a bluetooth module in the wireless communication module 160 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through a UART interface, to implement a function of playing music through a bluetooth headset.
The MIPI interface may be used to connect the processor 110 to peripheral devices such as a display 194, a camera 193, and the like. The MIPI interfaces include camera serial interfaces (camera serial interface, CSI), display serial interfaces (display serial interface, DSI), and the like. In some embodiments, processor 110 and camera 193 communicate through a CSI interface to implement the photographing functions of electronic device 100. The processor 110 and the display 194 communicate via a DSI interface to implement the display functionality of the electronic device 100.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal or as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, an MIPI interface, etc.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transfer data between the electronic device 100 and a peripheral device. And can also be used for connecting with a headset, and playing audio through the headset. The interface may also be used to connect other electronic devices, such as AR devices, etc.
It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present application is only illustrative, and does not limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also use different interfacing manners, or a combination of multiple interfacing manners in the foregoing embodiments.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device 100 through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 to power the processor 110, the internal memory 121, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional module, independent of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc., as applied to the electronic device 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, antenna 1 and mobile communication module 150 of electronic device 100 are coupled, and antenna 2 and wireless communication module 160 are coupled, such that electronic device 100 may communicate with a network and other devices through wireless communication techniques. The wireless communication techniques may include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou satellite navigation system (beidou navigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellite system, QZSS) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (matrix organic light emitting diode), a flexible light-emitting diode (flex), a mini, a Micro led, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The electronic device 100 may implement photographing functions through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The ISP is used to process data fed back by the camera 193. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. ISP can also optimize the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in the camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some embodiments, electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, or the like.
Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: dynamic picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning. Applications such as intelligent awareness of the electronic device 100 may be implemented through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 121 may be used to store computer executable program code including instructions. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device 100 (e.g., audio data, phonebook, etc.), and so on. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like. The processor 110 performs various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also referred to as a "horn," is used to convert audio electrical signals into sound signals. The electronic device 100 may listen to music, or to hands-free conversations, through the speaker 170A.
A receiver 170B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. When electronic device 100 is answering a telephone call or voice message, voice may be received by placing receiver 170B in close proximity to the human ear.
Microphone 170C, also referred to as a "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can sound near the microphone 170C through the mouth, inputting a sound signal to the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, and may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may also be provided with three, four, or more microphones 170C to enable collection of sound signals, noise reduction, identification of sound sources, directional recording functions, etc.
The earphone interface 170D is used to connect a wired earphone. The headset interface 170D may be a USB interface 130 or a 3.5mm open mobile electronic device platform (open mobile terminal platform, OMTP) standard interface, a american cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The first ultrasonic sound receiving module 170F is configured to continuously pick up sound, and after receiving an ultrasonic signal, decode and match the ultrasonic signal, wait for the audio input module 170G to create a sound input link.
The first ultrasonic playing module 170E sends an Acknowledgement (ACK) message to the intelligent terminal through an ultrasonic signal.
The audio delivery module 170G is configured to create a delivery link, and then deliver audio to the smart speaker.
The keys 190 include a power-on key, a volume key, etc. The keys 190 may be mechanical keys. Or may be a touch key. The electronic device 100 may receive key inputs, generating key signal inputs related to user settings and function controls of the electronic device 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration alerting as well as for touch vibration feedback. For example, touch operations acting on different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also correspond to different vibration feedback effects by touching different areas of the display screen 194. Different application scenarios (such as time reminding, receiving information, alarm clock, game, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
The indicator 192 may be an indicator light, may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card may be inserted into the SIM card interface 195, or removed from the SIM card interface 195 to enable contact and separation with the electronic device 100. The electronic device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support Nano SIM cards, micro SIM cards, and the like. The same SIM card interface 195 may be used to insert multiple cards simultaneously. The types of the plurality of cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to realize functions such as communication and data communication. In some embodiments, the electronic device 100 employs esims, i.e.: an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
The software system of the electronic device 100 may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In this embodiment, taking an Android system with a layered architecture as an example, a software structure of the electronic device 100 is illustrated.
In addition, the implementation of the data transmission method provided by the embodiment of the application not only relates to the electronic equipment side, but also relates to the intelligent terminal side, wherein the intelligent terminal can be an intelligent sound box, and the embodiment of the application does not limit the specific type of the intelligent terminal.
Fig. 2 is a schematic structural diagram of an intelligent terminal according to an embodiment of the present application, and as shown in fig. 2, an intelligent terminal 200 may include a processor 210 and a communication interface 220. Optionally, the smart terminal 200 may also include a memory 230. Wherein the processor 210, the communication interface 220 and the memory 230 may communicate with each other via an internal connection path for transferring control and/or data signals, the memory 230 is used for storing a computer program, and the processor 210 is used for calling and running the computer program from the memory 230.
The processor 210 and the memory 230 may be combined into a single processing device, more commonly a separate component, and the processor 210 is configured to execute the program code stored in the memory 230. In particular implementations, the memory 230 may also be integrated into the processor 210 or may be separate from the processor 210.
The communication interface 220 may enable a communication connection of the intelligent terminal 200 with the electronic device 100, for example: a wireless connection with the electronic device 100 is established, and data transmitted by the electronic device 100 is received through the wireless connection.
In addition, in order to make the functions of the smart terminal 200 more complete, the smart terminal 200 may further include a second ultrasonic playing module 240, a second ultrasonic sound receiving module 250, an audio receiving module 260, and an audio playing module 270.
Wherein, the second ultrasonic playing module 240 is used for periodically sending ultrasonic signals through multiple frequency points;
the second ultrasonic sound reception module 250 is configured to receive an ACK message sent by the first ultrasonic playing module 170E in the electronic device 100;
the audio receiving module 260 is configured to receive audio that is delivered by the audio delivering module 170G in the electronic device 100;
the audio playing module 270 is used for playing the audio received by the audio receiving module 260.
Optionally, the smart terminal 200 may further include a power supply 280 for providing power to various devices or circuits in the smart terminal 200.
It should be appreciated that the processor 210 in the intelligent terminal 200 shown in fig. 2 may be a system on a chip SOC, and the processor 210 may include a central processing unit (central processing unit, CPU) and may further include other types of processors, such as: an image processor (graphics processing unit, GPU), etc.
Fig. 3 is an interaction diagram of internal modules of the electronic device 100 and the intelligent terminal 200 according to an embodiment of the present application, as shown in fig. 3, may include:
In step 301, the second ultrasound playing module 240 periodically transmits an ultrasound signal at multiple frequencies.
In step 302, the first ultrasonic sound receiving module 170F continuously picks up sound, receives the ultrasonic signal, decodes and matches the ultrasonic signal, and waits for the audio input module 170G to create a sound input link.
In step 303, the first ultrasound playing module 170E sends an ACK message through an ultrasound signal.
In step 304, the second ultrasonic sound reception module 250 receives the ACK message sent by the first ultrasonic playing module 170E in the electronic device 100.
In step 305, the audio delivery module 170G creates a delivery link, and then delivers the audio to the smart speaker 200.
In step 306, the audio receiving module 260 receives the audio delivered by the audio delivering module 170G in the electronic device 100.
In step 307, the audio playing module 270 plays the audio received by the audio receiving module 260.
For easy understanding, the following embodiments of the present application will take an electronic device having a structure shown in fig. 1 as an example, and an intelligent terminal having a structure shown in fig. 2, and specifically describe a data transmission method provided by the embodiments of the present application in combination with the drawings and application scenarios.
Fig. 4 is a flowchart of a data transmission method according to an embodiment of the present application, where the data transmission method may be applied to the electronic device 100, as shown in fig. 4, and the data transmission method may include:
In step 401, an ultrasonic signal is detected.
Specifically, the electronic device 100 may implement a function of detecting an ultrasonic signal through the first ultrasonic sound receiving module 170F.
In step 402, if an ultrasonic signal is detected and the acoustic power value of the detected ultrasonic signal is greater than or equal to a predetermined threshold, the ultrasonic signal is decoded, and a delivery protocol supported by the intelligent terminal 200 carried by the ultrasonic signal and connection information corresponding to the delivery protocol are obtained.
Wherein, the intelligent terminal 200 is a device for transmitting the ultrasonic signal; the delivery protocol supported by the intelligent terminal 200 may be a bluetooth protocol, and the connection information corresponding to the delivery protocol may include a basic rate media access control address (basic rate media access control address, BR MAC) address.
In this embodiment, the predetermined threshold may be set by itself according to system performance and/or implementation requirements during specific implementation, and the size of the predetermined threshold is not limited in this embodiment.
In particular, when implementing, the intelligent terminal 200 may encrypt and encode the delivery protocol supported by the intelligent terminal 200 and the connection information corresponding to the delivery protocol, then carry the encrypted and encoded delivery protocol and connection information in the ultrasonic signal, and may control the intensity of the ultrasonic signal, so as to limit the ultrasonic signal to be detected within a predetermined distance.
In this way, if the acoustic power value of the ultrasonic signal detected by the first ultrasonic sound reception module 170F is greater than or equal to the predetermined threshold value, it is indicated that the distance between the electronic device 100 and the intelligent terminal 200 is less than or equal to the predetermined distance, and the close-range detection between the electronic device 100 and the intelligent terminal 200 is achieved. The predetermined distance may be, for example, 10 cm, and the device may be self-propelled when the device is in a specific implementation.
Specifically, the electronic device 100 may implement a function of decoding an ultrasonic signal through the first ultrasonic sound receiving module 170F. The encryption key used when the intelligent terminal 200 performs encryption encoding may be pre-cured in the software versions of the electronic device 100 and the intelligent terminal 200, so that when the first ultrasonic sound receiving module 170F decodes the ultrasonic signal, the ultrasonic signal may be decoded by using the decryption key corresponding to the encryption key pre-cured in the software version of the electronic device 100.
In step 403, an acknowledgement indication is sent to the intelligent terminal 200 to indicate that the intelligent terminal 200 waits for a transmission channel to be established.
In this embodiment, the electronic device 100 may implement a function of sending a confirmation instruction to the intelligent terminal 200 through the first ultrasonic playing module 170E, and specifically, the first ultrasonic playing module 170E may send a confirmation instruction to the intelligent terminal 200 through an ultrasonic signal, so that after the intelligent terminal 200 receives the confirmation instruction, it may also be determined that a distance between the intelligent terminal 200 and the electronic device 100 is less than or equal to a predetermined distance, thereby implementing close-range detection between the electronic device 100 and the intelligent terminal 200.
Step 404, according to the release protocol supported by the intelligent terminal 200 and the connection information, a transmission channel with the intelligent terminal 200 is established.
In this embodiment, the electronic device 100 may implement a function of establishing a transmission channel through the audio delivery module 170G. Specifically, assuming that the delivery protocol supported by the intelligent terminal 200 is a bluetooth protocol, the audio delivery module 170G may establish a transmission channel with the intelligent terminal 200 according to the bluetooth protocol and the BR MAC address.
Step 405, transmitting data to the intelligent terminal 200 through the transmission channel, so that the intelligent terminal 200 can process the data.
In this embodiment, the electronic device 100 may implement a function of transmitting data to the intelligent terminal 200 through the audio delivery module 170G.
In one implementation, the intelligent terminal 200 may be an intelligent speaker, where the data is audio data; thus, step 405 may be: the audio delivery module 170G transmits audio data to the intelligent terminal 200 through the transmission channel, so that the intelligent speaker 200 can play the audio data.
In the above data transmission method, the electronic device 100 detects an ultrasonic signal, if the ultrasonic signal is detected and the acoustic power value of the detected ultrasonic signal is greater than or equal to a predetermined threshold, the ultrasonic signal is decoded, a delivery protocol supported by the intelligent terminal 200 and connection information corresponding to the delivery protocol carried by the ultrasonic signal are obtained, then a confirmation instruction is sent to the intelligent terminal 200 to instruct the intelligent terminal 200 to wait for establishing a transmission channel, and further, according to the delivery protocol supported by the intelligent terminal 200 and the connection information, a transmission channel with the intelligent terminal 200 is established, and data is transmitted to the intelligent terminal 200 through the transmission channel to process the data by the intelligent terminal 200, so that short-distance detection between the electronic device 100 and the intelligent terminal 200 through the ultrasonic signal can be realized.
Fig. 5 is a flowchart of a data transmission method according to another embodiment of the present application, as shown in fig. 5, in the embodiment of fig. 4 of the present application, step 401 may be:
in step 501, ultrasonic signals are detected at predetermined at least two frequency points.
Thus, step 402 may include:
step 502, if an ultrasonic signal is detected at the at least two frequency points, and an acoustic power value of the ultrasonic signal detected at the at least two frequency points is greater than or equal to a predetermined threshold, decoding the ultrasonic signal detected at each of the at least two frequency points to obtain a release protocol supported by an intelligent terminal carried in the ultrasonic signal of each frequency point, and connection information corresponding to the release protocol.
And 503, fusing a release protocol supported by the intelligent terminal and the connection information corresponding to the release protocol carried in the ultrasonic signal of each frequency point to obtain the release protocol supported by the intelligent terminal and the connection information corresponding to the release protocol.
For example, 3 frequency points of 25kHz, 35kHz and 45kHz may be used, and the first ultrasonic sound receiving module 170F may detect ultrasonic signals at 3 frequency points of 25kHz, 35kHz and 45 kHz. Then, if the first ultrasonic sound reception module 170F detects ultrasonic signals at all of the above 3 frequency points, and the acoustic power values of the ultrasonic signals detected at all of the 3 frequency points are greater than or equal to a predetermined threshold, the first ultrasonic sound reception module 170F may decode the ultrasonic signals detected at each of the above 3 frequency points, to obtain a delivery protocol supported by the intelligent terminal 200 carried in the ultrasonic signal of each frequency point, and connection information corresponding to the above delivery protocol. Then, the first ultrasonic sound receiving module 170F fuses the release protocol supported by the intelligent terminal 200 and the connection information corresponding to the release protocol carried in the ultrasonic signal of each frequency point, so as to obtain the release protocol supported by the intelligent terminal 200 and the connection information corresponding to the release protocol.
In this embodiment, the first ultrasonic sound receiving module 170F decodes the detected ultrasonic signal after detecting the ultrasonic signal with the acoustic power value greater than or equal to the predetermined threshold value on at least two frequency points, so as to ensure the reliability of the close range detection. And, the first ultrasonic sound receiving module 170F decodes the ultrasonic signal detected on each of the at least two frequency points, acquires the delivery protocol supported by the intelligent terminal 200 carried in the ultrasonic signal and the connection information corresponding to the delivery protocol, and then fuses the acquired delivery protocol and the connection information, thereby ensuring the authenticity of the acquired delivery protocol and connection information.
Fig. 6 is a flowchart of a data transmission method according to still another embodiment of the present application, as shown in fig. 6, in the embodiment of fig. 4 of the present application, the above-mentioned ultrasonic signal further carries device information of the intelligent terminal 200; thus, step 403 may include:
in step 601, according to the device information of the intelligent terminal 200, it is determined that the intelligent terminal 200 is a target device for data transmission of the electronic device 100.
Specifically, the device information of the intelligent terminal 200 may include: the information such as the device name and/or the device model number of the intelligent terminal 200 is not limited in this embodiment.
Step 602, an acknowledgement indication is sent to the intelligent terminal 200 to indicate that the intelligent terminal 200 waits for a transmission channel to be established.
That is, in this embodiment, the first ultrasonic sound receiving module 170F in the electronic device 100 may further analyze and obtain the device information of the intelligent terminal 200 from the ultrasonic signal, so that the electronic device 100 may determine that the intelligent terminal 200 is a target device for data transmission of the electronic device 100 according to the device information, thereby implementing secure identification of the identity of the intelligent terminal 200 and improving security of data transmission.
Further, after step 601, if the electronic device 100 obtains the device information of the intelligent terminal 200 for the first time, the electronic device 100 may display a prompt message indicating whether to perform data transmission; thus, the sending of the acknowledgement indication to the intelligent terminal 200 in step 602 may be: after acquiring an instruction for data transmission determined by a user using the electronic device 100, an acknowledgement instruction is sent to the intelligent terminal 200.
In a specific implementation, the electronic device 100 may implement a function of displaying prompt information through the processor 110, the display screen 194, and the application processor.
Fig. 7 is a flowchart of a data transmission method according to still another embodiment of the present application, where the data transmission method provided in the present embodiment may be applied to an intelligent terminal 200. As shown in fig. 7, the data transmission method may include:
Step 701, transmitting an ultrasonic signal; the signal intensity distance of the ultrasonic signal is smaller than or equal to a predetermined distance, and the ultrasonic signal carries a delivery protocol supported by the intelligent terminal 200 and connection information corresponding to the delivery protocol.
The predetermined distance may be set according to system performance and/or implementation requirements during implementation, and the size of the predetermined distance is not limited in this embodiment, for example, the predetermined distance may be 10 cm.
Specifically, the sending of the ultrasonic signal may be: periodically transmitting ultrasonic signals at least at two preset frequency points; the transmitting power used by the intelligent terminal 200 to transmit the ultrasonic signal is different at different frequency points. In particular, the intelligent terminal 200 may implement a function of transmitting an ultrasonic signal through the audio playing module 270.
For example, the predetermined at least two frequency points may be 3 ultrasonic frequency points of 25kHz, 35kHz and 45kHz, and the audio playing module 270 may periodically transmit ultrasonic signals at the 3 ultrasonic frequency points, where the signal intensity distance of the ultrasonic signals is controlled within 10 cm.
In this embodiment, the transmitting power used by the intelligent terminal 200 to transmit the ultrasonic signal may be calculated according to an ultrasonic attenuation formula, where the transmitting powers used by different frequency points are different.
In addition, in this embodiment, the delivery protocol supported by the intelligent terminal 200 and the connection information corresponding to the delivery protocol carried in the ultrasonic signal are encrypted delivery protocol and encrypted connection information. In particular, the audio playing module 270 may encrypt the foregoing delivery protocol and connection information by using an encryption key previously cured in a software version of the intelligent terminal 200, and then send the encrypted delivery protocol and the encrypted connection information carried in an ultrasonic signal.
Step 702 receives an acknowledgement indication sent by the electronic device 100.
Wherein, the confirmation instruction is that when the electronic device 100 detects an ultrasonic signal and the acoustic power value of the detected ultrasonic signal is greater than or equal to a predetermined threshold, the ultrasonic signal is decoded, and a delivery protocol supported by the intelligent terminal 200 carried by the ultrasonic signal and connection information corresponding to the delivery protocol are obtained and then sent to the intelligent terminal 200.
Specifically, if the acoustic power value of the ultrasonic signal detected by the electronic device 100 is greater than or equal to the predetermined threshold, it indicates that the distance between the electronic device 100 and the intelligent terminal 200 is less than or equal to the predetermined distance, after the ultrasonic signal is decoded to obtain the delivery protocol supported by the intelligent terminal 200 carried by the ultrasonic signal and the connection information corresponding to the delivery protocol, the electronic device 100 sends a confirmation instruction to the intelligent terminal 200, and after the intelligent terminal 200 receives the confirmation instruction, it can be determined that the distance between the intelligent terminal 200 and the electronic device 100 is less than or equal to the predetermined distance, thereby realizing the close-range detection between the electronic device 100 and the intelligent terminal 200.
In step 703, the functional module corresponding to the above-mentioned delivery protocol is started, and the electronic device 100 waits for establishing a transmission channel.
For example, assuming that the delivery protocol supported by the intelligent terminal 200 is a bluetooth protocol, the intelligent terminal 200 may start a bluetooth module in the intelligent terminal 200, and wait for the electronic device 100 to establish a transmission channel.
In step 704, after the electronic device 100 establishes a transmission channel with the intelligent terminal 200, data transmitted by the electronic device 100 through the transmission channel is received.
Specifically, the smart terminal 200 may receive data transmitted by the electronic device 100 through the audio receiving module 260.
Step 705, processing the data.
In this embodiment, the intelligent terminal 200 may be an intelligent sound box, and the data are audio data; thus, step 705 may be: and playing the audio data.
In the data transmission method, the intelligent terminal 200 transmits an ultrasonic signal, wherein the signal intensity distance of the ultrasonic signal is smaller than or equal to a predetermined distance, and the ultrasonic signal carries a delivery protocol supported by the intelligent terminal 200 and connection information corresponding to the delivery protocol. After receiving the confirmation instruction sent by the electronic device 100, starting the functional module corresponding to the delivery protocol, waiting for the electronic device 100 to establish a transmission channel, further after the electronic device 100 establishes the transmission channel with the intelligent terminal 200, receiving data transmitted by the electronic device 100 through the transmission channel, and processing the data. Therefore, the near-distance detection between the electronic device 100 and the intelligent terminal 200 can be realized through ultrasonic signals, and in the data transmission method, the electronic device 100 and the intelligent terminal 200 perform the near-distance detection through mutually transmitting ultrasonic signals, and do not perform the near-distance detection through a mode of receiving and transmitting detection echoes of a single device, so that the accuracy of the near-distance detection is improved.
Fig. 8 is a flowchart of a data transmission method according to still another embodiment of the present application, where the electronic device 100 is a mobile phone, and the intelligent terminal 200 is an intelligent sound box. As shown in fig. 8, the data transmission method may include:
step 801, the intelligent sound box periodically sends an ultrasonic signal at multiple frequency points, where the ultrasonic signal carries a release protocol supported by the intelligent sound box and connection information corresponding to the release protocol, and may also carry equipment information of the intelligent sound box, and a signal intensity distance of the ultrasonic signal is less than or equal to a predetermined distance.
Specifically, a) the device information of the intelligent sound box can include information such as a device name and/or a device model of the intelligent sound box; the release protocol supported by the intelligent sound box can be a Bluetooth protocol, and the connection information corresponding to the Bluetooth protocol can be a BR MAC address and the like.
b) The intelligent sound box periodically plays ultrasonic signals, such as: the ultrasonic signal is played once every 30 milliseconds.
c) The information carried in the ultrasonic signal is encrypted, and the encryption key used in the encryption coding is pre-cured in the software versions of the mobile phone and the intelligent sound box;
d) The ultrasonic signals are sent at multiple frequency points, multiple frequency points are selected from the ultrasonic frequencies, and the ultrasonic signals are sent at the multiple frequency points, so that the influence of environmental factors on the propagation of the ultrasonic signals is reduced. For example: 3 ultrasonic frequency points such as 25kHz, 35kHz, 45kHz and the like can be selected.
For example, the intelligent sound box can play an ultrasonic signal once every 30ms, the ultrasonic signal carries the equipment name, the equipment model, the supported BT bluetooth release and the BR MAC address of the intelligent sound box, the ultrasonic signal is played on 3 frequency points of 25kHz, 35kHz and 45kHz, and the signal intensity distance of the ultrasonic signal is controlled within 10 cm.
Step 802, the first ultrasonic sound receiving module 170F of the mobile phone continuously detects the ultrasonic signal, when the mobile phone approaches the intelligent sound box, after detecting the ultrasonic signal sent by the intelligent sound box, decodes the ultrasonic signal, and after successful decoding, the mobile phone can obtain the equipment information of the intelligent sound box, the supported release protocol and the connection information corresponding to the release protocol.
Step 803, after obtaining the device information of the intelligent sound box, the supported release protocol and the connection information corresponding to the release protocol, the mobile phone notifies the first ultrasonic playing module 170E to send an ACK message to the intelligent sound box.
In this embodiment, if the approach detection is the first approach detection, after the mobile phone acquires the information of the intelligent sound box, the box can be flicked to prompt the user whether to perform audio playing, and if the user selects playing, the mobile phone notifies the first ultrasonic playing module 170E to send an ACK message to the intelligent sound box.
In step 804, the mobile phone notifies the audio delivery module 170G to establish a transmission channel.
For example, the audio delivery module 170G may establish a transmission channel with the smart speaker through a bluetooth protocol and a BR MAC address supported by the smart speaker.
In step 805, after the intelligent speaker receives the ACK message through the second ultrasonic sound receiving module 250, if the intelligent speaker supports bluetooth delivery, the intelligent speaker turns on the bluetooth switch and waits for the mobile phone to create a bluetooth link.
Step 806, after the connection of the audio transmission link between the mobile phone and the sound box is successful, the mobile phone sends the audio to the sound box, and the sound box starts to play the audio content.
Next, a step of performing close-range detection by using an ultrasonic signal will be described in detail, and fig. 9 is a schematic diagram of performing close-range detection by using an ultrasonic signal according to an embodiment of the present application, where in this embodiment, an example of transmitting an ultrasonic signal by using an intelligent sound box and receiving an ultrasonic signal by using a mobile phone is described. As shown in fig. 9, may include:
Step 90 1, the intelligent sound box sends ultrasonic signals through multiple frequency points, and the transmitting power corresponding to each frequency point can be calculated according to an ultrasonic attenuation formula.
In step 90, the mobile phone continuously detects the ultrasonic signal at a plurality of frequency points.
In step 903, when the mobile phone detects the ultrasonic signal at multiple frequency points (e.g., 3 frequency points of 25kHz, 35kHz and 45 kHz) and analyzes the ultrasonic signal to the effective data, the distance between the mobile phone and the smart speaker can be considered to be less than or equal to the predetermined distance, and the corresponding service is triggered.
Specifically, at standard temperature (25 ℃), with reference to standard atmospheric pressure (325 kpa), the attenuation coefficient of a 1MHz ultrasonic signal in air is 1.6dB/cm, and if analyzed by the amplitude attenuation of ultrasonic pressure, the attenuation of the ultrasonic signal in air for distance is relatively fast.
According to ax=ao×e (-afx), where Ax is the amplitude at the receiving end X, ao is the amplitude at the speaker, e is the natural logarithm, a is the attenuation coefficient, f is the ultrasonic frequency (MHz), X is the distance from the receiving end to the speaker. The sound power value of the ultrasonic signal is attenuated to be 1/24.53 of the initial value, and if the ultrasonic signal generated by the loudspeaker still has 200 mW-500 mW power after passing through 1cm of air medium, the transmitting power of the loudspeaker of the intelligent sound box needs to be 4.906W-12.265W.
The influence of the temperature and the air pressure of the use environment can cause the fluctuation of the ultrasonic attenuation coefficient in a small range, and the influence of the atmospheric pressure is relatively small in consideration of the actual situation and is temporarily not considered. Considering the influence of temperature, the variation range of the attenuation coefficient is 1 dB/cm-2.5 dB/cm under the temperature variation range of 0 ℃ to 60 ℃. In the actual product, the room temperature of 26 ℃ can be used as a reference, and the attenuation multiple range of the sound power value after 1cm is 1.22-144; the attenuation of sound waves in air increases with increasing frequency; therefore, according to different frequency points, different sound power values under the same distance can be calculated and used as sound production parameters of the loudspeaker under different frequency points.
It is to be understood that some or all of the steps or operations in the above embodiments are merely examples, and embodiments of the present application may also perform other operations or variations of various operations. Furthermore, the various steps may be performed in a different order presented in the above embodiments, and it is possible that not all of the operations in the above embodiments are performed.
It will be appreciated that the electronic device, in order to achieve the above-described functions, includes corresponding hardware and/or software modules that perform the respective functions. The steps of an algorithm for each example described in connection with the embodiments disclosed herein may be embodied in hardware or a combination of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Those skilled in the art may implement the described functionality using different approaches for each particular application in conjunction with the embodiments, but such implementation is not to be considered as outside the scope of this application.
In this embodiment, the electronic device may be divided into functional modules according to the above embodiment of the method, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one module. The integrated modules described above may be implemented in hardware. It should be noted that, in this embodiment, the division of the modules is schematic, only one logic function is divided, and another division manner may be implemented in actual implementation.
Fig. 10 is a schematic structural diagram of an electronic device according to another embodiment of the present application, where fig. 10 illustrates a possible schematic structural diagram of an electronic device 1000 related to the foregoing embodiment in a case where respective functional modules are divided by corresponding respective functions, and as shown in fig. 10, the electronic device 1000 may include: an ultrasonic playing unit 1001, an ultrasonic sound receiving unit 1002 and an audio putting unit 1003;
the ultrasound playing unit 1001 may be configured to support the electronic device 1000 to perform steps 403 and 602, etc., and/or be used in other processes of the technical solutions described in the embodiments of the present application;
the ultrasonic sound reception unit 1002 may be configured to support the electronic device 1000 to perform steps 401, 402, 501, 502, 503, etc., and/or other processes for the technical solutions described in the embodiments of the present application;
The audio delivery unit 1003 may be used to support the electronic device 1000 to perform steps 404 and 405, etc., and/or for other processes of the technical solutions described in the embodiments of the present application.
It should be noted that, all relevant contents of each step related to the above method embodiment may be cited to the functional description of the corresponding functional module, which is not described herein.
The electronic device 1000 provided in this embodiment is configured to perform the above data transmission method, so that the same effects as those of the above method can be achieved.
It should be appreciated that the electronic device 1000 may correspond to the electronic device 100 shown in fig. 1. The function of the ultrasonic playing unit 1001 may be implemented by the first ultrasonic playing module 170E in the electronic device 100 shown in fig. 1; the function of the ultrasonic sound pickup unit 1002 may be implemented by the first ultrasonic sound pickup module 170F in the electronic device 100 shown in fig. 1; the function of the audio delivery unit 1003 may be implemented by the audio delivery module 170G in the electronic device 100 shown in fig. 1.
In the case of an integrated unit, the electronic device 1000 may include a processing module, a storage module, and an audio module.
The processing module may be used to control and manage the actions of the electronic device 1000, and the processing module and the audio module may be used to support the electronic device 1000 to execute the steps executed by the above-mentioned ultrasonic playing unit 1001, ultrasonic receiving unit 1002 and audio delivering unit 1003. The memory module may be used to support the electronic device 1000 in storing program code, data, and the like.
Wherein the processing module may be a processor or controller that may implement or execute the various exemplary logic blocks, modules and circuits described in connection with this disclosure. A processor may also be a combination that performs computing functions, e.g., including one or more microprocessors, digital signal processing (digital signal processing, DSP) and microprocessor combinations, and the like. The memory module may be a memory.
In one embodiment, when the processing module is a processor and the storage module is a memory, the electronic device 1000 according to this embodiment may be a device having the structure shown in fig. 1.
Also, it is understood that, in order to implement the above-mentioned functions, the intelligent terminal includes corresponding hardware and/or software modules for executing the respective functions. The steps of an algorithm for each example described in connection with the embodiments disclosed herein may be embodied in hardware or a combination of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Those skilled in the art may implement the described functionality using different approaches for each particular application in conjunction with the embodiments, but such implementation is not to be considered as outside the scope of this application.
In this embodiment, the functional modules may be divided into the intelligent terminals according to the above embodiment of the method, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one module. The integrated modules described above may be implemented in hardware. It should be noted that, in this embodiment, the division of the modules is schematic, only one logic function is divided, and another division manner may be implemented in actual implementation.
Fig. 11 is a schematic structural diagram of an intelligent terminal according to another embodiment of the present application, where fig. 11 shows a possible schematic structural diagram of an intelligent terminal 1100 related to the foregoing embodiment in a case where respective functional modules are divided by corresponding respective functions, as shown in fig. 11, the intelligent terminal 1100 may include: an ultrasonic playing unit 1101, an ultrasonic sound receiving unit 1102, an audio receiving unit 1103 and an audio playing unit 1104;
the ultrasound playing unit 1101 may be configured to support the intelligent terminal 1100 to perform the step 701 and/or other processes of the technical solutions described in the embodiments of the present application;
the ultrasonic sound reception unit 1102 may be used to support the intelligent terminal 1100 to perform the steps 702 and 703, etc., and/or for other processes of the technical solutions described in the embodiments of the present application;
The audio receiving unit 1103 may be configured to support the intelligent terminal 1100 to perform step 704, etc., and/or be used in other processes of the technical solutions described in the embodiments of the present application;
the audio playing unit 1104 may be used to support the intelligent terminal 1100 to perform step 705, etc., and/or for other processes of the technical solutions described in the embodiments of the present application.
It should be noted that, all relevant contents of each step related to the above method embodiment may be cited to the functional description of the corresponding functional module, which is not described herein.
The intelligent terminal 1100 provided in this embodiment is configured to perform the above data transmission method, so that the same effects as those of the above method can be achieved.
It should be appreciated that the smart terminal 1100 may correspond to the smart terminal 200 shown in fig. 2. The function of the ultrasonic playing unit 1101 may be implemented by the second ultrasonic playing module 240 in the intelligent terminal 200 shown in fig. 2; the function of the ultrasonic sound pickup unit 1102 may be implemented by the second ultrasonic sound pickup module 250 in the intelligent terminal 200 shown in fig. 2; the function of the audio receiving unit 1103 may be implemented by the audio receiving module 260 in the smart terminal 200 shown in fig. 2; the function of the audio playing unit 1104 may be implemented by the audio playing module 270 in the smart terminal 200 shown in fig. 2.
In case of employing an integrated unit, the smart terminal 1100 may include a processing module, a storage module, and an audio module.
The processing module may be used for controlling and managing the actions of the intelligent terminal 1100, and the processing module and the audio module may be used for supporting the intelligent terminal 1100 to execute the steps executed by the ultrasonic playing unit 1101, the ultrasonic sound receiving unit 1102, the audio receiving unit 1103 and the audio playing unit 1104. The memory module may be used to support the intelligent terminal 1100 to store program codes and data, etc.
Wherein the processing module may be a processor or controller that may implement or execute the various exemplary logic blocks, modules and circuits described in connection with this disclosure. A processor may also be a combination that performs computing functions, e.g., including one or more microprocessors, digital signal processing (digital signal processing, DSP) and microprocessor combinations, and the like. The memory module may be a memory.
In one embodiment, when the processing module is a processor and the storage module is a memory, the intelligent terminal 1100 according to this embodiment may be a device having the structure shown in fig. 2.
Embodiments of the present application also provide a computer-readable storage medium having a computer program stored therein, which when run on a computer, causes the computer to perform the methods provided by the embodiments shown in fig. 4-6 of the present application.
The present embodiment also provides a computer readable storage medium having a computer program stored therein, which when run on a computer causes the computer to perform the method provided by the embodiment shown in fig. 7 of the present application.
Embodiments of the present application also provide a computer program product comprising a computer program which, when run on a computer, causes the computer to perform the methods provided by the embodiments shown in fig. 4-6 of the present application.
The present embodiments also provide a computer program product comprising a computer program which, when run on a computer, causes the computer to perform the method provided by the embodiment shown in fig. 7 of the present application.
In the embodiments of the present application, "at least one" means one or more, and "a plurality" means two or more. "and/or", describes an association relation of association objects, and indicates that there may be three kinds of relations, for example, a and/or B, and may indicate that a alone exists, a and B together, and B alone exists. Wherein A, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of the following" and the like means any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c may represent: a, b, c, a and b, a and c, b and c or a and b and c, wherein a, b and c can be single or multiple.
Those of ordinary skill in the art will appreciate that the various elements and algorithm steps described in the embodiments disclosed herein can be implemented as a combination of electronic hardware, computer software, and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In several embodiments provided herein, any of the functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely specific embodiments of the present application, and any person skilled in the art may easily conceive of changes or substitutions within the technical scope of the present application, which should be covered by the protection scope of the present application. The protection scope of the present application shall be subject to the protection scope of the claims.

Claims (24)

1. A data transmission method, applied to an electronic device, the method comprising:
detecting an ultrasonic signal;
if an ultrasonic signal is detected and the acoustic power value of the detected ultrasonic signal is greater than or equal to a preset threshold value, decoding the ultrasonic signal to obtain a release protocol supported by an intelligent terminal carried by the ultrasonic signal and connection information corresponding to the release protocol; the intelligent terminal is equipment for sending the ultrasonic signals;
sending a confirmation instruction to the intelligent terminal to instruct the intelligent terminal to wait for establishing a transmission channel;
establishing a transmission channel with the intelligent terminal according to a release protocol supported by the intelligent terminal and the connection information;
and transmitting data to the intelligent terminal through the transmission channel so that the intelligent terminal can process the data.
2. The method of claim 1, wherein detecting the ultrasonic signal comprises:
detecting ultrasonic signals at least two preset frequency points;
the detecting of the ultrasonic signal includes: detecting ultrasonic signals at the at least two frequency points;
the ultrasonic signal having an acoustic power value greater than or equal to a predetermined threshold value comprises: the acoustic power value of the ultrasonic signal detected at the at least two frequency points is greater than or equal to a predetermined threshold.
3. The method according to claim 2, wherein the decoding the ultrasonic signal to obtain a delivery protocol supported by the intelligent terminal carried by the ultrasonic signal, and the connection information corresponding to the delivery protocol include:
decoding the ultrasonic signals detected on each frequency point in the at least two frequency points to obtain a release protocol supported by an intelligent terminal carried in the ultrasonic signals of each frequency point and connection information corresponding to the release protocol;
and fusing the release protocol supported by the intelligent terminal and the connection information corresponding to the release protocol carried in the ultrasonic signal of each frequency point to obtain the release protocol supported by the intelligent terminal and the connection information corresponding to the release protocol.
4. The method of claim 1, wherein the ultrasonic signal further carries device information of the intelligent terminal; the sending the confirmation indication to the intelligent terminal comprises the following steps:
according to the device information of the intelligent terminal, determining that the intelligent terminal is a target device for data transmission of the electronic device;
and sending a confirmation instruction to the intelligent terminal.
5. The method of claim 4, wherein after determining, according to the device information of the intelligent terminal, that the intelligent terminal is the target device for data transmission of the electronic device, further comprises:
if the electronic equipment is the equipment information of the intelligent terminal, displaying prompt information of whether to carry out data transmission or not;
the sending the confirmation indication to the intelligent terminal comprises the following steps:
and after acquiring the instruction of determining to transmit data by the user using the electronic equipment, sending a confirmation instruction to the intelligent terminal.
6. The method of any one of claims 1-5, wherein the intelligent terminal is an intelligent speaker and the data is audio data;
transmitting data to the intelligent terminal through the transmission channel, so that the intelligent terminal processes the data, wherein the data processing comprises the following steps:
And transmitting audio data to the intelligent terminal through the transmission channel so that the intelligent sound box can play the audio data.
7. A data transmission method, which is applied to an intelligent terminal, the method comprising:
transmitting an ultrasonic signal; the signal intensity distance of the ultrasonic signal is smaller than or equal to a preset distance, and the ultrasonic signal carries a release protocol supported by the intelligent terminal and connection information corresponding to the release protocol;
receiving a confirmation instruction sent by the electronic equipment; the confirmation instruction is that the electronic equipment decodes the ultrasonic signal when detecting the ultrasonic signal and the sound power value of the detected ultrasonic signal is larger than or equal to a preset threshold value, and sends the ultrasonic signal to the intelligent terminal after obtaining a release protocol supported by the intelligent terminal and connection information corresponding to the release protocol carried by the ultrasonic signal;
starting a functional module corresponding to the delivery protocol, and waiting for the electronic equipment to establish a transmission channel;
after the electronic equipment establishes a transmission channel with the intelligent terminal, receiving data transmitted by the electronic equipment through the transmission channel;
And processing the data.
8. The method of claim 7, wherein the transmitting an ultrasonic signal comprises:
periodically transmitting ultrasonic signals at least at two preset frequency points; and the intelligent terminal transmits ultrasonic signals at different frequency points by using different transmitting powers.
9. The method of claim 7, wherein the delivery protocol supported by the intelligent terminal and the connection information corresponding to the delivery protocol carried in the ultrasonic signal are encrypted delivery protocol and encrypted connection information.
10. The method according to any one of claims 7-9, wherein the intelligent terminal is an intelligent sound box; the data are audio data;
the processing of the data includes:
and playing the audio data.
11. A data transmission device for performing the method of any one of claims 1 to 6.
12. A data transmission device for performing the method of any one of claims 7 to 10.
13. An electronic device, comprising:
one or more processors; a memory; a plurality of applications; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions, which when executed by the electronic device, cause the electronic device to perform the steps of:
Detecting an ultrasonic signal;
if an ultrasonic signal is detected and the acoustic power value of the detected ultrasonic signal is greater than or equal to a preset threshold value, decoding the ultrasonic signal to obtain a release protocol supported by an intelligent terminal carried by the ultrasonic signal and connection information corresponding to the release protocol; the intelligent terminal is equipment for sending the ultrasonic signals;
sending a confirmation instruction to the intelligent terminal to instruct the intelligent terminal to wait for establishing a transmission channel;
establishing a transmission channel with the intelligent terminal according to a release protocol supported by the intelligent terminal and the connection information;
and transmitting data to the intelligent terminal through the transmission channel so that the intelligent terminal can process the data.
14. The electronic device of claim 13, wherein the instructions, when executed by the electronic device, cause the electronic device to perform the step of detecting an ultrasonic signal comprises:
detecting ultrasonic signals at least two preset frequency points;
the detecting of the ultrasonic signal includes: detecting ultrasonic signals at the at least two frequency points;
The ultrasonic signal having an acoustic power value greater than or equal to a predetermined threshold value comprises: the acoustic power value of the ultrasonic signal detected at the at least two frequency points is greater than or equal to a predetermined threshold.
15. The electronic device of claim 14, wherein the instructions, when executed by the electronic device, cause the electronic device to perform the decoding of the ultrasonic signal to obtain a delivery protocol supported by an intelligent terminal carried by the ultrasonic signal, and the step of connecting information corresponding to the delivery protocol comprises:
decoding the ultrasonic signals detected on each frequency point in the at least two frequency points to obtain a release protocol supported by an intelligent terminal carried in the ultrasonic signals of each frequency point and connection information corresponding to the release protocol;
and fusing the release protocol supported by the intelligent terminal and the connection information corresponding to the release protocol carried in the ultrasonic signal of each frequency point to obtain the release protocol supported by the intelligent terminal and the connection information corresponding to the release protocol.
16. The electronic device of claim 13, wherein the ultrasonic signal further carries device information of the intelligent terminal; when the instructions are executed by the electronic device, the step of causing the electronic device to perform the sending of the confirmation indication to the intelligent terminal includes:
According to the device information of the intelligent terminal, determining that the intelligent terminal is a target device for data transmission of the electronic device;
and sending a confirmation instruction to the intelligent terminal.
17. The electronic device of claim 16, wherein the instructions, when executed by the electronic device, cause the electronic device to perform the step of determining, from the device information of the intelligent terminal, a target device for data transmission by the intelligent terminal for the electronic device, further comprising:
if the electronic equipment is the equipment information of the intelligent terminal, displaying prompt information of whether to carry out data transmission or not;
the sending the confirmation indication to the intelligent terminal comprises the following steps:
and after acquiring the instruction of determining to transmit data by the user using the electronic equipment, sending a confirmation instruction to the intelligent terminal.
18. The electronic device of any one of claims 13-17, wherein the intelligent terminal is an intelligent speaker and the data is audio data; when the instruction is executed by the electronic device, the step of causing the electronic device to execute the data transmission to the intelligent terminal through the transmission channel, so that the intelligent terminal processes the data includes:
And transmitting audio data to the intelligent terminal through the transmission channel so that the intelligent sound box can play the audio data.
19. An intelligent terminal, characterized by comprising:
one or more processors; a memory; a plurality of applications; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions that, when executed by the intelligent terminal, cause the intelligent terminal to perform the steps of:
transmitting an ultrasonic signal; the signal intensity distance of the ultrasonic signal is smaller than or equal to a preset distance, and the ultrasonic signal carries a release protocol supported by the intelligent terminal and connection information corresponding to the release protocol;
receiving a confirmation instruction sent by the electronic equipment; the confirmation instruction is that the electronic equipment decodes the ultrasonic signal when detecting the ultrasonic signal and the sound power value of the detected ultrasonic signal is larger than or equal to a preset threshold value, and sends the ultrasonic signal to the intelligent terminal after obtaining a release protocol supported by the intelligent terminal and connection information corresponding to the release protocol carried by the ultrasonic signal;
Starting a functional module corresponding to the delivery protocol, and waiting for the electronic equipment to establish a transmission channel;
after the electronic equipment establishes a transmission channel with the intelligent terminal, receiving data transmitted by the electronic equipment through the transmission channel;
and processing the data.
20. The intelligent terminal of claim 19, wherein the instructions, when executed by the intelligent terminal, cause the intelligent terminal to perform the step of transmitting an ultrasonic signal, comprise:
periodically transmitting ultrasonic signals at least at two preset frequency points; and the intelligent terminal transmits ultrasonic signals at different frequency points by using different transmitting powers.
21. The intelligent terminal of claim 19, wherein the delivery protocol supported by the intelligent terminal and the connection information corresponding to the delivery protocol carried in the ultrasonic signal are encrypted delivery protocol and encrypted connection information.
22. The intelligent terminal of any of claims 19-21, wherein the intelligent terminal is an intelligent terminal; the data are audio data; when the instructions are executed by the intelligent terminal, the step of causing the intelligent terminal to perform the processing of the data includes:
And playing the audio data.
23. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when run on a computer, causes the computer to perform the method according to any of claims 1-6.
24. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when run on a computer, causes the computer to perform the method according to any of claims 7-10.
CN202111500800.6A 2021-12-09 2021-12-09 Data transmission method and device, electronic equipment and intelligent terminal Pending CN116261124A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111500800.6A CN116261124A (en) 2021-12-09 2021-12-09 Data transmission method and device, electronic equipment and intelligent terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111500800.6A CN116261124A (en) 2021-12-09 2021-12-09 Data transmission method and device, electronic equipment and intelligent terminal

Publications (1)

Publication Number Publication Date
CN116261124A true CN116261124A (en) 2023-06-13

Family

ID=86677947

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111500800.6A Pending CN116261124A (en) 2021-12-09 2021-12-09 Data transmission method and device, electronic equipment and intelligent terminal

Country Status (1)

Country Link
CN (1) CN116261124A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117318843A (en) * 2023-11-29 2023-12-29 安徽斯派迪电气技术有限公司 5G communication-based power equipment safety monitoring method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117318843A (en) * 2023-11-29 2023-12-29 安徽斯派迪电气技术有限公司 5G communication-based power equipment safety monitoring method
CN117318843B (en) * 2023-11-29 2024-03-12 安徽斯派迪电气技术有限公司 5G communication-based power equipment safety monitoring method

Similar Documents

Publication Publication Date Title
CN113228701A (en) Audio data synchronization method and device
CN111010693B (en) Method for providing wireless fidelity network access service and electronic equipment
CN113039822B (en) Method and equipment for establishing data channel
CN114079892A (en) Bluetooth communication method, wearable device and system
CN112312366A (en) Method, electronic equipment and system for realizing functions through NFC (near field communication) tag
CN111556479B (en) Information sharing method and related device
CN115696322A (en) Key updating method, system and related device in Beidou communication system
CN116261124A (en) Data transmission method and device, electronic equipment and intelligent terminal
CN113126948B (en) Audio playing method and related equipment
CN115103304B (en) Position information calling method and device
CN113115483B (en) Method and device for releasing radio resource control connection and user equipment
CN116133165A (en) Headset connection system, method, headset, electronic device, and readable storage medium
CN113678481B (en) Wireless audio system, audio communication method and equipment
CN110806994B (en) Signal transmission method and device
CN115525366A (en) Screen projection method and related device
CN114339698A (en) Method for establishing wireless connection through equipment touch, electronic equipment and chip
CN114449492B (en) Data transmission method and terminal equipment
CN117062039B (en) Bluetooth connection method, electronic equipment and computer readable storage medium
CN113141665B (en) Method and device for receiving system-on-demand message and user equipment
CN114500725B (en) Target content transmission method, master device, slave device, and storage medium
CN116346982B (en) Method for processing audio, electronic device and readable storage medium
CN114915747B (en) Video call method, electronic device and readable storage medium
CN114866243B (en) Certificate revocation list management method and device and electronic equipment
CN114157042B (en) Charging method and device
CN115249389A (en) Reminding method, electronic device and storage medium

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