Packet loss compensation test method for wireless equipment and wireless equipment

By configuring and broadcasting audio packets based on packet loss configuration parameters on wireless devices, simulating packet loss situation in the real environment, the problem of unstable packet loss compensation effect of test Bluetooth audio receiving devices in the prior art is solved, and more stable test results are achieved.

CN120199273APending Publication Date: 2025-06-24ACTIONS ZHUHAI MICROELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311794382.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-22
Publication Date
2025-06-24

AI Technical Summary

Technical Problem

In the prior art, the packet loss compensation effect of Bluetooth audio receiving equipment is directly tested in an open office environment. The test results are easily affected by environmental interference factors, resulting in randomness and instability of the test results.

Method used

A packet loss compensation test method for wireless devices is provided. By configuring the audio packet to be sent in each audio transmission cycle according to the packet loss configuration parameters, the target audio packet is obtained and broadcast it, so that other wireless devices can use the packet loss compensation algorithm to compensate and play.

Benefits of technology

By simulating packet loss in the real environment, the randomness of the test is reduced, the stability of the test is improved, and the effect of packet loss compensation is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120199273A_ABST
    Figure CN120199273A_ABST
Patent Text Reader

Abstract

The invention discloses a packet loss compensation test method of wireless equipment and the wireless equipment, a wireless equipment band configures an audio data packet to be sent in each audio sending period according to a packet loss configuration parameter to obtain a target audio data packet, and then broadcasts the target audio data packet. And after other wireless devices adopt a packet loss compensation algorithm to carry out packet loss compensation on the target audio data packet, the compensated audio data is obtained. The to-be-sent audio data packet in each audio sending period is configured through the packet loss configuration parameter to obtain the target audio data packet, and the audio data packet is broadcasted to simulate the packet loss condition of a real environment, so that other wireless devices can carry out packet loss compensation on the target audio data packet by adopting a packet loss compensation algorithm, and the transmission efficiency of the audio data packet is improved. Compared with testing in an open office environment, the method has the advantages that testing randomness can be reduced, testing stability can be improved, and the packet loss compensation testing effect can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of audio communication, and particularly relates to a method for testing packet loss compensation of a wireless device and a wireless device. Background Art

[0002] In a wireless transmission mode, for example, in the case of Bluetooth audio broadcasting, the data broadcast by a Bluetooth audio broadcasting device consists of multiple audio data packets, and a Bluetooth audio receiving device receives the audio data packets sent by the Bluetooth audio broadcasting device. During the sending process, audio data packet loss may occur. If the Bluetooth audio receiving device does not correctly receive an audio data packet, it will perform packet loss compensation on the lost audio data packet. If the packet loss compensation effect is good, there will be almost no audible sound abnormality. If the packet loss compensation effect is poor, there will be an obvious audible sound abnormality.

[0003] In the prior art, testing the packet loss compensation effect of a Bluetooth audio receiving device is usually directly carried out in an open office environment. The test results are easily affected by interference factors such as the environment, resulting in the problems of randomness and instability of the test results. Summary of the Invention

[0004] The present invention provides a method for testing packet loss compensation of a wireless device and a wireless device, so as to solve the problems of randomness and instability of the test results in directly testing the packet loss compensation effect of a Bluetooth audio receiving device in an open office environment in the prior art.

[0005] In a first aspect, the present application provides a method for testing packet loss compensation of a wireless device, the method including:

[0006] The wireless device configures the audio data packets to be sent in each audio sending cycle according to the packet loss configuration parameters to obtain target audio data packets, where the packet loss configuration parameters include a packet loss cycle and a packet loss quantity;

[0007] The wireless device broadcasts the target audio data packets, so that other wireless devices use a packet loss compensation algorithm to perform packet loss compensation on the target audio data packets, and then obtain compensated audio data and play it, where the other wireless devices are wireless devices that receive the target audio data packets through broadcasting.

[0008] In a possible implementation manner, the method further includes:

[0009] The wireless device determines packet loss positions of the packet loss quantity in each packet loss cycle;

[0010] The wireless device configures the audio data packets to be sent in each audio sending cycle according to the packet loss configuration parameters to obtain target audio data packets, including:

[0011] The wireless device discards the audio data packets at the packet loss positions in the packet loss period to obtain the target audio data packets.

[0012] In a possible implementation, the wireless device determines the packet loss positions of the number of packet losses in each packet loss period, including:

[0013] The wireless device sets the same number of audio data packets between two adjacent packet loss positions in the packet loss period.

[0014] In a possible implementation, the wireless device determines the packet loss positions of the number of packet losses in each packet loss period, including:

[0015] The wireless device uses the positions of the number of consecutive audio data packets in the packet loss period as the packet loss positions.

[0016] In a possible implementation, the wireless device determines the packet loss positions of each packet loss period based on the number of packet losses, including:

[0017] The wireless device randomly selects the positions of the number of audio data packets from the positions of the audio data packets in the packet loss period;

[0018] The wireless device uses the selected positions of the audio data packets as the packet loss positions.

[0019] In a possible implementation, the packet loss period is one audio transmission period among multiple audio transmission periods, and there are N audio transmission periods between adjacent packet loss periods, where N is a natural number.

[0020] In a second aspect, the present application provides a wireless device, and the device includes:

[0021] A configuration module, configured to configure the audio data packets to be sent in each audio transmission period according to packet loss configuration parameters to obtain target audio data packets, where the packet loss configuration parameters include a packet loss period and the number of packet losses;

[0022] A broadcast module, configured to broadcast the target audio data packets, so that other wireless devices perform packet loss compensation on the target audio data packets by using a packet loss compensation algorithm, obtain compensated audio data, and play the compensated audio data, where the other wireless devices are wireless devices that receive the target audio data packets through broadcast.

[0023] In a possible implementation, the device further includes:

[0024] A determination module, configured to determine the packet loss positions of the number of packet losses in each packet loss period;

[0025] The configuration module is specifically configured to:

[0026] Discard the audio data packets at the packet loss positions in the packet loss period to obtain the target audio data packets.

[0027] In a possible implementation manner, the determination module is specifically configured to:

[0028] In the packet loss period, the number of audio data packets between two adjacent packet loss positions is the same.

[0029] In a possible implementation manner, the determination module is specifically configured to:

[0030] In the packet loss period, use the positions of the packet loss number of consecutive audio data packets as the packet loss positions.

[0031] In a possible implementation manner, the determination module is specifically configured to:

[0032] Arbitrarily select the positions of the packet loss number of audio data packets from the positions of the audio data packets in the packet loss period;

[0033] Use the positions of the selected audio data packets as the packet loss positions.

[0034] In a possible implementation manner, the packet loss period is one audio transmission period among multiple audio transmission periods, and the adjacent packet loss periods are separated by N audio transmission periods, where N is a natural number.

[0035] In a third aspect, the present application provides an electronic device, including a memory and a processor;

[0036] The memory is used to store program instructions;

[0037] The processor is used to call the program instructions stored in the memory and execute the packet loss compensation test method of the wireless device as described in any one of the first aspects according to the obtained program.

[0038] In a fourth aspect, the present application provides a packet loss compensation test system for a wireless device, and the system includes a wireless device and other wireless devices:

[0039] The wireless device is used to configure the audio data packets to be sent in each audio transmission period according to the packet loss configuration parameters to obtain target audio data packets, where the packet loss configuration parameters include a packet loss period and a packet loss number; and broadcast the target audio data packets;

[0040] The other wireless device is configured to receive the target audio data packet through broadcasting, perform packet loss compensation on the target audio data packet by using a packet loss compensation algorithm to obtain compensated audio data, and play the compensated audio data.

[0041] The beneficial effects of the present invention are as follows:

[0042] A packet loss compensation test method for a wireless device and a wireless device provided by an embodiment of the present application. The wireless device first configures the audio data packets to be sent in each audio transmission period according to packet loss configuration parameters to obtain target audio data packets, where the packet loss configuration parameters include a packet loss period and a packet loss quantity. Then, the target audio data packets are broadcast so that other wireless devices perform packet loss compensation on the target audio data packets by using a packet loss compensation algorithm to obtain compensated audio data and play the compensated audio data, where the other wireless devices are wireless devices that receive the target audio data packets through broadcasting. In the embodiment of the present application, the audio data packets to be sent in each audio transmission period are configured according to the packet loss configuration parameters to obtain target audio data packets, and the audio data packets are broadcast to simulate the packet loss situation in a real environment, so that other wireless devices perform packet loss compensation on the target audio data packets by using a packet loss compensation algorithm to obtain compensated audio data and play the compensated audio data. Compared with testing in an open office environment, the randomness of the test can be reduced, the stability of the test can be improved, and thus the packet loss compensation test effect can be improved. Description of the Drawings

[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present invention, and those of ordinary skill in the art can obtain other drawings based on these drawings without creative efforts.

[0044] Figure 1 It is a schematic flowchart of a packet loss compensation test method for a wireless device provided by an embodiment of the present application;

[0045] Figure 2 It is a schematic diagram of two packet loss positions in a packet loss period provided by an embodiment of the present application;

[0046] Figure 3a It is a schematic diagram of a packet loss period provided by an embodiment of the present application;

[0047] Figure 3b It is a schematic diagram of another packet loss period provided by an embodiment of the present application;

[0048] Figure 3c It is a schematic diagram of another packet loss period provided by an embodiment of the present application;

[0049] Figure 4 Schematic diagram of a packet loss position provided by an embodiment of the present application;

[0050] Figure 5 Another schematic diagram of a packet loss position provided by an embodiment of the present application;

[0051] Figure 6a Another schematic diagram of a packet loss position provided by an embodiment of the present application;

[0052] Figure 6b Another schematic diagram of a packet loss position provided by an embodiment of the present application;

[0053] Figure 7 Another schematic diagram of a packet loss position provided by an embodiment of the present application;

[0054] Figure 8a Another schematic diagram of a packet loss position provided by an embodiment of the present application;

[0055] Figure 8b Another schematic diagram of a packet loss position provided by an embodiment of the present application;

[0056] Figure 9 Another schematic diagram of a packet loss position provided by an embodiment of the present application;

[0057] Figure 10 Structural diagram of a wireless device provided by an embodiment of the present application;

[0058] Figure 11 Structural diagram of a wireless device provided by an embodiment of the present application;

[0059] Figure 12 Structural diagram of a packet loss compensation test system for a wireless device provided by an embodiment of the present application;

[0060] Figure 13 Another structural diagram of a packet loss compensation test system for a wireless device provided by an embodiment of the present application. Detailed implementation manners

[0061] In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only some of the embodiments of the present invention, rather than all of them. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0062] The application scenarios described in the embodiments of the present disclosure are used to more clearly illustrate the technical solutions of the embodiments of the present disclosure, and do not constitute a limitation on the technical solutions provided by the embodiments of the present disclosure. Those of ordinary skill in the art will know that with the emergence of new application scenarios, the technical solutions provided by the embodiments of the present disclosure are equally applicable to similar technical problems. Among them, in the description of the present disclosure, unless otherwise specified, the meaning of "a plurality of" is two or more.

[0063] In the Bluetooth audio broadcast mode, the data broadcast by the Bluetooth audio broadcast device consists of multiple audio data packets, and the Bluetooth audio receiving device receives the audio data packets sent by the Bluetooth audio broadcast device. Individual audio data packets may be lost in the audio data packets sent by the Bluetooth audio broadcast device. If the audio data packets received by the Bluetooth audio receiving device are lost audio data packets, the lost audio data packets will be compensated for packet loss. If the packet loss compensation effect is good, almost no abnormal sound can be heard during playback. If the packet loss compensation effect is not good, obvious abnormal sound can be heard during playback. In the related art, the effect of testing the packet loss compensation of the Bluetooth audio receiving device is usually directly tested in an open office environment, and the test results are easily affected by interference factors such as the environment. Therefore, the test results are random and unstable.

[0064] Based on the above problems, the embodiments of the present application provide a method for testing packet loss compensation of wireless devices, as Figure 1 shown, which is a schematic flowchart of a method for testing packet loss compensation of wireless devices provided by the embodiments of the present application. The method includes the following steps:

[0065] S101. The wireless device configures the audio data packets to be sent in each audio transmission cycle according to the packet loss configuration parameters to obtain target audio data packets, where the packet loss configuration parameters include the packet loss cycle and the number of packet losses;

[0066] S102. The wireless device broadcasts the target audio data packets so that other wireless devices use the packet loss compensation algorithm to perform packet loss compensation on the target audio data packets, and then obtain the compensated audio data and play it, where the other wireless devices are wireless devices that receive the target audio data packets through broadcasting.

[0067] In the embodiments of the present application, the wireless device first configures the audio data packets to be sent in each audio transmission period according to the packet loss configuration parameters to obtain the target audio data packets. The packet loss configuration parameters include the packet loss period and the packet loss quantity. Then, the target audio data packets are broadcast so that other wireless devices use the packet loss compensation algorithm to perform packet loss compensation on the target audio data packets, obtain the compensated audio data, and play it. Here, other wireless devices are the wireless devices that receive the target audio data packets through the broadcast. In the embodiments of the present application, by configuring the audio data packets to be sent in each audio transmission period with the packet loss configuration parameters, obtaining the target audio data packets, and broadcasting the audio data packets, the packet loss situation in the real environment is simulated, so that other wireless devices use the packet loss compensation algorithm to perform packet loss compensation on the target audio data packets, obtain the compensated audio data and play it. Compared with testing in an open office environment, the randomness of the test can be reduced, the stability of the test can be improved, and thus the packet loss compensation test effect can be improved.

[0068] It should be noted that in the embodiments of the present application, the wireless device can be a Bluetooth audio broadcast device, that is, the master device in the test system, and other wireless devices can be Bluetooth audio receiving devices that receive the target audio data packets through the broadcast, that is, the slave devices in the test system.

[0069] In one embodiment, before the wireless device configures the audio data packets to be sent, the wireless device determines the packet loss positions of the packet loss quantity in each packet loss period. When the wireless device configures the audio data packets to be sent in each audio transmission period according to the packet loss configuration parameters to obtain the target audio data packets, the audio data packets at the packet loss positions in the packet loss period are discarded to obtain the target audio data packets.

[0070] For example, taking the wireless device that sends 4 audio data packets in each audio transmission period and the wireless device determines that the 2 packet loss positions in each packet loss period are the first audio data packet P1 and the third audio data packet P3 as an example. As Figure 2 shown, it is a schematic diagram of 2 packet loss positions in a packet loss period provided by the embodiments of the present application. In the embodiments of the present application, the packet loss quantity in the configuration parameters is 2, that is, the wireless device determines 2 packet loss positions in the packet loss period, which are the positions of the first audio data packet P1 and the third audio data packet P3 respectively. The first audio data packet P1 and the third audio data packet P3 in the packet loss period are discarded to obtain the target audio data packets.

[0071] In the embodiments of the present application, the packet loss quantity in the configuration parameters can be determined according to the packet loss rate. For example, if the packet loss rate is 1% and the total number of audio data packets to be sent is 1000, then the packet loss quantity is 1000 * 1% = 10, that is, the total number of packet losses in all audio transmission periods is 10.

[0072] In one embodiment, the packet loss period is one audio transmission period among multiple audio transmission periods, and the interval between adjacent packet loss periods is N audio transmission periods, where N is a natural number.

[0073] For example, if N is 0, then each audio transmission period is a packet loss period, as Figure 3a shown; for another example, if N is 1, then there is an interval of one audio transmission period between two packet loss periods, as Figure 3b shown; for another example, if N is 2, then there is an interval of two audio transmission periods between two packet loss periods, and the packet loss period is as Figure 3c shown.

[0074] In a specific embodiment, when the wireless device determines the packet loss positions of the packet loss quantity, it can be determined in the following three ways. Each way of determining the packet loss position will be described in detail below.

[0075] Method 1:

[0076] The wireless device sets the number of audio data packets with the same interval between two adjacent packet loss positions during the packet loss period.

[0077] For example, the total number of audio data packets to be sent is 1000. If the number of audio data packets to be sent in each audio transmission period is 5, then 200 audio transmission periods are required. During each packet loss period, a packet loss position is set at the position of every other audio data packet, that is, uniform packet loss.

[0078] For the convenience of understanding, a specific embodiment will be described below.

[0079] As Figure 4 shown, it is a schematic diagram of a packet loss position provided by an embodiment of the present application. Taking the number of audio data packets to be sent in each audio transmission period as 5 as an example, if the packet loss period corresponds one-to-one with the audio transmission period, that is, each audio transmission period is a packet loss period, the number of packet loss positions in each packet loss period is 3, and the audio data packets with an interval between two adjacent packet loss positions are 1.

