Disclosure of Invention
Accordingly, the present invention is directed to provide a TWS bluetooth headset, a method for configuring its transmitting power, and a storage medium thereof, so as to solve the problems of unstable connection or excessive power consumption and signal interference of the TWS bluetooth headset caused by the difference of human index parameters due to the fixed transmitting power of the TWS bluetooth headset in the prior art.
In order to achieve the above object, a first aspect of the present invention provides a method for configuring transmission power of a TWS bluetooth headset, including the steps of:
Monitoring and identifying the taking-out action acting on the TWS Bluetooth headset in real time, connecting to a terminal to be connected when the TWS Bluetooth headset is successfully identified, and generating a query instruction;
responding to the inquiry instruction, and inquiring human index parameters in the TWS Bluetooth headset;
judging whether human body index parameters exist or not, and if so, generating a first calling instruction;
And responding to the first calling instruction, calling corresponding preset transmitting power in a power calling library, and setting the called preset transmitting power as the current transmitting power of the TWS Bluetooth headset.
Further, after the step of determining whether the human body index parameter exists, the method further includes:
if the human index parameter does not exist, generating a second calling instruction;
and responding to the second calling instruction, calling default transmitting power and setting the default transmitting power as the current transmitting power of the TWS Bluetooth headset.
Further, before the step of monitoring and identifying the extraction action acting on the TWS bluetooth headset in real time, connecting to the terminal to be connected and generating a query instruction when the TWS bluetooth headset is successfully identified, the method further comprises the following steps:
initializing the TWS Bluetooth headset, configuring and storing human index parameters.
Further, in the step of initializing, configuring and storing the parameters of the human body index for the TWS bluetooth headset, the method includes the following sub-steps:
receiving a connection request of a terminal to be connected, and connecting the TWS Bluetooth headset with the terminal to be connected;
acquiring body data of a user, and calculating human body index parameters of the user based on the body data;
and writing the human body index parameters into the TWS Bluetooth headset.
Further, in the step of receiving a connection request of a terminal to be connected, the step of connecting the TWS bluetooth headset with the terminal to be connected includes the following substeps:
acquiring a real-time distance between the TWS Bluetooth headset and a terminal to be connected, acquiring a connection request of the terminal to be connected when the real-time distance is within a preset connection range, and analyzing connection information carried in the connection request;
Searching a paired record of the TWS Bluetooth headset, judging whether connection information exists in the paired record, if yes, connecting the TWS Bluetooth headset with a terminal to be connected, and if not, generating a pairing instruction;
Responding to the pairing instruction, enabling the TWS Bluetooth headset to broadcast a first pairing request on a channel with preset frequency, and scanning on the channel with the preset frequency;
When a second pairing request sent by the terminal to be connected in response to the first pairing request is scanned, analyzing pairing information in the second pairing request;
After the pairing information is paired and confirmed, the pairing information is stored in a paired record, and the TWS Bluetooth headset is connected with the terminal to be connected.
Further, in the step of monitoring and identifying the extraction action acting on the TWS bluetooth headset in real time, connecting to the terminal to be connected and generating a query instruction when the TWS bluetooth headset is successfully identified, the method comprises the following sub-steps:
Monitoring the taking-out action on a first earphone and/or a second earphone acting on the TWS Bluetooth earphone in real time, and generating a delay instruction when the first earphone and/or the second earphone are taken out;
Responding to the delay instruction, judging whether the first earphone and the second earphone are successfully connected in a group within a preset delay period, if so, connecting the first earphone and the second earphone to a terminal to be connected, otherwise, connecting the first earphone or the second earphone to the terminal to be connected after the delay is finished;
And generating a query instruction when the first earphone and/or the second earphone are/is connected to the terminal to be connected.
Further, the power call library at least comprises a plurality of groups of human body index parameter intervals, preset power parameters and a default power parameter, wherein the human body index parameter intervals and the preset power parameters have corresponding relations, each preset power parameter corresponds to different preset transmitting power, and the default power parameter corresponds to a default transmitting power;
the step of configuring the power invocation library comprises:
Dividing human body index parameters into a plurality of human body index parameter intervals according to data;
aiming at each human body index parameter interval, carrying out standard test on the transmitting power and the signal receiving intensity of the TWS Bluetooth headset by utilizing a human body simulation trunk, and determining the transmitting power standard value of the TWS Bluetooth headset according to the preset signal receiving intensity;
And adjusting the human body index parameters in the human body index parameter interval according to a first preset amplitude, and gradually adjusting the transmitting power of the adjusted human body index parameters by taking the transmitting power standard value as a reference according to a second preset amplitude to determine the transmitting power corresponding to the human body index parameters.
Further, in the step of responding to the first call instruction, calling the corresponding preset transmitting power in a power call library and setting the called preset transmitting power as the current transmitting power of the TWS bluetooth headset, the specific method is as follows:
And when the human body index parameter is successfully matched, acquiring the power parameter corresponding to the human body index parameter interval, and calling the preset transmitting power corresponding to the power parameter to be set as the transmitting power when the TWS Bluetooth headset is currently connected.
A third aspect of the present invention provides a bluetooth headset, comprising:
The power call library is used for storing a plurality of groups of human body index parameter intervals, preset power parameters and a default power parameter which have corresponding relations, wherein each preset power parameter corresponds to different preset transmitting power, and the default power parameter corresponds to a default transmitting power;
the terminal module is used for acquiring the body data of the human body and calculating the index parameters of the human body;
a charging box for monitoring and recognizing the taking-out action on the TWS Bluetooth headset in real time, and
The TWS Bluetooth earphone is arranged in the charging box and is in communication connection with the terminal module and is used for receiving and storing human body index parameters, inquiring the human body index parameters in response to the taking-out action, and calling the transmitting power corresponding to the human body index parameters in the power calling library to serve as the current transmitting power when the human body index parameters exist or calling the default transmitting power in the power calling library to serve as the current transmitting power when the human body index parameters do not exist.
A third aspect of the present invention provides a computer storage medium having stored thereon an executable computer program which, when executed by a processor, implements the TWS bluetooth headset transmit power configuration method described above.
The invention configures the transmitting power of the TWS Bluetooth earphone according to the human index parameters, sets the corresponding transmitting power for each human index parameter interval, enables the corresponding transmitting power to be called indirectly when the TWS Bluetooth earphone is connected, can effectively avoid unstable connection caused by the human index parameter difference, and enables each human index parameter interval to be as small as possible under the condition of meeting the signal receiving intensity corresponding to the human index parameter in the interval when the transmitting power is configured, thereby effectively avoiding the energy consumption increase and the signal interference caused by overlarge transmitting power during connection.
Detailed Description
The following is a further detailed description of the embodiments:
Example 1
As shown in fig. 1, a block diagram of a bluetooth headset according to the present embodiment is shown. The bluetooth headset of this embodiment includes a terminal module 1, a power call library 2, a charging box 3 and a TWS bluetooth headset 4, the terminal module 1 is connected with the TWS bluetooth headset 4 in a communication manner, and is used for obtaining and calculating human index parameters and sending the human index parameters to the TWS bluetooth headset 4, the power call library 2 stores a plurality of groups of human index parameter intervals and preset power parameters with corresponding relationships and a default power parameter, and each preset power parameter corresponds to different preset transmitting powers, and the default power parameter corresponds to a default transmitting power. In this embodiment, the power call library 2 and the terminal module 1 are formed in the form of application software in a terminal 5 to be connected (such as a mobile phone, a tablet computer, etc.). The TWS bluetooth headset 4 is disposed in the charging box 3, the charging box 3 is configured to charge the TWS bluetooth headset 4 and monitor, in real time, a taking-out action acting on the TWS bluetooth headset 4, where the TWS bluetooth headset 4 is configured to respond to the taking-out action, obtain a human index parameter, and call a corresponding preset transmitting power in the power call library 2 when the human index parameter exists, or call a default transmitting power in the power call library 2 when the human index parameter does not exist, so as to implement access of the TWS bluetooth headset 4.
The terminal module 1 may obtain body data input by a user at the terminal 5 to be connected according to an input request of the user, calculate corresponding human body index parameters according to the body data, and write the human body index parameters into the TWS bluetooth headset 4. In this embodiment, the body index parameter may be one or more of a body mass index (BMI index), a body fat rate, and a head circumference, and the body data corresponds to the body index parameter, for example, the body data corresponding to the body mass index includes a height, a weight, and the like of the user, the body data corresponding to the body fat rate includes a body fat weight, a weight, and the like of the user, and the body data corresponding to the head circumference is a head circumference size of the user.
Specifically, when the human body index parameter is calculated according to the body data, when the human body index parameter is the body mass index BMI, the human body index parameter is calculated by adopting the following formula:
BMI=W/H2(1)
Wherein BMI is a human body index parameter (namely body mass index), W is the weight of a user, the unit is kg, and H is the height of the user, the unit is m.
When the human body index parameter is the body fat rate F, the human body index parameter is calculated by adopting the following formula:
F=(f/W)*100%(2)
wherein F is a human body index parameter (namely body fat rate), F is the weight of human body fat of a user, and W is the weight of the user, wherein the weight is kilogram.
When the human body index parameter is the head circumference, the head circumference size is directly obtained through measurement.
As the transmission power of the TWS bluetooth headset 4 is related to the physical condition of the human body, it is understood that in some other embodiments, the human body index parameter may be other indexes that can be used to measure the size of the fat or the head circumference of the user.
The charging box 3 is internally provided with a connecting end which can be electrically connected with the TWS Bluetooth headset 4, when the TWS Bluetooth headset 4 is contained in the charging box 3, the corresponding position of the TWS Bluetooth headset 4 is connected with the connecting end, so that a first level signal is generated at the connecting end, and when the TWS Bluetooth headset 4 is taken out from the charging box 3, the corresponding position of the TWS Bluetooth headset 4 is disconnected with the connecting end, so that a second level signal is generated at the connecting end, and whether the TWS Bluetooth headset 4 is taken out from the charging box 3 can be determined by detecting the change of the first level signal and the second comment signal. In some other embodiments, the infrared detection structure may be further disposed at a corresponding position of the charging box 3, and whether the TWS bluetooth headset 4 is taken out from the charging box 3 may be determined by detecting whether the TWS bluetooth headset 4 shields the infrared detection structure.
In this embodiment, the TWS bluetooth headset 4 includes a first headset and a second headset connected by bluetooth, where the first headset is used as a bluetooth broadcasting end and used for broadcasting signals outwards with a set transmitting power, and the second headset is used as a bluetooth receiving end and used for receiving signals broadcasted by the first headset and performing team connection with the second headset.
Specifically, the TWS bluetooth headset 4 is configured to receive and store a human body index parameter sent by the terminal module 1, determine whether the first headset and/or the second headset are connected successfully in a team in response to the extraction action identified on the charging box 3, and query whether the human body index parameter exists in the TWS bluetooth headset 4 when the first headset and/or the second headset are connected successfully in a team, if so, call the corresponding preset transmitting power in the power call library 2, set the called preset transmitting power as the current transmitting power of the TWS bluetooth headset 4, and if not, call the default transmitting power in the power call library 2, and set the default transmitting power as the current transmitting power of the TWS bluetooth headset 4.
In this embodiment, the human body index parameter interval in the power transferring library 2 is divided according to the size of the fat or thin head of the user, for example, when the human body index parameter is the body mass index BMI, the transferring speed of the preset transmitting power and the connection stability of the TWS bluetooth headset 4 under the preset transmitting power are comprehensively considered, and the corresponding relationship between the body mass index BMI in the power transferring library 2 and the preset power parameter and the preset transmitting power is shown in the following table 1:
TABLE 1
Of course, in some other embodiments, the number of divisions of the human body index parameter interval may be increased (i.e. the number of BMI indexes included in each human body index parameter interval is reduced), so that the preset transmitting power corresponding to each human body index parameter interval is closer to the transmitting power corresponding to each BMI index in the interval, thereby improving the connection stability of the TWS bluetooth headset 4.
When the preset transmitting power of a certain human body index parameter interval is determined, the method is adopted for determining and obtaining the transmitting power:
firstly, dividing human body index parameters (namely BMI index, body fat rate or head circumference and the like) into a plurality of human body index parameter intervals according to the data size (namely the fat-thin degree or head circumference size of a human body);
Then, for each human body index parameter interval, the human body simulation trunk is utilized to perform standard test on the transmitting power and the signal receiving intensity of the TWS Bluetooth headset 4, a first headset and a second headset (in specific implementation, the first headset can be a left-ear headset, and the second headset can be a right-ear headset) of the TWS Bluetooth headset 4 are connected through Bluetooth, wherein the first headset is used as a broadcasting end of the Bluetooth, the second headset is used as a receiving end of the Bluetooth, the first headset and the second headset are connected with a computer through UART wires, the computer is provided with a first headset computer end and a second headset computer end, the transmitting power of the Bluetooth is controlled through the first headset computer end, and the second headset computer end checks and receives the signal receiving intensity (namely RSSI) transmitted by the first headset. Since the stability of the connection between the first earphone and the second earphone is closely related to the signal receiving intensity, at this time, the transmission power standard value of the TWS bluetooth earphone 4 at the current BMI value may be determined according to the preset signal receiving intensity.
Finally, for different human body index parameters (such as BMI index, body fat rate or head circumference, etc.) in each human body index parameter interval, changing the human body index parameters in the corresponding human body index parameter interval according to a first preset amplitude to obtain different human body index parameters, fine-tuning the transmitting power according to a second preset radiation according to the transmitting power standard value, determining a critical value of the transmitting power meeting the preset signal receiving intensity (when meeting the preset signal receiving intensity), determining the critical value of the transmitting power as the transmitting power of the current human body index parameter, and determining the transmitting power corresponding to all the human body index parameters in the human body index parameter interval as the preset transmitting power corresponding to the human body index parameter interval after finishing the transmitting power corresponding to the human body index parameter.
According to the Bluetooth headset of the embodiment, through configuration of the human body index parameters of a user and the power invoking library 2, when the TWS Bluetooth headset 4 is used, the user can invoke corresponding preset transmitting power in the power invoking library 2 according to the human body index parameters set by the user, so that the preset transmitting power is matched with the body height, the body fat and the head circumference of the user, the first headset and the second headset are stably connected, the preset transmitting power corresponding to each human body index parameter interval is a critical value determined by the preset signal receiving intensity meeting the human body index parameters in the interval, and the TWS Bluetooth headset 4 has lower power consumption and smaller signal interference.
Example 2
Fig. 2 is a flowchart of a configuration method of the transmission power of the TWS bluetooth headset according to the present embodiment. The configuration method of the transmission power of the TWS bluetooth headset of the present embodiment is implemented by the bluetooth headset of embodiment 1, and the present embodiment includes the same or similar structure and function as those of embodiment 1, the terminal module 1, the power transfer library 2, the charging box 3, and the TWS bluetooth headset 4. Specifically, the configuration method of the transmission power of the TWS bluetooth headset of the present embodiment is used for setting the human body index parameter of the user when the TWS bluetooth headset 4 is first connected with the terminal 5 to be connected. The configuration method of the TWS Bluetooth headset transmitting power of the embodiment specifically comprises the following steps:
and P1, initializing the TWS Bluetooth headset 4, configuring and storing human index parameters.
When the TWS Bluetooth headset 4 is used for the first time, body data of a user are firstly obtained, after corresponding human body index parameters are calculated according to the obtained body data, the human body index parameters are written into the TWS Bluetooth headset 4, so that when the first headset and the second headset of the subsequent TWS Bluetooth headset 4 are connected in a team, corresponding preset transmitting power can be called through the human body index parameters, the transmitting power of the TWS Bluetooth headset 4 is matched with the user, the stability of connection and the power consumption are ensured to be maintained at a better level, and the signal interference is reduced. In this embodiment, the human body index parameter includes one or more of a body mass index (BMI index), a body fat rate, a head circumference, etc. of the user, so as to measure the size of the head circumference of the user after the user is fat and thin.
As shown in fig. 3, the step P1 includes the following sub-steps:
P101-the TWS bluetooth headset 4 is connected to the terminal 5 to be connected.
Searching for a TWS Bluetooth headset 4 within a preset connection range, sending a connection request to a specified TWS Bluetooth headset 4 through the to-be-connected terminal 5, judging whether the to-be-connected terminal 5 is connected for the first time when the TWS Bluetooth headset 4 receives the connection request, if so, carrying out pairing confirmation on the to-be-connected terminal 5 and then connecting the to-be-connected terminal 5, otherwise, directly connecting the to-be-connected terminal 5 with the TWS Bluetooth headset 4.
As shown in fig. 4, the step P101 includes the following sub-steps:
and P1011, acquiring a connection request of the terminal 5 to be connected and analyzing the connection information.
Monitoring and acquiring the real-time distance between the TWS Bluetooth headset 4 and the terminal 5 to be connected in real time, judging whether the terminal 5 to be connected sends a connection request to the TWS Bluetooth headset 4 when the real-time distance is within a preset connection range, acquiring the connection request of the terminal 5 to be connected and analyzing the connection information carried in the connection request if the connection request is yes, and continuously monitoring the real-time distance between the TWS Bluetooth headset 4 and the terminal 5 to be connected and acquiring the connection request sent by the terminal 5 to be connected if the connection request is not yes. In this embodiment, the connection information includes at least name and address information of the terminal 5 to be connected, and the like.
And P1012, searching the paired records and judging whether the connection information exists in the paired records.
Searching for a paired record of the TWS bluetooth headset 4 by taking the connection information (mainly, the address information of the terminal 5 to be connected) as an index, when the address information of the terminal 5 to be connected is searched to be the same as the corresponding address information in the paired record, the connection information is considered to exist in the paired record, then the TWS bluetooth headset 4 and the terminal 5 to be connected can be directly paired, otherwise, a pairing instruction is generated based on the fact that the connection information does not exist in the paired record, and then step P1013 is executed to pair the terminal 5 to be connected and the TWS bluetooth headset 4.
And P1013, broadcasting a first pairing request according to the pairing instruction and scanning.
And receiving and responding to the pairing instruction, enabling the TWS Bluetooth headset 4 to start a broadcasting mode, broadcasting a first pairing request on a channel with preset frequency, scanning on the channel with the preset frequency, and checking whether a second pairing request sent by responding to the first pairing request exists.
And P1014, receiving a second pairing request of the terminal 5 to be connected, and analyzing corresponding pairing information.
Firstly, when the TWS bluetooth headset 4 starts a broadcast mode and broadcasts a first pairing request, the to-be-connected terminal 5 will receive the first pairing request, then, and respond to the first pairing request to want the TWS bluetooth headset 4 to send a second pairing request, and after the TWS bluetooth headset 4 receives the second pairing request, the pairing information carried in the second pairing request is resolved. In this embodiment, the pairing information includes at least a name, address information, and an identification code of the terminal 5 to be connected.
And P1015, confirming the pairing information and connecting the TWS Bluetooth headset 4 with the terminal 5 to be connected.
The TWS Bluetooth headset 4 compares the identification code in the pairing information with the identification code built in the TWS Bluetooth headset 4, if the identification code is consistent with the identification code, the to-be-connected terminal 5 and the TWS Bluetooth headset 4 are considered to be successfully paired, then the name and address information of the to-be-connected terminal 5 in the pairing information is written into the paired record of the TWS Bluetooth headset 4, and the TWS Bluetooth headset 4 is connected with the to-be-connected terminal 5.
And P102, acquiring body data of a user, and calculating human body index parameters of the user based on the body data.
According to the input request of the user on the terminal 5 to be connected, the body data input by the user on the terminal 5 to be connected is obtained, and the corresponding human body index parameters are calculated according to a preset formula according to the body data and then sent to the TWS Bluetooth headset 4. In this embodiment, when the body index parameter is a body mass index (i.e., BMI index), the body data at least includes a height and a weight of a user, and the corresponding body index parameter is calculated by using the above formula (1) based on the height and the weight, and when the body index parameter is a body fat rate, the body data at least includes a body mass weight and a weight of the user, and the corresponding body index parameter is calculated by using the above formula (2) based on the body mass weight and the weight, and when the body index parameter is a head circumference, the body data at least includes a head circumference size of the user, and the head circumference size is directly measured, and is the body index parameter.
As the transmission power of the TWS bluetooth headset 4 is related to the physical condition of the human body, it is understood that in some other embodiments, the human body index parameter may be other indexes that can be used to measure the size of the fat or the head circumference of the user, such as the waistline or other dimensions of the human body, etc.
And P103, writing the human body index parameters into the TWS Bluetooth headset 4.
The TWS bluetooth headset 4 receives the human body index parameter sent by the terminal 5 to be connected, and writes the human body index parameter into a storage module built in the TWS bluetooth headset 4, so that when the first headset and the second headset of the subsequent TWS bluetooth headset 4 are connected in a team, the corresponding preset transmitting power can be invoked through the human body index parameter stored in the storage module.
According to the configuration method of the TWS Bluetooth headset transmitting power, when the TWS Bluetooth headset 4 is used for the first time, human body index parameters of a user can be written into the TWS Bluetooth headset 4 in advance, so that stored human body index parameters can be directly called in subsequent team connection, repeated calculation of human body index parameters during each connection can be avoided, and further user experience is improved.
Example 3
Fig. 5 is a flowchart of a configuration method of the transmission power of the TWS bluetooth headset according to the present embodiment. Also, the configuration method of the transmission power of the TWS bluetooth headset of the present embodiment is implemented by the bluetooth headset of embodiment 1, which includes the same or similar structure and function as those of embodiment 1, the terminal module 1, the power call library 2, the charging box 3, and the TWS bluetooth headset 4, and optionally includes the same or similar step P1 as the flow and method of embodiment 2. Specifically, in the embodiment, if the TWS bluetooth headset 4 is first connected to the terminal 5 to be connected, the steps of the embodiment may be executed after setting the human index parameter in embodiment 2, and if the TWS bluetooth headset 4 is not first connected to the terminal 5 to be connected, the steps of the embodiment may be executed directly. The configuration method of the TWS Bluetooth headset transmitting power of the embodiment specifically comprises the following steps:
and S1, monitoring and identifying the taking-out action on the TWS Bluetooth headset 4 in real time.
By the charging box 3 monitoring the taking-out action on the TWS bluetooth headset 4 in real time, since the TWS bluetooth headset 4 of the embodiment includes the first headset and the second headset, correspondingly, the taking-out action on the TWS bluetooth headset 4 also includes the taking-out action on the first headset and/or the second headset, that is, the taking-out action on the first headset or the second headset alone (that is, only one headset is taken out) and the taking-out action on the first headset and the second headset together (that is, two headset are taken out).
As shown in fig. 6, the step S1 includes the following sub-steps:
s101, monitoring the taking-out action on the first earphone and/or the second earphone in real time and generating a delay instruction.
Specifically, the change of the level signal generated at the connection end of the charging box 3 and the TWS bluetooth headset 4 (the first headset and the second headset are respectively connected) is monitored in real time, if the level signal is changed from the first level signal to the second level signal, the first headset or the second headset identified as the position is taken out, and a delay instruction is generated from the time when the first headset or the second headset is taken out.
S102, realizing team connection of the first earphone and/or the second earphone according to the delay instruction.
Because the TWS bluetooth headset 4 of this embodiment may also connect to the single headset that is taken out when the single headset of the first headset or the second headset is taken out, at this time, it may be determined whether the first headset and the second headset are connected separately or in a team according to the delay command.
Specifically, in response to the delay instruction, starting counting down according to a preset delay period from the time when the first earphone (or the second earphone) is taken out, if the second earphone (or the first earphone) is recognized to be taken out before the counting down is finished, then the first earphone and the second earphone are successfully assembled, then the first earphone and the second earphone are assembled to be connected into the terminal 5 to be connected, and if the second earphone (or the first earphone) is not recognized to be taken out before the counting down is finished, the first earphone (or the second earphone) taken out is singly connected to the terminal 5 to be connected after the counting down is finished, and the team connection of the first earphone and the second earphone or the singly connection of the first earphone or the second earphone is completed.
And S103, when the first earphone and/or the second earphone are/is connected to the terminal 5 to be connected, generating a query instruction.
When the first earphone and the second earphone are connected to the terminal 5 to be connected or the first earphone or the second earphone is connected to the terminal 5 to be connected separately, a query command is generated for the TWS bluetooth earphone 4 based on the connection signal to query whether the storage module of the TWS bluetooth earphone 4 has the human index parameters.
S2, inquiring the human body index parameters according to the inquiry instruction.
And responding to the inquiry instruction, and inquiring human index parameters in a storage module of the TWS Bluetooth headset 4.
And S3, judging whether human body index parameters exist or not.
Judging whether human body index parameters exist in a storage module of the TWS Bluetooth headset 4, if so, generating a first calling instruction and then executing the step S4, otherwise, judging that the TWS Bluetooth headset 4 does not exist with the set human body index parameters, and then generating a second calling instruction and then executing the step S5.
As an optional implementation manner of this embodiment, in this step, if it is determined that the storage module of the TWS bluetooth headset 4 does not have the human index parameter, a human index parameter configuration instruction is generated and sent to the terminal to be connected, then the human index parameter is configured based on the method described in embodiment 2, and when the subsequent first headset and the second headset are connected in a team, the corresponding preset transmitting power is called as the current transmitting power of the TWS bluetooth headset 4.
S4, calling preset transmitting power according to the first calling instruction.
Specifically, in response to the first invoking command, the human body index parameter stored in the storage module of the TWS bluetooth headset 4 is obtained, and the human body index parameter is used as an index to be iteratively matched with the human body index parameter in the power invoking library 2, and if the human body index parameter belongs to a certain human body parameter index interval, the human body index parameter is considered to be successfully matched.
When the human body index parameter is successfully matched with the human body index parameter interval, acquiring a power parameter corresponding to the human body index parameter interval, and calling a preset transmitting power corresponding to the power parameter based on the power parameter to set the transmitting power as the transmitting power when the TWS Bluetooth headset 4 is currently connected, so that the TWS Bluetooth headset 4 is connected in a team or is connected independently according to the called preset transmitting power to be matched with the human body index parameter, the stability of the TWS Bluetooth headset 4 in connection is improved, and the power consumption and the signal interference of the TWS Bluetooth headset 4 are reduced.
S5, calling default transmitting work according to the second calling instruction.
Specifically, in response to the second invoking instruction, default transmitting power is directly invoked in the power invoking library 2, and the default transmitting power is set as the current transmitting power of the TWS bluetooth headset 4, so that the TWS bluetooth headset 4 is in team connection or in independent connection according to the invoked default transmitting power.
In addition, a plurality of different human index parameters can be stored in the storage module of the TWS Bluetooth headset 4, so that when the TWS Bluetooth headset 4 is connected, a user can select the corresponding human index parameters to connect, thereby avoiding frequent reset of the human index parameters after the user is replaced, and further improving the use experience of the user.
According to the configuration method of the TWS Bluetooth headset transmitting power, through dividing the intervals of the human body parameter indexes and configuring the corresponding preset transmitting power for each human body parameter index interval, the corresponding preset transmitting power can be matched according to the human body parameter indexes preset by a user during use, so that the human body index parameters are matched with the transmitting power of the TWS Bluetooth headset 4, the stability of the TWS Bluetooth headset 4 during connection is improved, the power consumption and the signal interference of the TWS Bluetooth headset 4 are reduced, disconnection and blocking are avoided, and the use experience of the user is further improved.
As another embodiment of the present invention, there is also provided a computer storage medium having stored thereon an executable computer program which, when invoked and executed by a processor, causes the processor to implement the method for configuring the transmission power of a TWS bluetooth headset as described in embodiments 2 and 3.