CN112437418B - 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 - Google Patents

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 Download PDF

Info

Publication number
CN112437418B
CN112437418B CN202010690364.2A CN202010690364A CN112437418B CN 112437418 B CN112437418 B CN 112437418B CN 202010690364 A CN202010690364 A CN 202010690364A CN 112437418 B CN112437418 B CN 112437418B
Authority
CN
China
Prior art keywords
tws
data
communication
sensitivity
frequency points
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.)
Active
Application number
CN202010690364.2A
Other languages
Chinese (zh)
Other versions
CN112437418A (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

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 equipment communication data configuration method, a device, equipment, a chip and a medium, wherein the method comprises the following steps: the TWS main equipment acquires adjustment parameters in communication data communicated with the terminal equipment, wherein the adjustment parameters at least comprise data receiving and transmitting sensitivity and communication frequency points; if the communication signal strength is not in the preset signal strength range, acquiring communication data after adjusting the data receiving and transmitting sensitivity, 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 smaller than the preset error rate, the current adjustment parameters are sent to the TWS slave device, so that the TWS master device and the TWS slave device work under the same adjustment parameters; if the packet error 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 frequency interference.

Description

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
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for configuring communication data of a TWS device, a TWS master device, a chip, and a computer readable storage medium.
Background
Along with the popularization of the Bluetooth technology, many people are used to listen to music by Bluetooth devices such as Bluetooth headphones and Bluetooth sound boxes, and the multichannel simulated stereo technology is applied to the advanced audio of the Bluetooth headphones and the Bluetooth sound boxes to truly reproduce the sound of the original sound field, so that better listening effects can be brought to listeners. The advanced audio of 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 in which the data packets received by the master TWS bluetooth device and the slave TWS bluetooth device are different, for example, the audio signal is adjacent to the channel, the data packets received by the master TWS bluetooth device and the slave TWS bluetooth device are not normal, and/or the data packets are not transmitted, which may cause the number of the 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 a song to clip, and if the audio signal is adjacent to the channel, the communication connection between the master TWS bluetooth device and the slave TWS bluetooth device may be disconnected if the audio signal is especially serious.
The adjacent channel interference is generally handled by hardware automatic adjustment of AGC (Automatic Gain Control ), which is an automatic control method that automatically adjusts the gain of an amplifying circuit according to the signal strength. Therefore, the adjacent frequency interference is processed through AGC at present, the processing mode is single, the adjacent frequency interference solving success rate is low, and the adjacent frequency interference is processed by AGC independently for the main TWS Bluetooth device and the auxiliary TWS Bluetooth device at present, so that the consistency of the adjacent frequency interference processing results of the main TWS Bluetooth device and the auxiliary TWS Bluetooth device cannot be ensured, and the problem of large data volume difference between the data received by the TWS main device and the two sides of the TWS auxiliary device cannot be solved.
Disclosure of Invention
Based on the above-mentioned current situation, a main objective of the present invention is to provide a method and apparatus for configuring communication data of a TWS device, a TWS master device, a chip and a computer readable storage medium, so as to solve the technical problems that the success rate of solving adjacent channel interference is low, and the difference of data amounts between data received by the TWS master device and two sides of TWS slave devices is large.
In order to achieve the above purpose, the technical scheme adopted by the invention is as follows:
a TWS device communication data configuration method, the TWS device communication data configuration method comprising the steps of:
S100, TWS main equipment acquires communication data communicated with terminal equipment, wherein the communication data comprises data parameters and adjustment parameters, the data parameters at least comprise communication signal strength and data packet error package information, and the adjustment parameters at least comprise data receiving and transmitting 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 receiving and transmitting sensitivity, and executing step S100 after adjusting the data receiving and transmitting sensitivity;
s400, calculating the packet error rate of the data packet received by the TWS master device according to the data 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 greater than or equal to the error rate, executing step S500; if the packet error rate is smaller than the error rate, executing step S600;
s500, adjusting the communication frequency point, and executing step S100 after adjusting the communication frequency point;
and S600, when the data parameters 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, 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.
Preferably, 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 interfered degree to obtain sequenced target frequency points;
and determining the number of frequency points to be discarded according to the packet error rate, discarding the target frequency points from front to back according to the ordered target frequency points of the number of frequency points, and taking the rest of communication frequency points as communication frequency points for receiving data.
Preferably, the data parameters of the communication data further include an amount of unprocessed audio data currently stored by the TWS master device, and 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;
s700, judging whether the audio data amount is within a preset data amount range; if the audio data amount is within the data amount range, executing step S600; if the audio data amount is not within the data amount range, executing step S800;
s800, adjusting a playing code stream of the TWS master device for playing the audio data, and executing step S600 after adjusting the playing code stream.
Preferably, in the step S800, the step of adjusting a play code stream of the TWS master device to play audio data includes:
s810, judging 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 audio data amount is greater than the upper limit value, executing step S820; if the audio data amount is smaller than the lower limit value, executing step S830;
s820, calculating a first difference value between the audio data amount and the upper limit value, dividing the first difference value by the upper limit value to obtain an exceeding ratio of the audio data amount exceeding the data amount range, and improving 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-output 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-output ratio value.
Preferably, in the step S300, the step of adjusting the data transceiving sensitivity includes:
S310, acquiring target sensitivity corresponding to the TWS master device, and judging whether the data receiving and transmitting sensitivity is smaller than the target sensitivity or larger than the target sensitivity; if the data receiving and transmitting sensitivity is smaller than the target sensitivity, executing step S320; if the data receiving and transmitting 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 receiving and transmitting sensitivity to the target sensitivity.
Preferably, in the step S100, the step of acquiring a communication signal strength of communication between the TWS master device and the terminal device includes:
acquiring the intensity of the communication signals detected in the preset time length, and selecting the intensity of a preset number of communication signals from the acquired intensity of the communication signals;
and calculating an average value of the preset number of communication signal intensities, and taking the average value as the communication signal intensity of communication between the TWS main equipment and the terminal equipment.
The invention also provides a TWS device communication data configuration apparatus, which is applied to a TWS master device, and includes:
The acquisition module is used for acquiring communication data communicated between the TWS main equipment and the terminal equipment, wherein the communication data comprises data parameters and adjustment parameters, the data parameters at least comprise communication signal strength and data packet error package 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 strength is in a preset signal strength range or not;
the adjusting module is used for adjusting the data receiving and transmitting sensitivity when the judging result of the first judging module is negative, and acquiring communication data communicated with the terminal equipment after the data receiving and transmitting sensitivity is adjusted;
the calculation module is used for calculating the packet error rate of the data packet received by the TWS master device according to the data packet error information when the judgment result of the first judgment module is yes;
the second judging module is used for judging whether the packet error rate is smaller than a preset error rate or not;
the adjusting module is further configured to adjust the communication frequency point when the judging result of the second judging module is no, and obtain communication data of communication with the terminal device 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 meet 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 work under the same adjustment parameters.
Preferably, the adjustment module includes:
the ordering unit is used for determining interfered target frequency points in the communication frequency points, ordering the target frequency points according to the interference degree from large to small, and obtaining ordered target frequency points;
the discarding unit is used for determining the number of frequency points 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 ordered target frequency points of the number of frequency points, and taking the rest of communication frequency points as communication frequency points for receiving data.
Preferably, the data parameters of the communication data further include an 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 amount is in a preset data amount range or not when the judging result of the second judging module is yes;
and the adjusting module is also used for adjusting the playing code stream of the TWS main equipment for playing the audio data when the judging result of the third judging module is negative.
Preferably, the adjustment module includes:
a first judgment unit configured to judge whether the audio data amount is greater than an upper limit value of the data amount range or less than a lower limit value of the data amount range;
the ratio calculating unit is used for calculating a first difference value between the audio data amount and the upper limit value when the judgment result of the first judging unit is that the audio data amount is larger than the upper limit value, and dividing the first difference value by the upper limit value to obtain an exceeding ratio of the audio data amount exceeding the data amount range;
the first improving unit is used for improving the playing code stream of the TWS master equipment for playing the audio data according to the exceeding ratio;
the ratio calculating unit is further configured to calculate a second difference between the lower limit value and the audio data amount when the determination result of the first determining unit is that the audio data amount is smaller than the lower limit value, and divide the second difference by the lower limit value to obtain a low-out ratio that the audio data amount is lower 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 master device according to the low output ratio value.
Preferably, the adjustment module includes:
a sensitivity acquisition unit, configured to acquire a target sensitivity corresponding to the TWS master device;
a second judging unit configured to judge whether the data transmission/reception sensitivity is smaller than the target sensitivity or larger than the target sensitivity;
a second improving unit, configured to improve the data transceiving sensitivity to the target sensitivity when the determination result of the second determining unit is that the data transceiving sensitivity is less than the target sensitivity;
and the second reducing unit is used for reducing the data receiving and transmitting sensitivity to the target sensitivity when the judging result of the second judging unit is that the data receiving and transmitting sensitivity is larger than the target sensitivity.
The invention also provides a TWS device communication data configuration apparatus, which is applied to a TWS slave device, and includes:
the receiving module is used for receiving the adjustment parameters sent by the TWS equipment communication data configuration device applied to the TWS main equipment;
And the adjustment module is used for adjusting according to the adjustment parameters received by the receiving module, so that the TWS slave device and the TWS master device comprising the TWS device communication data configuration device work under the same adjustment parameters.
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 TWS master equipment, the other one is used as TWS slave equipment, and the TWS equipment communication data configuration method is jointly realized.
The invention also provides a chip with an integrated circuit thereon, characterized in that the integrated circuit comprises the TWS device communication data configuration apparatus as described above.
The invention also provides a computer readable storage medium comprising a first medium and a second medium, wherein TWS device communication data configuration programs are respectively stored on the first medium and the second medium, and the TWS device communication data configuration programs realize the TWS device communication data configuration method when being executed by a processor.
[ beneficial effects ]
Communication data communicated with terminal equipment is obtained through TWS main equipment, wherein the communication data at least comprises communication signal intensity, data receiving and transmitting sensitivity and data packet error packet information; judging whether the communication signal strength is within a preset signal strength range; if the communication signal intensity is not in the signal intensity range, the data receiving and transmitting sensitivity is adjusted, and the communication data is acquired again after the data receiving and transmitting sensitivity is adjusted; if the communication signal strength is within the signal strength 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 smaller than the error rate, when the data parameters 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 work under the same adjustment parameters; and if the packet error rate is greater than or equal to the error rate, the communication data is acquired again after the communication frequency point is adjusted. The TWS master device and the TWS slave device communicate by using the same adjustment parameters, so that the TWS master device and the TWS slave device receive the same amount of data, the problem of large data volume difference between the TWS master device and the TWS slave device caused by adjacent frequency interference is avoided, the TWS master device solves the adjacent frequency interference problem between the TWS master device and the TWS slave device in a mode of combining a plurality of data of signal strength, data receiving and transmitting sensitivity and packet error rate of received data packets, the problem that the adjacent frequency interference can be solved only by using AGC is avoided, the problem that the adjacent frequency interference can be solved by adopting a plurality of data is solved, and the success rate of the adjacent frequency interference solution is improved.
Other advantages of the present invention will be set forth in the description of specific technical features and solutions, by which those skilled in the art should understand the advantages that the technical features and solutions bring.
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 flow chart of one 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 an embodiment of the present invention;
FIG. 4 is a schematic circuit diagram of sensitivity adjustment according to an embodiment of the present invention;
FIG. 5 is a schematic diagram illustrating the adjustment of communication frequency points by an erroneous packet among packets received by the TWS master;
FIG. 6 is a flow chart of two embodiments of a TWS device communication data configuration method of the present invention;
FIG. 7 is a schematic diagram illustrating a play code stream for adjusting a TWS master device to play audio data according to an embodiment of the present invention;
Fig. 8 is a schematic structural view of an embodiment of the TWS device communication data configuration apparatus of the invention.
Detailed Description
FIG. 1 is a flow chart of one embodiment of a TWS device communication data configuration method of the present invention that includes the following steps.
Step S100, TWS main equipment acquires communication data communicated with terminal equipment, wherein the communication data comprises data parameters and adjustment parameters, the data parameters at least comprise communication signal strength and data packet error package information, and the adjustment parameters at least comprise data receiving and transmitting 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 terminal devices, and the TWS slave device listens for the data transmitted between the TWS master device and the terminal devices. In this embodiment, the TWS device includes, but is not limited to, a TWS earphone and a TWS speaker, and the terminal device may be a smart phone, a notebook computer, a television, or the like. When the TWS main equipment and the terminal equipment are in communication connection, the TWS main equipment acquires communication data of communication between the TWS main equipment and the terminal equipment, wherein the communication data comprises data parameters and adjustment parameters, the data parameters at least comprise communication signal intensity and data packet error package information, and the adjustment parameters at least comprise data receiving and transmitting sensitivity and communication frequency points. The frequency points are numbers given to the fixed frequencies. The data packets transmitted between the TWS master device and the terminal device are data packets belonging to errors, and the data packets received at that time point can be known by the error identifier, that is, the error identifier is carried in the error data packet, which is not limited in the expression form of the error identifier in this embodiment. It will be appreciated that, when the TWS master receives a packet sent by the terminal device as an erroneous packet, the TWS master will not respond to the packet, or the TWS master will not successfully respond to the packet. The data transmitted between the TWS master 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, the intensity of the communication signals detected in the preset time period is obtained, and the intensity of the communication signals with the preset quantity is selected from the obtained intensity of the communication signals.
And b, calculating an average value of the preset number of communication signal intensities, and taking the average value as the communication signal intensity of communication between the TWS main equipment and the terminal equipment.
Further, the process of the TWS master device obtaining the communication signal strength is as follows: in the process of communication between the TWS master device and the terminal device, the TWS master device can detect the communication signal intensity between the TWS master device and the terminal device at fixed time or in real time, and acquire the detected communication signal intensity in a preset time period. The preset duration can be set according to specific needs, and the size of the preset duration is not particularly limited in this embodiment. When 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 uses the calculated average value as the communication signal intensity of communication with the terminal device, namely uses the calculated average value as the communication signal intensity in the communication data. Wherein the preset number may be set to 8, 10, 15, or the like. Specifically, in the process of selecting a preset number of communication signal intensities from the acquired communication signal intensities, the TWS master device may randomly select the preset number of communication signal intensities from the acquired communication signal intensities, or may select the preset number of communication signal intensities according to a preset selection rule. The selection rule may be, for example, to select the strength of the communication signal detected at a particular point in time or to select one strength of the communication signal for a certain number of communication signal strengths per interval. The distance between the TWS master device and the terminal device can be calculated by the communication signal intensity, and averaging the communication signal intensity can reflect the distance change between the TWS master device and the terminal device in a period of time, thereby adjusting the data receiving and transmitting 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 performed.
Step S300, adjusting the data transceiving sensitivity, and executing step S100 after adjusting the data transceiving sensitivity.
When 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, where an upper limit value and a lower limit value of the signal strength range may be set according to specific needs, for example, a lower limit value of the signal strength range may be set to-40 dBm (decibel milliwatt), an upper limit value may be set to-30 dBm, or a lower limit value of the signal strength range may be set to-50 dBm, and an upper limit value may be set to-25 dBm. If the communication signal intensity of the TWS master device is not in the signal intensity range, the TWS master device adjusts the data receiving and transmitting sensitivity in the communication data to obtain the adjusted data receiving and transmitting sensitivity, communicates with the terminal device through the adjusted data receiving and transmitting sensitivity, and acquires the communication data in the communication process with the terminal device again. It can be understood that the data transmission/reception sensitivity in the newly acquired communication data is the adjusted data transmission/reception sensitivity. Referring to fig. 3, in fig. 3, the horizontal axis represents time for detecting the intensity of a communication signal, and the vertical axis represents intensity of a communication signal detected each time, the unit of the intensity of a communication signal is 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 data and transmitting data will increase; the TWS master may reduce power consumption for receiving data and transmitting data when the communication signal strength is within the signal strength range relative to the communication signal strength not being within the signal strength range. When the data transmission/reception sensitivity is adjusted, the magnitude of the communication signal strength is changed.
Further, in the step S300, the step of adjusting the data transceiving sensitivity includes:
step S310, obtaining target sensitivity corresponding to the TWS master device, and judging whether the data receiving and transmitting sensitivity is smaller than the target sensitivity or larger than the target sensitivity; if the data receiving and transmitting sensitivity is smaller than the target sensitivity, executing step S320; if the data receiving/transmitting sensitivity is greater than the target sensitivity, step S330 is performed.
Step S320, raising the data receiving and transmitting sensitivity to the target sensitivity.
Step S330, lowering the data transceiving sensitivity to the target sensitivity.
Specifically, the process of the TWS master device adjusting the data transceiving sensitivity is: the TWS master device acquires preset target sensitivity and judges whether the data receiving and transmitting sensitivity in the communication data is smaller than the target sensitivity or larger than the target sensitivity. If the TWS master device judges that the data receiving and transmitting sensitivity is smaller than the target sensitivity, the TWS master device improves the data receiving and transmitting sensitivity to the target sensitivity, and the adjusted data receiving and transmitting sensitivity is equal to the target sensitivity; if the TWS master device determines that the data receiving and transmitting sensitivity is greater than the target sensitivity, the TWS master device reduces the data receiving and transmitting sensitivity to the target sensitivity so that the adjusted data receiving and transmitting sensitivity is equal to the target sensitivity. Specifically, referring to fig. 4, fig. 4 is a schematic circuit structure of sensitivity adjustment in 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, which may be a variable resistor, and adjusts the magnitude of the data receiving and transmitting sensitivity by adjusting the magnitude of the resistance value; the magnitude of the data receiving sensitivity can also be adjusted by adjusting the magnitude of the current injected into the capacitor; further, the magnitude of the data transmission/reception sensitivity may be adjusted by adjusting the magnitudes of the currents injected into the resistor and the capacitor at the same time.
The target sensitivity may be preset, or may be determined by a difference between the communication signal strength and the signal strength range in the communication data. Specifically, calculating a signal difference between the communication signal strength and the signal strength range in the communication data, wherein it can be understood that when the communication signal strength is greater than the upper limit value of the signal strength range, subtracting the upper limit value of the signal strength range from the communication signal strength to obtain the signal difference; when the communication signal strength is smaller than the lower limit value of the signal strength range, subtracting the communication signal strength from the lower limit value of the signal strength 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 value and the target sensitivity is stored in advance, and in the mapping relationship, one signal difference value may correspond to one target sensitivity, or a plurality of signal difference values 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 data packet error information, and judging whether the packet error rate is smaller than a preset error rate; if the packet error rate is greater than or equal to the error rate, executing step S500; if the packet error rate is smaller than the error rate, step S600 is performed.
S500, adjusting the communication frequency point, and executing step S100 after adjusting the communication frequency point.
In this embodiment, the TWS master device is in fm communication, so the TWS master device may determine and count the number of erroneous packets in the packets received from the terminal device, and also determine the communication frequency point of the currently received packet. When the TWS master determines that the communication signal strength in the communication data is within the signal strength range, the TWS master calculates a packet error rate of the received data packet according to the data packet error information in the communication data. Specifically, when calculating the packet error rate, the TWS master calculates the number of packets belonging to the error packet in the currently acquired specific number of packets, and then divides the number of packets by the specific number to obtain the packet error rate. For example, the TWS master calculates that there are 15 erroneous data packets in the 100 data packets currently acquired, and 15++100=0.15, i.e., 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 embodiment does not limit the error rate, and the user may set the error rate according to specific needs. If the TWS master device judges that the packet error rate is greater than or equal to the error rate, the TWS master device adjusts the communication frequency point to obtain the adjusted communication frequency point, communicates with the terminal device through the adjusted communication frequency point, and re-acquires communication data after the communication frequency point is adjusted.
Further, in the step S500, the step of adjusting the communication frequency point includes:
and c, determining interfered target frequency points in the communication frequency points, and sequencing the target frequency points from large to small according to the interfered degree to obtain sequenced target frequency points.
Further, the TWS master device adjusts the communication frequency point according to the following steps: the TWS master device determines an interfered communication frequency point in the communication frequency points and takes the interfered communication frequency point as a target frequency point. Specifically, factors interfering with the communication frequency point include environment, antenna, wiFi, and the like. When a 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 points, the TWS master device sorts the target frequency points according to the interference degree from large to small to obtain sorted target frequency points. Specifically, the number of error data packets in the data packets received by each target frequency point is calculated in the same time, and the more the number of error data packets is, the greater the interference degree of the target frequency point is; and the packet error rate corresponding to the data packet received by each target frequency point can be calculated in the same time, and the greater the packet error rate is, the greater the interference degree of the target frequency point is.
And d, determining the number of frequency points to be discarded according to the packet staggering rate, discarding the target frequency points from front to back according to the ordered target frequency points of the number of frequency points, and taking the rest of communication frequency points as communication frequency points for receiving data.
The TWS master device determines the number of frequency points of the frequency points to be discarded according to the packet error rate, wherein the packet error rate is calculated according to the packet error information and is the overall packet error rate of the data packets received by the TWS master device. In this embodiment, a mapping relationship between the packet error rate and the number of frequency points of the frequency points to be discarded may be preset, where the larger the packet error rate, the larger the number of frequency points of the frequency points to be discarded. After the TWS master device determines the number of frequency points, the TWS master device discards the target frequency points from front to back in the ordered target frequency points according to the number of frequency points, and takes the rest of communication frequency points as communication frequency points for receiving data. It is 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 rank the target frequency points according to the interference degree from small to large to obtain ranked target frequency points, discard the target frequency points from back to front in the ranked 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 channels 2402-2480, the TWS master device and the terminal device use 30 communication frequency points (including 2440 and other communication frequency points), 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 in time T. If the communication data includes the interfered intensities of the 30 communication frequency points, 10 communication frequency points are the strongest interfered. Therefore, when the TWS master device determines that the packet error rate of the receiving terminal device is more than 10% and less than 20%, the TWS master device discards 5 communication frequency points among the 10 communication frequency points with strongest interference; when the TWS master device judges that the packet error rate of the receiving terminal device is more than 20%, the TWS master device can discard 8 communication frequency points in 10 communication frequency points with strongest interference so as to ensure that the packet error rate of communication is in a lowest state.
And S600, when the data parameters 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, 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.
If the TWS master device judges that the packet error rate is smaller 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 meet the preset conditions. It can be understood that when the packet error rate is smaller than the error rate, the packet error information of the data packet is indicated to satisfy the preset condition, and when the packet error rate is smaller than the error rate, the communication signal strength is necessarily within the preset strength range, that is, the communication signal strength satisfies the corresponding preset condition.
After the TWS master device establishes a communication connection with the TWS slave device, the TWS master device transmits the retained adjustment parameters to the TWS slave device. When the TWS slave device receives the adjustment parameters, the TWS slave device adjusts the adjustment parameters to be the same as the received adjustment parameters, so that the TWS master device and the TWS slave device work under the same adjustment parameters, and at the moment, the TWS slave device can monitor data transmitted by the terminal device through the adjusted adjustment parameters and can also interact with the TWS master device through the adjusted adjustment parameters. Specifically, after the TWS slave device receives the adjustment parameters, the TWS slave device determines whether the current adjustment parameters are consistent with the received adjustment parameters, adjusts the adjustment parameters inconsistent with the received adjustment parameters to be consistent with the received adjustment parameters, and if the current adjustment parameters are consistent with the received adjustment parameters, does not need to be adjusted.
The embodiment obtains communication data communicated with the terminal equipment through the TWS main equipment, wherein the communication data at least comprises communication signal intensity, data receiving and transmitting sensitivity and data packet error packet information; judging whether the communication signal strength is within a preset signal strength range; if the communication signal intensity is not in the signal intensity range, the data receiving and transmitting sensitivity is adjusted, and the communication data is acquired again after the data receiving and transmitting sensitivity is adjusted; if the communication signal strength is within the signal strength 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 smaller than the error rate, when the data parameters 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 packet error rate is greater than or equal to the error rate, the communication data is acquired again after the communication frequency point is adjusted. The TWS master device and the TWS slave device communicate by using the same adjustment parameters, so that the TWS master device and the TWS slave device receive the same amount of data, the problem of large data volume difference between the TWS master device and the TWS slave device caused by adjacent frequency interference is avoided, the TWS master device solves the adjacent frequency interference problem between the TWS master device and the TWS slave device in a mode of combining a plurality of data of signal strength, data receiving and transmitting sensitivity and packet error rate of received data packets, the problem that the adjacent frequency interference can be solved only by using AGC is avoided, the problem that the adjacent frequency interference can be solved by adopting a plurality of data is solved, and the success rate of the adjacent frequency interference solution is improved.
Further, a second embodiment of the TWS device communication data configuration method of the present invention is presented.
The second embodiment of the method for configuring communication data of a TWS device is different from the embodiment of the method for configuring communication data of a TWS device described above in that, referring to fig. 6, the data parameters of the communication data further include an 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 if the packet error rate is smaller than the error rate, step S700 is executed:
step S700, judging whether the audio data amount is within a preset data amount range; if the audio data amount is within the data amount range, executing step S600; if the audio data amount is not within the data amount range, step S800 is performed.
In this embodiment, the data parameters of the communication data further include an amount of unprocessed audio data currently stored by the TWS master device, and the adjustment parameters further include 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 amount is within a preset data amount range, wherein an upper limit value and a lower limit value of the data amount range are preset by a user, and the magnitudes of the upper limit value and the lower limit value of the data amount 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 meet the preset conditions, and sends 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 therefore the TWS master device and the TWS slave device work under the same adjustment parameters.
Step S800, adjusting a play code stream of the TWS master device to play audio data, and executing step S600 after adjusting the play code stream.
Further, in the step S800, the step of adjusting the play code stream of the TWS master device to play the audio data includes:
step S810 of judging whether the audio data amount is greater than an upper limit value of the data amount range or less than a lower limit value of the data amount range; if the audio data amount is greater than the upper limit value, executing 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 value, dividing the first difference by the upper limit value to obtain an excess ratio of the audio data amount exceeding the data amount range, and improving a play code stream of the TWS master device for playing the audio data according to the excess 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 output ratio of the audio data amount lower than the data amount range, and reducing a play code stream of the TWS master device for playing the audio data according to the low output ratio.
Further, if the TWS master device determines that the audio data amount is not within the data amount range, the TWS master device adjusts a play code stream of the play audio data amount, maintains adjustment parameters in current communication data after adjusting the play code stream, and sends the maintained adjustment parameters to the TWS slave device, that is, sends the maintained adjustment parameters to the TWS slave device when the adjustment parameters all meet preset conditions, 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 work under the same adjustment parameters. Specifically, the TWS master determines whether the audio data amount is greater than the upper limit value of the data amount range or less than the lower limit value of the data amount range. If the TWS master equipment judges that the audio data amount is larger than the upper limit value, the TWS master equipment subtracts the upper limit value from the audio data amount, calculates to obtain a first difference value between the audio data amount and the upper limit value, divides the first difference value by the upper limit value to obtain an exceeding ratio of the audio data amount exceeding the data amount range, and improves a playing code stream of playing the audio data according to the exceeding ratio; if the audio data volume of the TWS master device is smaller than the lower limit value, the TWS master device subtracts the audio data volume from the lower limit value, calculates a second difference value between the lower limit value and the audio data volume, divides the second difference value by the lower limit value, obtains a low-output ratio that the audio data volume is smaller than the data volume range, and reduces a playing code stream for playing the audio data according to the low-output ratio. If the excess ratio is 10%, the TWS master device increases the playing code stream by 10%, namely increases the playing speed by 10%; when the low-out ratio is not 10%, the TWS master will reduce the play-out code stream by 10%, i.e. reduce the play-out speed by 10%. Specifically, referring to fig. 7, fig. 7 is a schematic diagram of a play code stream for adjusting the play audio data amount of the TWS master device according to an embodiment of the invention. The excessive amount of audio data in fig. 7 is an upper limit value indicating that the amount of audio data is greater than the range of the amount of data, and the small amount of audio data is an upper limit value indicating that the amount of audio data is less than the range of the amount of data.
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 number range, 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 parameters are obtained again 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 the factor of increasing the audio data volume on the basis of the first embodiment to solve the problem of adjacent channel interference between the TWS master device and the TWS slave device, further reduce the data volume difference between the data received by the TWS master device and the TWS slave device at two sides and further improve the success rate of adjacent channel interference solution.
The present invention also provides a TWS device communication data configuration apparatus applied to a TWS master device, referring to fig. 8, including:
the acquisition module 10 is configured to acquire communication data of communication between the TWS master device and the terminal device, where the communication data includes a data parameter and an adjustment parameter, the data parameter includes at least communication signal strength and packet error information, and the adjustment parameter includes at least data receiving and transmitting sensitivity and a communication frequency point;
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 when the determination result of the first determining module is no, and obtain communication data between the terminal device and the data transceiving sensitivity after the data transceiving sensitivity is adjusted;
a calculating module 40, configured to calculate, when the determination result of the first determining module is yes, a packet error rate of the data packet received by the TWS master according to the packet error information;
a second judging module 50, configured to judge whether the packet error rate is less than a preset error rate;
the adjusting module 30 is further configured to adjust the communication frequency point when the determination result of the second determining module is no, and obtain communication data of communication with the terminal device after the communication frequency point is adjusted;
and the sending module 60 is 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 a TWS slave device, so that the TWS slave device adjusts according to the adjustment parameter sent by the TWS master device, so that the TWS master device and the TWS slave device work under the same adjustment parameter.
Further, the adjustment module 30 includes:
the ordering unit is used for determining interfered target frequency points in the communication frequency points, ordering the target frequency points according to the interference degree from large to small, and obtaining ordered target frequency points;
the discarding unit is used for determining the number of frequency points 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 ordered target frequency points of the number of frequency points, and taking the rest of communication frequency points as communication frequency points for receiving data.
Further, the data parameters of the communication data further include an 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 amount is in a preset data amount 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 master device for playing audio data when the determination result of the third determining module is no.
Further, the adjustment module 30 includes:
a first judgment unit configured to judge whether the audio data amount is greater than an upper limit value of the data amount range or less than a lower limit value of the data amount range;
The ratio calculating unit is used for calculating a first difference value between the audio data amount and the upper limit value when the judgment result of the first judging unit is that the audio data amount is larger than the upper limit value, and dividing the first difference value by the upper limit value to obtain an exceeding ratio of the audio data amount exceeding the data amount range;
the first improving unit is used for improving the playing code stream of the TWS master equipment for playing the audio data according to the exceeding ratio;
the ratio calculating unit is further configured to calculate a second difference between the lower limit value and the audio data amount when the determination result of the first determining unit is that the audio data amount is smaller than the lower limit value, and divide the second difference by the lower limit value to obtain a low-out ratio that the audio data amount is lower 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 master device according to the low output ratio value.
Further, the adjustment module 30 includes:
a sensitivity acquisition unit, configured to acquire a target sensitivity corresponding to the TWS master device;
a second judging unit configured to judge whether the data transmission/reception sensitivity is smaller than the target sensitivity or larger than the target sensitivity;
A second improving unit, configured to improve the data transceiving sensitivity to the target sensitivity when the determination result of the second determining unit is that the data transceiving sensitivity is less than the target sensitivity;
and the second reducing unit is used for reducing the data receiving and transmitting sensitivity to the target sensitivity when the judging result of the second judging unit is that the data receiving and transmitting sensitivity is larger than the target sensitivity.
Further, the acquisition module 10 includes:
the signal strength acquisition unit is used for acquiring the strength of the communication signal detected in the preset duration;
a selecting unit, configured to select a preset number of communication signal intensities from among the acquired communication signal intensities;
and the average value calculation unit is used for calculating the average value of the preset number of communication signal intensities 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 manner of the TWS device communication data configuration apparatus of the present invention is substantially the same as the embodiments of the TWS device communication data configuration method described above, and the detailed description thereof will not be repeated here.
The invention also provides a TWS device communication data configuration apparatus, which is applied to a TWS slave device, and includes:
The receiving module is used for receiving the adjustment parameters sent by the TWS equipment communication data configuration device applied to the TWS main equipment;
and the adjustment module is used for adjusting according to the adjustment parameters received by the receiving module, so that the TWS slave device and the TWS master device of the TWS device communication data configuration device work under the same adjustment parameters.
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 above TWS device communication data configuration method, and will not be 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 TWS master equipment, the other one is used as TWS slave equipment, and the TWS equipment communication data configuration method is jointly realized.
The specific implementation process of the TWS master device and the TWS slave device in this embodiment is the same as that in the above-mentioned TWS device communication data configuration method, and a detailed description thereof will not be 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 apparatus described above.
It should be noted that, the description of the TWS master device has been described in the above embodiments, and a detailed description is not repeated here.
The invention also provides a computer readable storage medium, which comprises a first medium and a second medium, wherein TWS device communication data configuration programs are respectively stored on the first medium and the second medium, and the TWS device communication data configuration programs realize the TWS device communication data configuration method when being executed by a processor. The first medium corresponds to the TWS master device, and the second medium corresponds to the TWS slave device.
The specific implementation manner of the computer readable storage medium of the present invention is basically the same as the above embodiments of the TWS device communication data configuration method, and will not be repeated here.
Those skilled in the art will appreciate that the above-described preferred embodiments can be freely combined and stacked without conflict.
It will be understood that the above-described embodiments are merely illustrative and not restrictive, and that all obvious or equivalent modifications and substitutions to the details given above may be made by those skilled in the art without departing from the underlying principles of the invention, are intended to be included within the scope of the appended claims.

Claims (15)

1. A TWS device communication data configuration method, characterized in that the TWS device communication data configuration method includes the steps of:
s100, TWS main equipment acquires communication data communicated with terminal equipment, wherein the communication data comprises data parameters and adjustment parameters, the data parameters at least comprise communication signal strength and data packet error package information, and the adjustment parameters at least comprise data receiving and transmitting 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 receiving and transmitting sensitivity, and executing step S100 after adjusting the data receiving and transmitting sensitivity;
s400, calculating the packet error rate of the data packet received by the TWS master device according to the data 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 greater than or equal to the error rate, executing step S500; if the packet error rate is smaller than the error rate, executing step S600;
S500, adjusting the communication frequency point, and executing step S100 after adjusting the communication frequency point;
and S600, when the data parameters 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, 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.
2. The TWS device communication data configuration method of 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 interfered degree to obtain sequenced target frequency points;
and determining the number of frequency points to be discarded according to the packet error rate, discarding the target frequency points from front to back according to the ordered target frequency points of the number of frequency points, and taking the rest of communication frequency points as communication frequency points for receiving data.
3. The TWS device communication data configuration 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 master device, the adjustment parameters of the communication data further include a play code stream, and if the packet error rate is less than the error rate, step S700 is executed;
S700, judging whether the audio data amount is within a preset data amount range; if the audio data amount is within the data amount range, executing step S600; if the audio data amount is not within the data amount range, executing step S800;
s800, adjusting a playing code stream of the TWS master device for playing the audio data, and executing step S600 after adjusting the playing code stream.
4. The TWS device communication data configuration method of claim 3, wherein in step S800, the step of adjusting a play code stream of the TWS master device to play audio data includes:
s810, judging 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 audio data amount is greater than the upper limit value, executing step S820; if the audio data amount is smaller than the lower limit value, executing step S830;
s820, calculating a first difference value between the audio data amount and the upper limit value, dividing the first difference value by the upper limit value to obtain an exceeding ratio of the audio data amount exceeding the data amount range, and improving 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-output 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-output ratio value.
5. The TWS device communication data configuration method of claim 1, wherein in the step S300, the step of adjusting the data transceiving sensitivity includes:
s310, acquiring target sensitivity corresponding to the TWS master device, and judging whether the data receiving and transmitting sensitivity is smaller than the target sensitivity or larger than the target sensitivity; if the data receiving and transmitting sensitivity is smaller than the target sensitivity, executing step S320; if the data receiving and transmitting 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 receiving and transmitting sensitivity to the target sensitivity.
6. The TWS device communication data configuration method according to any one of claims 1 to 5, characterized in that 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:
Acquiring the intensity of the communication signals detected in the preset time length, and selecting the intensity of a preset number of communication signals from the acquired intensity of the communication signals;
and calculating an average value of the preset number of communication signal intensities, and taking the average value as the communication signal intensity of communication between the TWS main equipment and the terminal equipment.
7. A TWS device communication data configuration apparatus, wherein the TWS device communication data configuration apparatus is applied to a TWS master device, the TWS device communication data configuration apparatus comprising:
the acquisition module is used for acquiring communication data communicated between the TWS main equipment and the terminal equipment, wherein the communication data comprises data parameters and adjustment parameters, the data parameters at least comprise communication signal strength and data packet error package 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 strength is in a preset signal strength range or not;
the adjusting module is used for adjusting the data receiving and transmitting sensitivity when the judging result of the first judging module is negative, and acquiring communication data communicated with the terminal equipment after the data receiving and transmitting sensitivity is adjusted;
The calculation module is used for calculating the packet error rate of the data packet received by the TWS master device according to the data packet error information when the judgment result of the first judgment module is yes;
the second judging module is used for judging whether the packet error rate is smaller than a preset error rate or not;
the adjusting module is further configured to adjust the communication frequency point when the judging result of the second judging module is no, and obtain communication data of communication with the terminal device 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 meet 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 work under the same adjustment parameters.
8. The TWS device communication data configuration apparatus of claim 7, wherein the adjustment module comprises:
the ordering unit is used for determining interfered target frequency points in the communication frequency points, ordering the target frequency points according to the interference degree from large to small, and obtaining ordered target frequency points;
The discarding unit is used for determining the number of frequency points 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 ordered target frequency points of the number of frequency points, and taking the rest of communication frequency points as communication frequency points for receiving data.
9. The TWS device communication data configuration apparatus of claim 7, wherein the data parameters of the communication data further include an 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 comprises:
the third judging module is used for judging whether the audio data amount is in a preset data amount range or not when the judging result of the second judging module is yes;
and the adjusting module is also used for adjusting the playing code stream of the TWS main equipment for playing the audio data when the judging result of the third judging module is negative.
10. The TWS device communication data configuration apparatus of claim 9, wherein the adjustment module comprises:
a first judgment unit configured to judge whether the audio data amount is greater than an upper limit value of the data amount range or less than a lower limit value of the data amount range;
The ratio calculating unit is used for calculating a first difference value between the audio data amount and the upper limit value when the judgment result of the first judging unit is that the audio data amount is larger than the upper limit value, and dividing the first difference value by the upper limit value to obtain an exceeding ratio of the audio data amount exceeding the data amount range;
the first improving unit is used for improving the playing code stream of the TWS master equipment for playing the audio data according to the exceeding ratio;
the ratio calculating unit is further configured to calculate a second difference between the lower limit value and the audio data amount when the determination result of the first determining unit is that the audio data amount is smaller than the lower limit value, and divide the second difference by the lower limit value to obtain a low-out ratio that the audio data amount is lower 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 master device according to the low output ratio value.
11. The TWS device communication data configuration apparatus of any one of claims 7 to 10, wherein the adjustment module includes:
a sensitivity acquisition unit, configured to acquire a target sensitivity corresponding to the TWS master device;
A second judging unit configured to judge whether the data transmission/reception sensitivity is smaller than the target sensitivity or larger than the target sensitivity;
a second improving unit, configured to improve the data transceiving sensitivity to the target sensitivity when the determination result of the second determining unit is that the data transceiving sensitivity is less than the target sensitivity;
and the second reducing unit is used for reducing the data receiving and transmitting sensitivity to the target sensitivity when the judging result of the second judging unit is that the data receiving and transmitting sensitivity is larger than the target sensitivity.
12. A TWS device communication data configuration apparatus that is applied to a TWS slave device, the TWS device communication data configuration apparatus comprising:
a receiving module, configured to receive an adjustment parameter sent by the TWS device communication data configuration apparatus according to any one of claims 7 to 11;
an adjustment module, configured to adjust, according to the adjustment parameter received by the receiving module, 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 to 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 one serves as a TWS slave device, together implementing the TWS device communication data configuration method according to any one of claims 1-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 of any one of claims 1-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 CN112437418A (en) 2021-03-02
CN112437418B true 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)

