Signal transmission test method, signal transmission method, device, equipment and medium

By acquiring and comparing signals between the transmitting end and the receiving end, and judging the losslessness of the signal transmission method, the problem of signal damage when wirelessly transmitting audio signals is solved, and the user experience and reliability of signal transmission is improved.

CN120021218APending Publication Date: 2025-05-20BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311553474.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-20
Publication Date
2025-05-20

AI Technical Summary

Technical Problem

When transmitting audio signals wirelessly, it is easy to cause signal damage and affect the user's user experience. It is difficult for the prior art to effectively test whether the signal transmission between devices is lossless.

Method used

By obtaining the first signal to be transmitted and the corresponding second signal between the transmitting end and the receiving end, the matching information between the two is determined. If the matching information meets the preset conditions, it is judged that the signal transmission method is lossless transmission, otherwise it is non-lossless transmission.

Benefits of technology

The test of signal transmission is realized to determine whether the signal is damaged when transmitted between devices, and improve the user's experience of using the device to transmit signals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120021218A_ABST
    Figure CN120021218A_ABST
Patent Text Reader

Abstract

The invention relates to a signal transmission test method, a signal transmission method, a device, equipment and a medium. The method comprises the following steps: acquiring a to-be-sent first signal from a sending end; acquiring a second signal corresponding to the first signal from a receiving end; determining first matching information of the first signal and the second signal according to the first signal and the second signal; when the first matching information meets a preset matching condition, determining that a signal transmission mode between the sending end and the receiving end is a lossless transmission mode; or, when the first matching information does not meet the preset matching condition, determining that the signal transmission mode between the sending end and the receiving end is a non-lossless transmission mode. Therefore, the signal transmission is tested to determine whether the signal is damaged when being transmitted between the devices, so that the experience of a user for transmitting the signal by using the devices is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of signal transmission, and particularly to a signal transmission test method, a signal transmission method, a device, a device and a medium. Background Art

[0002] With the popularization of the Internet and the improvement of bandwidth, people have higher and higher requirements for high-quality and high-definition audio and video content. Therefore, there are more and more lossless audio. Among them, devices can transmit lossless audio through wired transmission technology or wireless transmission technology. Due to the convenience of wireless transmission, users tend to use wireless transmission technology to transmit audio. Therefore, many merchants are currently developing wireless transmission technology for lossless audio.

[0003] However, when transmitting audio using either wireless transmission technology or wired transmission technology, it is possible to cause audio damage, thus affecting the user experience. Therefore, it is necessary to test audio transmission to determine whether there is damage when audio is transmitted between devices. Summary of the Invention

[0004] To overcome the problems in the related art, the present disclosure provides a signal transmission test method, a signal transmission method, a device, a device and a medium.

[0005] According to the first aspect of the embodiments of the present disclosure, a signal transmission test method is provided, including:

[0006] Obtain a first signal to be transmitted from a sending end;

[0007] Obtain a second signal corresponding to the first signal from a receiving end;

[0008] Determine first matching information of the first signal and the second signal according to the first signal and the second signal;

[0009] When the first matching information meets a preset matching condition, determine that the signal transmission mode between the sending end and the receiving end is a lossless transmission mode; or, when the first matching information does not meet the preset matching condition, determine that the signal transmission mode between the sending end and the receiving end is a non-lossless transmission mode.

[0010] According to the second aspect of the embodiments of the present disclosure, a signal transmission method is provided, which is applied to a sending end, and the method includes:

[0011] Obtain an original signal;

[0012] Process the original signal to obtain a first signal;

[0013] Send a signal to the receiving end according to the first signal, so that the receiving end obtains a second signal;

[0014] Among them, the transmission process of the signal between the sending end and the receiving end is tested by using the signal transmission test method described in the first aspect of the present disclosure.

[0015] According to the third aspect of the embodiments of the present disclosure, a signal transmission method is provided, which is applied to a receiving end, and the method further includes:

[0016] Receive the signal sent by the sending end, and obtain a second signal based on the signal;

[0017] Process the second signal to obtain an output target signal;

[0018] Among them, the transmission process of the signal between the sending end and the receiving end is tested by using the signal transmission test method described in the first aspect of the present disclosure.

[0019] According to the fourth aspect of the embodiments of the present disclosure, a signal transmission test device is provided, including:

[0020] A first acquisition module, configured to acquire a first signal to be sent from a sending end;

[0021] A second acquisition module, configured to acquire a second signal corresponding to the first signal from a receiving end;

[0022] A first determination module, configured to determine first matching information between the first signal and the second signal according to the first signal and the second signal;

[0023] A second determination module, configured to determine that the signal transmission mode between the sending end and the receiving end is a lossless transmission mode when the first matching information meets a preset matching condition; or, determine that the signal transmission mode between the sending end and the receiving end is a non-lossless transmission mode when the first matching information does not meet the preset matching condition.

[0024] According to the fifth aspect of the embodiments of the present disclosure, a signal transmission device is provided, which is applied to a sending end, and the device includes:

[0025] A third acquisition module, configured to acquire an original signal;

[0026] A first processing module, configured to process the original signal to obtain a first signal;

[0027] A sending module, configured to send a signal to a receiving end according to the first signal, so that the receiving end obtains a second signal;

[0028] Among them, the signal transmission process between the sending end and the receiving end is tested by using the signal transmission test method described in the first aspect of the present disclosure.

[0029] According to a sixth aspect of the embodiments of the present disclosure, there is provided a signal transmission device, which is applied to a receiving end, and the device includes:

[0030] A receiving module, configured to receive a signal sent by a sending end and obtain a second signal based on the signal;

[0031] A second processing module, configured to process the second signal to obtain an output target signal;

[0032] Among them, the signal transmission process between the sending end and the receiving end is tested by using the signal transmission test method described in the first aspect of the present disclosure.

[0033] According to a seventh aspect of the embodiments of the present disclosure, there is provided an electronic device, including:

[0034] A processor;

[0035] A memory for storing instructions executable by the processor;

[0036] Among them, the processor is configured to execute the instructions to implement the method described in the first aspect or the second aspect or the third aspect of the present disclosure.

[0037] According to an eighth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, on which computer program instructions are stored, and when the program instructions are executed by a processor, the method described in the first aspect or the second aspect or the third aspect of the present disclosure is implemented.

[0038] By adopting the above technical solutions, when the first matching information of the first signal and the second signal meets the matching condition, it is determined that the signal transmission mode between the sending end and the receiving end is a lossless transmission mode, and when the first matching information of the first signal and the second signal does not meet the matching condition, it is determined that the signal transmission mode between the sending end and the receiving end is a non-lossless transmission mode. In this way, the signal transmission can be tested to determine whether the signal is damaged when transmitted between devices, thereby improving the user experience of using the device to transmit signals.

[0039] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The drawings here are incorporated into the specification and form a part of this specification, showing embodiments consistent with the present disclosure and used together with the specification to explain the principles of the present disclosure.

[0041] Figure 1 It is a schematic diagram of an audio signal transmission process shown according to an exemplary embodiment.

[0042] Figure 2 It is a flowchart of a signal transmission test method shown according to an exemplary embodiment.

[0043] Figure 3 It is a block diagram of a signal transmission test device shown according to an exemplary embodiment.

[0044] Figure 4 It is a flowchart of a signal transmission method applied to a sending end shown according to an exemplary embodiment.

[0045] Figure 5 It is a flowchart of a signal transmission method applied to a receiving end shown according to an exemplary embodiment.

[0046] Figure 6 It is a block diagram of a signal transmission device applied to a sending end shown according to an exemplary embodiment.

[0047] Figure 7 It is a block diagram of a signal transmission device applied to a receiving end shown according to an exemplary embodiment.

[0048] Figure 8 It is a block diagram of an electronic device shown according to an exemplary embodiment.

[0049] Figure 9 It is a block diagram of another electronic device shown according to an exemplary embodiment.

[0050] Figure 10 It is a block diagram of another electronic device shown according to an exemplary embodiment. Detailed implementation manners

[0051] Here, the exemplary embodiments will be described in detail, and the examples are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with the present disclosure. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0052] It should be noted that all actions of obtaining signals, information, or data in the present disclosure are carried out on the premise of complying with the corresponding data protection regulations and policies of the country where it is located and obtaining the authorization given by the owner of the corresponding device.

[0053] As described in the background art, when transmitting audio using either wireless transmission technology or wired transmission technology, it is possible to cause audio damage, thus affecting the user experience. Therefore, it is necessary to test audio transmission to determine whether there is damage when the audio is transmitted between devices.

[0054] In view of this, the present disclosure provides a signal transmission testing method, apparatus, electronic device, and readable storage medium to implement testing of signal transmission to determine whether there is damage when the signal is transmitted between devices, thereby enhancing the user experience of using the device to transmit signals.

[0055] Before describing in detail the signal transmission testing method provided by the present disclosure, the signal transmission process will be described first. Among them, in the present disclosure, the signal may include but is not limited to: video signals, audio signals, image signals, instruction signals, etc. For the sake of convenience of description, the following will take the signal as an audio signal as an example for illustration.

[0056] Figure 1 is a schematic diagram of an audio signal transmission process shown according to an exemplary embodiment. The audio signal transmission system includes a transmitting end link and a receiving end link. As Figure 1 shown, first, the audio signal source is decoded by a codec (Codec), and the decoded signal is output after digital signal processing by the first signal processing module (DSP) at the transmitting end. Then, before transmission, it is encoded by the codec and the encoded audio signal is sent to the wireless connection module at the receiving end through the wireless connection module at the transmitting end. After that, the wireless connection module at the receiving end receives the audio signal sent by the transmitting end, decodes the received audio using the codec, and finally, sends the decoded audio signal to the second signal processing module (DSP) at the receiving end for digital signal processing and plays it through the playback module. Among them, encoding, decoding, and digital signal processing are all conventional technologies in the field of signal transmission, and the present disclosure does not make specific limitations on them.

[0057] Figure 2 is a flowchart of a signal transmission testing method shown according to an exemplary embodiment. As Figure 2 shown, the method may include the following steps.

[0058] In step S21, obtain the first signal to be transmitted from the transmitting end.

[0059] In step S22, obtain the second signal corresponding to the first signal from the receiving end.

[0060] In the present disclosure, both the sending end and the receiving end are electronic devices. For example, the sending end is the provider of the audio signal, and the receiving end is the party that plays the audio signal. For example, the sending end can be a mobile phone, a computer, a game console, or an iPad, etc., and the receiving end can be a wired earphone or a wireless Bluetooth earphone, etc.

[0061] Wherein, the second signal corresponding to the first signal refers to the signal received by the receiving end after the sending end sends the first signal. In an ideal situation, the sending end sends the first signal, and correspondingly, the receiving end can receive this first signal. However, considering that the signal may be damaged during the transmission process, the signal received by the receiving end is a signal different from the first signal.

[0062] In one implementation, referring to Figure 1 , the signal sent by the wireless connection module of the sending end can be determined as the first signal. Correspondingly, the signal received by the wireless connection module of the receiving end is determined as the second signal, that is, the transmission method of the link between the wireless connection module of the sending end and the wired connection module of the receiving end is tested.

[0063] However, considering that the codec encoding at the sending end and the codec decoding at the receiving end may not be completely lossless codecs, in another embodiment, the signal before the codec encoding at the sending end can also be determined as the first signal, and the signal after the codec decoding at the receiving end is determined as the second signal. That is to say, the transmission method of the link from the DSP digital signal processing of the first signal processing module at the sending end to the DSP digital signal processing of the second signal processing module at the receiving end is tested.

[0064] Exemplarily, the sending end includes a first digital signal processing module, and the receiving end includes a second digital signal processing module. Step S21 of obtaining the first signal to be sent from the sending end includes: obtaining the signal output by the first digital signal processing module as the first signal. Correspondingly, step S22 of obtaining the second signal corresponding to the first signal from the receiving end includes: obtaining the signal input to the second digital signal processing module as the second signal corresponding to the first signal.

[0065] Referring to Figure 1 , the signal output by the first digital signal processing module is determined as the first signal, and this first signal is obtained. At the same time, this first signal is input to the codec encoding and wireless connection module of the sending end, and then sent to the wireless connection module of the receiving end and decoded by the codec of the receiving end. The signal output by the codec decoding of the receiving end is determined as the second signal, and this second signal is obtained. At the same time, this second signal is input to the second digital signal processing module DSP for digital signal processing.

[0066] In the present disclosure, the sending end and the receiving end may transmit signals via wireless transmission technology or via wired transmission technology, and the present disclosure does not make specific limitations thereon.

[0067] In step S23, according to the first signal and the second signal, first matching information of the first signal and the second signal is determined.

[0068] In step S24, when the first matching information meets a preset matching condition, it is determined that the signal transmission mode between the sending end and the receiving end is a lossless transmission mode; or, when the first matching information does not meet the preset matching condition, it is determined that the signal transmission mode between the sending end and the receiving end is a non-lossless transmission mode.

[0069] If the signal is not damaged during the transmission process, the transmitted signal and the received signal are consistent. If the signal is damaged during the transmission process, the transmitted signal and the received signal are inconsistent. Therefore, in the present disclosure, it is possible to determine whether the signal transmission mode between the sending end and the receiving end is a lossless transmission mode or a non-lossless transmission mode according to the first matching information of the first signal and the second signal.

[0070] Exemplarily, when the first matching information meets the preset matching condition, it indicates that the first signal and the second signal match, it is determined that there is no damage during the signal transmission process, and further it is determined that the signal transmission mode between the sending end and the receiving end is a lossless transmission mode; when the first matching information does not meet the preset matching condition, it indicates that the first signal and the second signal do not match, it is determined that there is damage during the signal transmission process, and further it is determined that the signal transmission mode between the sending end and the receiving end is a non-lossless transmission mode.

[0071] Adopting the above technical solution, when the first matching information of the first signal and the second signal meets the matching condition, it is determined that the signal transmission mode between the sending end and the receiving end is a lossless transmission mode, and when the first matching information of the first signal and the second signal does not meet the matching condition, it is determined that the signal transmission mode between the sending end and the receiving end is a non-lossless transmission mode. In this way, it is possible to test the signal transmission to determine whether there is damage when the signal is transmitted between devices, thereby improving the user experience of using the device to transmit signals.

[0072] In addition, the signal transmission test method provided by the present disclosure can be applied to test the transmission link before the product leaves the factory or after the product leaves the factory. For example, before the product leaves the factory, for the product whose signal transmission mode is a non-lossless transmission mode, re-design is carried out, and the product whose signal transmission mode is a lossless transmission mode leaves the factory normally. In this way, the quality of the factory products is ensured. Also, for example, when testing the transmission link after the product leaves the factory, when it is tested that the signal transmission mode of the product is a non-lossless transmission mode, the fault can be repaired in time to improve the user experience.

[0073] When determining the transmission mode between devices using signals with relatively low transmission accuracy, since the transmission link has little impact on signals with relatively low accuracy, even if the transmission link is abnormal, signals with relatively low accuracy can still be transmitted normally. That is, the difference between the received signal and the transmitted signal is not obvious. However, the storage link has a greater impact on signals with relatively high accuracy. That is, signals with relatively high accuracy are more sensitive to changes in the transmission link. For example, an abnormal transmission link will affect the transmission of signals with relatively high accuracy. That is, an abnormal transmission link will cause the difference between the received signal and the transmitted signal to be more obvious. Therefore, in order to improve the accuracy of signal transmission measurement, in the present disclosure, signals with relatively high transmission accuracy can be used to test signal transmission. Exemplarily, the sending end sends a lossless audio signal to the receiving end, that is, the audio signal source is a lossless audio signal source.

[0074] In addition, in one embodiment, to improve the reliability of the determined first matching information, it is necessary to ensure that the phases and amplitudes of the first signal and the second signal are matched. Exemplarily, step S23 of determining the first matching information between the first signal and the second signal according to the first signal and the second signal may include: aligning the first signal and the second signal to obtain the aligned first signal and second signal; determining the first matching information between the first signal and the second signal according to the corresponding first signal and second signal.

[0075] For example, respectively determine the timestamps corresponding to the maximum amplitudes in the first signal and the second signal. Then, control the first signal or the second signal to move forward or backward to synchronize the timestamps of the two, so as to obtain the aligned first signal and second signal.

[0076] The following describes the specific implementation manner of step S23 for determining the first matching information between the first signal and the second signal according to the first signal and the second signal.

[0077] In one embodiment, the first signal can be regarded as a whole, and the second signal can be regarded as a whole, and the first matching information between the first signal and the second signal can be directly calculated once. However, considering that the first matching information is obtained by only calculating once, the randomness of the obtained first matching information is relatively large, resulting in poor reliability of the determined first matching information.

[0078] Therefore, in another embodiment, both the first signal and the second signal are divided into multiple sub-signals, and then the second matching information between the sub-signals is calculated multiple times, and the first matching information between the first signal and the second signal is obtained based on the multiple second matching information, so as to improve the reliability of the determined first matching information, and further improve the accuracy of signal transmission testing.

[0079] In this embodiment, according to the first signal and the second signal, determining the first matching information of the first signal and the second signal may include the following steps:

[0080] Step 1: Divide the first signal to obtain K first sub-signals, and divide the second signal to obtain K second sub-signals, where K is an integer greater than 1.

[0081] For example, the first signal and the second signal are divided according to 1 minute time interval. Assuming that the duration of the first signal and the second signal are both 15 minutes, 15 first sub-signals and 15 second sub-signals can be obtained.

[0082] Step 2: Combine the ith first sub-signal and the ith second sub-signal into the ith group of sub-signals, and obtain K groups of sub-signals, where the value range of i is [1, K].

[0083] For example, assuming that the duration of the first signal and the second signal is 0 min to 15 min, the first sub-signal and the second sub-signal of 0 min to 1 min are combined into the first group of sub-signals, and the first sub-signal and the second sub-signal of 14 min to 15 min are combined into the fifteenth group of sub-signals.

[0084] Step 3: For each group of sub-signals in the M groups of sub-signals, determine the second matching information of the group of sub-signals according to the first sub-signal and the second sub-signal in the group of sub-signals, where M is an integer less than or equal to K.

[0085] For example, M can be a value less than K, for example, K is 15 and M is 10. For another example, M can be equal to K, that is, the second matching information of K groups of sub-signals is obtained. Among them, the first matching signal and the second matching information may include any parameters used to characterize whether the first signal and the second signal are consistent. For example, the first matching information and the second matching information may include an error parameter and / or a base matching value; when the first matching information includes an error parameter, the matching condition includes a first condition, and the first condition is that the error parameter is less than or equal to a first preset threshold; when the first matching information includes a base matching value, the matching condition includes a second condition, and the second condition is that the base matching value is greater than or equal to a second preset threshold. Among them, the base can be binary, octal, hexadecimal, or twenty-four bases, etc.

[0086] The following describes a specific method for determining the second matching information by taking the first signal and the second signal as audio signals as an example.

[0087] In the first implementation manner, when the first matching information includes a base matching value, the second matching information includes a base matching value; the specific manner of determining the second matching information is:

[0088] ​First, determine the target lossless level of the audio signal and the target base corresponding to the target lossless level.

[0089] Among them, the target lossless level may include the CD lossless level or the high-fidelity lossless level (High-FidelityLossless). Among them, the CD lossless level refers to the sound quality level of storing audio in lossless encoding on a CD (Compact Disc). The CD sound quality adopts the 16-bit linear pulse code modulation (LPCM) format and the sampling rate is 44.1kHz. This lossless level can provide the same audio quality as the original recording and is a standard widely used in the production and playback of music CDs. The high-fidelity lossless level refers to a lossless level of audio that provides higher quality through higher sampling rates and bit depths. For example, some professional audio workstations and high-end audio equipment support 24-bit or 32-bit LPCM encoding, as well as higher sampling rates, such as 96kHz, 192kHz or higher. These high-fidelity lossless levels provide a wider dynamic range and more accurate audio restoration, and are suitable for professional audio production, audiophile-level sound systems, and high-end audio players.

[0090] Of course, the target lossless level may also include other levels. In the present disclosure, the target lossless level may include the CD lossless level or the high-fidelity lossless level. The target system corresponding to the CD lossless level is hexadecimal, and the target system corresponding to the high-fidelity lossless level is 24-decimal.

[0091] Then, the first sub-signal in the group of sub-signals is represented by the target base to obtain a first base character, and the second sub-signal is represented by the target base to obtain a second binary character.

[0092] Afterwards, the ratio of the number of identical bytes to the maximum number of bytes is determined based on the first decimal character and the second binary character.

[0093] Compare the matching degree of the first binary character and the second binary character to determine the number of identical bytes and the ratio of the number of identical bytes to the maximum number of bytes.

[0094] In which, considering that encoding and decoding the audio signal during the transmission process may result in different signal meta-information, thereby making the first binary character and the second binary character different. The maximum number of bytes refers to the maximum number of bytes included in the first binary character and the second binary character. For example, the first binary character includes 8 bytes and the second binary character includes 9 bytes, then the maximum number of bytes is 9. In addition, 8 bits constitute a byte. If there are no bits with different values ​​in each byte, the bytes are determined to be the same. According to this scheme, the number of identical bytes is counted in the first binary character and the second binary character.

[0095] In one possible way, the first binary character and the second binary character can be directly matched to determine the number of identical bytes and the ratio of the number of identical bytes to the maximum number of bytes. However, considering that encoding and decoding may result in different meta-information, the bytes corresponding to the meta-information in the first binary character and the second binary character are inconsistent. Alternatively, different ways of obtaining the first signal and the second signal may also result in different formats, so that the bytes corresponding to the formats in the first binary character and the second binary character are inconsistent. Therefore, in order to improve the reliability of the determined binary matching value, in another possible way, after removing the bytes corresponding to the meta-information and / or the bytes corresponding to the format in the first binary character and the second binary character, the ratio of the number of identical bytes to the maximum number of bytes can be determined according to the first binary character and the second binary character.

[0096] Step 4: Determine the ratio of the number of identical bytes to the maximum number of bytes as the binary matching value of this group of sub-signals.

[0097] Exemplarily, the ratio of the number of identical bytes to the maximum number of bytes can be determined by the following code:

[0098]

[0099] In this embodiment, the binary matching values of M groups of sub-signals can be obtained. Then, the average value of the binary matching values of the M groups of sub-signals is determined as the binary matching value of the first signal and the second signal. Finally, it is determined whether the binary matching value is greater than or equal to the second preset threshold. If it is greater than or equal to the second preset threshold, it is determined that the first signal and the second signal match. Among them, the second preset threshold can be 99%.

[0100] In the second embodiment, when the matching information includes an error parameter, the second matching information also includes an error parameter. The specific way to determine the second matching information is as follows:

[0101] First, according to the sampling rule corresponding to the target lossless level, the first sub-signal and the second sub-signal in this group of sub-signals are sampled respectively to obtain the first sampling point and the second sampling point.

[0102] Exemplarily, assuming that the target lossless level is the CD lossless level, the corresponding sampling rule is a sampling rate of 44100 Hz and a bit depth of 16 bit. Correspondingly, the first sub-signal and the second sub-signal are sampled at a sampling rate of 44100 Hz to obtain the first sampling point and the second sampling point. And, the bit depths of the first sampling point and the second sampling point are both 16 bit, that is, a 16-bit character is used to represent the amplitude value of a sampling point.

[0103] Again, by way of example, assume that the target lossless level is the High-Fidelity Lossless level. Then the corresponding sampling rule is a sampling rate of 48000 Hz and a bit depth of 24 bits. Accordingly, the first sub-signal and the second sub-signal are sampled at a sampling rate of 48000 Hz to obtain a first sampling point and a second sampling point. Moreover, the bit depth of both the first sampling point and the second sampling point is 24 bits, that is, the amplitude value of a sampling point is represented by a 24-bit character.

[0104] Next, according to the first sampling point and the second sampling point, the root mean square error of the first sub-signal and the second sub-signal is determined.

[0105] Finally, the error parameter of this group of sub-signals is determined according to the root mean square error.

[0106] It should be understood that the error parameter can also be determined according to other errors such as the mean absolute error, the mean percentage error, the mean absolute percentage error, etc. In the present disclosure, an example of determining the error parameter of this group of sub-signals according to the root mean square error is described.

[0107] By way of example, the root mean square error w of the first sub-signal and the second sub-signal can be determined by the following formula (1):

[0108]

[0109] Wherein, X(n) represents the amplitude value of the nth sampling point in the first sampling point, Y(n) represents the amplitude value of the nth sampling point in the second sampling point, N represents the number of sampling points in the first sampling point or the second sampling point, and the value range of n is [1, N].

[0110] In one possible way, the root mean square error determined above is directly determined as the error parameter.

[0111] In another possible way, the error parameter of this group of sub-signals can be determined by the following formula (2):

[0112]

[0113] Wherein, Difference(RMS) represents the error parameter of this group of sub-signals, c represents a preset coefficient, and L represents the maximum amplitude value determined based on the bit depth of the audio signal. For example, c = 20. Assume that the target lossless level is the CD lossless level, then L is 2 16 . Assume that the target lossless level is the High-Fidelity Lossless level, then L is 2 24 .

[0114] In the present disclosure, different target lossless levels correspond to different test precisions. Therefore, the first preset threshold in the above first condition corresponds to the target lossless level, that is, the first preset threshold is the preset threshold corresponding to the target lossless level. Assuming that the error parameter of the sub-signal is determined by the above formula (2) and the target lossless level is the CD lossless level, the first preset threshold can be -90 dB. Assuming that the error parameter of the sub-signal is determined by the above formula (2) and the target lossless level is the high-fidelity lossless level, the first preset threshold can be -140 dB.

[0115] It should be understood that if the root mean square error calculated by formula (1) is directly determined as the error parameter of the sub-signal, the first preset threshold can be deduced inversely by the above formula (2). Exemplarily, if the target lossless level is the CD lossless level, the first preset threshold a corresponding to the CD lossless level is determined according to the formula If the target lossless level is the high-fidelity lossless level, the first preset threshold a corresponding to the high-fidelity lossless level is determined according to the formula

[0116] In this embodiment, the error parameters of M groups of sub-signals can be obtained. Then, the average value of the error parameters of M groups of sub-signals is determined as the error parameter of the first signal and the second signal, and is determined as the first matching information of the first signal and the second signal. Finally, it is determined whether the first matching information meets the first condition. If it meets, it is determined that the first matching information meets the preset matching condition, and further it is determined that the signal transmission mode between the sending end and the receiving end is the lossless transmission mode.

[0117] In the third embodiment, when the second matching information includes the error parameter and the radix matching value, the error parameters and the radix matching values of M groups of sub-signals can be determined in parallel. Then, the average value of the error parameters of M groups of sub-signals is determined as the error parameter of the first signal and the second signal, and the average value of the radix matching values of M groups of sub-signals is determined as the radix matching value of the first signal and the second signal. Finally, when the error parameter of the first signal and the second signal meets the first condition and the radix matching value of the first signal and the second signal meets the second condition, it is determined that the signal transmission mode between the sending end and the receiving end is the lossless transmission mode; otherwise, it is determined that the signal transmission mode is the non-lossless transmission mode.

[0118] ​In the fourth embodiment, considering that it is impossible to accurately remove the bytes corresponding to the meta-information and / or the bytes corresponding to the format, resulting in a relatively small determined base matching value, which may misjudge the first signal and the second signal that match as non-matching, leading to incorrect testing of signal transmission. Therefore, in this embodiment, when the first matching information includes an error parameter and a base matching value, according to the sampling rule corresponding to the target lossless level, the first sub-signal and the second sub-signal in this group of sub-signals are sampled respectively to obtain a first sampling point and a second sampling point, which may include: determining that the first matching information determined based on the base matching values of the M groups of sub-signals does not meet the second condition; according to the sampling rule corresponding to the target lossless level, the first sub-signal and the second sub-signal in this group of sub-signals are sampled respectively to obtain a first sampling point and a second sampling point.

[0119] Exemplarily, in this embodiment, the specific manner of determining the second matching information is as follows: First, determine the base matching values of the M groups of sub-signals. Among them, the specific implementation manner of determining the base matching values of the M groups of sub-signals is as described in the first embodiment, which will not be elaborated here. Then, according to the base matching values of the M groups of sub-signals, determine the first matching information of the first signal and the second signal. If the first matching information does not meet the second condition, then determine the error parameters of the M groups of sub-signals to obtain the first matching information of the first signal and the second signal. After that, determine whether the first matching information meets the first condition. If it meets the first condition, it is determined that the first signal and the first signal match, that is, it is determined that the signal transmission mode between the sending end and the receiving end is a lossless transmission mode. If it does not meet the first condition, it is determined that the first signal and the first signal do not match, that is, it is determined that the signal transmission mode between the sending end and the receiving end is a non-lossless transmission mode. In this way, while ensuring the accuracy of signal transmission testing, the workload can be reduced and the testing performance can be improved.

[0120] In addition, in order to verify the reliability of testing the signal transmission between the sending end and the receiving end according to the matching information of the first signal and the second signal, in the present disclosure, before determining the matching result of the first signal and the second signal according to the first signal and the second signal, the first signal can also be self-compared. Exemplarily, the information transmission testing method provided in the present disclosure further includes: determining that the third matching information of the first signal and the first signal meets the matching condition. Among them, the third matching information includes an error parameter and / or a base matching value. Correspondingly, the matching condition also includes the first condition and / or the second condition. The first condition is that the error parameter is less than or equal to a first preset threshold, and the second condition is that the base matching value is greater than or equal to a second preset threshold.

[0121] The manner of determining the matching information of the first signal and the first signal is the same as that of determining the first matching information of the first signal and the second signal, and the present disclosure does not make specific limitations on this.

[0122] With the above technical solution, before determining the matching result of the first signal and the second signal according to the first signal and the second signal, it is determined that the third matching information of the first signal and the second signal meets the matching condition. In this way, the reliability of the signal transmission test between the sending end and the receiving end according to the matching information of the first signal and the second signal is verified, and then the test of the signal transmission is realized.

[0123] Based on the same inventive concept, the present disclosure also provides a signal transmission test device. Figure 3 It is a block diagram of a signal transmission test device shown according to an exemplary embodiment. As Figure 3 shown, the signal transmission test device 300 may include:

[0124] A first acquisition module 301, configured to acquire a first signal to be sent from a sending end;

[0125] A second acquisition module 302, configured to acquire a second signal corresponding to the first signal from a receiving end;

[0126] A first determination module 303, configured to determine first matching information of the first signal and the second signal according to the first signal and the second signal;

[0127] A second determination module 304, configured to determine that the signal transmission mode between the sending end and the receiving end is a lossless transmission mode when the first matching information meets a preset matching condition; or, determine that the signal transmission mode between the sending end and the receiving end is a non-lossless transmission mode when the first matching information does not meet the preset matching condition.

[0128] Optionally, the first determination module 303 includes:

[0129] A division sub-module, configured to divide the first signal into K first sub-signals, and divide the second signal into K second sub-signals, where K is an integer greater than 1;

[0130] A composition sub-module, configured to form the i-th group of sub-signals by combining the i-th first sub-signal and the i-th second sub-signal, to obtain K groups of sub-signals, where the value range of i is [1, K];

[0131] A first determination sub-module, configured to determine second matching information of each group of sub-signals among M groups of sub-signals according to the first sub-signal and the second sub-signal in the group of sub-signals, where M is an integer less than or equal to K;

[0132] A second determination sub-module, configured to determine the first matching information of the first signal and the second signal according to the second matching information of M groups of sub-signals.

[0133] Optionally, the first matching information includes an error parameter and / or a radix matching value;

[0134] When the first matching information includes the error parameter, the matching condition includes a first condition, and the first condition is that the error parameter is less than or equal to a first preset threshold;

[0135] When the first matching information includes the radix matching value, the matching condition includes a second condition, and the second condition is that the radix matching value is greater than or equal to a second preset threshold.

[0136] Optionally, the first signal is an audio signal; when the first matching information includes the radix matching value, the second matching information includes the radix matching value; the first determining sub-module is configured to:

[0137] Determine the target lossless level of the audio signal and the target radix corresponding to the target lossless level;

[0138] Represent the first sub-signal in the group of sub-signals using the target radix to obtain a first radix character, and represent the second sub-signal using the target radix to obtain a second radix character;

[0139] Determine the ratio of the number of identical bytes to the maximum number of bytes according to the first radix character and the second radix character;

[0140] Determine the ratio of the number of identical bytes to the maximum number of bytes as the radix matching value of the group of sub-signals.

[0141] Optionally, when the first matching information includes the error parameter, the second matching information includes the error parameter; the first determining sub-module is configured to:

[0142] Sample the first sub-signal and the second sub-signal in the group of sub-signals respectively according to the sampling rule corresponding to the target lossless level to obtain a first sampling point and a second sampling point;

[0143] Determine the root mean square error of the first sub-signal and the second sub-signal according to the first sampling point and the second sampling point;

[0144] Determine the error parameter of the group of sub-signals according to the root mean square error.

[0145] Optionally, the first determining sub-module is configured to:

[0146] Determine the root mean square error w of the first sub-signal and the second sub-signal according to the first sampling point and the second sampling point through the following formula:

[0147]

[0148] Determining the error parameter of the group of sub-signals according to the root mean square error includes:

[0149] Determining the error parameter of the group of sub-signals through the following formula:

[0150]

[0151] Wherein, Difference(RMS) represents the error parameter of the group of sub-signals, X(n) represents the amplitude of the nth sampling point in the first sampling points, Y(n) represents the amplitude of the nth sampling point in the second sampling points, N represents the number of the first sampling points or the second sampling points, the value range of n is [1, N], c represents a preset coefficient, and L represents the maximum amplitude determined based on the bit depth of the audio signal.

[0152] Optionally, the first determination sub-module is configured to: determine that the first matching information determined based on the radix matching values of M groups of sub-signals does not meet the second condition;

[0153] Sampling the first sub-signal and the second sub-signal in the group of sub-signals respectively according to the sampling rules corresponding to the target lossless level to obtain first sampling points and second sampling points.

[0154] Optionally, before determining the matching result of the first signal and the second signal according to the first signal and the second signal, the signal transmission test device 300 may further include:

[0155] A third determination module, configured to determine that the third matching information of the first signal and the first signal meets the matching condition, where the third matching information includes the error parameter and / or the radix matching value.

[0156] Optionally, when the second matching information includes an error parameter and a radix matching value, the second determination sub-module is configured to:

[0157] Determine the average value of the error parameters of the M groups of sub-signals as the error parameter of the first signal and the second signal;

[0158] Determine the average value of the radix matching values of the M groups of sub-signals as the radix matching value of the first signal and the second signal.

[0159] Optionally, the first determination module 303 may include:

[0160] An alignment sub-module, configured to align the first signal and the second signal to obtain the aligned first signal and second signal;

[0161] A third determination sub-module, configured to determine first matching information of the first signal and the second signal according to the aligned first signal and second signal.

[0162] Optionally, the sending end includes a first digital signal processing module, and the receiving end includes a second digital signal processing module; the first acquisition module 301 is configured to: acquire the signal output by the first digital signal processing module as the first signal;

[0163] The second acquisition module 302 is configured to: acquire the signal input to the second digital signal processing module as the second signal corresponding to the first signal.

[0164] Regarding the device in the above embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated herein.

[0165] Based on the same inventive concept, the present disclosure also provides a signal transmission method. Figure 4 It is a flowchart of a signal transmission method applied to a sending end shown according to an exemplary embodiment. As Figure 4 shown, the signal transmission method may include the following steps.

[0166] In step S41, an original signal is acquired.

[0167] Among them, the original signal may be an audio signal source, and the audio signal source may be lossless audio or non-lossless audio.

[0168] In step S42, the original signal is processed to obtain a first signal.

[0169] Exemplarily, referring to Figure 1 , the signal sent by the wireless connection module of the sending end may be determined as the first signal. Correspondingly, processing the original signal includes: sequentially performing Codec decoding, DSP digital signal processing by a first signal processing module, and Codec encoding on the original signal.

[0170] Another example is that considering that the Codec encoding at the sending end and the Codec decoding at the receiving end may not be completely lossless codecs, therefore, the signal before the Codec encoding at the sending end is determined as the first signal. Correspondingly, processing the original signal includes: sequentially performing Codec decoding and DSP digital signal processing by a first signal processing module on the original signal.

[0171] In step S43, a signal is sent to the receiving end according to the first signal, so that the receiving end obtains the second signal.

[0172] Among them, the signal transmission process between the sending end and the receiving end is tested by using the signal transmission test method provided by the present disclosure.

[0173] Exemplarily, if the first signal is a signal sent by the wireless connection module of the sending end, the wireless connection module of the sending end sends the first signal to the receiving end. Correspondingly, the signal received by the wireless connection module of the receiving end is the second signal.

[0174] Another exemplarily, if the first signal is a signal before being encoded by the codec (Codec) of the sending end, after the sending end encodes the first signal by the codec (Codec), it is then sent via the wireless connection module of the sending end. Correspondingly, after the wireless connection module of the receiving end receives the signal, the second signal is obtained by decoding with the codec (Codec).

[0175] By adopting the above technical solution, during the signal transmission process, the signal transmission process between the sending end and the receiving end can be tested, improving the reliability of signal transmission.

[0176] Based on the same inventive concept, the present disclosure also provides a signal transmission method. Figure 5 It is a flowchart of a signal transmission method applied to the receiving end shown according to an exemplary embodiment. As Figure 5 shown, the signal transmission method may include the following steps.

[0177] In step S51, the signal sent by the sending end is received, and the second signal is obtained based on the signal.

[0178] Exemplarily, if the first signal is a signal sent by the wireless connection module of the sending end, the wireless connection module of the sending end sends the first signal to the receiving end. Correspondingly, the signal received by the wireless connection module of the receiving end is the second signal.

[0179] Another exemplarily, if the first signal is a signal before being encoded by the codec (Codec) of the sending end, after the sending end encodes the first signal by the codec (Codec), it is then sent via the wireless connection module of the sending end. Correspondingly, after the wireless connection module of the receiving end receives the signal, the second signal is obtained by decoding with the codec (Codec).

[0180] In step S52, the second signal is processed to obtain the output target signal.

[0181] Among them, the signal transmission process between the sending end and the receiving end is tested by using the signal transmission test method provided by the present disclosure.

[0182] Exemplarily, if the signal received by the wireless connection module at the receiving end is the second signal, then the second signal is processed to obtain the output target signal, including: successively performing codec decoding and DSP (Digital Signal Processing) digital signal processing on the second signal to obtain the output target signal.

[0183] Another exemplarily, if the second signal is obtained through codec decoding, then the second signal is processed to obtain the output target signal, including: using the DSP of the second signal processing module to perform digital signal processing on the second signal to obtain the output target signal.

[0184] By adopting the above technical solution, during the signal transmission process, it is possible to test the transmission process of the signal between the sending end and the receiving end, improving the reliability of signal transmission.

[0185] Based on the same inventive concept, the present disclosure also provides a signal transmission device applied to the sending end. Figure 6 It is a block diagram of a signal transmission device applied to the sending end shown according to an exemplary embodiment. As Figure 6 shown, the signal transmission device 600 may include:

[0186] A third acquisition module 601, configured to acquire an original signal;

[0187] A first processing module 602, configured to process the original signal to obtain a first signal;

[0188] A sending module 603, configured to send a signal to the receiving end according to the first signal, so that the receiving end obtains a second signal;

[0189] Wherein, the transmission process of the signal between the sending end and the receiving end is tested by using the signal transmission test method described in the present disclosure.

[0190] Based on the same inventive concept, the present disclosure also provides a signal transmission device applied to the receiving end. Figure 7 It is a block diagram of a signal transmission device applied to the receiving end shown according to an exemplary embodiment. As Figure 7 shown, the signal transmission device 700 may include:

[0191] A receiving module 701, configured to receive the signal sent by the sending end and obtain a second signal based on the signal;

[0192] A second processing module 702, configured to process the second signal to obtain the output target signal;

[0193] Among them, the signal transmission process between the sending end and the receiving end is tested by using the signal transmission test method described in this disclosure.

[0194] Regarding the signal transmission device in the above embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated herein.

[0195] This disclosure also provides a computer-readable storage medium, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the signal transmission test method provided by this disclosure are implemented.

[0196] This disclosure also provides a computer-readable storage medium, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the signal transmission method applied to the sending end provided by this disclosure are implemented.

[0197] This disclosure also provides a computer-readable storage medium, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the signal transmission method applied to the receiving end provided by this disclosure are implemented.

[0198] Figure 8 It is a block diagram of an electronic device shown according to an exemplary embodiment. For example, the electronic device 800 can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0199] Referring to Figure 8 , the electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input / output interface 812, a sensor component 814, and a communication component 816.

[0200] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, telephone call, data communication, camera operation, and recording operation. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above signal transmission test method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0201] The memory 804 is configured to store various types of data to support the operation of the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, and the like. The memory 804 can be implemented by any type of volatile or non-volatile storage device 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, a magnetic disk, or an optical disk.

[0202] The power supply component 806 provides power to various components of the electronic device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.

[0203] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may 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 input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can not only sense the boundaries of touch or swipe actions, but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the electronic device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.

[0204] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC) that is configured to receive external audio signals when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 further includes a speaker for outputting audio signals.

[0205] The input / output interface 812 provides an interface between the processing component 802 and a peripheral interface module, and the peripheral interface module can be a keyboard, a click wheel, buttons, etc. These buttons can include, but are not limited to: a home button, a volume button, a start button, and a lock button.

[0206] The sensor assembly 814 includes one or more sensors for providing an assessment of the status of various aspects of the electronic device 800. For example, the sensor assembly 814 can detect the on / off state of the electronic device 800, the relative positioning of components, such as the display and keypad of the electronic device 800. The sensor assembly 814 can also detect a change in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and a change in the temperature of the electronic device 800. The sensor assembly 814 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 can also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0207] The communication component 816 is configured to facilitate communication between the electronic device 800 and other devices in a wired or wireless manner. The electronic device 800 can access a wireless network based on communication standards, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 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 technologies.

[0208] In an exemplary embodiment, the electronic device 800 can be implemented by 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, microcontrollers, microprocessors, or other electronic components for performing the signal transmission test method.

[0209] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions, such as the memory 804 including instructions, is also provided. The above instructions can be executed by the processor 820 of the electronic device 800 to complete the above signal transmission test method. 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 disk, and an optical data storage device, etc.

[0210] In another exemplary embodiment, a computer program product is also provided. The computer program product includes a computer program executable by a programmable device. The computer program has a code portion for performing the above-described signal transmission test method when executed by the programmable device.

[0211] Figure 9 FIG. 4 is a block diagram of another electronic device shown according to an exemplary embodiment. For example, the electronic device 900 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0212] Referring to Figure 9 , the electronic device may include one or more of the following components: a processing component 902, a memory 904, a power supply component 906, a multimedia component 908, an audio component 910, an input / output interface 912, a sensor component 914, and a communication component 916.

[0213] The processing component 902 generally controls the overall operation of the electronic device 900, such as operations associated with display, telephone calls, data communication, camera operations, and recording operations. The processing component 902 may include one or more processors 920 to execute instructions to complete all or part of the steps of the above-described signal transmission method applied to the sending end. In addition, the processing component 902 may include one or more modules to facilitate the interaction between the processing component 902 and other components. For example, the processing component 902 may include a multimedia module to facilitate the interaction between the multimedia component 908 and the processing component 902.

[0214] The memory 904 is configured to store various types of data to support the operation of the electronic device 900. Examples of these data include instructions for any application or method operating on the electronic device 900, contact data, phone book data, messages, pictures, videos, etc. The memory 904 may be implemented by any type of volatile or non-volatile storage device 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, a magnetic disk, or an optical disk.

[0215] The power supply component 906 provides power to various components of the electronic device 900. The power supply component 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 900.

[0216] The multimedia component 908 includes a screen that provides an output interface between the electronic device 900 and the user. In some embodiments, the screen may 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 input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can sense not only the boundaries of touch or swipe actions but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 908 includes a front camera and / or a rear camera. When the electronic device 900 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.

[0217] The audio component 910 is configured to output and / or input audio signals. For example, the audio component 910 includes a microphone (MIC) that is configured to receive external audio signals when the electronic device 900 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 904 or transmitted via the communication component 916. In some embodiments, the audio component 910 further includes a speaker for outputting audio signals.

[0218] The input / output interface 912 provides an interface between the processing component 902 and a peripheral interface module, and the peripheral interface module can be a keyboard, a click wheel, buttons, etc. These buttons can include but are not limited to: a home button, a volume button, a power button, and a lock button.

[0219] The sensor component 914 includes one or more sensors for providing an assessment of the various aspects of the state of the electronic device 900. For example, the sensor component 914 can detect the on / off state of the electronic device 900, the relative positioning of components, such as the display and the keypad of the electronic device 900. The sensor component 914 can also detect a change in the position of the electronic device 900 or a component of the electronic device 900, the presence or absence of user contact with the electronic device 900, the orientation or acceleration / deceleration of the electronic device 900, and the temperature change of the electronic device 900. The sensor component 914 can include a proximity sensor that is configured to detect the presence of nearby objects without any physical contact. The sensor component 914 can also include a light sensor, such as a CMOS or a CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 914 can further include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0220] The communication component 916 is configured to facilitate communication between the electronic device 900 and other devices in a wired or wireless manner. The electronic device 900 can access a communication standard-based wireless network, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 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 technologies.

[0221] In an exemplary embodiment, the electronic device 900 can be implemented by 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, microcontrollers, microprocessors, or other electronic components for performing the signal transmission method applied to the sending end.

[0222] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 904 including instructions, and the above instructions can be executed by a processor 920 of the electronic device 900 to complete the above signal transmission method applied to the sending end. For example, the non-transitory computer-readable storage medium can be a ROM, Random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0223] In another exemplary embodiment, a computer program product is also provided, and the computer program product includes a computer program capable of being executed by a programmable device, and the computer program has a code portion for performing the above signal transmission method applied to the sending end when executed by the programmable device.

[0224] Figure 10 is a block diagram of another electronic device shown according to an exemplary embodiment. For example, the electronic device 1000 can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0225] Referring to Figure 10 , the electronic device may include one or more of the following components: a processing component 1002, a memory 1004, a power component 1006, a multimedia component 1008, an audio component 1010, an input / output interface 1012, a sensor component 1014, and a communication component 1016.

[0226] The processing component 1002 generally controls the overall operation of the electronic device 1000, such as operations associated with display, telephone calls, data communication, camera operations, and recording operations. The processing component 1002 may include one or more processors 1020 to execute instructions to complete all or part of the steps of the above-mentioned signal transmission method applied to the receiving end. In addition, the processing component 1002 may include one or more modules to facilitate the interaction between the processing component 1002 and other components. For example, the processing component 1002 may include a multimedia module to facilitate the interaction between the multimedia component 1008 and the processing component 1002.

[0227] The memory 1004 is configured to store various types of data to support the operation of the electronic device 1000. Examples of such data include instructions for any application or method operating on the electronic device 1000, contact data, phone book data, messages, pictures, videos, etc. The memory 1004 can be implemented by any type of volatile or non-volatile storage device 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 disk, or optical disk.

[0228] The power component 1006 provides power to various components of the electronic device 1000. The power component 1006 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 1000.

[0229] The multimedia component 1008 includes a screen that provides an output interface between the electronic device 1000 and the user. In some embodiments, the screen may 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 input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can not only sense the boundaries of the touch or swipe actions, but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 1008 includes a front camera and / or a rear camera. When the electronic device 1000 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.

[0230] The audio component 1010 is configured to output and / or input audio signals. For example, the audio component 1010 includes a microphone (MIC) that is configured to receive external audio signals when the electronic device 1000 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 1004 or transmitted via the communication component 1016. In some embodiments, the audio component 1010 further includes a speaker for outputting audio signals.

[0231] The input / output interface 1012 provides an interface between the processing component 1002 and a peripheral interface module, and the peripheral interface module can be a keyboard, a click wheel, buttons, etc. These buttons can include, but are not limited to: a home button, a volume button, a power button, and a lock button.

[0232] The sensor component 1014 includes one or more sensors for providing status assessments of various aspects of the electronic device 1000. For example, the sensor component 1014 can detect the on / off state of the electronic device 1000, the relative positioning of components, such as the display and keypad of the electronic device 1000. The sensor component 1014 can also detect a change in the position of the electronic device 1000 or a component of the electronic device 1000, the presence or absence of user contact with the electronic device 1000, the orientation or acceleration / deceleration of the electronic device 1000, and a change in the temperature of the electronic device 1000. The sensor component 1014 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor component 1014 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 1014 can further include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0233] The communication component 1016 is configured to facilitate communication between the electronic device 1000 and other devices in a wired or wireless manner. The electronic device 1000 can access a wireless network based on a communication standard, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1016 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1016 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 technologies.

[0234] In an exemplary embodiment, the electronic device 1000 can be implemented by 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, microcontrollers, microprocessors, or other electronic components, and is used to execute the signal transmission method applied to the receiving end.

[0235] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as the memory 1004 including instructions. The above instructions can be executed by the processor 1020 of the electronic device 1000 to complete the above signal transmission method applied to the receiving end. For example, the non-transitory computer-readable storage medium can be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0236] In another exemplary embodiment, a computer program product is also provided. The computer program product includes a computer program that can be executed by a programmable device, and the computer program has a code portion for executing the above signal transmission method applied to the receiving end when executed by the programmable device.

[0237] Those skilled in the art will readily conceive of other embodiments of the present disclosure after considering the specification and practicing the present disclosure. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common general knowledge or conventional technical means in the technical field not disclosed by the present disclosure. The specification and embodiments are only regarded as exemplary, and the true scope and spirit of the present disclosure are pointed out by the following claims.

[0238] It should be understood that the present disclosure is not limited to the exact structures already described and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims.

Claims

1. A signal transmission test method, characterized in that: include: Acquire a first signal to be sent from a transmitting end; Acquire a second signal corresponding to the first signal from a receiving end; Determine first matching information between the first signal and the second signal according to the first signal and the second signal; When the first matching information satisfies a preset matching condition, it is determined that the signal transmission mode between the sending end and the receiving end is a lossless transmission mode; or, when the first matching information does not satisfy the preset matching condition, it is determined that the signal transmission mode between the sending end and the receiving end is a non-lossless transmission mode.

2. The method according to claim 1, characterized in that The determining, according to the first signal and the second signal, first matching information between the first signal and the second signal includes: The first signal is divided into K first sub-signals, and the second signal is divided into K second sub-signals, where K is an integer greater than 1; The i-th first sub-signal and the i-th second sub-signal are combined into the i-th group of sub-signals to obtain K groups of sub-signals, where the value range of i is [1, K]; For each group of sub-signals in the M groups of sub-signals, determine second matching information of the group of sub-signals according to the first sub-signal and the second sub-signal in the group of sub-signals, where M is an integer less than or equal to K; First matching information of the first signal and the second signal is determined according to second matching information of the M groups of sub-signals.

3. The method according to claim 2, characterized in that The first matching information includes an error parameter and / or a base matching value; When the first matching information includes the error parameter, the matching condition includes a first condition, and the first condition is that the error parameter is less than or equal to a first preset threshold; When the first matching information includes the base matching value, the matching condition includes a second condition, and the second condition is that the base matching value is greater than or equal to a second preset threshold.

4. The method according to claim 3, characterized in that The first signal is an audio signal; when the first matching information includes the base matching value, the second matching information includes the base matching value; and determining the second matching information of the group of sub-signals according to the first sub-signal and the second sub-signal in the group of sub-signals includes: Determining a target lossless level of the audio signal and a target system corresponding to the target lossless level; The first sub-signal in the group of sub-signals is represented by a target base to obtain a first base character, and the second sub-signal is represented by a target base to obtain a second binary character; Determine, according to the first decimal character and the second binary character, a ratio of the number of identical bytes to the maximum number of bytes; The ratio of the number of identical bytes to the maximum number of bytes is determined as the base matching value of the group of sub-signals.

5. The method according to claim 4, characterized in that When the first matching information includes the error parameter, the second matching information includes the error parameter; determining the second matching information of the group of sub-signals according to the first sub-signal and the second sub-signal in the group of sub-signals includes: According to a sampling rule corresponding to the target lossless level, sampling the first sub-signal and the second sub-signal in the group of sub-signals respectively to obtain a first sampling point and a second sampling point; Determine a root mean square error between the first sub-signal and the second sub-signal according to the first sampling point and the second sampling point; The error parameter of the group of sub-signals is determined according to the root mean square error.

6. The method according to claim 5, characterized in that The determining, according to the first sampling point and the second sampling point, a root mean square error between the first sub-signal and the second sub-signal includes: According to the first sampling point and the second sampling point, a root mean square error w between the first sub-signal and the second sub-signal is determined by the following formula: Determining the error parameter of the group of sub-signals according to the root mean square error includes: The error parameter of the group of sub-signals is determined by the following formula: Among them, Difference (RMS) represents the error parameter of the group of sub-signals, X(n) represents the amplitude of the nth sampling point in the first sampling points, Y(n) represents the amplitude of the nth sampling point in the second sampling points, N represents the number of the first sampling points or the second sampling points, the value range of n is [1, N], c represents a preset coefficient, and L represents the maximum amplitude determined based on the bit depth of the audio signal.

7. The method according to claim 5, characterized in that The step of sampling the first sub-signal and the second sub-signal in the group of sub-signals according to the sampling rule corresponding to the target lossless level to obtain a first sampling point and a second sampling point includes: Determining that first matching information determined based on the binary matching values ​​of the M groups of sub-signals does not satisfy the second condition; According to a sampling rule corresponding to the target lossless level, the first sub-signal and the second sub-signal in the group of sub-signals are sampled respectively to obtain a first sampling point and a second sampling point.

8. The method according to claim 3, characterized in that Before determining first matching information between the first signal and the second signal according to the first signal and the second signal, the method further includes: It is determined that the first signal and third matching information of the first signal meet the matching condition, and the third matching information includes the error parameter and / or the base matching value.

9. The method according to claim 2, characterized in that: In a case where the second matching information includes an error parameter and a base matching value, determining first matching information of the first signal and the second signal according to the second matching information of the M groups of sub-signals includes: Determine an average value of the error parameters of the M groups of sub-signals as the error parameter of the first signal and the second signal; An average value of the base-number matching values ​​of the M groups of sub-signals is determined as the base-number matching value of the first signal and the second signal.

10. The method according to any one of claims 1 to 9, characterized in that The determining, according to the first signal and the second signal, first matching information between the first signal and the second signal includes: Performing alignment processing on the first signal and the second signal to obtain aligned first and second signals; First matching information between the first signal and the second signal is determined according to the aligned first signal and the second signal.

11. The method according to any one of claims 1 to 9, characterized in that The transmitting end includes a first digital signal processing module, and the receiving end includes a second digital signal processing module; The obtaining of a first signal to be sent from a transmitting end includes: Acquire a signal output by the first digital signal processing module as the first signal; The acquiring, from the receiving end, a second signal corresponding to the first signal comprises: A signal input into the second digital signal processing module is acquired as a second signal corresponding to the first signal.

12. A signal transmission method, characterized in that: Applied to the sending end, the method includes: Get the original signal; Processing the original signal to obtain a first signal; Sending a signal to a receiving end according to the first signal, so that the receiving end obtains a second signal; The signal transmission process between the transmitting end and the receiving end is tested by using the signal transmission test method described in any one of claims 1 to 11.

13. A signal transmission method, characterized in that: Applied to the receiving end, the method further includes: receiving a signal sent by a transmitting end, and obtaining a second signal based on the signal; Processing the second signal to obtain an output target signal; The signal transmission process between the transmitting end and the receiving end is tested by using the signal transmission test method described in any one of claims 1 to 11.

14. A signal transmission test device, characterized in that: include: A first acquisition module is configured to acquire a first signal to be sent from a sending end; A second acquisition module is configured to acquire a second signal corresponding to the first signal from a receiving end; A first determining module, configured to determine first matching information between the first signal and the second signal according to the first signal and the second signal; The second determination module is configured to determine that the signal transmission mode between the sending end and the receiving end is a lossless transmission mode when the first matching information satisfies a preset matching condition; or, when the first matching information does not satisfy the preset matching condition, determine that the signal transmission mode between the sending end and the receiving end is a non-lossless transmission mode.

15. A signal transmission device, characterized in that: Applied to a transmitting end, the device comprises: A third acquisition module is configured to acquire an original signal; A first processing module is configured to process the original signal to obtain a first signal; a sending module, configured to send a signal to a receiving end according to the first signal, so that the receiving end obtains a second signal; The signal transmission process between the transmitting end and the receiving end is tested by using the signal transmission test method described in any one of claims 1 to 11.

16. A signal transmission device, characterized in that: Applied to a receiving end, the device comprises: A receiving module, configured to receive a signal sent by the transmitting end, and obtain a second signal based on the signal; A second processing module is configured to process the second signal to obtain an output target signal; The signal transmission process between the transmitting end and the receiving end is tested by using the signal transmission test method described in any one of claims 1 to 11.

17. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the instructions to implement the method according to any one of claims 1 to 11 or claim 12 or claim 13.

18. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the steps of the method described in any one of claims 1 to 11, claim 12 or claim 13 are implemented.