CN112437418A - TWS device communication data configuration method, device, equipment, chip and medium - Google Patents

TWS device communication data configuration method, device, equipment, chip and medium Download PDF

Info

Publication number
CN112437418A
CN112437418A CN202010690364.2A CN202010690364A CN112437418A CN 112437418 A CN112437418 A CN 112437418A CN 202010690364 A CN202010690364 A CN 202010690364A CN 112437418 A CN112437418 A CN 112437418A
Authority
CN
China
Prior art keywords
tws
data
communication
sensitivity
audio data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010690364.2A
Other languages
Chinese (zh)
Other versions
CN112437418B (en
Inventor
劳铜霭
蔡秉铨
桑耀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Jieli Technology Co Ltd
Original Assignee
Zhuhai Jieli Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuhai Jieli Technology Co Ltd filed Critical Zhuhai Jieli Technology Co Ltd
Priority to CN202010690364.2A priority Critical patent/CN112437418B/en
Publication of CN112437418A publication Critical patent/CN112437418A/en
Application granted granted Critical
Publication of CN112437418B publication Critical patent/CN112437418B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/06Receivers
    • H04B1/10Means associated with receiver for limiting or suppressing noise or interference
    • H04B1/1027Means associated with receiver for limiting or suppressing noise or interference assessing signal quality or detecting noise/interference for the received signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/06Receivers
    • H04B1/10Means associated with receiver for limiting or suppressing noise or interference
    • H04B1/1027Means associated with receiver for limiting or suppressing noise or interference assessing signal quality or detecting noise/interference for the received signal
    • H04B2001/1045Adjacent-channel interference

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a TWS device communication data configuration method, a TWS device communication data configuration device, a TWS device communication data configuration chip and a TWS device communication data configuration medium, wherein the TWS device communication data configuration method comprises the following steps: the method comprises the steps that TWS main equipment obtains adjustment parameters in communication data communicated with terminal equipment, wherein the adjustment parameters at least comprise data receiving and sending sensitivity and communication frequency points; if the communication signal intensity is not within the preset signal intensity range, acquiring communication data after adjusting the data transceiving sensitivity, and otherwise, calculating the packet error rate of the data packet received by the TWS main equipment according to the packet error information; if the packet error rate is less than the preset error rate, sending the current adjustment parameter to the TWS slave equipment so that the TWS master equipment and the TWS slave equipment work under the same adjustment parameter; and if the error packet rate is greater than or equal to the error rate, acquiring communication data after adjusting the communication frequency point. The invention enables the TWS master device and the TWS slave device to receive the same amount of data, and improves the success rate of solving the adjacent channel interference.

Description

TWS device communication data configuration method, device, equipment, chip and medium
Technical Field
The invention relates to the technical field of communication, in particular to a TWS (two way communication) equipment communication data configuration method and device, TWS (two way communication) main equipment, a chip and a computer readable storage medium.
Background
With the popularization of the Bluetooth technology, many people are now used to listen to music by using Bluetooth devices such as Bluetooth earphones and Bluetooth sound boxes, the multichannel analog stereo technology is applied to the advanced audio of the Bluetooth earphones and the Bluetooth sound boxes to truly reproduce the sound of an original sound field, and a better listening effect can be brought to listeners. Advanced audio of a bluetooth TWS (True Wireless Stereo) is to connect different channels between a master bluetooth device and a slave bluetooth device through bluetooth, so that the different channels play the same audio file. When the distance between the master TWS bluetooth device and the slave TWS bluetooth device is relatively close, there may be situations where the data packets received by the master TWS bluetooth device and the slave TWS bluetooth device are different, such as adjacent channel interference of audio signals, and situations where the data packets received by the master TWS bluetooth device and the slave TWS bluetooth device and/or the data packets sent by the master TWS bluetooth device and the slave TWS bluetooth device are abnormal, which may cause the numbers of audio data packets received by the master TWS bluetooth device and the slave TWS bluetooth device to be inconsistent, thereby causing the TWS bluetooth device to play song katon.
At present, the adjacent channel interference is generally handled by Automatic Gain Control (AGC) through hardware, and the AGC is an Automatic Control method for automatically adjusting the Gain of an amplifying circuit according to the signal intensity. Therefore, the existing adjacent channel interference is processed through AGC, the processing mode is single, the success rate of solving the adjacent channel interference is low, and the existing main TWS Bluetooth device and the existing auxiliary TWS Bluetooth device respectively adopt AGC to process the adjacent channel interference, so that the consistency of the adjacent channel interference processing results of the main TWS Bluetooth device and the auxiliary TWS Bluetooth device cannot be ensured, and the problem of large difference of data quantity between two sides of received data of the main TWS device and the auxiliary TWS device cannot be solved.
Disclosure of Invention
Based on the above situation, a primary objective of the present invention is to provide a TWS device communication data configuration method, an apparatus, a TWS master device, a chip, and a computer-readable storage medium, so as to solve the technical problems that the adjacent channel interference solution success rate is low, and the difference between the data amounts received by the TWS master device and the TWS slave device is large.
In order to achieve the purpose, the technical scheme adopted by the invention is as follows:
a TWS device communication data configuration method includes the following steps:
s100, the TWS main equipment acquires communication data communicated with the terminal equipment, wherein the communication data comprises data parameters and adjusting parameters, the data parameters at least comprise communication signal intensity and data packet error information, and the adjusting parameters at least comprise data transceiving sensitivity and communication frequency points;
s200, judging whether the communication signal intensity is within a preset signal intensity range; if the communication signal strength is not within the signal strength range, executing step S300; if the communication signal strength is within the signal strength range, executing step S400;
s300, adjusting the data transceiving sensitivity, and executing the step S100 after adjusting the data transceiving sensitivity;
s400, calculating the packet error rate of the data packet received by the TWS main equipment according to the packet error information, and judging whether the packet error rate is less than a preset error rate; if the error rate is greater than or equal to the error rate, executing step S500; if the packet error rate is less than the error rate, executing step S600;
s500, adjusting the communication frequency point, and executing the step S100 after adjusting the communication frequency point;
and S600, when the data parameters all meet preset conditions, keeping the adjustment parameters in the current communication data of the TWS master device, and sending the kept adjustment parameters to the TWS slave device, wherein the TWS slave device carries out adjustment according to the adjustment parameters sent by the TWS master device, so that the TWS master device and the TWS slave device work under the same adjustment parameters.
Preferably, in step S500, the step of adjusting the communication frequency point includes:
determining interfered target frequency points in the communication frequency points, and sequencing the target frequency points from large to small according to the interference degree to obtain sequenced target frequency points;
and determining the number of the frequency points to be discarded according to the packet error rate, discarding the target frequency points from front to back according to the number of the frequency points in the sequenced target frequency points, and taking the rest communication frequency points as communication frequency points for receiving data.
Preferably, the data parameter of the communication data further includes an unprocessed audio data amount currently stored by the TWS master device, the adjustment parameter of the communication data further includes a play code stream, and if the packet error rate is smaller than the error rate, step S700 is executed;
s700, judging whether the audio data volume is within a preset data volume range; if the audio data volume is within the data volume range, executing step S600; if the audio data volume is not within the data volume range, executing step S800;
s800, adjusting the playing code stream of the audio data played by the TWS main device, and executing the step S600 after adjusting the playing code stream.
Preferably, in step S800, the step of adjusting the play code stream of the TWS master device for playing the audio data includes:
s810, judging whether the audio data volume is larger than the upper limit value of the data volume range or smaller than the lower limit value of the data volume range; if the audio data amount is greater than the upper limit value, performing step S820; if the audio data amount is smaller than the lower limit value, executing step S830;
s820, calculating a first difference between the audio data volume and the upper limit value, dividing the first difference by the upper limit value to obtain an exceeding ratio of the audio data volume exceeding the data volume range, and increasing a playing code stream of the TWS main equipment for playing the audio data according to the exceeding ratio;
and S830, calculating a second difference value between the lower limit value and the audio data amount, dividing the second difference value by the lower limit value to obtain a low-out ratio value of the audio data amount lower than the data amount range, and reducing a playing code stream of the TWS main equipment for playing the audio data according to the low-out ratio value.
Preferably, in step S300, the step of adjusting the data transceiving sensitivity includes:
s310, acquiring target sensitivity corresponding to the TWS main equipment, and judging whether the data transceiving sensitivity is smaller than the target sensitivity or larger than the target sensitivity; if the data transceiving sensitivity is less than the target sensitivity, performing step S320; if the data transceiving sensitivity is greater than the target sensitivity, executing step S330;
s320, improving the data receiving and transmitting sensitivity to the target sensitivity;
and S330, reducing the data transceiving sensitivity to the target sensitivity.
Preferably, in the step S100, the step of acquiring the communication signal strength of the communication between the TWS master device and the terminal device includes:
the method comprises the steps of obtaining the intensity of communication signals detected within a preset time length, and selecting a preset number of communication signal intensities from the obtained communication signal intensities;
and calculating the average value of the communication signal intensities of the preset number, and taking the average value as the communication signal intensity of the communication between the TWS main equipment and the terminal equipment.
The invention also provides a TWS device communication data configuration device, which is applied to the TWS main device, and the TWS device communication data configuration device comprises:
the TWS comprises an acquisition module, a data transmission module and a data transmission module, wherein the acquisition module is used for acquiring communication data communicated between TWS main equipment and terminal equipment, the communication data comprises data parameters and adjustment parameters, the data parameters at least comprise communication signal intensity and data packet error information, and the adjustment parameters at least comprise data receiving and transmitting sensitivity and communication frequency points;
the first judging module is used for judging whether the communication signal intensity is within a preset signal intensity range or not;
the adjusting module is used for adjusting the data transceiving sensitivity when the judging result of the first judging module is negative, and acquiring communication data communicated with the terminal equipment after the data transceiving sensitivity is adjusted;
the calculating module is used for calculating the packet error rate of the data packet received by the TWS main equipment according to the packet error information when the judgment result of the first judging module is yes;
the second judgment module is used for judging whether the packet error rate is smaller than a preset error rate or not;
the adjusting module is further used for adjusting the communication frequency point when the judgment result of the second judging module is negative, and acquiring communication data communicated with the terminal equipment after the communication frequency point is adjusted;
and the sending module is used for keeping the adjustment parameters in the current communication data of the TWS master device when the data parameters all meet the preset conditions, and sending the kept adjustment parameters to the TWS slave device so that the TWS slave device can adjust according to the adjustment parameters sent by the TWS master device, and the TWS master device and the TWS slave device can work under the same adjustment parameters.
Preferably, the adjusting module comprises:
the sequencing unit is used for determining interfered target frequency points in the communication frequency points and sequencing the target frequency points from large to small according to the interference degree to obtain sequenced target frequency points;
and the discarding unit is used for determining the frequency point number of the frequency point to be discarded according to the packet error rate, discarding the target frequency point from front to back according to the frequency point number in the sequenced target frequency point, and taking the rest communication frequency point as the communication frequency point for receiving data.
Preferably, the data parameter of the communication data further includes an unprocessed audio data amount currently stored by the TWS master device, the adjustment parameter of the communication data further includes a play code stream, and the TWS device communication data configuration apparatus further includes:
the third judging module is used for judging whether the audio data volume is within a preset data volume range or not when the judging result of the second judging module is yes;
the adjusting module is further configured to adjust a play code stream of the TWS main device for playing the audio data when the determination result of the third determining module is negative.
Preferably, the adjusting module comprises:
a first judgment unit operable to judge whether the audio data amount is larger than an upper limit value of the data amount range or smaller than a lower limit value of the data amount range;
a ratio calculation unit, configured to calculate a first difference between the audio data amount and the upper limit value when the determination result of the first determination unit is that the audio data amount is greater than the upper limit value, and divide the first difference by the upper limit value to obtain an excess ratio of the audio data amount exceeding the data amount range;
the first increasing unit is used for increasing the playing code stream of the audio data played by the TWS main equipment according to the exceeding ratio;
the ratio calculation unit is further configured to calculate a second difference between the lower limit and the audio data amount when the judgment result of the first judgment unit is that the audio data amount is smaller than the lower limit, and divide the second difference by the lower limit to obtain a low ratio that the audio data amount is smaller than the data amount range;
and the first reducing unit is used for reducing the playing code stream of the audio data played by the TWS main equipment according to the low-out ratio.
Preferably, the adjusting module comprises:
the sensitivity acquisition unit is used for acquiring target sensitivity corresponding to the TWS main equipment;
a second determination unit configured to determine whether the data transmission/reception sensitivity is smaller than the target sensitivity or larger than the target sensitivity;
a second increasing unit, configured to increase the data transceiving sensitivity to the target sensitivity when the determination result of the second determining unit is that the data transceiving sensitivity is smaller than the target sensitivity;
a second reducing unit, configured to reduce the data transceiving sensitivity to the target sensitivity when the determination result of the second determining unit is that the data transceiving sensitivity is greater than the target sensitivity.
The invention also provides a TWS device communication data configuration device, which is applied to TWS slave devices, and comprises:
the receiving module is used for receiving the adjusting parameters sent by the TWS equipment communication data configuration device applied to the TWS main equipment;
and an adjusting module, configured to perform adjustment according to the adjustment parameter received by the receiving module, so that the TWS slave device and the TWS master device including the TWS device communication data configuration apparatus operate under the same adjustment parameter.
The invention also provides a TWS earphone pair, which comprises a left earphone and a right earphone, wherein any one of the left earphone and the right earphone is used as a TWS master device, and the other one is used as a TWS slave device, and the TWS device communication data configuration method is realized together.
The invention also provides a chip having an integrated circuit thereon, characterized in that the integrated circuit comprises the TWS device communication data configuration apparatus as described above.
The present invention also provides a computer readable storage medium, including a first medium and a second medium, on which a TWS device communication data configuration program is stored, respectively, and when executed by a processor, the TWS device communication data configuration program implements the TWS device communication data configuration method as described above.
[ PROBLEMS ] the present invention
The method comprises the steps that communication data communicated with terminal equipment are obtained through TWS main equipment, wherein the communication data at least comprise communication signal intensity, data receiving and sending sensitivity and data packet error information; judging whether the communication signal intensity is within a preset signal intensity range or not; if the communication signal intensity is not within the signal intensity range, adjusting the data transceiving sensitivity, and re-acquiring the communication data after adjusting the data transceiving sensitivity; if the communication signal intensity is within the signal intensity range, calculating the packet error rate of the data packet received by the TWS main equipment according to the packet error information, and judging whether the packet error rate is smaller than a preset error rate or not; if the packet error rate is less than the error rate, when the data parameters all meet preset conditions, maintaining the adjustment parameters in the current communication data of the TWS master device, and sending the maintained adjustment parameters to the TWS slave device, so that the TWS slave device can adjust according to the adjustment parameters sent by the TWS master device, and the TWS master device and the TWS slave device can work under the same adjustment parameters; and if the error packet rate is greater than or equal to the error rate, the communication data is acquired again after the communication frequency point is adjusted. The method and the device have the advantages that the TWS master device and the TWS slave device communicate by using the same adjustment parameters, the TWS master device and the TWS slave device receive the same amount of data, the problem of large difference of data quantity between the data received by the TWS master device and the data received by the TWS slave device due to adjacent channel interference is solved, the TWS master device solves the adjacent channel interference problem between the TWS master device and the TWS slave device in a mode of combining a plurality of data of signal intensity, data receiving and sending sensitivity and packet error rate of received data packets, the problem that the adjacent channel interference can be solved only by using AGC is avoided, the adjacent channel interference is solved by using a plurality of data, and the success rate of solving the adjacent channel interference is improved.
Other advantages of the present invention will be described in the detailed description, and those skilled in the art will understand the technical features and technical solutions presented in the description.
Drawings
Preferred embodiments according to the present invention will be described below with reference to the accompanying drawings. In the figure:
fig. 1 is a flowchart of an embodiment of a TWS device communication data configuration method of the present invention;
fig. 2 is a schematic diagram of data communication among a TWS master device, a TWS slave device and a terminal device according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of the communication signal strength and signal strength range obtained in the embodiment of the present invention;
FIG. 4 is a schematic diagram of a circuit structure for sensitivity adjustment according to an embodiment of the present invention;
fig. 5 is a schematic diagram of communication frequency point adjustment performed by an erroneous packet in a packet received by a TWS master;
FIG. 6 is a flowchart of a TWS device communication data configuration method according to two embodiments of the present invention;
FIG. 7 is a schematic diagram of adjusting a playback code stream of the TWS host device for playing back the audio data according to the embodiment of the present invention;
fig. 8 is a schematic structural diagram of an embodiment of a TWS device communication data configuration apparatus according to the present invention.
Detailed Description
Fig. 1 is a flowchart of an embodiment of a TWS device communication data configuration method of the present invention, which includes the following steps.
Step S100, the TWS main device obtains communication data communicated with the terminal device, wherein the communication data comprises data parameters and adjusting parameters, the data parameters at least comprise communication signal intensity and data packet error information, and the adjusting parameters at least comprise data transceiving sensitivity and communication frequency points.
Specifically, referring to fig. 2, as can be seen from fig. 2, the TWS master device and the terminal device establish communication, and data transmission is performed between the TWS master device and the terminal device, while the TWS slave device listens to data transmitted between the TWS master device and the terminal device. In the embodiment, the TWS device includes, but is not limited to, a TWS headset and a TWS speaker, and the terminal device may be a smart phone, a notebook computer, a television, or the like. After the communication connection between the TWS main equipment and the terminal equipment is established, the TWS main equipment acquires communication data communicated between the TWS main equipment and the terminal equipment, wherein the communication data comprises data parameters and adjusting parameters, the data parameters at least comprise communication signal intensity and data packet error information, and the adjusting parameters at least comprise data transceiving sensitivity and communication frequency points. Note that the frequency point is a number given to a fixed frequency. It can be determined through the packet error information that the data packets transmitted between the TWS host device and the terminal device belong to erroneous data packets, and the erroneous data packets pass through the communication frequency point and are received at the time point through the error identifier, that is, the erroneous data packets carry the error identifier, which is not limited in the present embodiment. It is understood that when the TWS master device receives a packet that is sent by the terminal device as an erroneous packet, the TWS master device does not respond to the packet, or the TWS master device cannot successfully respond to the packet. The data transmitted between the TWS host device and the terminal device may include other data, such as audio data, in addition to the communication data.
Further, in the step S100, the step of acquiring the communication signal strength of the communication between the TWS master device and the terminal device includes:
step a, obtaining the communication signal intensity detected in a preset time length, and selecting a preset number of communication signal intensities in the obtained communication signal intensity.
And b, calculating the average value of the communication signal intensities of the preset number, and taking the average value as the communication signal intensity of the communication between the TWS main equipment and the terminal equipment.
Further, the process of the TWS master device acquiring the communication signal strength is as follows: in the communication process between the TWS main equipment and the terminal equipment, the TWS main equipment can detect the communication signal intensity between the TWS main equipment and the terminal equipment at regular time or in real time, and the detected communication signal intensity in the preset time length is obtained. The preset duration may be set according to specific needs, and the size of the preset duration is not specifically limited in this embodiment. After the TWS master device obtains the communication signal intensity detected in the preset time, the TWS master device selects the preset number of communication signal intensities from the obtained communication signal intensities, calculates the average value of the selected preset number of communication signal intensities, and takes the calculated average value as the communication signal intensity communicated with the terminal device, namely takes the calculated average value as the communication signal intensity in the communication data. Wherein the preset number may be set to 8, 10, 15, etc. Specifically, in the process of selecting the preset number of communication signal strengths from the acquired communication signal strengths, the TWS master device may randomly select the preset number of communication signal strengths from the acquired communication signal strengths, or may select the preset number of communication signal strengths according to a preset selection rule. For example, the selection rule may select the detected communication signal strength at a specific time point, or select a communication signal strength at a certain number of intervals. It should be noted that the distance between the TWS host device and the terminal device can be calculated by the communication signal strength, and the averaging of the communication signal strength can reflect the distance change between the TWS host device and the terminal device over a period of time, thereby adjusting the data transceiving sensitivity in the communication data.
Step S200, judging whether the communication signal intensity is within a preset signal intensity range; if the communication signal strength is not within the signal strength range, executing step S300; if the communication signal strength is within the signal strength range, step S400 is executed.
And step S300, adjusting the data transceiving sensitivity, and executing step S100 after adjusting the data transceiving sensitivity.
After the TWS master device acquires the communication data, the TWS master device determines whether the communication signal strength in the communication data is within a preset signal strength range, wherein an upper limit value and a lower limit value of the signal strength range may be set according to specific needs, for example, the lower limit value of the signal strength range may be set to-40 dBm (decibel-milliwatt), the upper limit value may be set to-30 dBm, or the lower limit value of the signal strength range may be set to-50 dBm, and the upper limit value may be set to-25 dBm. If the communication signal intensity of the TWS master device is not within the signal intensity range, the TWS master device adjusts data transceiving sensitivity in communication data to obtain adjusted data transceiving sensitivity, communicates with the terminal device according to the adjusted data transceiving sensitivity, and reacquires communication data in the communication process with the terminal device. It is to be understood that the data transceiving sensitivity in the communication data that is reacquired is the adjusted data transceiving sensitivity. Referring to fig. 3, in fig. 3, the horizontal axis represents time for detecting the intensity of the communication signal, and the vertical axis represents the intensity of the communication signal detected each time, the unit of the intensity of the communication signal being dBm (decibel-milliwatt). It should be noted that, when the communication signal strength is not within the signal strength range, the power consumption of the TWS master device for receiving and transmitting data will increase; when the communication signal strength is within the signal strength range, the TWS master device may reduce power consumption for receiving and transmitting data relative to when the communication signal strength is not within the signal strength range. When the data transceiving sensitivity is adjusted, the magnitude of the communication signal strength is changed.
Further, in step S300, the adjusting of the data transmission/reception sensitivity includes:
step S310, acquiring target sensitivity corresponding to the TWS main equipment, and judging whether the data transceiving sensitivity is smaller than the target sensitivity or larger than the target sensitivity; if the data transceiving sensitivity is less than the target sensitivity, performing step S320; if the data transceiving sensitivity is greater than the target sensitivity, step S330 is performed.
Step S320, increasing the data transceiving sensitivity to the target sensitivity.
Step S330, reducing the data transceiving sensitivity to the target sensitivity.
Specifically, the process of adjusting the data transceiving sensitivity by the TWS master device is as follows: the TWS master device acquires preset target sensitivity and judges whether data transceiving sensitivity in communication data is smaller than the target sensitivity or larger than the target sensitivity. If the TWS master device judges that the data transceiving sensitivity is smaller than the target sensitivity, the TWS master device increases the data transceiving sensitivity to the target sensitivity so that the adjusted data transceiving sensitivity is equal to the target sensitivity; if the TWS master device judges that the data transceiving sensitivity is greater than the target sensitivity, the TWS master device reduces the data transceiving sensitivity to the target sensitivity, and the adjusted data transceiving sensitivity is equal to the target sensitivity. Specifically, referring to fig. 4, fig. 4 is a schematic circuit structure diagram of sensitivity adjustment according to an embodiment of the present invention. As can be seen from fig. 4, the sensitivity adjustment circuit is composed of a capacitor C and a resistor R, the resistor may be a variable resistor, and the size of the data transceiving sensitivity is adjusted by adjusting the size of the resistance value; the size of data receiving and transmitting sensitivity can be adjusted by adjusting the current of the injection capacitor; further, the magnitude of the data transmission/reception sensitivity may be adjusted by adjusting the magnitudes of the current injected into the resistor and the capacitor at the same time.
The target sensitivity may be set in advance, or may be determined by a difference between the communication signal strength and the signal strength range in the communication data. Specifically, a signal difference between the communication signal strength and the signal strength range in the communication data is calculated, and it can be understood that, when the communication signal strength is greater than the upper limit value of the signal strength range, the communication signal strength is subtracted by the upper limit value of the signal strength range to obtain a signal difference; and when the communication signal intensity is smaller than the lower limit value of the signal intensity range, subtracting the communication signal intensity from the lower limit value of the signal intensity range to obtain a signal difference value, and determining the target sensitivity according to the signal difference value. At this time, in the TWS master device, a mapping relationship between the signal difference and the target sensitivity is stored in advance, and in the mapping relationship, one signal difference may correspond to one target sensitivity, or a plurality of signal differences may correspond to one target sensitivity.
Step S400, calculating the packet error rate of the data packet received by the TWS master device according to the packet error information, and judging whether the packet error rate is less than a preset error rate; if the error rate is greater than or equal to the error rate, executing step S500; if the error rate is less than the error rate, step S600 is performed.
S500, adjusting the communication frequency point, and executing the step S100 after adjusting the communication frequency point.
In this embodiment, the TWS host device is in frequency modulation communication, and therefore, the TWS host device may determine and count the number of erroneous packets in the data packets received from the terminal device, and also determine the communication frequency point of the currently received data packet. When the TWS master device determines that the communication signal strength in the communication data is within the signal strength range, the TWS master device calculates the packet error rate of the received packets according to the packet error information in the communication data. Specifically, when the TWS master device calculates the packet error rate, it calculates the number of packet errors belonging to the erroneous packet in a specific number of currently acquired packets, and then divides the number of packet errors by the specific number to obtain the packet error rate. If the TWS master calculates that there are 15 erroneous packets out of the currently acquired 100 packets, 15 ÷ 100 ═ 0.15, that is, the packet error rate is 0.15. After the TWS master device calculates the packet error rate, the TWS master device determines whether the packet error rate is smaller than a preset error rate, where the size of the error rate is not limited in this embodiment, and a user may set the size of the error rate according to specific needs. And if the TWS main equipment judges that the packet error rate is greater than or equal to the error rate, the TWS main equipment adjusts the communication frequency point to obtain the adjusted communication frequency point, communicates with the terminal equipment through the adjusted communication frequency point, and acquires the communication data again after the communication frequency point is adjusted.
Further, in step S500, the step of adjusting the communication frequency point includes:
and c, determining the interfered target frequency points in the communication frequency points, and sequencing the target frequency points from large to small according to the interference degree to obtain the sequenced target frequency points.
Further, the process of the TWS master device adjusting the communication frequency point is as follows: and the TWS main equipment determines the interfered communication frequency point in the communication frequency points and takes the interfered communication frequency point as a target frequency point. Specifically, the factors disturbing the communication frequency point include environment, antenna, WiFi, and the like. When the data packet received by a certain communication frequency point has an error data packet, the communication frequency point is judged to be interfered. After the TWS master device determines the target frequency point, the TWS master device sorts the target frequency point from large to small according to the interference degree to obtain the sorted target frequency point. Specifically, the number of error data packets in data packets received by each target frequency point within the same time is calculated, and the larger the number of error data packets is, the larger the interference degree of the target frequency point is; and calculating the packet error rate corresponding to the data packet received by each target frequency point in the same time, wherein the larger the packet error rate is, the larger the interference degree of the target frequency point is.
And d, determining the number of the frequency points to be discarded according to the packet error rate, discarding the target frequency points from front to back according to the number of the frequency points in the sequenced target frequency points, and taking the rest communication frequency points as communication frequency points for receiving data.
The TWS main device determines the number of the frequency points to be discarded according to the packet error rate, wherein the packet error rate is obtained by calculating according to the packet error information of the data packet and is the integral packet error rate of the data packet received by the TWS main device. In this embodiment, a mapping relationship between the packet error rate and the number of frequency points of the frequency point to be discarded may be preset, and in the mapping relationship, the larger the packet error rate is, the larger the number of frequency points of the frequency point to be discarded is. And after the TWS main equipment determines the number of the frequency points, the TWS main equipment discards the target frequency points from front to back in the sequenced target frequency points according to the number of the frequency points, and uses the remaining communication frequency points as communication frequency points for receiving data. It can be understood that the number of discarded target frequency points is equal to the determined number of frequency points. In other embodiments, after the TWS master device determines the interfered target frequency points, the TWS master device may also sequence the target frequency points according to the interference degree from small to large to obtain the sequenced target frequency points, then discard the target frequency points from back to front in the sequenced target frequency points according to the number of frequency points, and use the remaining communication frequency points as communication frequency points for receiving data.
Referring to fig. 5, for example, in the communication channel 2402 and 2480, the TWS master device and the terminal device use 30 communication frequency points (including other communication frequency points such as 2440), and determine the interference degree of each communication frequency point by calculating the number of error data packets in the data packets received by each communication frequency point within the time T. For example, when the communication data includes the interference strength of the 30 communication frequency points, 10 of the communication frequency points are the strongest interference. Therefore, when the TWS master determines that the packet error rate of the receiving terminal device is more than 10% and less than 20%, the TWS master discards 5 communication frequency points of the 10 communication frequency points with the strongest interference; when the TWS master device determines that the packet error rate of the receiving terminal device is above 20%, the TWS master device discards 8 communication frequency points of the 10 communication frequency points with the strongest interference, so as to ensure that the packet error rate of the communication is in the lowest state.
And S600, when the data parameters all meet preset conditions, keeping the adjustment parameters in the current communication data of the TWS master device, and sending the kept adjustment parameters to the TWS slave device, wherein the TWS slave device adjusts according to the adjustment parameters sent by the TWS master device, so that the TWS master device and the TWS slave device work under the same adjustment parameters.
And if the TWS master device judges that the packet error rate is less than the error rate, the TWS master device keeps the adjustment parameters in the current communication data of the TWS master device when the data parameters all meet the preset conditions. It can be understood that, when the packet error rate is less than the error rate, it indicates that the packet error information of the data packet satisfies the predetermined condition, and when the packet error rate is less than the error rate, the communication signal strength is inevitably within the predetermined strength range, that is, the communication signal strength satisfies the corresponding predetermined condition.
And after the TWS master device establishes communication connection with the TWS slave device, the TWS master device sends the maintained adjustment parameters to the TWS slave device. When the TWS slave device receives the adjustment parameter, the TWS slave device adjusts the adjustment parameter to be the same as the received adjustment parameter, so that the TWS master device and the TWS slave device operate under the same adjustment parameter. Specifically, after receiving the adjustment parameter, the TWS slave device determines whether the current adjustment parameter is consistent with the received adjustment parameter, and adjusts the adjustment parameter inconsistent with the received adjustment parameter to be consistent with the received adjustment parameter, and if the current adjustment parameter is consistent with the received adjustment parameter, no adjustment is required.
In this embodiment, communication data communicated with a terminal device is acquired through a TWS master device, where the communication data at least includes communication signal strength, data transceiving sensitivity, and packet error information; judging whether the communication signal intensity is within a preset signal intensity range or not; if the communication signal intensity is not within the signal intensity range, adjusting the data transceiving sensitivity, and re-acquiring the communication data after adjusting the data transceiving sensitivity; if the communication signal intensity is within the signal intensity range, calculating the packet error rate of the data packet received by the TWS main equipment according to the packet error information, and judging whether the packet error rate is smaller than a preset error rate or not; if the packet error rate is less than the error rate, when the data parameters all meet preset conditions, maintaining the adjustment parameters in the current communication data of the TWS master device, and sending the maintained adjustment parameters to the TWS slave device, so that the TWS slave device can adjust according to the adjustment parameters sent by the TWS master device, and the TWS master device and the TWS slave device can work under the same adjustment parameters; and if the error packet rate is greater than or equal to the error rate, the communication data is acquired again after the communication frequency point is adjusted. The method and the device have the advantages that the TWS master device and the TWS slave device communicate by using the same adjustment parameters, the TWS master device and the TWS slave device receive the same amount of data, the problem of large difference of data quantity between the data received by the TWS master device and the data received by the TWS slave device due to adjacent channel interference is solved, the TWS master device solves the adjacent channel interference problem between the TWS master device and the TWS slave device in a mode of combining a plurality of data of signal intensity, data receiving and sending sensitivity and packet error rate of received data packets, the problem that the adjacent channel interference can be solved only by using AGC is avoided, the adjacent channel interference is solved by using a plurality of data, and the success rate of solving the adjacent channel interference is improved.
Further, a second embodiment of the TWS device communication data configuration method of the present invention is proposed.
The second embodiment of the TWS device communication data configuration method differs from the above-mentioned TWS device communication data configuration method in that, referring to fig. 6, the data parameters of the communication data further include the unprocessed audio data amount currently stored by the TWS master device, the adjustment parameters of the communication data further include a play code stream, and if the packet error rate is smaller than the error rate, step S700 is executed:
step S700, judging whether the audio data volume is within a preset data volume range; if the audio data volume is within the data volume range, executing step S600; if the audio data amount is not within the data amount range, step S800 is executed.
In this embodiment, the data parameter of the communication data further includes an unprocessed audio data amount currently stored by the TWS host device, and the parameter adjustment further includes a play code stream. If the TWS master device determines that the packet error rate is smaller than the error rate, the TWS master device determines whether the audio data volume is within a preset data volume range, where an upper limit and a lower limit of the data volume range are preset by a user, and the upper limit and the lower limit of the data volume range are not specifically limited in this embodiment. If the TWS master device determines that the audio data amount is within the preset data amount range, the TWS master device keeps the adjustment parameters in the current communication data when the adjustment parameters all meet preset conditions, and sends the kept adjustment parameters to the TWS slave device, so that the TWS slave device adjusts according to the adjustment parameters sent by the TWS master device, and the TWS master device and the TWS slave device operate under the same adjustment parameters.
Step S800, adjusting the playing code stream of the audio data played by the TWS main equipment, and executing step S600 after adjusting the playing code stream.
Further, in step S800, the step of adjusting the play code stream of the TWS master device for playing the audio data includes:
step S810, judging whether the audio data volume is larger than the upper limit value of the data volume range or smaller than the lower limit value of the data volume range; if the audio data amount is greater than the upper limit value, performing step S820; if the audio data amount is smaller than the lower limit value, step S830 is performed.
Step S820, calculating a first difference between the audio data amount and the upper limit, dividing the first difference by the upper limit to obtain an exceeding ratio of the audio data amount exceeding the data amount range, and increasing a play code stream of the TWS main device playing the audio data according to the exceeding ratio.
Step S830, calculating a second difference between the lower limit value and the audio data amount, dividing the second difference by the lower limit value to obtain a low-out ratio value of the audio data amount lower than the data amount range, and reducing a play code stream of the TWS main device for playing the audio data according to the low-out ratio value.
Further, if the TWS master device determines that the audio data amount is not within the data amount range, the TWS master device adjusts the playing code stream of the playing audio data amount, maintains the adjustment parameter in the current communication data after adjusting the playing code stream, and sends the maintained adjustment parameter to the TWS slave device, that is, when the adjustment parameters all satisfy the preset condition, the maintained adjustment parameter is sent to the TWS slave device, so that the TWS slave device adjusts according to the adjustment parameter sent by the TWS master device, and the TWS master device and the TWS slave device operate under the same adjustment parameter. Specifically, the TWS master device determines whether the audio data amount is larger than the upper limit value of the data amount range or smaller than the lower limit value of the data amount range. If the TWS master equipment judges that the audio data volume is larger than the upper limit value, the TWS master equipment subtracts the upper limit value from the audio data volume, calculates to obtain a first difference value between the audio data volume and the upper limit value, divides the first difference value by the upper limit value to obtain an exceeding ratio of the audio data volume exceeding the data volume range, and improves a playing code stream for playing the audio data according to the exceeding ratio; if the audio data volume of the TWS main equipment is smaller than the lower limit value, the TWS main equipment subtracts the audio data volume from the lower limit value, calculates to obtain a second difference value between the lower limit value and the audio data volume, divides the second difference value by the lower limit value to obtain a low-out ratio of the audio data volume lower than the data volume range, and reduces the playing code stream of the audio data according to the low-out ratio. If the exceeding ratio is 10%, the TWS main equipment increases the playing code stream by 10%, namely increases the playing speed by 10%; when the lower ratio is not 10%, the TWS master device will reduce the play code stream by 10%, i.e. reduce the play speed by 10%. Specifically, referring to fig. 7, fig. 7 is a schematic diagram of a play code stream for adjusting the amount of audio data played by the TWS host device according to an embodiment of the present invention. The excessive amount of audio data in fig. 7 indicates that the amount of audio data is larger than the upper limit of the data amount range, and the small amount of audio data indicates that the amount of audio data is smaller than the upper limit of the data amount range.
In this embodiment, when the packet error rate is smaller than the error rate, it is further determined whether the audio data amount is within the preset amount range, and if the audio data amount is not within the data amount range, the TWS master device is further adjusted to play the play code stream of the audio data amount, and after the play code stream is adjusted, the adjustment parameter is reacquired and sent to the TWS slave device, so that the communication data of the TWS master device and the TWS slave device are kept consistent. The method and the device realize that the adjacent channel interference problem between the TWS master device and the TWS slave device is solved by increasing the audio data amount on the basis of the first embodiment, further reduce the data amount difference between the data received by the two sides of the TWS master device and the TWS slave device, and further improve the success rate of the adjacent channel interference solution.
The present invention also provides a TWS device communication data configuration apparatus, which is applied to a TWS host device, and with reference to fig. 8, the TWS device communication data configuration apparatus includes:
an obtaining module 10, configured to obtain communication data of communication between a TWS main device and a terminal device, where the communication data includes data parameters and adjustment parameters, the data parameters at least include communication signal strength and data packet error information, and the adjustment parameters at least include data transceiving sensitivity and communication frequency points;
a first judging module 20, configured to judge whether the communication signal strength is within a preset signal strength range;
the adjusting module 30 is configured to adjust the data transceiving sensitivity if the determination result of the first determining module is negative, and acquire communication data communicated with the terminal device after adjusting the data transceiving sensitivity;
a calculating module 40, configured to calculate, when the determination result of the first determining module is yes, an error packet rate of the data packet received by the TWS host device according to the data packet error packet information;
a second determining module 50, configured to determine whether the packet error rate is smaller than a preset error rate;
the adjusting module 30 is further configured to adjust the communication frequency point if the determination result of the second determining module is negative, and obtain communication data communicated with the terminal device after adjusting the communication frequency point;
a sending module 60, configured to, when the data parameters all meet preset conditions, maintain an adjustment parameter in current communication data of the TWS master device, and send the maintained adjustment parameter to the TWS slave device, so that the TWS slave device adjusts according to the adjustment parameter sent by the TWS master device, and the TWS master device and the TWS slave device operate under the same adjustment parameter.
Further, the adjusting module 30 includes:
the sequencing unit is used for determining interfered target frequency points in the communication frequency points and sequencing the target frequency points from large to small according to the interference degree to obtain sequenced target frequency points;
and the discarding unit is used for determining the frequency point number of the frequency point to be discarded according to the packet error rate, discarding the target frequency point from front to back according to the frequency point number in the sequenced target frequency point, and taking the rest communication frequency point as the communication frequency point for receiving data.
Further, the data parameters of the communication data further include the amount of unprocessed audio data currently stored by the TWS master device, the adjustment parameters of the communication data further include a play code stream, and the TWS device communication data configuration apparatus further includes:
the third judging module is used for judging whether the audio data volume is within a preset data volume range or not when the judging result of the second judging module is yes;
the adjusting module 30 is further configured to adjust a play code stream of the TWS main device for playing the audio data when the determination result of the third determining module is negative.
Further, the adjusting module 30 includes:
a first judgment unit operable to judge whether the audio data amount is larger than an upper limit value of the data amount range or smaller than a lower limit value of the data amount range;
a ratio calculation unit, configured to calculate a first difference between the audio data amount and the upper limit value when the determination result of the first determination unit is that the audio data amount is greater than the upper limit value, and divide the first difference by the upper limit value to obtain an excess ratio of the audio data amount exceeding the data amount range;
the first increasing unit is used for increasing the playing code stream of the audio data played by the TWS main equipment according to the exceeding ratio;
the ratio calculation unit is further configured to calculate a second difference between the lower limit and the audio data amount when the judgment result of the first judgment unit is that the audio data amount is smaller than the lower limit, and divide the second difference by the lower limit to obtain a low ratio that the audio data amount is smaller than the data amount range;
and the first reducing unit is used for reducing the playing code stream of the audio data played by the TWS main equipment according to the low-out ratio.
Further, the adjusting module 30 includes:
the sensitivity acquisition unit is used for acquiring target sensitivity corresponding to the TWS main equipment;
a second determination unit configured to determine whether the data transmission/reception sensitivity is smaller than the target sensitivity or larger than the target sensitivity;
a second increasing unit, configured to increase the data transceiving sensitivity to the target sensitivity when the determination result of the second determining unit is that the data transceiving sensitivity is smaller than the target sensitivity;
a second reducing unit, configured to reduce the data transceiving sensitivity to the target sensitivity when the determination result of the second determining unit is that the data transceiving sensitivity is greater than the target sensitivity.
Further, the obtaining module 10 includes:
the signal intensity acquisition unit is used for acquiring the intensity of the communication signal detected in the preset time length;
a selecting unit for selecting a preset number of communication signal strengths from the acquired communication signal strengths;
and the average value calculating unit is used for calculating the average value of the communication signal intensities of the preset number, and taking the average value as the communication signal intensity of the communication between the TWS main equipment and the terminal equipment.
The specific implementation of the TWS device communication data configuration apparatus of the present invention is basically the same as that of each embodiment of the TWS device communication data configuration method described above, and will not be described again here.
The invention also provides a TWS device communication data configuration device, which is applied to TWS slave devices, and comprises:
the receiving module is used for receiving the adjusting parameters sent by the TWS equipment communication data configuration device applied to the TWS main equipment;
and an adjusting module, configured to perform adjustment according to the adjustment parameter received by the receiving module, so that the TWS slave device and the TWS master device of the TWS device communication data configuration apparatus operate under the same adjustment parameter.
The specific implementation process of the TWS device communication data configuration apparatus in this embodiment is the same as the process executed by the TWS slave device in the TWS device communication data configuration method described above, and details are not repeated here.
The invention also provides a TWS earphone pair, which comprises a left earphone and a right earphone, wherein any one of the left earphone and the right earphone is used as a TWS master device, and the other one is used as a TWS slave device, and the TWS device communication data configuration method is realized together.
The specific implementation processes of the TWS master device and the TWS slave device in this embodiment are the same as those in the TWS device communication data configuration method described above, and are not repeated here.
The invention also provides a chip on which an integrated circuit is arranged, the integrated circuit being designed to comprise the TWS device communication data configuration means described above.
It should be noted that the description of the TWS master device has been described in the above embodiments, and the description is not repeated here.
The invention also provides a computer-readable storage medium, which includes a first medium and a second medium, where the first medium and the second medium respectively store a TWS device communication data configuration program, and the TWS device communication data configuration program, when executed by a processor, implements the TWS device communication data configuration method as described above. Wherein the first medium corresponds to a TWS master device and the second medium corresponds to a TWS slave device.
The specific implementation manner of the computer-readable storage medium of the present invention is substantially the same as that of each embodiment of the TWS device communication data configuration method described above, and will not be described again here.
It will be appreciated by those skilled in the art that the above-described preferred embodiments may be freely combined, superimposed, without conflict.
It will be understood that the embodiments described above are illustrative only and not restrictive, and that various obvious and equivalent modifications and substitutions for details described herein may be made by those skilled in the art without departing from the basic principles of the invention.

Claims (15)

1. A TWS device communication data configuration method is characterized by comprising the following steps:
s100, the TWS main equipment acquires communication data communicated with the terminal equipment, wherein the communication data comprises data parameters and adjusting parameters, the data parameters at least comprise communication signal intensity and data packet error information, and the adjusting parameters at least comprise data transceiving sensitivity and communication frequency points;
s200, judging whether the communication signal intensity is within a preset signal intensity range; if the communication signal strength is not within the signal strength range, executing step S300; if the communication signal strength is within the signal strength range, executing step S400;
s300, adjusting the data transceiving sensitivity, and executing the step S100 after adjusting the data transceiving sensitivity;
s400, calculating the packet error rate of the data packet received by the TWS main equipment according to the packet error information, and judging whether the packet error rate is less than a preset error rate; if the error rate is greater than or equal to the error rate, executing step S500; if the packet error rate is less than the error rate, executing step S600;
s500, adjusting the communication frequency point, and executing the step S100 after adjusting the communication frequency point;
and S600, when the data parameters all meet preset conditions, keeping the adjustment parameters in the current communication data of the TWS master device, and sending the kept adjustment parameters to the TWS slave device, wherein the TWS slave device carries out adjustment according to the adjustment parameters sent by the TWS master device, so that the TWS master device and the TWS slave device work under the same adjustment parameters.
2. The TWS device communication data configuration method according to claim 1, wherein in the step S500, the step of adjusting the communication frequency point includes:
determining interfered target frequency points in the communication frequency points, and sequencing the target frequency points from large to small according to the interference degree to obtain sequenced target frequency points;
and determining the number of the frequency points to be discarded according to the packet error rate, discarding the target frequency points from front to back according to the number of the frequency points in the sequenced target frequency points, and taking the rest communication frequency points as communication frequency points for receiving data.
3. The TWS device communication data configuring method of claim 1, wherein the data parameters of the communication data further include an amount of unprocessed audio data currently stored by the TWS host device, the adjustment parameters of the communication data further include a play-back code stream, and if the packet error rate is smaller than the error rate, step S700 is executed;
s700, judging whether the audio data volume is within a preset data volume range; if the audio data volume is within the data volume range, executing step S600; if the audio data volume is not within the data volume range, executing step S800;
s800, adjusting the playing code stream of the audio data played by the TWS main device, and executing the step S600 after adjusting the playing code stream.
4. The TWS device communication data configuration method according to claim 3, wherein in the step S800, the step of adjusting the playback code stream of the TWS host device for playing back the audio data includes:
s810, judging whether the audio data volume is larger than the upper limit value of the data volume range or smaller than the lower limit value of the data volume range; if the audio data amount is greater than the upper limit value, performing step S820; if the audio data amount is smaller than the lower limit value, executing step S830;
s820, calculating a first difference between the audio data volume and the upper limit value, dividing the first difference by the upper limit value to obtain an exceeding ratio of the audio data volume exceeding the data volume range, and increasing a playing code stream of the TWS main equipment for playing the audio data according to the exceeding ratio;
and S830, calculating a second difference value between the lower limit value and the audio data amount, dividing the second difference value by the lower limit value to obtain a low-out ratio value of the audio data amount lower than the data amount range, and reducing a playing code stream of the TWS main equipment for playing the audio data according to the low-out ratio value.
5. The TWS device communication data configuring method according to claim 1, wherein in the step S300, the step of adjusting the data transceiving sensitivity includes:
s310, acquiring target sensitivity corresponding to the TWS main equipment, and judging whether the data transceiving sensitivity is smaller than the target sensitivity or larger than the target sensitivity; if the data transceiving sensitivity is less than the target sensitivity, performing step S320; if the data transceiving sensitivity is greater than the target sensitivity, executing step S330;
s320, improving the data receiving and transmitting sensitivity to the target sensitivity;
and S330, reducing the data transceiving sensitivity to the target sensitivity.
6. The TWS device communication data configuring method according to any one of claims 1 to 5, wherein in the step S100, the step of obtaining the communication signal strength of the communication between the TWS master device and the terminal device comprises:
the method comprises the steps of obtaining the intensity of communication signals detected within a preset time length, and selecting a preset number of communication signal intensities from the obtained communication signal intensities;
and calculating the average value of the communication signal intensities of the preset number, and taking the average value as the communication signal intensity of the communication between the TWS main equipment and the terminal equipment.
7. A TWS device communication data configuration device is applied to a TWS main device, and the TWS device communication data configuration device comprises:
the TWS comprises an acquisition module, a data transmission module and a data transmission module, wherein the acquisition module is used for acquiring communication data communicated between TWS main equipment and terminal equipment, the communication data comprises data parameters and adjustment parameters, the data parameters at least comprise communication signal intensity and data packet error information, and the adjustment parameters at least comprise data receiving and transmitting sensitivity and communication frequency points;
the first judging module is used for judging whether the communication signal intensity is within a preset signal intensity range or not;
the adjusting module is used for adjusting the data transceiving sensitivity when the judging result of the first judging module is negative, and acquiring communication data communicated with the terminal equipment after the data transceiving sensitivity is adjusted;
the calculating module is used for calculating the packet error rate of the data packet received by the TWS main equipment according to the packet error information when the judgment result of the first judging module is yes;
the second judgment module is used for judging whether the packet error rate is smaller than a preset error rate or not;
the adjusting module is further used for adjusting the communication frequency point when the judgment result of the second judging module is negative, and acquiring communication data communicated with the terminal equipment after the communication frequency point is adjusted;
and the sending module is used for keeping the adjustment parameters in the current communication data of the TWS master device when the data parameters all meet the preset conditions, and sending the kept adjustment parameters to the TWS slave device so that the TWS slave device can adjust according to the adjustment parameters sent by the TWS master device, and the TWS master device and the TWS slave device can work under the same adjustment parameters.
8. The TWS device communication data configuration apparatus of claim 7, wherein the adjustment module comprises:
the sequencing unit is used for determining interfered target frequency points in the communication frequency points and sequencing the target frequency points from large to small according to the interference degree to obtain sequenced target frequency points;
and the discarding unit is used for determining the frequency point number of the frequency point to be discarded according to the packet error rate, discarding the target frequency point from front to back according to the frequency point number in the sequenced target frequency point, and taking the rest communication frequency point as the communication frequency point for receiving data.
9. The TWS device communication data configuration apparatus according to claim 7, wherein the data parameters of the communication data further include an amount of unprocessed audio data currently stored by the TWS host device, the adjustment parameters of the communication data further include a play code stream, and the TWS device communication data configuration apparatus further includes:
the third judging module is used for judging whether the audio data volume is within a preset data volume range or not when the judging result of the second judging module is yes;
the adjusting module is further configured to adjust a play code stream of the TWS main device for playing the audio data when the determination result of the third determining module is negative.
10. The TWS device communication data configuration apparatus of claim 9, wherein the adjusting module comprises:
a first judgment unit operable to judge whether the audio data amount is larger than an upper limit value of the data amount range or smaller than a lower limit value of the data amount range;
a ratio calculation unit, configured to calculate a first difference between the audio data amount and the upper limit value when the determination result of the first determination unit is that the audio data amount is greater than the upper limit value, and divide the first difference by the upper limit value to obtain an excess ratio of the audio data amount exceeding the data amount range;
the first increasing unit is used for increasing the playing code stream of the audio data played by the TWS main equipment according to the exceeding ratio;
the ratio calculation unit is further configured to calculate a second difference between the lower limit and the audio data amount when the judgment result of the first judgment unit is that the audio data amount is smaller than the lower limit, and divide the second difference by the lower limit to obtain a low ratio that the audio data amount is smaller than the data amount range;
and the first reducing unit is used for reducing the playing code stream of the audio data played by the TWS main equipment according to the low-out ratio.
11. The TWS device communication data configuration apparatus according to any of claims 7 to 10, wherein the adjusting module comprises:
the sensitivity acquisition unit is used for acquiring target sensitivity corresponding to the TWS main equipment;
a second determination unit configured to determine whether the data transmission/reception sensitivity is smaller than the target sensitivity or larger than the target sensitivity;
a second increasing unit, configured to increase the data transceiving sensitivity to the target sensitivity when the determination result of the second determining unit is that the data transceiving sensitivity is smaller than the target sensitivity;
a second reducing unit, configured to reduce the data transceiving sensitivity to the target sensitivity when the determination result of the second determining unit is that the data transceiving sensitivity is greater than the target sensitivity.
12. A TWS device communication data configuration device is applied to a TWS slave device, and comprises:
a receiving module, configured to receive the adjustment parameter sent by the TWS device communication data configuration apparatus according to any one of claims 7 to 11;
an adjusting module, configured to adjust according to the adjustment parameter received by the receiving module, so that the TWS slave device and a TWS master device including the TWS device communication data configuration apparatus according to any one of claims 7 to 11 operate under the same adjustment parameter.
13. A TWS headset pair comprising a left headset and a right headset, wherein either one of the left headset and the right headset serves as a TWS master device, and the other serves as a TWS slave device, collectively implementing the TWS device communication data configuration method as claimed in any one of claims 1 to 6.
14. A chip having an integrated circuit thereon, wherein the integrated circuit comprises the apparatus of any of claims 7 to 12.
15. A computer-readable storage medium comprising a first medium and a second medium, the first medium and the second medium having stored thereon a TWS device communication data configuration program, respectively, which when executed by a processor implements the TWS device communication data configuration method according to any one of claims 1 to 6.
CN202010690364.2A 2020-07-17 2020-07-17 TWS equipment communication data configuration method, TWS equipment communication data configuration device, TWS equipment communication data configuration chip and TWS equipment communication data configuration medium Active CN112437418B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010690364.2A CN112437418B (en) 2020-07-17 2020-07-17 TWS equipment communication data configuration method, TWS equipment communication data configuration device, TWS equipment communication data configuration chip and TWS equipment communication data configuration medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010690364.2A CN112437418B (en) 2020-07-17 2020-07-17 TWS equipment communication data configuration method, TWS equipment communication data configuration device, TWS equipment communication data configuration chip and TWS equipment communication data configuration medium

Publications (2)

Publication Number Publication Date
CN112437418A true CN112437418A (en) 2021-03-02
CN112437418B CN112437418B (en) 2024-01-30

Family

ID=74690130

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010690364.2A Active CN112437418B (en) 2020-07-17 2020-07-17 TWS equipment communication data configuration method, TWS equipment communication data configuration device, TWS equipment communication data configuration chip and TWS equipment communication data configuration medium

Country Status (1)

Country Link
CN (1) CN112437418B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114745637A (en) * 2022-04-14 2022-07-12 刘道正 Sound effect realization method of wireless audio equipment

Citations (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070105501A1 (en) * 2005-11-04 2007-05-10 Microsoft Corporation Robust coexistence service for mitigating wireless network interference
US20110256857A1 (en) * 2010-04-20 2011-10-20 Intersil Americas Inc. Systems and Methods for Improving Antenna Isolation Using Signal Cancellation
US8577291B1 (en) * 2007-02-01 2013-11-05 Broadcom Corporation Method and system for optimizing data throughput in a bluetooth communication system
CN104052511A (en) * 2014-06-16 2014-09-17 福建星网锐捷网络有限公司 Disturbance control method of receiver, receiver and equipment
WO2016118331A1 (en) * 2015-01-19 2016-07-28 Qualcomm Incorporated Method and apparatus for lte band avoidance for rf coexistence interference
US20170093663A1 (en) * 2015-09-25 2017-03-30 Osram Sylvania Inc. Wireless mesh network health determination
CN107896131A (en) * 2017-12-22 2018-04-10 广东欧珀移动通信有限公司 Bluetooth signal method of adjustment, device, test terminal, system and computer-readable recording medium
CN108270467A (en) * 2018-01-15 2018-07-10 珠海市杰理科技股份有限公司 Bluetooth frequency hopping frequency point update method and system
US20180199214A1 (en) * 2015-07-03 2018-07-12 Zte Corporation Self-adaptive bluetooth performance adjustment communication terminal and method
CN108696852A (en) * 2018-06-26 2018-10-23 珠海市杰理科技股份有限公司 Connection method of Bluetooth device, system, readable storage medium storing program for executing and bluetooth equipment
CN108900261A (en) * 2018-05-30 2018-11-27 中国电力科学研究院有限公司 A kind of 1800M RF consistency reception intermodulation testing method and device
CN109150238A (en) * 2018-10-25 2019-01-04 深圳星禾设计有限公司 Wireless audio integrated measurement system and method
CN110312237A (en) * 2019-07-05 2019-10-08 恒玄科技(上海)有限公司 The communication means of wireless headset and wireless headset
CN110445511A (en) * 2019-10-09 2019-11-12 恒玄科技(北京)有限公司 A kind of adaptive synchronicity frequency-hopping method, device, wireless aps and communication system
CN110601716A (en) * 2019-09-18 2019-12-20 闻泰通讯股份有限公司 Anti-interference communication method, device, terminal and storage medium
US20200153567A1 (en) * 2018-11-08 2020-05-14 Qualcomm Incorporated On-demand retransmissions in broadcast communication
CN111163452A (en) * 2020-01-07 2020-05-15 宇龙计算机通信科技(深圳)有限公司 Bluetooth headset-based independent audio playing method
CN111327373A (en) * 2020-03-30 2020-06-23 深圳市慧联通信技术有限公司 Wireless module radio frequency performance test fixture, test system and test method
WO2020124581A1 (en) * 2018-12-21 2020-06-25 华为技术有限公司 Audio data transmission method and electronic device
CN111417181A (en) * 2020-03-31 2020-07-14 维沃移动通信有限公司 Power adjustment method and terminal
CN112769511A (en) * 2020-12-31 2021-05-07 上海遨有信息技术有限公司 Interference channel elimination and frequency point distribution method based on narrowband power Internet of things

Patent Citations (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070105501A1 (en) * 2005-11-04 2007-05-10 Microsoft Corporation Robust coexistence service for mitigating wireless network interference
US8577291B1 (en) * 2007-02-01 2013-11-05 Broadcom Corporation Method and system for optimizing data throughput in a bluetooth communication system
US20110256857A1 (en) * 2010-04-20 2011-10-20 Intersil Americas Inc. Systems and Methods for Improving Antenna Isolation Using Signal Cancellation
CN104052511A (en) * 2014-06-16 2014-09-17 福建星网锐捷网络有限公司 Disturbance control method of receiver, receiver and equipment
WO2016118331A1 (en) * 2015-01-19 2016-07-28 Qualcomm Incorporated Method and apparatus for lte band avoidance for rf coexistence interference
US20180199214A1 (en) * 2015-07-03 2018-07-12 Zte Corporation Self-adaptive bluetooth performance adjustment communication terminal and method
US20170093663A1 (en) * 2015-09-25 2017-03-30 Osram Sylvania Inc. Wireless mesh network health determination
CN107896131A (en) * 2017-12-22 2018-04-10 广东欧珀移动通信有限公司 Bluetooth signal method of adjustment, device, test terminal, system and computer-readable recording medium
CN108270467A (en) * 2018-01-15 2018-07-10 珠海市杰理科技股份有限公司 Bluetooth frequency hopping frequency point update method and system
CN108900261A (en) * 2018-05-30 2018-11-27 中国电力科学研究院有限公司 A kind of 1800M RF consistency reception intermodulation testing method and device
CN108696852A (en) * 2018-06-26 2018-10-23 珠海市杰理科技股份有限公司 Connection method of Bluetooth device, system, readable storage medium storing program for executing and bluetooth equipment
CN109150238A (en) * 2018-10-25 2019-01-04 深圳星禾设计有限公司 Wireless audio integrated measurement system and method
US20200153567A1 (en) * 2018-11-08 2020-05-14 Qualcomm Incorporated On-demand retransmissions in broadcast communication
WO2020124581A1 (en) * 2018-12-21 2020-06-25 华为技术有限公司 Audio data transmission method and electronic device
CN110312237A (en) * 2019-07-05 2019-10-08 恒玄科技(上海)有限公司 The communication means of wireless headset and wireless headset
CN110601716A (en) * 2019-09-18 2019-12-20 闻泰通讯股份有限公司 Anti-interference communication method, device, terminal and storage medium
CN110445511A (en) * 2019-10-09 2019-11-12 恒玄科技(北京)有限公司 A kind of adaptive synchronicity frequency-hopping method, device, wireless aps and communication system
CN111163452A (en) * 2020-01-07 2020-05-15 宇龙计算机通信科技(深圳)有限公司 Bluetooth headset-based independent audio playing method
CN111327373A (en) * 2020-03-30 2020-06-23 深圳市慧联通信技术有限公司 Wireless module radio frequency performance test fixture, test system and test method
CN111417181A (en) * 2020-03-31 2020-07-14 维沃移动通信有限公司 Power adjustment method and terminal
CN112769511A (en) * 2020-12-31 2021-05-07 上海遨有信息技术有限公司 Interference channel elimination and frequency point distribution method based on narrowband power Internet of things

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
JAFET RODRIGUEZ: "Predictive Tool for Planning the Scaling and Interference of Wireless Sensor Networks", 《2018 IEEE 10TH LATIN-AMERICAN CONFERENCE ON COMMUNICATIONS (LATINCOM)》 *
郭建伟;: "排干扰保安全, 营造稳固的无线网络环境", 电脑知识与技术(经验技巧), no. 02 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114745637A (en) * 2022-04-14 2022-07-12 刘道正 Sound effect realization method of wireless audio equipment

Also Published As

Publication number Publication date
CN112437418B (en) 2024-01-30

Similar Documents

Publication Publication Date Title
US9277321B2 (en) Device discovery and constellation selection
CN110418232B (en) Volume adjusting method and device and computer readable storage medium
KR101655456B1 (en) Ad-hoc adaptive wireless mobile sound system and method therefor
US10405241B2 (en) Data transmission method and system, and related device
CN108737948B (en) Loudspeaker position detection system, device and method
CN112703746B (en) Method and device for processing signal, bluetooth headset and storage medium
CN112437418B (en) TWS equipment communication data configuration method, TWS equipment communication data configuration device, TWS equipment communication data configuration chip and TWS equipment communication data configuration medium
CN113490102A (en) Wireless earphone and communication method thereof
JPH0870344A (en) Communication equipment
US20120082067A1 (en) System and method of duplex wireless audio link over broadcast channels
US20040142718A1 (en) Mobile communication terminal having a three-dimensional surround sound effect and its control method
CN112437371A (en) BLE link switching method, equipment, earphone pair, chip and medium
EP1615464A1 (en) Method and device for producing multichannel audio signals
US11297432B2 (en) Audio signal processing method
CN111182589B (en) Wireless bandwidth allocation method and wireless terminal equipment
CN115665716A (en) Audio data transmission method, electronic device, and computer-readable storage medium
US11528549B2 (en) Method for improving electrical endurance of batteries of wireless headphones and the wireless headphones
US11683753B2 (en) Wireless transmission system and power saving method thereof
WO2022120782A1 (en) Multimedia playback synchronization
US20210400403A1 (en) Adaptive multi-band hearing device
JP3736785B2 (en) Telephone device
CN108684028B (en) Audio playing device adaptation method based on ble and Bluetooth audio receiver
CN112291759A (en) TWS (two way switching) equipment team forming method, TWS equipment and TWS equipment team forming system
US10175934B2 (en) System for optimization of music listening
CN215871386U (en) USB dongle and wireless space audio receiving and transmitting system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 519075 No. 333, Kexing Road, Xiangzhou District, Zhuhai City, Guangdong Province

Applicant after: ZHUHAI JIELI TECHNOLOGY Co.,Ltd.

Address before: Floor 1-107, building 904, ShiJiHua Road, Zhuhai City, Guangdong Province

Applicant before: ZHUHAI JIELI TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant