A device control method and apparatus, an electronic device, and a readable storage medium

By converting text control command information into bit stream data and modulating it into multi-carrier ultrasonic signals, the problems of low transmission rate and weak anti-interference ability in ultrasonic communication are solved, and more efficient equipment control is achieved.

CN115668325BActive Publication Date: 2026-01-02BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202280004343.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-24
Publication Date
2026-01-02
Estimated Expiration
2042-05-24

AI Technical Summary

Technical Problem

Ultrasonic signals have low data transmission rates, weak anti-interference capabilities, and high bit error rates in wireless communication, making it difficult to effectively control equipment.

Method used

The text control command information is converted into bit stream data, modulated into mutually orthogonal multi-carrier continuous baseband signals using orthogonal frequency division multiplexing technology, and then modulated into ultrasonic frequency band signals and transmitted through a loudspeaker. The receiving device receives and demodulates the data into bit stream data through a receiver, and finally converts it into text control commands for execution.

Benefits of technology

It improves the transmission rate of ultrasonic control data, enhances anti-interference capabilities, reduces the bit error rate, and achieves more reliable equipment control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115668325B_ABST
    Figure CN115668325B_ABST
Patent Text Reader

Abstract

The present disclosure provides a device control method, device, electronic device and readable storage medium. The device control method comprises: obtaining text control instruction information; converting the text control instruction information into bit stream data; determining a multi-carrier continuous baseband signal modulated as mutually orthogonal according to the bit stream data; modulating the multi-frequency continuous baseband signal into an ultrasonic frequency band signal; and sending the ultrasonic frequency band signal through a loudspeaker of the first device.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of wireless communication, and particularly relates to a device control method and device, an electronic device and a readable storage medium. BACKGROUND

[0002] Long-distance wireless transmission technologies (such as 4G technologies, 5G technologies, etc.) or short-distance wireless transmission technologies (such as Bluetooth technologies, Wifi technologies, etc.) can be used in a wireless communication system.

[0003] Ultrasonic waves are mechanical waves with extremely short wavelengths, generally shorter than 2 cm in air. Due to the short wavelength, they are easily lost in air and easily scattered, and are not as far as audible and infrasonic waves. However, the short wavelength makes it easier to obtain anisotropic acoustic energy, which can be used for cleaning, stone crushing, sterilization and disinfection, and can be applied to medicine and industry.

[0004] When ultrasonic signals are used as a wave to carry information, the following disadvantages are present: low data transmission rate, weak anti-interference ability, and high bit error rate. SUMMARY

[0005] The present disclosure provides a device control method and device, an electronic device and a readable storage medium.

[0006] In a first aspect, a device control method is provided, executed by a first device, and the method comprises:

[0007] obtaining text control instruction information;

[0008] converting the text control instruction information into bit stream data;

[0009] determining a plurality of continuous baseband signals modulated into mutually orthogonal multicarriers according to the bit stream data;

[0010] modulating the plurality of continuous baseband signals into ultrasonic frequency band signals;

[0011] sending the ultrasonic frequency band signals through a loudspeaker of the first device.

[0012] In an exemplary embodiment, the method further comprises:

[0013] modulating the bit stream data into a plurality of continuous baseband signals modulated into mutually orthogonal multicarriers using orthogonal frequency division multiplexing technology.

[0014] In an exemplary embodiment, the method further comprises:

[0015] According to the bit stream data, a plurality of frames are determined, the plurality of frames including a plurality of data frames and a data quantity frame, the data frame including a header area and a data area, the header area being used to indicate a frame number of the data frame, and the data area being part of data in the bit stream data; and the data quantity frame being used to indicate a quantity of the data frames.

[0016] In an exemplary embodiment, the modulating the multi-carrier continuous baseband signal into a plurality of ultrasonic frequency band signals comprises:

[0017] The multi-carrier continuous baseband signal corresponding to each frame is decomposed into a plurality of single-carrier signals, and inverse transform and forward transform are performed on each single-carrier signal, the inverse transform being inverse transform of the forward transform, and the forward transform being transform from time domain to frequency domain.

[0018] In an exemplary embodiment, the method further comprises:

[0019] A check code is set for each frame, the check code being calculated according to content in the corresponding frame.

[0020] In an exemplary embodiment, the method further comprises:

[0021] A prefix and / or suffix is added to each frame, and a sequence for channel assessment is added before each frame.

[0022] In an exemplary embodiment, the method further comprises:

[0023] After receiving indication information of a data frame used to indicate a retransmission target frame number, the data frame corresponding to the target frame number is played back again.

[0024] In a second aspect, a device control method is executed by a second device, and the method comprises:

[0025] An ultrasonic frequency band signal is received by a sound receiver of the second device;

[0026] The ultrasonic frequency band signal is demodulated into a plurality of mutually orthogonal multi-frequency continuous baseband signals;

[0027] The plurality of mutually orthogonal multi-frequency continuous baseband signals are demodulated into bit stream data;

[0028] The bit stream data is converted into text control instruction information;

[0029] An instruction corresponding to the text control instruction information is identified;

[0030] The instruction is executed.

[0031] In an exemplary embodiment, the demodulating the plurality of mutually orthogonal multi-frequency continuous baseband signals into bit stream data comprises:

[0032] demodulate the mutually orthogonal multi-frequency continuous baseband signals into bit stream data using orthogonal frequency division multiplexing technology.

[0033] In an exemplary embodiment, the method further comprises:

[0034] parsing the bit stream data into a plurality of frames, the plurality of frames comprising a data volume frame and a plurality of data frames, each data frame comprising a frame number, the data volume frame being used to indicate the number of data frames.

[0035] In an exemplary embodiment, the method further comprises:

[0036] checking the frame according to a check code in the frame to determine whether the frame is a valid frame or an invalid frame.

[0037] In an exemplary embodiment, the demodulating the ultrasonic frequency band signals into multi-carrier continuous baseband signals comprises:

[0038] respectively performing forward transform and inverse transform on the single-carrier signals in the ultrasonic frequency band signals and combining them into multi-carrier continuous baseband signals.

[0039] In an exemplary embodiment, the method further comprises:

[0040] performing channel estimation on the corresponding ultrasonic frequency band signals according to a set sequence and performing channel compensation in the demodulation process.

[0041] In an exemplary embodiment, the method further comprises:

[0042] sending the ultrasonic frequency band signals through a loudspeaker of the second device, the ultrasonic frequency band signals comprising indication information of a data frame used to indicate a retransmission target frame number, the target frame number being the frame number of the invalid frame.

[0043] In a third aspect, a device control apparatus is configured in a first device, the apparatus comprising:

[0044] a processing module configured to obtain text control instruction information and convert the text control instruction information into bit stream data;

[0045] a modulation module configured to determine modulation into mutually orthogonal multi-carrier continuous baseband signals according to the bit stream data and modulate the multi-frequency continuous baseband signals into ultrasonic frequency band signals;

[0046] a sending module configured to send the ultrasonic frequency band signals through a loudspeaker of the first device.

[0047] In a fourth aspect, a device control apparatus is configured in a second device, the apparatus comprising:

[0048] The receiving module is configured to receive the ultrasonic frequency band signal through a hydrophone of the second device;

[0049] The demodulating module is configured to demodulate the ultrasonic frequency band signal into a plurality of mutually orthogonal continuous baseband signals; and demodulate the plurality of mutually orthogonal continuous baseband signals into a bit stream data.

[0050] The processing module is configured to convert the bit stream data into text control instruction information; identify an instruction corresponding to the text control instruction information; and execute the instruction.

[0051] In a fifth aspect, an electronic device includes a processor and a memory, wherein

[0052] The memory is configured to store a computer program.

[0053] The processor is configured to execute the computer program to implement the method according to any one of the first aspect.

[0054] In a sixth aspect, an electronic device includes a processor and a memory, wherein

[0055] The memory is configured to store a computer program.

[0056] The processor is configured to execute the computer program to implement the method according to any one of the second aspect.

[0057] In a seventh aspect, a computer readable storage medium stores instructions, when the instructions are invoked to execute on a computer, cause the computer to execute the method according to any one of the first aspect.

[0058] In an eighth aspect, a computer readable storage medium stores instructions, when the instructions are invoked to execute on a computer, cause the computer to execute the method according to any one of the second aspect.

[0059] Using the method in the present disclosure, the bit stream corresponding to the control instruction is modulated into a plurality of mutually orthogonal continuous baseband signals, and the data transmission rate corresponding to the multi-carrier modulation mode is greater than the data transmission rate corresponding to the single-carrier modulation mode, so that the transmission rate of the ultrasonic control data is improved. BRIEF DESCRIPTION OF DRAWINGS

[0060] The accompanying drawings, which are included to provide a further understanding of the embodiments of the present disclosure and constitute a part of the application, illustrate the preferred embodiments of the present disclosure and explain them, and do not limit the present disclosure. In the drawings:

[0061] The accompanying drawings, which are incorporated herein and form a part of the specification, illustrate embodiments consistent with the present disclosure and, together with the description, further serve to explain the principles of the present disclosure.

[0062] Figure 1 is a schematic diagram of an architecture of a communication system according to an example embodiment;

[0063] Figure 2 is a flowchart of a device control method according to an example embodiment;

[0064] Figure 3 is a flowchart of a device control method according to an example embodiment;

[0065] Figure 4 is a flowchart of a device control method according to an example embodiment;

[0066] Figure 5 is a flowchart of a device control method according to an example embodiment;

[0067] Figure 6 is a schematic diagram of a signal format according to an example embodiment;

[0068] Figure 7 is a flowchart of a device control method according to an example embodiment;

[0069] Figure 8 is a flowchart of a device control method according to an example embodiment;

[0070] Figure 9 is a flowchart of a device control method according to an example embodiment;

[0071] Figure 10 is a flowchart of a device control method according to an example embodiment;

[0072] Figure 11 is a schematic diagram of a channel assessment according to an example embodiment;

[0073] Figure 12 is a block diagram of a device control apparatus according to an example embodiment;

[0074] Figure 13 is a block diagram of a device control apparatus according to an example embodiment;

[0075] Figure 14 is a block diagram of a terminal according to an example embodiment; DETAILED DESCRIPTION

[0076] The embodiments of the present disclosure will be further described below in conjunction with the drawings and specific embodiments.

[0077] The exemplary embodiments will be described in detail below with reference to the drawings. The following description is merely exemplary in nature and is not intended to limit the present disclosure, application, and uses. Furthermore, there is no intention to be bound by any expressed or implied theory presented in the preceding background of the present disclosure or the following detailed description.

[0078] The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the present disclosure. As used in the present disclosure and the appended claims, the singular forms "a," "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will also be understood that the term "and / or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.

[0079] It is to be understood that the singular forms "a," "an," and "the" include plural referents unless the context clearly dictates otherwise. It will be further understood that the terms "comprises" and / or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.

[0080] Embodiments of the present disclosure are described in detail below with reference to the attached drawing figures, wherein the same or like components have the same or

[0081] In the environment without wireless network and remote control device, it can be considered to wirelessly control some devices by using ultrasonic waves. For example, in some embodiments, a sender converts target information into a binary bit stream according to ASCII code, performs BFSK modulation on the bit stream, sends the modulated data, and a receiver performs reverse processing to obtain the target information. This method has the disadvantages of low data transmission rate, weak anti-interference ability, and high bit error rate.

[0082] The device control method provided by the embodiments of the present disclosure can be applied to, for example, Figure 1In the shown communication architecture, the first device is a controller and the second device is a controlled device. The first device controls the second device by sending ultrasonic signals carrying control instructions. The first device includes a sending device (e.g. a loudspeaker) for sending ultrasonic signals, and the second device includes a receiving device (e.g. a microphone) for receiving ultrasonic signals. Alternatively, both the first device and the second device include a sending device for sending ultrasonic signals and a receiving device for receiving ultrasonic signals.

[0083] In one example, the first device is a mobile phone and the second device is a smart TV. In another example, the first device is a mobile phone and the second device is also a mobile phone. It can be appreciated that the first device and the second device are not limited to the devices in the above examples.

[0084] The embodiments of the present disclosure provide a device control method, Figure 2 is a flowchart of a device control method according to an example embodiment, executed by a first device, including steps S201 to S205, specifically:

[0085] Step S201, obtaining text control instruction information.

[0086] The method of obtaining text control instruction information in this step includes one of the following:

[0087] receiving text content input on a setting interface, and determining that the text content is text control instruction information;

[0088] receiving voice control information, identifying text content in the voice control information, and determining that the text content is text control instruction information;

[0089] receiving a touch control instruction, determining text content corresponding to the touch control instruction, and determining that the text content is text control instruction information.

[0090] The first device can be installed with an APP for controlling other devices through ultrasonic waves. When a user needs to control a device through ultrasonic waves, the APP can provide at least one of the above functions after being opened.

[0091] Step S202, converting the text control instruction information into bit stream data.

[0092] The method of converting text control instruction information into bit stream data can be conversion according to an ASCII code table.

[0093] Step S203, determining a modulated multi-carrier continuous baseband signal that is mutually orthogonal according to the bit stream data.

[0094] In some possible implementation manners, the bit stream data is modulated into a plurality of mutually orthogonal multi-frequency continuous baseband signals using an Orthogonal Frequency Division Multiplexing (OFDM) technology.

[0095] In step S204, the plurality of mutually orthogonal multi-frequency continuous baseband signals are modulated into ultrasonic frequency band signals.

[0096] In step S205, the ultrasonic frequency band signals are transmitted through a loudspeaker of the first device.

[0097] In the embodiments of the present disclosure, the bit stream corresponding to the control instruction is modulated into a plurality of mutually orthogonal multi-carrier continuous baseband signals, and the data transmission rate corresponding to the multi-carrier modulation mode is greater than the data transmission rate corresponding to the single-carrier modulation mode, so that the transmission rate of the ultrasonic control data is improved.

[0098] The embodiments of the present disclosure provide a device control method, Figure 3 FIG. 1 is a flowchart of a device control method according to an exemplary embodiment, which is executed by a first device and includes steps S301-S306, specifically:

[0099] In step S301, text control instruction information is obtained.

[0100] In step S301, the text control instruction information is obtained in the same manner as in step S201.

[0101] In step S302, the text control instruction information is converted into bit stream data.

[0102] In step S302, the text control instruction information is converted into bit stream data in the same manner as in step S202.

[0103] In step S303, a plurality of frames are determined according to the bit stream data, the plurality of frames including a plurality of data frames and a data quantity frame, the data frame including a header area and a data area, the header area being used to indicate a frame number of the data frame, and the data area being part of the bit stream data. The data quantity frame is used to indicate a quantity of the data frames.

[0104] For example, the bit stream data is divided into a plurality of groups, each group corresponding to a data frame, a frame number is added to each data frame, and a data quantity frame quantity is set.

[0105] In an example, the bit stream data has N bits, the data is divided into N / 16+1 groups of data, each group corresponding to a frame, wherein N / 16 corresponds to 16 bits of data to be carried in each frame of ultrasonic data, and an additional data amount frame is set to indicate the number of data frames. After grouping, a frame number is set for each frame of data, and X bits are added at the front end of each frame of data to indicate the frame number.

[0106] In the process of setting the frame number for each frame of data, a header area is added at the front end of each frame of data, and the frame number is stored in the header area.

[0107] After grouping the bit stream data and setting the frame number for each frame of data in this step, the second device can determine whether each frame of data is accurately received according to the frame number, thereby ensuring the integrity and accuracy of data transmission.

[0108] In step S304, the bit stream data is determined to be modulated into a plurality of continuous baseband signals of mutually orthogonal multicarriers.

[0109] In some possible embodiments, the bit stream data is modulated into a plurality of continuous baseband signals of mutually orthogonal multicarriers using an Orthogonal Frequency Division Multiplexing (OFDM) technology.

[0110] In this step S304, the data amount frame and each frame of data are modulated respectively, so that each frame corresponds to a continuous baseband signal of a multicarrier.

[0111] In step S305, the plurality of continuous baseband signals of the multicarriers are modulated into ultrasonic band signals.

[0112] In an embodiment, the continuous baseband signal of the multicarrier corresponding to each frame is decomposed into a plurality of single-carrier signals, and each single-carrier signal is subjected to inverse transformation and forward transformation, wherein the inverse transformation is the inverse of the forward transformation, and the forward transformation is the transformation from time domain to frequency domain.

[0113] In an embodiment, the forward transformation is FFT, and the inverse transformation is IFFT.

[0114] In step S306, the ultrasonic band signals are sent through a loudspeaker of the first device.

[0115] The embodiments of the present disclosure provide a device control method, Figure 4 The device control method is shown in a flowchart according to an example embodiment, and is executed by a first device, and includes steps S401 to S407, specifically:

[0116] In step S401, text control instruction information is obtained.

[0117] The text control instruction information is obtained in step S401 in the same way as in step S201.

[0118] In step S402, the text control instruction information is converted into bit stream data.

[0119] The text control instruction information is converted into bit stream data in step S402 in the same way as in step S202.

[0120] In step S403, the bit stream data is divided into multiple data frames, a frame number is added to each data frame, and a data quantity frame is set, which is used to indicate the number of data frames.

[0121] The specific content in step S403 is the same as in step S303.

[0122] In step S404, a check code is set for each frame, which is calculated according to the content in the corresponding frame.

[0123] In an example, a tail area is added at the rear end of each frame, in which the check code is stored.

[0124] In an example, the check code can be a cyclic redundancy check code (CRC), which can be used for error checking. The CRC is obtained by performing a polynomial calculation on the data in the frame, and the receiving device performs the inverse process of the corresponding polynomial calculation to verify the correctness of the data. When the verification fails, the corresponding frame can be indicated for retransmission.

[0125] Therefore, after the first device receives the indication information indicating the data frame for retransmission of the target frame number, the data frame corresponding to the target frame number is played back again.

[0126] In step S405, the bit stream data is determined to be a plurality of continuous baseband signals modulated to be mutually orthogonal.

[0127] In step S406, the plurality of continuous baseband signals are modulated into ultrasonic band signals.

[0128] In step S407, the ultrasonic band signals are transmitted through the loudspeaker of the first device.

[0129] The embodiments of the present disclosure provide a device control method, Figure 5 is a flowchart of a device control method according to an example embodiment, executed by a first device, including steps S501 to S507, specifically:

[0130] In step S501, text control instruction information is obtained.

[0131] The text control instruction information is obtained in step S501.

[0132] In step S502, the text control instruction information is converted into bit stream data.

[0133] The text control instruction information is converted into bit stream data in step S502.

[0134] In step S503, the bit stream data is divided into multiple data frames, a frame number is added to each data frame, and a data quantity frame is set, which is used to indicate the number of data frames.

[0135] The specific content in step S503 is the same as that in step S303.

[0136] In step S504, a prefix and / or a suffix are added to each frame, and a sequence for channel assessment is added before each frame.

[0137] In an example, a prefix is added at the front end of each frame, a sequence for channel assessment is added adjacent to the prefix, and a prefix is added at the front end of the sequence for channel assessment, and the sequence of each frame is: prefix, sequence for channel assessment, prefix, data.

[0138] In an example, a suffix is added at the rear end of each frame, a sequence for channel assessment is added at the front end of each frame, and a suffix is added at the rear end of the sequence for channel assessment, and the sequence of each frame is: sequence for channel assessment, suffix, data, suffix.

[0139] In an example, a prefix is added at the front end of each frame, a suffix is added at the rear end of each frame, a sequence for channel assessment is added at the front end of the added prefix, and a prefix and a suffix are added at the front end and the rear end of the sequence for channel assessment respectively, Figure 6 is a signal format diagram according to an example embodiment, as shown in Figure 6 the sequence of each frame is: prefix, sequence for channel assessment, suffix, prefix, data, suffix.

[0140] In an example, the sequence for channel assessment is a LTF sequence (long training field).

[0141] Therefore, after the first device receives the indication information indicating the data frame of the target frame number for retransmission, the data frame corresponding to the target frame number is played back again.

[0142] In step S505, the bit stream data is determined to be a multiple carrier continuous baseband signal modulated to be orthogonal to each other.

[0143] Step S506, modulating the multi-frequency continuous baseband signal into an ultrasonic frequency band signal.

[0144] Step S507, sending the ultrasonic frequency band signal through the loudspeaker of the first device.

[0145] In steps S505-S507, the specific contents are the same as those in steps S203-S205.

[0146] The embodiment of the present disclosure provides a device control method, Figure 7 is a flowchart of a device control method according to an exemplary embodiment, executed by a second device, comprising steps S701-S706, specifically:

[0147] Step S701, receiving an ultrasonic frequency band signal through a sound receiver of the second device.

[0148] In an example, the sound receiver of the second device is a microphone of the second device, and the received signal is filtered to filter out low-frequency signals and only keep the ultrasonic frequency band signal.

[0149] Step S702, demodulating the ultrasonic frequency band signal into mutually orthogonal multi-frequency continuous baseband signals.

[0150] In some possible implementations, the single carrier signals in the ultrasonic frequency band signal are respectively subjected to forward transformation and inverse transformation and then combined into a multi-carrier continuous baseband signal.

[0151] In an example, the ultrasonic frequency band signal corresponding to each frame is decomposed into a plurality of single carrier signals, and each single carrier signal is subjected to forward transformation and inverse transformation, the inverse transformation being inverse transformation of the forward transformation, and the forward transformation being transformation from time domain to frequency domain.

[0152] In which, the forward transformation can be FFT, and the inverse transformation can be IFFT.

[0153] Step S703, demodulating the mutually orthogonal multi-frequency continuous baseband signals into bit stream data.

[0154] In some possible implementations, the mutually orthogonal multi-frequency continuous baseband signals are demodulated into bit stream data using orthogonal frequency division multiplexing technology.

[0155] Step S704, converting the bit stream data into text control instruction information.

[0156] In an example, the bit stream data is converted into text control instruction information according to an ASCII code correspondence table, and displayed on an interface of the second device.

[0157] Step S705, identifying the instruction corresponding to the text control instruction information.

[0158] Step S706, executing the instruction.

[0159] The embodiment of the present disclosure provides a device control method, Figure 8 A flowchart of a device control method according to an example embodiment is shown, executed by a second device, including steps S801-S807, specifically:

[0160] Step S801, receiving an ultrasonic frequency band signal by a sound receiver of the second device.

[0161] Step S802, demodulating the ultrasonic frequency band signal into a plurality of mutually orthogonal multi-frequency continuous baseband signals.

[0162] Step S803, demodulating the plurality of mutually orthogonal multi-frequency continuous baseband signals into a bit stream data.

[0163] In steps S801-S803, the specific content is the same as that in steps S701-S703.

[0164] Step S804, parsing the bit stream data into a plurality of frames, the plurality of frames including a data amount frame and a plurality of data frames, each data frame including a frame number, and the data amount frame being used to indicate the number of data frames.

[0165] According to the frame number of each data frame, the number of received frames is determined, and it is determined whether the number is the same as the received data amount frame.

[0166] Step S805, converting the bit stream data into text control instruction information.

[0167] In step S805, the specific content is the same as that in step S804.

[0168] Step S806, identifying the instruction corresponding to the text control instruction information.

[0169] Step S807, executing the instruction.

[0170] The embodiment of the present disclosure provides a device control method, Figure 9 A flowchart of a device control method according to an example embodiment is shown, executed by a second device, including steps S901-S908, specifically:

[0171] Step S901, receiving an ultrasonic frequency band signal by a sound receiver of the second device.

[0172] Step S902, demodulating the ultrasonic frequency band signal into a plurality of mutually orthogonal multi-frequency continuous baseband signals.

[0173] Step S903, demodulating the mutually orthogonal multi-frequency continuous baseband signals into bit stream data.

[0174] Step S904, parsing the bit stream data into a plurality of frames, the plurality of frames including a data quantity frame and a plurality of data frames, each data frame including a frame number, the data quantity frame being used to indicate the number of data frames.

[0175] In the steps S901-S904, the specific contents are the same as those in the steps S801-S804.

[0176] Step S905, checking the frame according to the check code in the frame to determine whether the frame is a valid frame or an invalid frame.

[0177] In an example, the check code stored in the tail area of each frame is checked.

[0178] In an example, the check code is a cyclic redundancy check code, and the inverse process of polynomial calculation is performed on the check code of each frame to verify the correctness of the data. The frame with correct check code is a valid frame, and the frame with incorrect check code is an invalid frame.

[0179] In an example, when the frame is a valid frame, the frame number of the frame is saved into a valid frame sequence; when the frame is an invalid frame, the frame is saved into an invalid frame sequence until the first device re-sends the frame, and the re-sent frame is a valid frame, and then it is saved into the valid frame sequence. When the length of the valid frame sequence is the same as the number in the received data quantity frame, the valid frame sequence is sorted, and the valid frame sequence is emptied at the same time.

[0180] In some possible implementations, when the frame is an invalid frame, an ultrasonic frequency band signal is sent through a loudspeaker of the second device, the ultrasonic frequency band signal including indication information of a data frame used to indicate a retransmission target frame number, the target frame number being the frame number of the invalid data frame.

[0181] Step S906, converting the bit stream data into text control instruction information.

[0182] In the step S906, the specific contents are the same as those in the step S805.

[0183] Step S907, identifying an instruction corresponding to the text control instruction information.

[0184] Step S908, executing the instruction.

[0185] The device control method provided in the embodiments of the present disclosure, Figure 10A flow chart of a device control method according to an exemplary embodiment is shown, executed by a second device, comprising steps S1001-S1008, specifically:

[0186] Step S1001, receiving an ultrasonic frequency band signal by a sound receiver of the second device.

[0187] Step S1002, performing channel estimation on the corresponding ultrasonic frequency band signal according to a set sequence, and performing channel compensation in a demodulation process.

[0188] In an example, Figure 11 A channel estimation schematic diagram according to an exemplary embodiment is shown, as shown, the set sequence is added by the first device, and channel estimation is performed on the corresponding ultrasonic frequency band signal according to the set sequence. Figure 11

[0189] Step S1003, demodulating the ultrasonic frequency band signal into a plurality of mutually orthogonal multi-frequency continuous baseband signals.

[0190] Step S1004, demodulating the plurality of mutually orthogonal multi-frequency continuous baseband signals into a bit stream data.

[0191] Step S1005, parsing the bit stream data into a plurality of frames, the plurality of frames including a data amount frame and a plurality of data frames, each data frame including a frame number, and the data amount frame being used to indicate the number of data frames.

[0192] Step S1006, converting the bit stream data into text control instruction information.

[0193] Step S1007, identifying an instruction corresponding to the text control instruction information.

[0194] Step S1008, executing the instruction.

[0195] In an exemplary embodiment of the present disclosure, a device control apparatus is provided, configured in a first device, Figure 12 A block diagram of a device control apparatus according to an exemplary embodiment is shown, as shown, the apparatus includes: Figure 12 The processing module 1201 is configured to obtain text control instruction information; and convert the text control instruction information into bit stream data.

[0196] The modulation module 1202 is configured to determine modulation into a plurality of mutually orthogonal multi-carrier continuous baseband signals according to the bit stream data; and modulate the multi-frequency continuous baseband signals into an ultrasonic frequency band signal.

[0197]

[0198] ​​The sending module 1203 is configured to send the ultrasonic frequency band signal through a loudspeaker of the first device.

[0199] In an exemplary embodiment of the present disclosure, a device control apparatus is provided, configured to a second device, Figure 13 is a device control apparatus block diagram according to an exemplary embodiment, as shown, comprising: Figure 13

[0200] The receiving module 1301 is configured to receive the ultrasonic frequency band signal through a microphone of the second device.

[0201] The demodulating module 1302 is configured to demodulate the ultrasonic frequency band signal into a plurality of frequency continuous baseband signals which are mutually orthogonal; and demodulate the plurality of frequency continuous baseband signals which are mutually orthogonal into a bit stream data.

[0202] The processing module 1303 is configured to convert the bit stream data into text control instruction information; identify an instruction corresponding to the text control instruction information; and execute the instruction.

[0203] As to the apparatus in the above embodiments, the specific manners in which various modules perform operations have been described in details in the embodiments of the method, and thus will not be described in details here.

[0204] When the electronic device is a terminal, Figure 14 is a block diagram of a terminal 1400 according to an exemplary embodiment.

[0205] Referring to Figure 14 , the terminal 1400 can include one or more of the following components: a processing component 1402, a memory 1404, a power supply component 1406, a multimedia component 1408, an audio component 1410, an input / output (I / O) interface 1412, a sensor component 1414, and a communication component 1416.