[0080] In a specific embodiment, the wireless device can determine each audio transmission period as a packet loss period through the configuration parameter lost_interval, that is, the configuration parameter lost_interval is 0. The positions of the first audio packet P1, the third audio packet P3, and the fifth audio packet P5 in the packet loss period 1, the positions of the first audio packet P6, the third audio packet P8, and the fifth audio packet P10 in the packet loss period 2, and the positions of the first audio packet P11, the third audio packet P13, and the fifth audio packet P15 in the packet loss period 3 are determined through the configuration parameter lost_bitmap. That is, the configuration parameter lost_bitmap is 0x15. The first audio packet P1, the third audio packet P3, and the fifth audio packet P5 in the packet loss period 1, the first audio packet P6, the third audio packet P8, and the fifth audio packet P10 in the packet loss period 2, and the first audio packet P11, the third audio packet P13, and the fifth audio packet P15 in the packet loss period 3 are discarded to obtain the target audio packets.

[0081] Among them, the configuration parameter lost_bitmap uses hexadecimal bytes. If it is necessary to discard the first audio packet, the third audio packet, and the fifth audio packet in each packet loss period, and the discarded packets are represented by 1 in binary, and the retained packets are represented by 0 in binary, that is, it can be represented as 10101 in each packet loss period. With P5 as the highest bit and P1 as the lowest bit in binary, the binary byte is 10101, and the hexadecimal conversion is 0x15.

[0082] As Figure 5 shown, it is another schematic diagram of the packet loss position provided by the embodiment of the present application. Taking the number of audio packets to be sent in each audio transmission period as 5 as an example, if every other audio transmission period is a packet loss period, the number of packet loss positions in each packet loss period is 3, and the number of audio packets between adjacent two packet loss positions is 1.

[0083] In a specific embodiment, the wireless device can determine an interval of 1 audio transmission period as the packet loss period through the configuration parameter lost_interval, that is, the configuration parameter lost_interval is 1. The wireless device determines the positions of the 1st audio data packet P1, the 3rd audio data packet P3, and the 5th audio data packet P5 in the packet loss period 1, and the positions of the 1st audio data packet P11, the 3rd audio data packet P13, and the 5th audio data packet P15 in the packet loss period 2 through the configuration parameter lost_bitmap, that is, the configuration parameter lost_bitmap is 0x15. The 1st audio data packet P1, the 3rd audio data packet P3, and the 5th audio data packet P5 in the packet loss period 1, and the 1st audio data packet P11, the 3rd audio data packet P13, and the 5th audio data packet P15 in the packet loss period 2 are discarded to obtain the target audio data packets.

[0084] Method 2:

[0085] In the packet loss period, the wireless device takes the positions of a packet loss number of consecutive audio data packets as the packet loss positions.

[0086] In the embodiments of the present application, the packet loss positions are consecutive, that is, a packet loss number of audio data packets are discarded at one time.

[0087] For example, the total number of audio data packets to be sent is 1000. If there are 5 audio data packets to be sent in each audio transmission period, then 200 audio transmission periods are required. In each packet loss period, the positions of the first 3 audio data packets in the audio data packets are set as the packet loss positions, that is, the first 3 audio data packets in the audio data packets are discarded at one time.

[0088] For another example, the total number of audio data packets to be sent is 1000. If there are 5 audio data packets to be sent in each audio transmission period, then 200 audio transmission periods are required. In each packet loss period, the positions of the last 3 audio data packets in the audio data packets are set as the packet loss positions, that is, the last 3 audio data packets in the audio data packets are discarded at one time.

[0089] For another example, the total number of audio data packets to be sent is 1000. If there are 5 audio data packets to be sent in each audio transmission period, then 200 audio transmission periods are required. In each packet loss period, the position of 1 audio data packet in the middle of the audio data packets is set as the packet loss position, that is, 1 audio data packet in the middle of the audio data packets is discarded at one time.

[0090] For ease of understanding, specific embodiments are described below.

[0091] As shown Figure 6a in the figure, it is a schematic diagram of another packet loss position provided by the embodiment of the present application. Taking 5 audio data packets to be sent in each audio transmission period as an example, if each audio transmission period is a packet loss period, the number of packet loss positions in each packet loss period is 3, and the positions of the first 3 consecutive audio data packets are taken as the packet loss positions.

[0092] In a specific embodiment, the wireless device determines that each audio transmission period is a packet loss period through the configuration parameter lost_interval, that is, the configuration parameter lost_interval is 0. The wireless device determines the positions of the first audio data packet, the second audio data packet, and the third audio data packet in each packet loss period through the configuration parameter lost_bitmap, that is, the positions of the first audio data packet P1, the second audio data packet P2, and the third audio data packet P3 in packet loss period 1, the positions of the first audio data packet P6, the second audio data packet P7, and the third audio data packet P8 in packet loss period 2, and the positions of the first audio data packet P11, the second audio data packet P12, and the third audio data packet P13 in packet loss period 3. That is, the configuration parameter lost_bitmap is 0x07. The first three audio data in each packet loss period are discarded to obtain the target audio data packet.

[0093] Among them, the configuration parameter lost_bitmap uses hexadecimal bytes. If it is necessary to discard the first audio data packet, the second audio data packet, and the third audio data packet in each packet loss period, and the discarded data packets are represented by 1 in binary, and the retained data packets are represented by 0 in binary, that is, each packet loss period can be represented as 11100. Taking P5 as the highest bit and P1 as the lowest bit in binary, the binary byte is 00111, and the conversion to hexadecimal is 0x07.

[0094] As shown Figure 6b in the figure, it is a schematic diagram of another packet loss position provided by the embodiment of the present application. Taking 5 audio data packets to be sent in each audio transmission period as an example, if each audio transmission period is a packet loss period, the number of packet loss positions in each packet loss period is 3, and the positions of the last 3 consecutive audio data packets are taken as the packet loss positions.

[0095] In a specific embodiment, the wireless device determines each audio transmission period as a packet loss period through the configuration parameter lost_interval, that is, the configuration parameter lost_interval is 0. The wireless device determines the positions of the third audio data packet, the fourth audio data packet, and the fifth audio data packet in each packet loss period through the configuration parameter lost_bitmap, that is, the positions of the third audio data packet P3, the fourth audio data packet P4, and the fifth audio data packet P5 in packet loss period 1, the positions of the third audio data packet P8, the fourth audio data packet P9, and the fifth audio data packet P10 in packet loss period 2, and the positions of the third audio data packet P13, the fourth audio data packet P14, and the fifth audio data packet P15 in packet loss period 3. That is, the configuration parameter lost_bitmap is 0x1C. The last three audio data in each packet loss period are discarded to obtain the target audio data packet.

[0096] Among them, the configuration parameter lost_bitmap uses hexadecimal bytes. If it is necessary to discard the third audio data packet, the fourth audio data packet, and the fifth audio data packet in each packet loss period, and the discarded data packets are represented by 1 in binary, and the retained data packets are represented by 0 in binary, that is, each packet loss period can be represented as 00111. According to the binary, P5 is the highest bit and P1 is the lowest bit, and the binary byte is 11100, which is converted to hexadecimal as 0x1C.

[0097] As Figure 7 shown, it is a schematic diagram of another packet loss position provided by the embodiment of the present application. Taking 5 audio data packets to be transmitted in each audio transmission period as an example, if every other audio transmission period is a packet loss period, the number of packet loss positions in each packet loss period is 3, and the positions of 3 consecutive audio data packets are used as the packet loss positions.

[0098] In a specific embodiment, the wireless device determines that every other audio transmission period is a packet loss period through the configuration parameter lost_interval, that is, the configuration parameter lost_interval is 1. The wireless device determines the positions of the first audio data packet, the second audio data packet, and the third audio data packet in each packet loss period as the packet loss positions through the configuration parameter lost_bitmap, that is, the configuration parameter lost_bitmap is 0x07. That is, the positions of the first audio data packet P1, the second audio data packet P2, and the third audio data packet P3 in packet loss period 1 are the packet loss positions, and the positions of the first audio data packet P11, the second audio data packet P12, and the third audio data packet P13 in packet loss period 2 are the packet loss positions. The first three audio data packets in each packet loss period are discarded to obtain the target audio data packet.

[0099] Method 3:

[0100] The wireless device randomly selects the positions of a number of audio data packets equal to the number of lost packets from the positions of the audio data packets in the lost packet period; and takes the selected positions of the audio data packets as the lost packet positions.

[0101] For example, if the number of audio data packets to be sent in each audio transmission period is 1000, and if there are 5 audio data packets to be sent in each audio transmission period, then for 200 audio transmission periods to be sent, in each lost packet period, the positions of any 3 audio data packets are set as the lost packet positions, that is, uneven packet loss.

[0102] For ease of understanding, the following will be described with specific embodiments.

[0103] As Figure 8a shown, it is a schematic diagram of another lost packet period provided by the embodiment of the present application. Taking 5 audio data packets to be sent in each audio transmission period as an example, if each audio transmission period is a lost packet period, and the number of lost packet positions in each lost packet period is 3, the positions of the first audio data packet, the second audio data packet, and the fifth audio data packet in the lost packet period are selected as the lost packet positions.

[0104] In a specific embodiment, the wireless device determines that each audio transmission period is a lost packet period through the configuration parameter lost_interval, that is, the configuration parameter lost_interval is 0. The wireless device determines that the positions of the first audio data packet, the second audio data packet, and the fifth audio data packet in each lost packet period are the lost packet positions through the configuration parameter lost_bitmap, that is, the configuration parameter lost_bitmap is 0x13. Through the above configuration, the wireless device determines that the positions of the first audio data packet P1, the second audio data packet P2, and the fifth audio data packet P5 in the lost packet period 1 are the lost packet positions, determines that the positions of the first audio data packet P6, the second audio data packet P7, and the fifth audio data packet P10 in the lost packet period 2 are the lost packet positions, determines that the positions of the first audio data packet P11, the second audio data packet P12, and the fifth audio data packet P15 in the lost packet period 3 are the lost packet positions, and discards the first audio data packet P1, the second audio data packet P2, and the fifth audio data packet P5 in the lost packet period 1, the first audio data packet P6, the second audio data packet P7, and the fifth audio data packet P10 in the lost packet period 2, and the first audio data packet P11, the second audio data packet P12, and the fifth audio data packet P15 in the lost packet period 3 to obtain the target audio data packets.

[0105] Among them, the configuration parameter lost_bitmap uses hexadecimal bytes. If it is necessary to discard the 1st audio data packet, the 2nd audio data packet, and the 5th audio data packet in each packet loss period, and the discarded data packets are represented by 1 in binary, and the retained data packets are represented by 0 in binary, that is, each packet loss period can be represented as 11001. In binary, P5 is the highest bit and P1 is the lowest bit, and the binary byte is 10011, which is converted to hexadecimal as 0x13.

[0106] As Figure 8b shown, it is a schematic diagram of another packet loss position provided by the embodiment of the present application. Taking the number of audio data packets to be sent in each audio sending period as 5 as an example, if each audio sending period is a packet loss period and the number of packet loss positions in each packet loss period is 3, the positions of the second audio data packet, the third audio data packet, and the fifth audio data packet in the packet loss period are selected as the packet loss positions.

[0107] In a specific embodiment, the wireless device determines that each audio sending period is a packet loss period through the configuration parameter lost_interval, that is, the configuration parameter lost_interval is 0. The wireless device determines the positions of the second audio data packet, the third audio data packet, and the fifth audio data packet in each packet loss period through the configuration parameter lost_bitmap, that is, the configuration parameter lost_bitmap is 0x16. Through the above configuration, the wireless device determines that the positions of the second audio data packet P2, the third audio data packet P3, and the fifth audio data packet P5 in packet loss period 1 are the packet loss positions, determines that the positions of the second audio data packet P7, the third audio data packet P8, and the fifth audio data packet P10 in packet loss period 2 are the packet loss positions, determines that the positions of the second audio data packet P12, the third audio data packet P13, and the fifth audio data packet P15 in packet loss period 3 are the packet loss positions, and discards the second audio data packet P2, the third audio data packet P3, and the fifth audio data packet P5 in packet loss period 1, the second audio data packet P7, the third audio data packet P8, and the fifth audio data packet P10 in packet loss period 2, and the second audio data packet P12, the third audio data packet P13, and the fifth audio data packet P15 in packet loss period 3 to obtain the target audio data packet.

[0108] Among them, the configuration parameter lost_bitmap uses hexadecimal bytes. If it is necessary to discard the second, third, and fifth audio data packets in each packet loss cycle, and the discarded data packets are represented by 1 in binary, and the retained data packets are represented by 0 in binary, that is, each packet loss cycle can be represented as 01101. According to the binary, P5 is the highest bit and P1 is the lowest bit, and the binary byte is 10110, which is converted to hexadecimal as 0x16.

[0109] As Figure 9 shown, it is a schematic diagram of another packet loss position provided by the embodiment of the present application. Taking the number of audio data packets to be sent in each audio transmission cycle as 5 as an example, if every other audio transmission cycle is a packet loss cycle, and the number of packet loss positions in each packet loss cycle is 3, the positions of the first, second, and fifth audio data packets in the packet loss cycle are selected as the packet loss positions.

[0110] In a specific embodiment, the wireless device determines that every other audio transmission cycle is a packet loss cycle through the configuration parameter lost_interval, that is, the configuration parameter lost_interval is 1. The wireless device determines the positions of the first, second, and fifth audio data packets in each packet loss cycle as the packet loss positions through the configuration parameter lost_bitmap, that is, the configuration parameter lost_bitmap is 0x13. The wireless device takes the positions of the first audio data packet P1, the second audio data packet P2, and the fifth audio data packet P5 in the packet loss cycle 1 as the packet loss positions, and takes the positions of the first audio data packet P11, the second audio data packet P12, and the fifth audio data packet P15 in the packet loss cycle 2 as the packet loss positions. The wireless device discards the first audio data packet P1, the second audio data packet P2, and the fifth audio data packet P5 in the packet loss cycle 1, and the first audio data packet P11, the second audio data packet P12, and the fifth audio data packet P15 in the packet loss cycle 2 to obtain the target audio data packet.

[0111] Among them, the configuration parameter lost_bitmap uses hexadecimal bytes. If it is necessary to discard the first, second, and fifth audio data packets in each packet loss cycle, and the discarded data packets are represented by 1 in binary, and the retained data packets are represented by 0 in binary, that is, each packet loss cycle can be represented as 11001. According to the binary, P5 is the highest bit and P1 is the lowest bit, and the binary byte is 10011, which is converted to hexadecimal as 0x13.

[0112] It should be noted that the examples in the above three methods are only for illustration, and other examples applicable to the above three methods are also applicable to the embodiments of the present application.

[0113] Based on the same inventive concept, a packet loss compensation test method for a wireless device as described above in the present application can also be implemented by a wireless device. The effects of this wireless device are similar to those of the foregoing method and will not be elaborated here.

[0114] As Figure 10 shown, it is a structural diagram of a wireless device provided by an embodiment of the present application. The device includes:

[0115] A configuration module 901, configured to configure the audio data packets to be sent in each audio transmission period according to the packet loss configuration parameters to obtain target audio data packets, where the packet loss configuration parameters include a packet loss period and a packet loss quantity;

[0116] A broadcast module 902, configured to broadcast the target audio data packets, so that other wireless devices use a packet loss compensation algorithm to perform packet loss compensation on the target audio data packets, and then obtain the compensated audio data and play it, where the other wireless devices are the wireless devices that receive the target audio data packets through broadcast.

[0117] In a possible implementation manner, the device further includes:

[0118] A determination module 903, configured to determine the positions of the packet loss quantity of packet loss in each packet loss period;

[0119] The configuration module 901 is specifically configured to:

[0120] Discard the audio data packets at the packet loss positions in the packet loss period to obtain the target audio data packets.

[0121] In a possible implementation manner, the determination module 903 is specifically configured to:

[0122] In the packet loss period, set the number of audio data packets with the same interval between two adjacent packet loss positions to be the same.

[0123] In a possible implementation manner, the determination module 903 is specifically configured to:

[0124] In the packet loss period, use the positions of the packet loss quantity of consecutive audio data packets as the packet loss positions.

[0125] In a possible implementation manner, the determination module 903 is specifically configured to:

[0126] Arbitrarily select the positions of the packet loss quantity of audio data packets from the positions of the audio data packets in the packet loss period;

[0127] Use the position of the selected audio data packet as the packet loss position.

[0128] In a possible implementation, the packet loss period is one audio transmission period among multiple audio transmission periods, and the interval between adjacent packet loss periods is N audio transmission periods, where N is a natural number.

