Control signal sending method, receiving method and related equipment
By converting control signaling into audio-encoded signals and transmitting them through sound signals, the problem of signal interference in radio frequency tests is solved, and the test efficiency is improved.
Patent Information
- Application Number
- CN202010298573.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-04-16
- Publication Date
- 2025-01-14
- Estimated Expiration
- 2040-04-16
AI Technical Summary
During the radio frequency testing of mobile terminals, the control signal is prone to interfere with the test signal, resulting in low testing efficiency.
By converting control signaling into binary code streams, audio encoding and transmission through sound signals, avoiding signal interference and improving radio frequency test efficiency.
In the RF test environment, the equipment being tested is controlled through sound signals, effectively avoiding interference from the control signal on the test signal and improving the efficiency of RF testing.
Smart Images

Figure CN113539280B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of intelligent terminal technology, and in particular to a control signal sending method, a control signal receiving method and related equipment. Background Art
[0002] With the rapid development of mobile communications, various mobile terminals emerge in an endless stream. In the production process of mobile terminals, various mobile terminals need to be subjected to performance tests, including radio frequency tests. Radio frequency is an electromagnetic frequency that can be radiated into space, with a frequency range of 300KHz-300GHz.
[0003] At present, in the process of performing radio frequency testing on mobile terminals, the problem of signal interference is usually encountered; for example, when performing an Over The Air (OTA) test on a mobile terminal, a control signal needs to be sent to the mobile terminal in order to control the frequency band of the mobile terminal, thereby performing a radio frequency test; however, if the signal of the mobile terminal is controlled by a wireless method such as WIFI, the WIFI signal will interfere with the test signal; and if the signal of the mobile terminal is controlled by a wired method such as a USB cable, the cable will reflect the test signal, thereby interfering with the test signal. Therefore, how to solve the interference of the control signal on the test signal during the radio frequency test has become a problem that needs to be solved urgently. Summary of the invention
[0004] The embodiments of the present application provide a control signal sending method, a receiving method and related equipment to provide a control signal sending and receiving method, which can realize signal control of the tested device through sound in a radio frequency test environment, thereby avoiding interference of the control signal to the test signal and improving the efficiency of radio frequency testing.
[0005] In a first aspect, an embodiment of the present application provides a method for sending a control signal, including:
[0006] detecting a first operation for generating control signaling;
[0007] Specifically, the first operation may be an operation input by a user, and the operation may be used to generate an instruction to control the device under test, for example, to adjust a radio frequency band of the device under test.
[0008] In response to the first operation, generating a control signaling, and converting the control signaling into a binary code stream;
[0009] The audio coding signal is modulated and then sent to a receiving end.
[0010] Specifically, the binary code stream obtained by converting the control signaling can be encoded to obtain audio code, and then the audio code is modulated to generate a sound waveform signal, and finally the sound signal can be transmitted through a speaker or the like.
[0011] In one possible implementation, performing audio encoding on the binary code stream to obtain an audio encoding signal includes:
[0012] Compressing the binary code stream to obtain a data frame, and adding a frame header to the data frame, wherein the frame header includes a synchronization code and a cyclic redundancy check (CRC) code;
[0013] The data frame is encoded to obtain an audio encoding signal.
[0014] Specifically, the compression is used to improve the data transmission efficiency. Since the data rate of sound transmission is low, the amount of data transmitted each time can be increased through compression, thereby improving data transmission efficiency; the data frame header is used to parse the compressed data frame at the receiving end.
[0015] In one possible implementation manner, before the detecting a first operation for generating a control signaling, the method further includes:
[0016] In response to the received correction signal, performing signal strength analysis on the correction signal to obtain channel compensation;
[0017] The step of modulating the audio coding signal and sending it to the receiving end comprises:
[0018] The audio coding signal is modulated according to the channel compensation and then sent to a receiving end.
[0019] Specifically, the correction signal is used to compensate for channels of different tested devices. Since different tested devices have different sound gains, the correction signal can be sent before sending the control signal to compensate for the channel, thereby avoiding bit errors or missing bits caused by channel differences.
[0020] In one possible implementation manner, after the audio coding signal is modulated and sent to the receiving end, the method further includes:
[0021] If a non-confirmation message is received from the receiving end, the audio coding signal is retransmitted.
[0022] Specifically, the non-confirmation message corresponds to the audio coding information. When the non-confirmation message is received, the corresponding audio coding signal can be retransmitted, thereby improving the efficiency of data transmission and further improving the efficiency of radio frequency testing.
[0023] The embodiment of the present application also provides a method for receiving a control signal, including:
[0024] receiving an audio coding signal from a transmitting end;
[0025] Specifically, the sound signal may be received by a microphone of the device under test. Since the sound signal is continuous, the sound signal within any time period may be sampled.
[0026] Demodulating the audio coding signal to obtain a frequency of the audio coding signal;
[0027] Specifically, the analog signal of the sound may be demodulated into a digital signal, and the demodulation method may be a fast Fourier transform, thereby obtaining the corresponding frequency and component in the sound signal.
[0028] The audio coding signal is decoded according to the frequency to obtain a binary code stream, and the binary code stream is parsed to obtain a control signaling.
[0029] Specifically, the transmitting end may perform encoding according to the codewords in the audio encoding table, and thus the receiving end may also perform decoding according to the codewords in the audio encoding table, thereby obtaining a binary code stream.
[0030] In one possible implementation manner, before receiving the audio coding signal from the transmitting end, the method further includes:
[0031] Send a correction signal to the transmitter.
[0032] Specifically, before the tested device waits to receive the control signal from the testing device, when initializing the communication module, it can send a correction signal to the testing device (transmitting end), and the correction signal can be a 5kHz or 8kHz pilot signal.
[0033] In one possible implementation, decoding the audio coding signal according to the frequency to obtain a binary code stream includes:
[0034] Decoding the audio coding signal according to the frequency to obtain a data frame;
[0035] Performing frame synchronization detection according to a synchronization code in a frame header of the data frame, and performing integrity detection according to a cyclic redundancy check (CRC) code in a frame header of the data frame;
[0036] If the frame synchronization detection and integrity detection are successful, the data frame is decompressed to obtain a binary code stream.
[0037] Specifically, if the sender compresses the binary code stream, a data frame can be obtained after decoding the audio coding signal. Then, the data frame can be synchronized and checked for integrity based on the frame header in the data frame, and decompressed after the check is successful, thereby obtaining a binary code stream.
[0038] In one possible implementation, if the frame synchronization detection and integrity detection are successful, the data frame is decompressed to obtain a binary code stream including:
[0039] If the frame synchronization detection and integrity detection are successful, the data frame is decompressed to obtain a binary code stream, and a confirmation message is sent to the sending end;
[0040] If the frame synchronization detection or integrity detection fails, a non-confirmation message is sent to the sending end to request the sending end to retransmit the data frame.
[0041] Specifically, the confirmation message or non-confirmation message corresponds to a data frame. When the transmitting end receives a confirmation message or non-confirmation message of any data frame, it can determine whether to retransmit the data frame according to the message.
[0042] In the above-mentioned control signal sending method and receiving method, the control signal is carried by sound at the sending end, and the sound signal is modulated and sent to the receiving end. The sound signal is demodulated at the receiving end to obtain the carried control signal, thereby providing a control signal sending and receiving method, which can realize signal control of the tested device by sound in a radio frequency test environment, thereby avoiding interference of the control signal to the test signal and improving the efficiency of radio frequency testing.
[0043] In a second aspect, an embodiment of the present application provides a device for sending a control signal, including:
[0044] A detection module, configured to detect a first operation for generating a control signaling;
[0045] a conversion module, configured to generate a control signaling in response to the first operation, and convert the control signaling into a binary code stream;
[0046] An encoding module, used for performing audio encoding on the binary code stream to obtain an audio encoding signal;
[0047] The sending module is used to modulate the audio coding signal and send it to the receiving end.
[0048] In one possible implementation, the encoding module includes:
[0049] A compression unit, configured to compress the binary code stream to obtain a data frame, and add a frame header to the data frame, wherein the frame header includes a synchronization code and a cyclic redundancy check (CRC) code;
[0050] An encoding unit is used to encode the data frame to obtain an audio encoding signal. In one possible implementation method, the shared module.
[0051] In one possible implementation, the device further includes:
[0052] A compensation module, configured to perform signal strength analysis on the correction signal in response to the received correction signal to obtain channel compensation;
[0053] The sending module is further used to modulate the audio coding signal according to the channel compensation and then send the modulated audio signal to the receiving end.
[0054] In one possible implementation, the device further includes:
[0055] The retransmission module is used to retransmit the audio coding signal if a non-confirmation message is received from the receiving end.
[0056] The embodiment of the present application further provides a control signal receiving device, including:
[0057] A receiving module, used for receiving an audio coding signal from a transmitting end;
[0058] A demodulation module, used to demodulate the audio coding signal to obtain the frequency of the audio coding signal;
[0059] The parsing module is used to decode the audio coding signal according to the frequency to obtain a binary code stream, and parse the binary code stream to obtain a control signaling.
[0060] In one possible implementation, the device further includes:
[0061] The sending module is used to send a correction signal to the sending end.
[0062] In one possible implementation, the parsing module includes:
[0063] A decoding unit, used for decoding the audio coding signal according to the frequency to obtain a data frame;
[0064] A check unit, configured to perform frame synchronization check according to a synchronization code in a frame header of the data frame, and perform integrity check according to a cyclic redundancy check (CRC) code in a frame header of the data frame;
[0065] The decompression unit is used to decompress the data frame to obtain a binary code stream if the frame synchronization check and the integrity check are successful.
[0066] In one possible implementation method, the decompression unit is also used to decompress the data frame to obtain a binary code stream and send a confirmation message to the sender if the frame synchronization detection and integrity detection are successful; if the frame synchronization detection or integrity detection fails, a non-confirmation message is sent to the sender to request the sender to retransmit the data frame.
[0067] In a third aspect, an embodiment of the present application provides a control signal sending device, including:
[0068] 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, and the one or more computer programs include instructions that, when executed by the device, cause the device to perform the following steps:
[0069] detecting a first operation for generating control signaling;
[0070] In response to the first operation, generating a control signaling, and converting the control signaling into a binary code stream;
[0071] Performing audio encoding on the binary code stream to obtain an audio encoding signal;
[0072] The audio coding signal is modulated and then sent to a receiving end.
[0073] In one possible implementation manner, when the instruction is executed by the device, the device performs the step of performing audio encoding on the binary code stream to obtain an audio encoding signal, including:
[0074] Compressing the binary code stream to obtain a data frame, and adding a frame header to the data frame, wherein the frame header includes a synchronization code and a cyclic redundancy check (CRC) code;
[0075] The data frame is encoded to obtain an audio encoding signal.
[0076] In one possible implementation manner, when the instruction is executed by the device, the device further performs the following steps before performing the step of detecting the first operation for generating control signaling:
[0077] In response to the received correction signal, performing signal strength analysis on the correction signal to obtain channel compensation;
[0078] The step of modulating the audio coding signal and sending it to the receiving end comprises:
[0079] The audio coding signal is modulated according to the channel compensation and then sent to a receiving end.
[0080] In one possible implementation manner, when the instruction is executed by the device, after the device performs the step of modulating the audio coding signal and sending it to the receiving end, it further performs the following steps:
[0081] If a non-confirmation message is received from the receiving end, the audio coding signal is retransmitted.
[0082] The present application also provides a control signal receiving device, including:
[0083] 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, and the one or more computer programs include instructions that, when executed by the device, cause the device to perform the following steps:
[0084] receiving an audio coding signal from a transmitting end;
[0085] Demodulating the audio coding signal to obtain a frequency of the audio coding signal;
[0086] The audio coding signal is decoded according to the frequency to obtain a binary code stream, and the binary code stream is parsed to obtain a control signaling.
[0087] In one possible implementation manner, before the step of receiving the audio coding signal from the transmitting end, the following steps are further performed:
[0088] Send a correction signal to the transmitter.
[0089] In one possible implementation, the step of decoding the audio coding signal according to the frequency to obtain a binary code stream includes:
[0090] Decoding the audio coding signal according to the frequency to obtain a data frame;
[0091] Performing frame synchronization detection according to a synchronization code in a frame header of the data frame, and performing integrity detection according to a cyclic redundancy check (CRC) code in a frame header of the data frame;
[0092] If the frame synchronization detection and integrity detection are successful, the data frame is decompressed to obtain a binary code stream.
[0093] In one possible implementation, if the frame synchronization detection and integrity detection are successful, the step of decompressing the data frame to obtain a binary code stream includes:
[0094] If the frame synchronization detection and integrity detection are successful, the data frame is decompressed to obtain a binary code stream, and a confirmation message is sent to the sender; if the frame synchronization detection or integrity detection fails, a non-confirmation message is sent to the sender to request the sender to retransmit the data frame.
[0095] It should be understood that the second to third aspects 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 achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here.
[0096] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer executes the method described in the first aspect.
[0097] In a fifth aspect, an embodiment of the present application provides a computer program, which, when executed by a computer, is used to execute the method described in the first aspect.
[0098] In one possible design, the program in the fifth aspect may be stored in whole or in part on a storage medium packaged together with the processor, or may be stored in whole or in part on a memory not packaged together with the processor. BRIEF DESCRIPTION OF THE DRAWINGS
[0099] Figure 1 A flowchart of an embodiment of a method for sending a control signal of the present application;
[0100] Figure 2 A flowchart of an embodiment of the retransmission interaction mechanism of the present application;
[0101] Figure 3 A flowchart of an embodiment of a method for receiving a control signal of the present application;
[0102] Figure 4 This is a schematic diagram of the structure of an embodiment of a device for sending a control signal of the present application;
[0103] Figure 5 A schematic diagram of the structure of an embodiment of a receiving device for a control signal of the present application;
[0104] Figure 6 This is a schematic diagram of the structure of an embodiment of the electronic device of the present application. DETAILED DESCRIPTION
[0105] The terms used in the implementation section of this application are only used to explain the specific embodiments of this application and are not intended to limit this application.
[0106] In existing implementation schemes, the test equipment controls the signals of the tested device such as the mobile terminal by wired or wireless means, thereby performing RF testing on the tested device. However, in the process of sending the control signal, interference will be caused to the test signal sent by the tested device.
[0107] To this end, the present application proposes a method for sending and receiving a control signal, which can realize signal control of the device under test in a darkroom environment, thereby avoiding interference with the test signal during the RF test process, thereby improving the efficiency of the RF test.
[0108] Figure 1 This is a flow chart of an embodiment of a method for sending a control signal of the present application, as shown in FIG. Figure 1 As shown, the method for sending the control signal may include:
[0109] Step 101: Generate a binary code stream at the sending end.
[0110] Specifically, the transmitting end can be a test device, such as a radio frequency tester; the binary code stream can be generated based on a control signal, and the control signal can be input by a user. When the test device detects the user's current operation, it can generate a corresponding control signal based on the operation, and then the control signal can be converted into binary to obtain a binary code stream.
[0111] It should be understood that a binary code stream is a string of 0s and 1s, which can be parsed at the receiving end to obtain control signaling.
[0112] Step 102: Perform audio encoding on the binary code stream to obtain an audio encoding signal.
[0113] Specifically, after obtaining the binary code stream, the binary code stream can be encoded based on audio. Since the sound signal has the characteristics of a wireless signal in signal transmission, and has low development cost and small interference, the binary code stream can be encoded into audio code.
[0114] In the process of audio encoding, a dual tone multi-frequency (DTMF) signal can be used, that is, a binary code stream can be encoded into a DTMF code, and the DTMF code can be queried through a DTMF code table, so that the received DTMF code can be decoded into a binary code stream by querying the DTMF code table at the receiving end.
[0115] Optionally, since DTMF has only 14 characters, namely 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C and D, and DTMF also includes the characters "*" and "#", the character "*" can be changed into the hexadecimal character "E", and the character "#" can be changed into the hexadecimal character "F", thereby forming a hexadecimal code, that is, the DTMF code can be a hexadecimal code.
[0116] Furthermore, since the audio transmission data rate is low, the binary code stream can be compressed before audio encoding is performed on the binary code stream, thereby improving the data transmission efficiency; wherein, the data compression can be performed using a control protocol; in specific implementation, after the binary code stream is compressed, a corresponding data frame can be obtained, and a frame header can be added to the data frame to identify the data frame. The frame header can include a synchronization code and a CRC code, wherein the synchronization code is used to check the synchronization of the data frame, and the CRC code is used to check the integrity of the data frame. Then the data frame is audio encoded.
[0117] Step 103: Send the audio coding signal to a receiving end.
[0118] Specifically, after obtaining the audio coding signal, since the audio coding signal is a digital signal, digital-to-analog conversion can be performed, that is, the digital signal is modulated and converted into an analog signal, and the analog signal can be transmitted through a sound card or a speaker so that the receiving end can receive the analog signal.
[0119] In one possible implementation, since different devices under test may have different sound gains for different frequencies, and the current environment may cause differences in the sound silencing effect, the gain curve of the transmission channel can also be estimated to obtain channel compensation; in specific implementation, the estimation can be performed by receiving a correction signal sent by the receiving end, and the correction signal can be sent when the receiving end (device under test) initializes the communication module in the RF test scenario. The correction signal can be a 5KHz or 8KHz pilot signal; when the transmitting end (test device) receives the correction signal, the signal strength analysis of the correction signal can be performed to calculate the gain curve of the channel, and the corresponding channel compensation can be determined based on the gain curve. For example, when modulating the signal, the following modulation function can be used:
[0120] W=A*k*sin(x1)+A*k*sin(x2),
[0121] Among them, W can be the waveform of the sound signal, A can be the signal amplitude, k can be the compensation factor, x1 and x2 can be the frequencies of DTMF. After the waveform of the sound is generated according to the modulation function, the sound card or speaker can be driven to make sound according to the sound signal, thereby sending the signal.
[0122] In one possible implementation, due to the uncertainty of the wireless communication channel, the data sent through the wireless signal may fail to be received. Therefore, in order to improve the efficiency of data transmission, the transmitted data can be retransmitted; in the specific implementation, physical layer retransmission, that is, hybrid automatic repeat request (HARQ) can be used. After the data frame is sent by the transmitting end, the data frame can be stored in a pre-set cache. If a non-acknowledgement (NACK) message is received from the receiving end, the corresponding data frame can be retransmitted. If an acknowledgment (ACK) message is received from the receiving end, the corresponding data frame can be deleted from the cache; Figure 2 As shown, the sending end sends the audio coding signal A and the audio coding signal B in sequence. When the receiving end receives the audio coding signal A, it performs synchronization check and integrity check. After success, it sends an ACK message to the sending end. When the receiving end receives the audio coding signal B, it performs synchronization check and integrity check. After failure, it sends a NACK message to the sending end. When the sending end receives the ACK message, it deletes the audio coding signal A. When the sending end receives the NACK message, it retransmits the audio coding signal B. After receiving the audio coding signal B, the receiving end performs synchronization check and integrity check again. After success, it sends an ACK message to the sending end. When the sending end receives the ACK message, it deletes the audio coding signal B.
[0123] In this embodiment, a control signal is carried by sound at the transmitting end, and the sound signal is modulated and sent to the receiving end, thereby providing a method for sending a control signal. Signal control of the device under test can be performed by sound in a radio frequency test environment, thereby avoiding interference of the control signal on the test signal and improving the efficiency of radio frequency testing.
[0124] Figure 3 This is a flow chart of an embodiment of a method for receiving a control signal of the present application, as shown in FIG. Figure 2 As shown, the method for receiving the control signal may include:
[0125] Step 301: Receive an audio coding signal from a transmitting end.
[0126] Specifically, an audio coding signal can be received at the receiving end. Since the audio coding signal is an analog signal, the audio coding signal can be sampled and the sampled signal can be demodulated, that is, the analog signal is converted into a digital signal. In a specific implementation, the demodulation method can be a fast Fourier transform (FFT) calculation to obtain the frequency of the sampled signal.
[0127] In the sampling process, the audio coding signal can be sampled by a continuous sliding window method to ensure the continuity of the data.
[0128] In one possible implementation, before step 201, a correction signal may be sent to the transmitting end to compensate for the channel; the correction signal may be sent when the receiving end initializes the communication module, and the correction signal may be a 5KHz or 8KHz pilot signal.
[0129] Step 302: Obtain a binary code stream according to the audio coding signal.
[0130] Specifically, after the audio coding signal is demodulated, the corresponding DTMF code can be obtained, and then the DTMF code can be decoded according to the obtained frequency. The decoding process can be to query the DTMF coding table according to the code corresponding to the signal frequency to obtain decoded data. The decoded data can be a data frame, that is, a compressed binary code stream.
[0131] Optionally, due to the changeable environment of the wireless channel, the duration of data transmission varies, that is, the data sent after the sending end may arrive at the receiving end first, resulting in inconsistent order of arrival of different data frames at the receiving end; therefore, after obtaining the data frame, a synchronization check can be performed based on the synchronization code in the data frame header, thereby ensuring the synchronization between the sending end and the receiving end, thereby ensuring the correctness of the data frame decoding.
[0132] Furthermore, since data may be erroneous or lost during transmission, the data frame may be integrity checked to ensure the integrity of the received data frame, wherein the integrity check may be completed by checking the CRC code in the data frame header.
[0133] Furthermore, if both the synchronization check and the integrity check are passed, the data frame can be decompressed to obtain a corresponding binary code stream, wherein the decompression method can correspond to the compression method of the sending end.
[0134] Optionally, the receiving end may also send an ACK message to the sending end to confirm that the data frame has been correctly received.
[0135] If any of the synchronization check and integrity check fails, a NACK message may be sent to request the sender to retransmit the data frame.
[0136] Step 303: parse the binary code stream to obtain control signaling.
[0137] Specifically, after obtaining the binary code stream, the binary code stream can be parsed, and the parsing process can correspond to the binary conversion process of the transmitter, thereby obtaining the corresponding control signaling to achieve control of the device under test, for example, setting the RF test frequency band of the device under test.
[0138] In this embodiment, a sound signal is demodulated at the receiving end to obtain a carried control signal, and the device under test is controlled by the control signal, thereby providing a control signal receiving method that can realize signal control of the device under test by sound in a radio frequency test environment, thereby avoiding interference of the control signal on the test signal and improving the efficiency of radio frequency testing.
[0139] Figure 4 This is a structural diagram of an embodiment of a device for sending a control signal of the present application, such as Figure 4 As shown, the control signal sending device 40 may include: a detection module 41, a conversion module 42, an encoding module 43 and a sending module 44;
[0140] A detection module 41, configured to detect a first operation for generating a control signaling;
[0141] A conversion module 42, configured to generate a control signaling in response to the first operation, and convert the control signaling into a binary code stream;
[0142] The encoding module 43 is used to perform audio encoding on the binary code stream to obtain an audio encoding signal;
[0143] The sending module 44 is used to modulate the audio coding signal and send it to the receiving end.
[0144] In one possible implementation, the encoding module 43 may include: a compression unit 431 and an encoding unit 432;
[0145] A compression unit 431 is used to compress the binary code stream to obtain a data frame, and add a frame header to the data frame, wherein the frame header includes a synchronization code and a cyclic redundancy check (CRC) code;
[0146] The encoding unit 432 is used to encode the data frame to obtain an audio encoding signal.
[0147] In one possible implementation, the control signal sending device 40 may further include: a compensation module 45; the sending module 44 may also be used to modulate the audio coding signal according to the channel compensation and then send it to the receiving end;
[0148] The compensation module 45 is used to perform signal strength analysis on the received correction signal in response to the correction signal to obtain channel compensation.
[0149] In one possible implementation, the control signal sending device 40 may further include: a retransmission module 46;
[0150] The retransmission module 46 is configured to retransmit the audio coding signal if a non-confirmation message is received from the receiving end.
[0151] Figure 4 The control signal sending device provided in the embodiment shown can be used to implement the present application Figure 1 The technical solution of the method embodiment shown, its implementation principle and technical effects can be further referred to the relevant description in the method embodiment.
[0152] Figure 5 This is a schematic diagram of the structure of an embodiment of a receiving device for a control signal of the present application, such as Figure 5 As shown, the control signal sending device 50 may include: a receiving module 51, a demodulation module 52 and an analysis module 53;
[0153] The receiving module 51 is used to receive the audio coding signal from the sending end;
[0154] A demodulation module 52, configured to demodulate the audio coding signal to obtain a frequency of the audio coding signal;
[0155] The parsing module 53 is used to decode the audio coding signal according to the frequency to obtain a binary code stream, and parse the binary code stream to obtain a control signaling.
[0156] In one possible implementation, the control signal receiving device 50 may further include: a sending module 54;
[0157] The sending module is used to send a correction signal to the sending end.
[0158] In one possible implementation, the parsing module 53 may include a decoding unit 531, a checking unit 532 and a decompression unit 533;
[0159] A decoding unit 531, configured to decode the audio coding signal according to the frequency to obtain a data frame;
[0160] A check unit 532, configured to perform a frame synchronization check according to a synchronization code in a frame header of the data frame, and perform an integrity check according to a cyclic redundancy check (CRC) code in a frame header of the data frame;
[0161] The decompression unit 533 is used to decompress the data frame to obtain a binary code stream if the frame synchronization check and the integrity check are successful.
[0162] In one possible implementation method, the above-mentioned decompression unit 533 can also be used to decompress the data frame to obtain a binary code stream and send a confirmation message to the sender if the frame synchronization detection and integrity detection are successful; if the frame synchronization detection or integrity detection fails, a non-confirmation message is sent to the sender to request the sender to retransmit the data frame.
[0163] Figure 5 The control signal receiving device provided in the embodiment shown can be used to implement the present application Figure 3 The technical solution of the method embodiment shown, its implementation principle and technical effects can be further referred to the relevant description in the method embodiment.
[0164] It should be understood that the above Figure 4 The control signal sending device shown Figure 5 The division of the various modules of the control signal receiving device shown is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software calling through processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software calling through processing elements, and some modules can be implemented in the form of hardware. For example, the detection module can be a separately established processing element, or it can be integrated in a chip of an electronic device. The implementation of other modules is similar. In addition, all or part of these modules can be integrated together, or they can be implemented independently. In the implementation process, each step of the above method or each of the above modules can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.
[0165] For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more digital singnal processors (DSP), or one or more field programmable gate arrays (FPGA). For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0166] Figure 6 This is a schematic diagram of the structure of an embodiment of a device for sending a control signal of the present application, such as Figure 6 As shown, the device for sending the control signal may include: one or more processors; memory; multiple application programs; and one or more computer programs.
[0167] The one or more computer programs are stored in the memory, and the one or more computer programs include instructions. When the instructions are executed by the device, the device performs the following steps:
[0168] detecting a first operation for generating control signaling;
[0169] In response to the first operation, generating a control signaling, and converting the control signaling into a binary code stream;
[0170] Performing audio encoding on the binary code stream to obtain an audio encoding signal;
[0171] The audio coding signal is modulated and then sent to a receiving end.
[0172] In one possible implementation manner, when the above instruction is executed by the above device, the above device performs the step of performing audio encoding on the binary code stream to obtain an audio encoding signal, which includes:
[0173] Compressing the binary code stream to obtain a data frame, and adding a frame header to the data frame, wherein the frame header includes a synchronization code and a cyclic redundancy check (CRC) code;
[0174] The data frame is encoded to obtain an audio encoding signal.
[0175] In one possible implementation manner, when the instruction is executed by the device, the device further performs the following steps before performing the step of detecting the first operation for generating control signaling:
[0176] In response to the received correction signal, performing signal strength analysis on the correction signal to obtain channel compensation;
[0177] The step of modulating the audio coding signal and sending it to the receiving end comprises:
[0178] The audio coding signal is modulated according to the channel compensation and then sent to a receiving end.
[0179] In one possible implementation manner, when the above instruction is executed by the above device, after the above device performs the step of modulating the audio coding signal and sending it to the receiving end, it further performs the following steps:
[0180] If a non-confirmation message is received from the receiving end, the audio coding signal is retransmitted.
[0181] Figure 6 The control signal sending device shown can be a terminal device or a circuit device built into the above terminal device. The device can be used to execute the present application Figure 1 The illustrated embodiments provide functions / steps in the method.
[0182] like Figure 6 As shown, the control signal sending device 600 includes a processor 610, a transceiver 620 and an audio circuit 630. Optionally, the control signal sending device 600 may further include a memory 640. The processor 610, the transceiver 620 and the memory 640 may communicate with each other through an internal connection path to transmit control and / or data signals, the memory 640 is used to store a computer program, and the processor 610 is used to call and run the computer program from the memory 640.
[0183] The above-mentioned memory 640 can be a read-only memory (ROM), other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or it can be an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), magnetic disk storage medium or other magnetic storage device, or it can also be any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer.
[0184] The processor 610 and the memory 640 may be combined into a processing device, or more commonly, they are independent components, and the processor 610 is used to execute the program code stored in the memory 640 to implement the above functions. In specific implementation, the memory 640 may also be integrated into the processor 610, or may be independent of the processor 610.
[0185] Optionally, the control signal sending device 600 may further include a speaker 650 and a microphone 660, wherein the speaker 650 is used to send out the sound signal generated by the audio circuit, and the microphone 660 is used to receive the sound signal.
[0186] Optionally, the control signal sending device 600 may further include an antenna 670 for sending the wireless signal output by the transceiver 620 and receiving the wireless signal.
[0187] Optionally, the control signal sending device 600 may further include a power supply 680 for providing power to various devices or circuits in the terminal device.
[0188] It should be understood that Figure 6 The control signal sending device 600 shown in the present application can realize Figure 1 The various processes of the method provided in the illustrated embodiment. The operations and / or functions of the various modules in the control signal sending device 600 are respectively to implement the corresponding processes in the above method embodiments. For details, please refer to the present application Figure 1 To avoid repetition, the detailed description of the method embodiment is appropriately omitted here.
[0189] It should be understood that Figure 6The processor 610 in the control signal sending device 600 shown can be a system on chip SOC, which can include a central processing unit (CPU) and can further include other types of processors, such as a graphics processing unit (GPU).
[0190] In summary, the various processors or processing units within the processor 610 can work together to implement the previous method flow, and the corresponding software programs of the various processors or processing units can be stored in the memory 640.
[0191] An embodiment of the present application also provides a control signal receiving device, which may include: one or more processors; a memory; multiple applications; and one or more computer programs.
[0192] The one or more computer programs are stored in the memory, and the one or more computer programs include instructions. When the instructions are executed by the device, the device performs the following steps:
[0193] receiving an audio coding signal from a transmitting end;
[0194] Demodulating the audio coding signal to obtain a frequency of the audio coding signal;
[0195] The audio coding signal is decoded according to the frequency to obtain a binary code stream, and the binary code stream is parsed to obtain a control signaling.
[0196] In one possible implementation manner, when the above instruction is executed by the above device, before the above device executes the step of receiving the audio coding signal from the sending end, it further executes the following steps:
[0197] Send a correction signal to the transmitter.
[0198] In one possible implementation, when the above instruction is executed by the above device, the above device executes
[0199] The step of decoding the audio coding signal according to the frequency to obtain a binary code stream comprises:
[0200] Decoding the audio coding signal according to the frequency to obtain a data frame;
[0201] Performing frame synchronization detection according to a synchronization code in a frame header of the data frame, and performing integrity detection according to a cyclic redundancy check (CRC) code in a frame header of the data frame;
[0202] If the frame synchronization detection and integrity detection are successful, the data frame is decompressed to obtain a binary code stream.
[0203] In one possible implementation, when the instruction is executed by the device, the device performs the following steps: if the frame synchronization detection and the integrity detection are successful, then decompressing the data frame to obtain a binary code stream:
[0204] If the frame synchronization detection and integrity detection are successful, the data frame is decompressed to obtain a binary code stream, and a confirmation message is sent to the sender; if the frame synchronization detection or integrity detection fails, a non-confirmation message is sent to the sender to request the sender to retransmit the data frame.
[0205] It should be understood that the structural diagram of the control signal sending device may be different from the structural diagram of the control signal receiving device. Figure 1 To avoid repetition, detailed description is appropriately omitted here.
[0206] The embodiment of the present application also provides an electronic device, the device comprising a storage medium and a central processing unit, the storage medium may be a non-volatile storage medium, the storage medium stores a computer executable program, the central processing unit is connected to the non-volatile storage medium, and executes the computer executable program to implement the present application Figure 1 to Figure 3 The method provided by the illustrated embodiment.
[0207] In the above embodiments, the processor involved may include, for example, a CPU, a DSP, a microcontroller or a digital signal processor, and may also include a GPU, an embedded neural network processor (Neural-network Process Units; hereinafter referred to as: NPU) and an image signal processor (Image Signal Processing; hereinafter referred to as: ISP). The processor may also include necessary hardware accelerators or logic processing hardware circuits, such as ASIC, or one or more integrated circuits for controlling the execution of the program of the technical solution of the present application. In addition, the processor may have the function of operating one or more software programs, and the software programs may be stored in a storage medium.
[0208] The present application also provides a computer-readable storage medium, which stores a computer program, which, when executed on a computer, enables the computer to execute the present application. Figure 1 to Figure 3 The method provided by the illustrated embodiment.
[0209] The present application also provides a computer program product, which includes a computer program, which, when executed on a computer, enables the computer to execute the present application. Figure 1 to Figure 3The method provided by the illustrated embodiment.
[0210] In the embodiments of the present application, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent the existence of A alone, the existence of A and B at the same time, and the existence of B alone. Among them, A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can be represented by: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, c can be single or multiple.
[0211] Those of ordinary skill in the art will appreciate that the various units and algorithm steps described in the embodiments disclosed herein can be implemented in a combination of electronic hardware, computer software, and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0212] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0213] In several embodiments provided in the present application, if any function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory; hereinafter referred to as: ROM), random access memory (Random Access Memory; hereinafter referred to as: RAM), disk or optical disk, and other media that can store program codes.
[0214] The above is only a specific implementation of the present application. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. The protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for sending a control signal, characterized in that: Applicable to RF test scenarios, including: In response to receiving a correction signal sent by a receiving end, performing a signal strength analysis on the correction signal to obtain channel compensation; wherein the correction signal is a pilot signal sent by the receiving end in the radio frequency test scenario, the receiving end has different gains for sounds of different frequencies, and the channel compensation is determined by the gain; detecting a first operation for generating control signaling; In response to the first operation, generating a control signaling, and converting the control signaling into a binary code stream; Performing audio encoding on the binary code stream to obtain an audio encoding signal; Modulating the audio coding signal and sending it to the receiving end; The step of modulating the audio coding signal and sending it to the receiving end comprises: The audio coding signal is modulated according to the channel compensation and then sent to the receiving end.
2. The method according to claim 1, characterized in that The step of performing audio encoding on the binary code stream to obtain an audio encoding signal comprises: Compressing the binary code stream to obtain a data frame, and adding a frame header to the data frame, wherein the frame header includes a synchronization code and a cyclic redundancy check (CRC) code; The data frame is encoded to obtain an audio encoding signal.
3. The method according to claim 1, characterized in that After the audio coding signal is modulated and sent to the receiving end, the method further includes: If a non-confirmation message is received from the receiving end, the audio coding signal is retransmitted.
4. A method for receiving a control signal, characterized in that: Applicable to RF test scenarios, including: Sending a correction signal to the transmitting end, the correction signal is used by the transmitting end to perform signal strength analysis to obtain channel compensation of the control signal; wherein the correction signal is a pilot signal sent by the receiving end in the radio frequency test scenario, the receiving end has different gains for sounds of different frequencies, and the channel compensation is determined by the gain; Receiving an audio coding signal from the transmitting end; Demodulating the audio coding signal to obtain a frequency of the audio coding signal; The audio coding signal is decoded according to the frequency to obtain a binary code stream, and the binary code stream is parsed to obtain a control signaling.
5. The method according to claim 4, characterized in that The decoding of the audio coding signal according to the frequency to obtain a binary code stream comprises: Decoding the audio coding signal according to the frequency to obtain a data frame; Performing frame synchronization detection according to a synchronization code in a frame header of the data frame, and performing integrity detection according to a cyclic redundancy check (CRC) code in a frame header of the data frame; If the frame synchronization detection and integrity detection are successful, the data frame is decompressed to obtain a binary code stream.
6. The method according to claim 5, characterized in that If the frame synchronization detection and integrity detection are successful, the data frame is decompressed to obtain a binary code stream including: If the frame synchronization detection and integrity detection are successful, the data frame is decompressed to obtain a binary code stream, and a confirmation message is sent to the sender; if the frame synchronization detection or integrity detection fails, a non-confirmation message is sent to the sender to request the sender to retransmit the data frame.
7. A control signal sending device, characterized in that: Applicable to RF test scenarios, including: A compensation module, configured to perform signal strength analysis on the correction signal in response to the received correction signal to obtain channel compensation; wherein the correction signal is a pilot signal sent by the receiving end in the radio frequency test scenario, the receiving end has different gains for sounds of different frequencies, and the channel compensation is determined by the gain; A detection module, configured to detect a first operation for generating a control signaling; a conversion module, configured to generate a control signaling in response to the first operation, and convert the control signaling into a binary code stream; An encoding module, used for performing audio encoding on the binary code stream to obtain an audio encoding signal; The sending module is used to modulate the audio coding signal according to the channel compensation and then send the modulated audio signal to a receiving end.
8. The device according to claim 7, characterized in that The encoding module comprises: A compression unit, configured to compress the binary code stream to obtain a data frame, and add a frame header to the data frame, wherein the frame header includes a synchronization code and a cyclic redundancy check (CRC) code; The encoding unit is used to encode the data frame to obtain an audio encoding signal.
9. The device according to claim 7, characterized in that The device also includes: The retransmission module is used to retransmit the audio coding signal if a non-confirmation message is received from the receiving end.
10. A control signal receiving device, characterized in that: Applicable to RF test scenarios, including: A sending module, used for sending a correction signal to a sending end, the correction signal is used for the sending end to perform signal strength analysis to obtain channel compensation of a control signal; wherein the correction signal is a pilot signal sent by the receiving end in the radio frequency test scenario, the receiving end has different gains for sounds of different frequencies, and the channel compensation is determined by the gain; A receiving module, used for receiving an audio coding signal from a transmitting end; A demodulation module, used to demodulate the audio coding signal to obtain the frequency of the audio coding signal; The parsing module is used to decode the audio coding signal according to the frequency to obtain a binary code stream, and parse the binary code stream to obtain a control signaling.
11. The device according to claim 10, characterized in that The parsing module comprises: A decoding unit, used for decoding the audio coding signal according to the frequency to obtain a data frame; A check unit, configured to perform frame synchronization check according to a synchronization code in a frame header of the data frame, and perform integrity check according to a cyclic redundancy check (CRC) code in a frame header of the data frame; The decompression unit is used to decompress the data frame to obtain a binary code stream if the frame synchronization check and the integrity check are successful.
12. The device according to claim 11, characterized in that The decompression unit is also used to decompress the data frame to obtain a binary code stream and send a confirmation message to the sender if the frame synchronization detection and integrity detection are successful; if the frame synchronization detection or integrity detection fails, send a non-confirmation message to the sender to request the sender to retransmit the data frame.
13. A control signal sending device, characterized in that: Applicable to RF test scenarios, 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, and the one or more computer programs include instructions that, when executed by the device, cause the device to perform the following steps: In response to the received correction signal, a signal strength analysis is performed on the correction signal to obtain channel compensation; wherein the correction signal is a pilot signal sent by the receiving end in the radio frequency test scenario, the receiving end has different gains for sounds of different frequencies, and the channel compensation is determined by the gain; detecting a first operation for generating control signaling; In response to the first operation, generating a control signaling, and converting the control signaling into a binary code stream; Performing audio encoding on the binary code stream to obtain an audio encoding signal; Modulating the audio coding signal and sending it to a receiving end; The step of modulating the audio coding signal and sending it to the receiving end comprises: The audio coding signal is modulated according to the channel compensation and then sent to a receiving end.
14. The control signal sending device according to claim 13, characterized in that: When the instruction is executed by the device, the device performs audio encoding on the binary code stream to obtain an audio encoding signal, including: Compressing the binary code stream to obtain a data frame, and adding a frame header to the data frame, wherein the frame header includes a synchronization code and a cyclic redundancy check (CRC) code; The data frame is encoded to obtain an audio encoding signal.
15. The control signal sending device according to claim 13, characterized in that: When the instruction is executed by the device, after the device performs the step of modulating the audio coding signal and sending it to the receiving end, the device further performs the following steps: If a non-confirmation message is received from the receiving end, the audio coding signal is retransmitted.
16. A control signal receiving device, characterized in that: Applicable to RF test scenarios, 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, and the one or more computer programs include instructions that, when executed by the device, cause the device to perform the following steps: Sending a correction signal to the transmitting end, the correction signal is used by the transmitting end to perform signal strength analysis to obtain channel compensation of the control signal; wherein the correction signal is a pilot signal sent by the receiving end in the radio frequency test scenario, the receiving end has different gains for sounds of different frequencies, and the channel compensation is determined by the gain; receiving an audio coding signal from a transmitting end; Demodulating the audio coding signal to obtain a frequency of the audio coding signal; The audio coding signal is decoded according to the frequency to obtain a binary code stream, and the binary code stream is parsed to obtain a control signaling.
17. The control signal receiving device according to claim 16, characterized in that: When the instruction is executed by the device, the device performs the steps of decoding the audio coding signal according to the frequency to obtain a binary code stream, including: Decoding the audio coding signal according to the frequency to obtain a data frame; Performing frame synchronization detection according to a synchronization code in a frame header of the data frame, and performing integrity detection according to a cyclic redundancy check (CRC) code in a frame header of the data frame; If the frame synchronization detection and integrity detection are successful, the data frame is decompressed to obtain a binary code stream.
18. The control signal receiving device according to claim 17, characterized in that: When the instruction is executed by the device, the device performs the steps of decompressing the data frame to obtain a binary code stream if the frame synchronization detection and the integrity detection are successful, including: If the frame synchronization detection and integrity detection are successful, the data frame is decompressed to obtain a binary code stream, and a confirmation message is sent to the sender; if the frame synchronization detection or integrity detection fails, a non-confirmation message is sent to the sender to request the sender to retransmit the data frame.
19. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed on a computer, enables the computer to execute the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Audio signal data communication method for cell phone
CN103220428A
Method, device and system for sending and receiving signal
CN105681819A