[0206] The processing component 1402 usually controls overall operations of the terminal 1400, such as operations associated with displaying, making phone calls, data communications, camera operations and recording operations. The processing component 1402 can include one or more processors 1420 to execute instructions to complete all or part of steps of the methods described above. Further, the processing component 1402 can include one or more modules to facilitate interaction between the processing component 1402 and other components. For example, the processing component 1402 can include a multimedia module to facilitate the interaction between the multimedia component 1408 and the processing component 1402.

[0207] ​The memory 1404 is configured to store various types of data to support the operation of the device 1400. Examples of these data include instructions for any application or method operating on the terminal 1400, contact data, phonebook data, messages, pictures, videos, etc. The memory 1404 can be implemented by any type of volatile or nonvolatile memory, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable programmable read only memory (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic memory, flash memory, magnetic disc or optical disc.

[0208] The power supply component 1406 supplies power for various components of the terminal 1400. The power supply component 1406 can include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the terminal 1400.

[0209] The multimedia component 1408 includes a screen providing an output interface between the terminal 1400 and a user. In some embodiments, the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense a touch, a slide, and a gesture on the touch panel. The touch sensor can not only sense a boundary of a touching or a sliding action, but also detect duration and pressure related to the touching or sliding action. In some embodiments, the multimedia component 1408 includes a front camera and / or a back camera. The front camera and / or the back camera can receive external multimedia data when the device 1400 is in an operating mode, such as a shooting mode or a video mode. Each of the front and back cameras can be a fixed optical lens system or have a focal length and optical zoom capability.

[0210] The audio component 1410 is configured to output and / or input an audio signal. For example, the audio component 1410 includes a microphone (MIC) configured to receive an external audio signal when the terminal 1400 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 1404 or transmitted via the communication component 1416. In some embodiments, the audio component 1410 also includes a speaker for outputting an audio signal.

[0211] The I / O interface 1412 provides an interface between the processing component 1402 and peripheral interface modules, which can be a keypad, a click wheel, buttons, etc. The buttons can include, but are not limited to, a home button, a volume button, a start button, and a lock button.

[0212] The sensor component 1414 includes one or more sensors to provide the terminal 1400 with state assessment of various aspects. For example, the sensor component 1414 can detect an open / closed state of the device 1400, relative positioning of components, such as a display and a keypad of the terminal 1400, a change in location of the terminal 1400 or a component of the terminal 1400, presence or absence of user contact with the terminal 1400, orientation or acceleration / deceleration / g-force and temperature changes of the terminal 1400. The sensor component 1414 can include an optical sensor for use in imaging applications and a near- field communication (NFC) module for near-field communication. In some embodiments, the sensor component 1414 can further include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0213] The communication component 1416 is configured to facilitate wired or wireless communication between the terminal 1400 and another device. The terminal 1400 can access a wireless network based on a communication standard, such as WiFi, 2G, or 3G, or a combination thereof. In an example embodiment, the communication component 1416 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an example embodiment, the communication component 1416 further includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technology.

[0214] In an example embodiment, the terminal 1400 can be implemented using one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic elements to perform the above-described methods.

[0215] In an example embodiment, a non-transitory computer-readable storage medium including instructions, such as the memory 1404 including instructions, is also provided, which can be executed by the processor 1420 of the terminal 1400 to complete the above-described methods. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disc, and an optical data storage device, etc.

[0216] A computer readable storage medium having stored therein instructions which, when executed on a computer, cause the computer to perform a device control method, the method comprising the method of any of the preceding embodiments.

[0217] Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. It is intended that the specification and examples be considered as exemplary only, with the true scope and spirit of the application being indicated by the following claims.

[0218] It is to be understood that the application is not limited to the precise details of construction and the above-described and illustrated exact construction, and that various modifications and changes can be applied to the application without departing from the scope thereof or sacrificing any of its advantages. The scope of the application is accordingly indicated in the appended claims, rather than in the foregoing description.

[0219] Industrial applicability

[0220] In the present disclosure, the bit stream corresponding to the control instruction is modulated into a plurality of mutually orthogonal continuous baseband signals, and the data transmission rate corresponding to the multi-carrier modulation mode is greater than the data transmission rate corresponding to the single-carrier modulation mode, so as to improve the transmission rate of the ultrasonic control data.

Claims

1. A device control method, executed by a first device, the method comprising: Obtain text control command information; Convert the text control instruction information into bitstream data; Multiple frames are determined based on the bitstream data. The multiple frames include multiple data frames and data volume frames. The data frames include a header area and a data area. The header area is used to indicate the frame number of the data frame, and the data area is a portion of the data in the bitstream data. The data volume frame is used to indicate the number of data frames; The bitstream data is modulated into mutually orthogonal multi-frequency continuous baseband signals; The multi-frequency continuous baseband signal is modulated into an ultrasonic bandband signal; The ultrasonic frequency band signal is transmitted through the speaker of the first device.

2. The method as described in claim 1, characterized in that, Modulating the bitstream data into mutually orthogonal multi-frequency continuous baseband signals includes: The bitstream data is modulated into mutually orthogonal multi-frequency continuous baseband signals using orthogonal frequency division multiplexing (OFDM) technology.

3. The method as described in claim 1 or 2, characterized in that, Modulating the multi-frequency continuous baseband signal into an ultrasonic band signal includes: The multi-frequency continuous baseband signal corresponding to each frame is decomposed into multiple single-carrier signals. Each single-carrier signal is subjected to inverse transformation and forward transformation. The inverse transformation is the inverse of the forward transformation, and the forward transformation is a transformation from the time domain to the frequency domain.

4. The method as described in claim 1 or 2, characterized in that, The method further includes: A checksum is set for each frame, which is calculated based on the content of the corresponding frame.

5. The method as described in claim 1 or 2, characterized in that, The method further includes: Add a prefix and / or suffix to each frame, and add a sequence for channel evaluation before each frame.

6. The method as described in claim 1 or 2, characterized in that, The method further includes: Upon receiving an instruction message indicating the retransmission of a data frame with the target frame number, the data frame corresponding to the target frame number is replayed.

7. A device control method, executed by a second device, the method comprising: The ultrasonic frequency band signal is received through the receiver of the second device; The ultrasonic frequency band signal is demodulated into mutually orthogonal multi-frequency continuous baseband signals; The mutually orthogonal multi-frequency continuous baseband signals are demodulated into bit stream data; The bitstream data is parsed into multiple frames, which include a data volume frame and multiple data frames. Each data frame includes a frame number, and the data volume frame is used to indicate the number of data frames. Convert the bitstream data into text control command information; Identify the instruction corresponding to the text control instruction information; Execute the instruction.

8. The method as described in claim 7, characterized in that, The demodulation of the mutually orthogonal multi-frequency continuous baseband signals into bitstream data includes: The orthogonal frequency division multiplexing technique is used to demodulate the mutually orthogonal multi-frequency continuous baseband signals into bit stream data.

9. The method as described in claim 7 or 8, characterized in that, The method further includes: The frame is verified based on the checksum in the frame to determine whether the frame is a valid frame or an invalid frame.

10. The method as described in claim 7 or 8, characterized in that, Demodulating the ultrasonic frequency band signal into a multi-frequency continuous baseband signal includes: The single-carrier signals in the ultrasonic frequency band are combined into a multi-frequency continuous baseband signal after undergoing forward and inverse transformations respectively.

11. The method as described in claim 10, characterized in that, The method further includes: Channel evaluation is performed on the corresponding ultrasonic frequency band signal according to the set sequence, and channel compensation is performed during demodulation.

12. The method as described in claim 9, characterized in that, The method further includes: An ultrasonic band signal is transmitted through the speaker of the second device. The ultrasonic band signal includes indication information for a data frame indicating a retransmission target frame number, which is the frame number of the invalid frame.

13. A device control apparatus disposed within a first device, the apparatus comprising: The processing module is configured to acquire text control command information; Convert the text control instruction information into bitstream data; A modulation module is configured to determine multiple frames based on the bitstream data. The multiple frames include multiple data frames and data volume frames. Each data frame includes a header area and a data area. The header area is used to indicate the frame number of the data frame, and the data area is a portion of the data in the bitstream data. The data volume frames are used to indicate the number of data frames. Based on the bitstream data, a multi-frequency continuous baseband signal modulated into mutually orthogonal frequencies is determined; the multi-frequency continuous baseband signal is then modulated into an ultrasonic frequency band signal. The transmitting module is configured to transmit the ultrasonic band signal through the speaker of the first device.

14. A device control apparatus, disposed on a second device, the apparatus comprising: The receiving module is configured to receive ultrasonic band signals via the receiver of the second device; The demodulation module is configured to demodulate the ultrasonic frequency band signal into mutually orthogonal multi-frequency continuous baseband signals; demodulate the mutually orthogonal multi-frequency continuous baseband signals into bitstream data; and parse the bitstream data into multiple frames, the multiple frames including a data volume frame and multiple data frames, each data frame including a frame number, the data volume frame being used to indicate the number of data frames; The processing module is configured to convert the bitstream data into text control instruction information; identify the instruction corresponding to the text control instruction information; and execute the instruction.

15. An electronic device comprising a processor and a memory, wherein, The memory is used to store computer programs; The processor is used to execute the computer program to implement the method as described in any one of claims 1-6.

16. An electronic device comprising a processor and a memory, wherein, The memory is used to store computer programs; The processor is used to execute the computer program to implement the method as described in any one of claims 7-12.

17. A computer-readable storage medium storing instructions that, when invoked and executed on a computer, cause the computer to perform the method as described in any one of claims 1-6.

18. A computer-readable storage medium storing instructions that, when invoked and executed on a computer, cause the computer to perform the method as described in any one of claims 7-12.

Citation Information

Patent Citations

  • Multiple user (MU) short feedback response in wireless communications

    CN107171688A

  • System and method for using ultrasonic communication

    US20120171963A1