[0129] After introducing a wireless device according to an exemplary embodiment of the present disclosure, next, a wireless device according to another exemplary embodiment of the present disclosure will be introduced. Based on the same inventive concept, the packet loss compensation test method for a wireless device as described above in this application can also be implemented by a wireless device. The effects of this wireless device are similar to those of the foregoing method and apparatus, and will not be elaborated here.

[0130] As Figure 11 shown, it is a structural diagram of a wireless device provided by an embodiment of the present application. The wireless device includes at least one processor 1001; and a memory 1002 communicatively connected to the at least one processor; wherein, the memory 1002 stores program instructions executed by the at least one processor 1001;

[0131] The processor 1001 is configured to call the program instructions stored in the memory 1002 and execute the following steps according to the obtained program:

[0132] Configure the audio data packets to be sent in each audio transmission period according to the packet loss configuration parameters to obtain target audio data packets, where the packet loss configuration parameters include a packet loss period and a packet loss quantity;

[0133] Broadcast the target audio data packets so that other wireless devices use a packet loss compensation algorithm to perform packet loss compensation on the target audio data packets, and then obtain compensated audio data and play it, where the other wireless devices are wireless devices that receive the target audio data packets through broadcasting.

[0134] In a possible implementation, the processor 1001 is further configured to:

[0135] Determine the packet loss positions of the packet loss quantity in each packet loss period;

[0136] Specifically, the processor 1001 is configured to:

[0137] Discard the audio data packets at the packet loss positions in the packet loss period to obtain the target audio data packets.

[0138] In a possible implementation, the processor 1001 is specifically configured to:

[0139] In the packet loss period, set the number of audio data packets between adjacent two packet loss positions to be the same.

[0140] In a possible implementation, the processor 1001 is specifically configured to:

[0141] During the packet loss period, use the positions of the packet loss number of consecutive audio data packets as the packet loss positions.

[0142] In a possible implementation, the processor 1001 is specifically configured to:

[0143] Arbitrarily select the positions of the packet loss number of audio data packets from the positions of the audio data packets in the packet loss period;

[0144] Use the selected positions of the audio data packets as the packet loss positions.

[0145] In a possible implementation, the packet loss period is one audio transmission period among multiple audio transmission periods, and the interval between adjacent packet loss periods is N audio transmission periods, where N is a natural number.

[0146] Based on the same general inventive concept, the packet loss compensation test method for a wireless device and the wireless device as described above in the present disclosure can also be implemented by a packet loss compensation test system for a wireless device. The effect of the packet loss compensation test system for a wireless device is similar to that of the foregoing method, and will not be elaborated here.

[0147] As Figure 12 shown, it is a structural diagram of a packet loss compensation test system for a wireless device provided by an embodiment of the present application. The system includes a wireless device 1101 and another wireless device 1102:

[0148] The wireless device 1101 is configured to configure the to-be-transmitted audio data packets in each audio transmission period according to the packet loss configuration parameters to obtain target audio data packets, where the packet loss configuration parameters include a packet loss period and a packet loss number, and broadcast the target audio data packets, so that after another wireless device 1102 uses a packet loss compensation algorithm to perform packet loss compensation on the target audio data packets, the compensated audio data is obtained and played, where the other wireless device is a wireless device that receives the target audio data packets through broadcast.

[0149] Another wireless device 1102 is configured to receive the target audio data packets through broadcast, use a packet loss compensation algorithm to perform packet loss compensation on the target audio data packets, obtain the compensated audio data, and play it.

[0150] After another wireless device 1102 performs packet loss compensation on the audio data packets and plays the audio, testers can test the packet loss compensation of another wireless device 1102 according to the audio played by another wireless device 1102.

[0151] In one embodiment, the wireless device 1101 is further configured to:

[0152] Determine the number of packet losses and the packet loss positions in each packet loss period;

[0153] Specifically, the wireless device 1101 is configured to:

[0154] Discard the audio data packets at the packet loss positions in the packet loss period to obtain the target audio data packets.

[0155] In one embodiment, the wireless device 1101 is specifically configured to:

[0156] In the packet loss period, set the same number of audio data packets between two adjacent packet loss positions.

[0157] In one embodiment, the wireless device 1101 is specifically configured to:

[0158] In the packet loss period, use the positions of the consecutive audio data packets equal to the number of packet losses as the packet loss positions.

[0159] In one embodiment, the wireless device 1101 is specifically configured to:

[0160] Arbitrarily select the positions of the audio data packets equal to the number of packet losses from the positions of the audio data packets in the packet loss period; use the selected positions of the audio data packets as the packet loss positions.

[0161] In a specific implementation, a packet loss compensation test system for a wireless device provided in an embodiment of the present application may include multiple other wireless devices. As Figure 13 shown, the wireless device 1101 configures the audio data packets to be sent according to configuration parameters, and after obtaining the target audio data packets, broadcasts the target audio data packets. After receiving the target audio data packets through the broadcast, other wireless device 1, other wireless device 2... other wireless device m play them respectively, so as to test the packet loss compensation of m other wireless devices, where m is a positive integer greater than or equal to 2.

[0162] A packet loss compensation test method and a wireless device provided by an embodiment of the present application. The wireless device first configures the audio data packets to be sent in each audio transmission cycle according to the packet loss configuration parameters to obtain target audio data packets. The packet loss configuration parameters include a packet loss cycle and a packet loss quantity. Then, the target audio data packets are broadcast so that other wireless devices use a packet loss compensation algorithm to perform packet loss compensation on the target audio data packets, obtain the compensated audio data, and play it. The other wireless devices are the wireless devices that receive the target audio data packets through the broadcast. In the embodiment of the present application, the audio data packets to be sent in each audio transmission cycle are configured according to the packet loss configuration parameters to obtain target audio data packets, and the audio data packets are broadcast to simulate the packet loss situation in a real environment, so that other wireless devices use a packet loss compensation algorithm to perform packet loss compensation on the target audio data packets, obtain the compensated audio data and play it. Compared with testing in an open office environment, the randomness of the test can be reduced, the stability of the test can be improved, and thus the packet loss compensation test effect can be improved.

[0163] The present application is described above with reference to the block diagrams and / or flowcharts showing methods, apparatuses (systems) and / or computer program products according to embodiments of the present application. It should be understood that one block of the block diagrams and / or flowcharts and combinations of blocks in the block diagrams and / or flowcharts can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, and / or other programmable data processing devices to produce a machine, so that the instructions executed by the computer processor and / or other programmable data processing devices create a method for implementing the functions / actions specified in the blocks of the block diagrams and / or flowcharts.

[0164] Correspondingly, the present application can also be implemented by hardware and / or software (including firmware, resident software, microcode, etc.). Further, the present application can take the form of a computer program product on a computer-usable or computer-readable storage medium, which has computer-usable or computer-readable program code implemented in the medium for use by or in connection with an instruction execution system. In the context of the present application, the computer-usable or computer-readable medium can be any medium that can contain, store, communicate, transmit, or convey a program for use by or in connection with an instruction execution system, apparatus, or device.

[0165] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention is also intended to include these changes and modifications.

Claims

1. A packet loss compensation test method for a wireless device, characterized in that, The method includes: The wireless device configures the audio data packets to be sent in each audio transmission period according to the packet loss configuration parameters to obtain target audio data packets, where the packet loss configuration parameters include a packet loss period and a packet loss quantity. The wireless device broadcasts the target audio data packets so that other wireless devices use a packet loss compensation algorithm to perform packet loss compensation on the target audio data packets, and then obtain compensated audio data and play it, where the other wireless devices are wireless devices that receive the target audio data packets through the broadcast.

2. The method according to claim 1, wherein The method further includes: The wireless device determines the positions of the packet loss quantity of packets lost in each packet loss period. The wireless device configures the audio data packets to be sent in each audio transmission period according to the packet loss configuration parameters to obtain target audio data packets, including: The wireless device discards the audio data packets at the packet loss positions in the packet loss period to obtain the target audio data packets.

3. The method according to claim 2, wherein The wireless device determines the positions of the packet loss quantity of packets lost in each packet loss period, including: The wireless device sets the same number of audio data packets between two adjacent packet loss positions in the packet loss period.

4. The method according to claim 2, wherein The wireless device determines the positions of the packet loss quantity of packets lost in each packet loss period, including: The wireless device uses the positions of the packet loss quantity of consecutive audio data packets in the packet loss period as the packet loss positions.

5. The method according to claim 2, wherein The wireless device determines the packet loss positions in each packet loss period based on the packet loss quantity, including: The wireless device arbitrarily selects the positions of the packet loss quantity of audio data packets from the positions of the audio data packets in the packet loss period. The wireless device uses the selected positions of the audio data packets as the packet loss positions.

6. The method according to any one of claims 1 to 5, characterized in that The packet loss period is one audio transmission period among multiple audio transmission periods, and the adjacent packet loss periods are separated by N audio transmission periods, where N is a natural number.

7. A wireless device, characterized in that, The device includes: A configuration module, configured to configure the audio data packets to be sent in each audio transmission period according to the packet loss configuration parameters to obtain target audio data packets, where the packet loss configuration parameters include a packet loss period and a packet loss quantity. A broadcast module, configured to broadcast the target audio data packets so that other wireless devices use a packet loss compensation algorithm to perform packet loss compensation on the target audio data packets, and then obtain compensated audio data and play it, where the other wireless devices are wireless devices that receive the target audio data packets through the broadcast.

8. The device according to claim 7, characterized in that, The apparatus further includes: A determination module, configured to determine the positions of the packet loss quantity of packets lost in each packet loss period. The configuration module is specifically configured to: Discard the audio data packets at the packet loss positions in the packet loss period to obtain the target audio data packets.

9. The device according to claim 8, characterized in that, The determination module is specifically configured to: Set the same number of audio data packets between two adjacent packet loss positions in the packet loss period.

10. The device according to claim 8, characterized in that, The determination module is specifically configured to: Use the positions of the packet loss quantity of consecutive audio data packets in the packet loss period as the packet loss positions.

11. The device according to claim 8, characterized in that, The determination module is specifically configured to: Arbitrarily select the positions of the packet loss quantity of audio data packets from the positions of the audio data packets in the packet loss period. Take the position of the selected audio data packet as the packet loss position.

12. The device according to any one of claims 7 to 11, characterized in that, The packet loss period is one audio transmission period among multiple audio transmission periods, and the interval between adjacent packet loss periods is N audio transmission periods, where N is a natural number.

13. A wireless device, characterized in that, It includes: A memory and a processor; The memory is used to store program instructions; The processor is used to call the program instructions stored in the memory and execute the packet loss compensation test method of the wireless device according to any one of claims 1 to 6 according to the obtained program.

14. A packet loss compensation test system for a wireless device, characterized in that, The system includes a wireless device and other wireless devices: The wireless device is used to configure the audio data packet to be sent in each audio transmission period according to the packet loss configuration parameters to obtain a target audio data packet, where the packet loss configuration parameters include a packet loss period and a packet loss quantity; and broadcast the target audio data packet. The other wireless device is used to receive the target audio data packet through broadcast, perform packet loss compensation on the target audio data packet by using a packet loss compensation algorithm, obtain the compensated audio data, and play it.