Families Citing this family (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 (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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
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
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

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7664465B2 (en) * 2005-11-04 2010-02-16 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
CN106332132B (en) * 2015-07-03 2021-05-04 中兴通讯股份有限公司 Communication terminal and method for self-adaptive Bluetooth performance adjustment
US10390241B2 (en) * 2015-09-25 2019-08-20 Osram Sylvania Inc. Wireless mesh network health determination
US10771201B2 (en) * 2018-11-08 2020-09-08 Qualcomm Incorporated On-demand retransmissions in broadcast communication

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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
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
Predictive Tool for Planning the Scaling and Interference of Wireless Sensor Networks;Jafet Rodriguez;《2018 IEEE 10th Latin-American Conference on Communications (LATINCOM)》;全文 *
郭建伟 ; .排干扰保安全,营造稳固的无线网络环境.电脑知识与技术(经验技巧).2016,(第02期),全文. *

Also Published As

Publication number Publication date
CN112437418A (en) 2021-03-02

Similar Documents

Publication Publication Date Title
US9277321B2 (en) Device discovery and constellation selection
US20130024018A1 (en) Multimedia control method and multimedia control system
CN112703746B (en) Method and device for processing signal, bluetooth headset and storage medium
TW201740693A (en) Method of choosing master wireless earphone in wireless earphone set, electronic apparatus and wireless earphone
US9825688B2 (en) Systems and methods of antenna diversity switching
CN103684550A (en) Bluetooth signal transmission power adjusting system and mobile terminal
JP2010516120A (en) Method and apparatus for distributed spectrum sensing for wireless communications
US9894447B2 (en) Hearing device and a method of selecting an optimal transceiver channel in a wireless network
WO2022247399A1 (en) Distance measurement method and apparatus, electronic device, 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
US8422409B2 (en) System and method of duplex wireless audio link over broadcast channels
JPH0870344A (en) Communication equipment
US7340272B2 (en) Mobile communication terminal having a three-dimensional surround sound effect and its control method
EP1615464A1 (en) Method and device for producing multichannel audio signals
EP3038421A1 (en) Method and apparatus for communication using a dect communications protocol
CN115665716B (en) Audio data transmission method, electronic device, and computer-readable storage medium
US20210227325A1 (en) Audio signal processing method
US11265642B1 (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
JP3736785B2 (en) Telephone device
US10175934B2 (en) System for optimization of music listening
CN114339547B (en) Sound box assembly, intelligent device, wireless audio playing system and communication method
CN107592123B (en) Vehicle-mounted multifunctional radio and switching method
CN206332856U (en) A kind of channel wireless radio multi speech device

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

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.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant