Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Referring to fig. 1, a test system 1 provided in an embodiment of the present application is shown. The test system 1 includes: the device comprises a tested terminal 100, a detection device 200 and a test terminal 300, wherein the detection device 200 and the tested terminal 100 are connected with the test terminal 300, and the tested terminal 100 is connected with the detection device 200.
The terminal 100 under test can receive the bluetooth signal, and a bluetooth receiving device is disposed inside the terminal, and the bluetooth receiving device can receive the bluetooth signal according to the preset receiving parameters, and the terminal 100 under test can measure the received signal strength of the received bluetooth signal. The receiving circuit receives the bluetooth signal, and after the bluetooth signal is subjected to front-end processing such as low-noise amplification and filtering, the gain adjusting device adjusts the signal intensity value of the received bluetooth signal after the front-end processing according to the gain parameter, so that the signal intensity value of the output bluetooth signal is stabilized within an expected range, that is, the received signal intensity of the received bluetooth signal can be stabilized within an expected range. The method and the device provided by the embodiment of the application are applied to the signaling test of the Bluetooth receiving signal of the tested terminal, and the matched Bluetooth connection is established between the tested terminal 100 and the detection equipment 200 through the test terminal.
In the embodiment of the present application, the terminal 100 under test may be a mobile terminal device, and for example, may include an electronic device capable of transmitting a bluetooth signal, such as a smart phone, a tablet computer, an e-book reader, a laptop portable computer, a vehicle-mounted computer, and a wearable mobile terminal. The measured terminal can acquire the received signal strength of the received bluetooth signal through a call-back function of the received signal strength, for example, a readremotersis function under an android system, or a readRSSI function under an IOS system.
The detection device 200 can transmit a bluetooth signal to the terminal under test 100, and specifically, the detection device 200 may be a radio frequency power meter, a radio frequency signal analyzer, or the like having a radio frequency test instrument that transmits a bluetooth signal through an antenna.
The test terminal 300 is configured to send a transmission instruction to the detection device 200, instruct the detection device 200 to send a bluetooth signal to the terminal under test 100 based on the transmission instruction, and further be capable of reading the received signal strength of the received bluetooth signal measured by the terminal under test 100. Specifically, the test terminal 300 may be a personal computer, and is connected to the terminal under test through data lines such as USB and JTAG, and the test terminal 300 is installed with test software, and the test software can obtain an intensity compensation parameter for adjusting the received signal intensity of the bluetooth signal received by the terminal under test according to the received signal intensity of the bluetooth signal received by the terminal under test and a preset algorithm. Then, the test terminal 300 writes the intensity compensation parameter into the terminal under test through the data line. And when the measured terminal reads the intensity compensation parameter, adjusting the received signal intensity of the received Bluetooth signal according to the intensity compensation parameter, wherein the specific adjustment mode is described in detail in the following embodiments.
Referring to fig. 2, fig. 2 shows a bluetooth signal adjustment method provided in the embodiment of the present application, which is applied to the test system shown in fig. 1, and specifically, a test terminal is used as an execution main body of the method to describe a process of the method, where the method includes:
s201: and sending a transmitting instruction to the detection equipment, and instructing the detection equipment to send a Bluetooth signal to the tested terminal based on the transmitting instruction.
Specifically, the method and the device provided by the embodiment of the application are applied to the signaling test of the bluetooth signal of the tested terminal, under the signaling test, the testing terminal controls the detection device and the tested terminal to establish a link through data lines such as a USB or other communication modes, and the detection device sends various signaling to the tested terminal. The terminal under test now both transmits signals and receives various signaling from the detection device. The test terminal controls the detection equipment to transmit the Bluetooth signal by sending a transmission instruction to the detection equipment.
In addition, before the test terminal sends the transmission instruction, an initialization operation is required, which specifically includes: loading a received signal strength target file of a Bluetooth signal, initializing a detection device and controlling a tested terminal to enter a signaling test mode, wherein the received signal strength target file of the Bluetooth signal comprises a target received signal strength which is an expected value that the received signal strength of the Bluetooth signal received by the tested terminal is expected to reach, and the test terminal loads the received signal strength target file of the Bluetooth signal to acquire the target received signal strength. And the initialization operation of the detection device is to clear the detection device of stored received signal strength or other data and to set the frequency band of the wireless signal that the detection device is capable of transmitting, for example, to the frequency band of a bluetooth signal.
Furthermore, this application expects that the received signal strength of the bluetooth signal of the terminal under test is stable near the target received signal strength, and therefore, the bluetooth signal that the check out test set sent to the terminal under test should also be close to the target received signal strength, and as an implementation, the test terminal sends the emission instruction to the check out test set, instructs the check out test set to send the bluetooth signal of presetting the signal strength to the terminal under test based on the emission instruction, wherein, the presetting signal strength is set according to the target received signal strength. Specifically, when the detection device sends the bluetooth signal to the terminal to be tested, the bluetooth signal may be attenuated during transmission due to factors such as the distance between the detection device and the terminal to be tested, and the signal strength of the bluetooth signal received by the terminal to be tested is too small. Therefore, the distance between the detection device and the terminal to be detected is determined, and then the preset signal intensity is determined according to the target received signal intensity and the distance, so that the signal intensity value of the Bluetooth signal emitted by the detection device is greater than or equal to the target received signal intensity, and when the Bluetooth signal emitted by the detection device reaches the terminal to be detected after being attenuated, the attenuated Bluetooth signal can approach the target received signal intensity.
In some embodiments, the distance between the detection device and the terminal under test is a maximum distance, specifically, the bluetooth signal transmitted by the detection device has a farthest transmission distance, and the terminal under test also has a farthest receiving distance for receiving the bluetooth signal, and the maximum distance is the farthest transmission distance or the farthest receiving distance, and the signal strength value of the bluetooth signal transmitted by the detection device is set according to the preset rule and the maximum distance, for example, there is a correspondence between an attenuation coefficient of the bluetooth signal transmitted by the detection device and the distance, and according to the correspondence, the signal strength value of the bluetooth signal transmitted by the detection device corresponding to the maximum distance can be set, that is, the preset signal strength can be determined.
As an implementation manner, the emission instruction sent by the test terminal includes a preset signal strength value, after the detection device acquires the emission instruction, the emission instruction is analyzed to obtain the preset signal strength, and a bluetooth signal is sent to the terminal to be tested according to the preset signal strength value, where the signal strength of the emitted bluetooth signal is the preset signal strength.
S202: and acquiring the received signal strength acquired from the tested terminal and sent by the detection equipment, wherein the received signal strength is acquired by the tested terminal according to the received Bluetooth signal.
After the detection device transmits the bluetooth signal, the terminal under test can receive the bluetooth signal transmitted by the detection device and measure the received signal strength of the received bluetooth signal, for example, read the return value of the readmomertis function or the readRSSI function to obtain the received signal strength of the received bluetooth signal, and then send the received signal strength to the detection device. Specifically, the detecting device may send an intensity returning instruction to the terminal to be tested after sending the bluetooth signal to the terminal to be tested, and the terminal to be tested sends the received signal intensity value of the received bluetooth signal to the detecting device after obtaining the intensity returning instruction. Of course, the received signal strength value may also be sent to the detection device after the terminal under test measures the received signal strength value of the received bluetooth signal.
Then, the test terminal obtains the received signal strength from the detection device, and specifically, the received signal strength may be sent to the test terminal after the received signal strength obtained by the detection device. Alternatively, the detection device may store the received signal strength of the bluetooth signal in a local memory after acquiring the received signal strength. The test terminal sends an acquisition request to the detection equipment, and the detection equipment sends the received signal strength of the Bluetooth signal to the test terminal after receiving the acquisition request.
S203: and judging whether the received signal strength meets a preset compensation condition.
The preset compensation condition is set according to the expected target received signal strength of the Bluetooth signal of the tested terminal and the received signal strength which the Bluetooth signal of the tested terminal is supposed to achieve under the condition that the Bluetooth signal of the tested terminal meets the normal use requirement. Specifically, the manner of determining whether the received signal strength satisfies the preset compensation condition is as follows:
judging whether the received signal strength meets a preset qualified standard or not; if the received signal strength meets the preset qualified standard, judging whether the strength difference value between the received signal strength and the target received signal strength is within a preset compensation range; and if the received signal strength is within the preset compensation range, judging that the received signal strength meets the preset compensation condition.
Specifically, the preset qualified standard is used for detecting whether the received signal strength of the bluetooth signal received by the device to be tested reaches the qualified standard, and if the received signal strength does not meet the preset qualified standard, the device to be tested is determined to be an unqualified product, and the received signal strength does not need to be adjusted. And if the received signal strength is judged to meet the preset qualified standard, the terminal to be tested is a qualified product, the received signal strength of the received Bluetooth signal can meet the requirement of normal use, and the operation of judging whether the strength difference value between the received signal strength and the pre-acquired target received signal strength is within the preset compensation range is continuously executed. The predetermined qualified criterion may be set according to a requirement of the received signal strength of the bluetooth signal of the terminal under test in actual use, for example, the predetermined qualified criterion is greater than a first received signal strength and less than a second received signal strength, i.e., a range between the first received signal strength and the second received signal strength, where the first received signal strength is a target received signal strength plus a, and the second received signal strength is the target received signal strength minus a, where a may be 2mW, and the first received signal strength is greater than the second received signal strength. Determining whether the received signal strength is within a range between the first received signal strength and the second received signal strength, if so, determining that the received signal strength meets a predetermined qualification criterion, and if the received signal strength is outside the range between the first received signal strength and the second received signal strength, determining that the received signal strength does not meet the predetermined qualification criterion.
And under the condition that the received signal strength meets a preset qualified standard, judging whether the strength difference value between the received signal strength and the pre-acquired target received signal strength is within a preset compensation range. The preset compensation range is a criterion for judging whether the received signal strength of the bluetooth signal of the terminal to be tested needs to be adjusted. Specifically, the preset compensation range is greater than the third received signal strength or less than the fourth received signal strength, the third received signal strength is greater than the fourth received signal strength, for example, the third received signal strength is +0.5mW, and the fourth received signal strength is-0.5 mW. And if the intensity difference value between the received signal intensity and the pre-acquired target received signal intensity is within the range between the third received signal intensity and the fourth received signal intensity, judging that the received signal intensity is not within the preset compensation range, and if the received signal intensity is smaller than the fourth received signal intensity or larger than the third received signal intensity, judging that the received signal intensity is within the preset compensation range. That is, if the absolute value of the received signal strength is less than 0.5mW, it is determined that the received signal strength is not within the preset compensation range, that is, the current received signal strength has satisfied the criterion, and it is not necessary to adjust the received signal strength of the bluetooth signal of the terminal under test, and if the absolute value of the received signal strength is greater than 0.5mW and less than 2mW, it is determined that the received signal strength is within the preset compensation range, and it is necessary to adjust the received signal strength of the bluetooth signal of the terminal under test, so that the received signal strength of the bluetooth signal received by the terminal under test can be closer to the target received signal strength.
It should be noted that, in some embodiments, when the received signal strength is determined to meet the predetermined qualified standard, step S204 may be directly performed, that is, whether the strength difference between the received signal strength and the target received signal strength obtained in advance is within the predetermined compensation range, the received signal strength of the bluetooth signal of the terminal under test may be adjusted according to the strength difference.
S204: and acquiring a strength difference value between the received signal strength and a preset target received signal strength.
And when the received signal strength is judged to meet the preset compensation condition, acquiring a strength difference value between the received signal strength and a target received signal strength acquired in advance. The target received signal strength is set according to the requirement of the received signal strength of the Bluetooth signal of the tested terminal in actual use.
S205: and obtaining an intensity compensation parameter according to the intensity difference, writing the intensity compensation parameter into the tested terminal, and instructing the tested terminal to adjust the received signal intensity of the received Bluetooth signal according to the intensity compensation parameter when reading the intensity compensation parameter.
And converting the intensity difference value into an intensity compensation parameter which can be identified by the tested terminal, specifically, converting the intensity difference value into the intensity compensation parameter according to the electric parameter of the Bluetooth receiving device of the tested terminal which is acquired in advance. The electrical parameter of the bluetooth receiving apparatus of the terminal under test includes a data format that can be recognized by the bluetooth receiving apparatus of the terminal under test, and specifically, may be a format standard of an interface of a chip of the bluetooth receiving apparatus for received data. For example, the format standards of the data received by the MTK or high-pass chip to its interface are different, for example, the requirement of high-pass is that the data must be a number greater than a certain value, for example, the intensity difference is-1, then the conversion may be-1 × 10+100 to obtain 90, and the obtained intensity compensation parameter is 90.
And then, writing the intensity compensation parameter into the tested terminal, instructing the tested terminal to adjust the receiving parameter of the Bluetooth receiving device according to the intensity compensation parameter when reading the intensity compensation parameter, and receiving the Bluetooth signal according to the adjusted receiving parameter. The received signal strength of the bluetooth signal received by the terminal under test is related to the receiving parameter of the bluetooth receiving apparatus, wherein the receiving parameter may be a gain parameter, for example, the gain parameter of the aforementioned gain adjusting apparatus. An antenna in a Bluetooth receiving device of a terminal to be tested receives a Bluetooth signal, the Bluetooth signal is subjected to front-end processing such as low-noise amplification and filtering, and then a gain adjusting device adjusts the signal intensity value of the received Bluetooth signal subjected to the front-end processing according to a gain parameter, so that the received signal intensity of the received Bluetooth signal can be adjusted by adjusting the gain parameter.
It should be noted that, after the test terminal writes the intensity compensation parameter into the terminal to be tested, the terminal to be tested stores the intensity compensation parameter, when receiving the bluetooth signal, first reads whether the intensity compensation parameter is stored, and if the intensity compensation parameter can be read, adjusts the received signal intensity of the received bluetooth signal according to the intensity compensation parameter.
In some embodiments, the intensity compensation parameter is set reasonably, so that the measured terminal can directly adjust the received signal intensity of the received bluetooth signal to be close to the target received signal intensity according to the intensity compensation parameter obtained this time, that is, within a preset compensation range, that is, without readjustment.
In other embodiments, after the intensity compensation parameter is written into the terminal to be tested, the transmission instruction is sent to the detection device again, and the detection device sends the Bluetooth signal again. The tested terminal sends the received signal strength of the received Bluetooth signal to the detection device again, the test terminal obtains the received signal strength sent by the detection device again, and executes again to judge whether the received signal strength meets the preset compensation condition, and through multiple iterations, the received signal strength of the Bluetooth signal received by the tested terminal is continuously close to the target received signal strength, namely, under the condition that the received signal strength meets the preset qualified condition, the strength difference value can be finally positioned outside the preset compensation range, and the received signal strength does not need to be adjusted any more.
Specifically, referring to fig. 3, fig. 3 shows a bluetooth signal adjustment method provided in the embodiment of the present application, which is applied to the test system shown in fig. 1, and specifically, a process of the method is described with a test terminal as an execution subject of the method, where the method includes: s301 to S311.
S301: and sending a transmitting instruction to the detection equipment, and instructing the detection equipment to send a Bluetooth signal to the tested terminal based on the transmitting instruction.
S302: and acquiring the received signal strength acquired from the tested terminal and sent by the detection equipment, wherein the received signal strength is acquired by the tested terminal according to the received Bluetooth signal.
S303: and judging whether the received signal strength meets the preset qualified standard.
S304: and judging whether the intensity difference value between the received signal intensity and the target received signal intensity is within a preset compensation range.
S305: and judging whether the intensity difference value obtained last time is stored.
The strength difference value acquired by the test terminal every time is correspondingly stored in the history acquisition record, and whether the strength difference value acquired this time is acquired for the first time or not is judged according to the history acquisition record, namely whether the strength difference value acquired last time is stored or not is judged.
S306: and summing the intensity difference value obtained last time and the intensity difference value obtained this time to obtain an accumulated intensity difference value.
When it is determined that the last acquired intensity difference value is not stored, that is, it is determined that the last acquired intensity difference value is stored, the last acquired intensity difference value and the intensity difference value acquired this time are summed to obtain an accumulated intensity difference value. For example, if the stored last acquired intensity difference is a and the currently acquired intensity difference is B, the accumulated intensity difference is a + B.
S307: and taking the accumulated intensity difference value as the intensity difference value obtained at this time and storing the intensity difference value.
The cumulative intensity difference, for example, a + B described above, is taken as the intensity difference acquired this time and stored in the corresponding history acquisition record.
Specifically, the following table is stored:
where the reference numeral is used to indicate the number of times, for example, reference numeral 1 indicates the intensity difference obtained for the first time, and reference numeral 3 indicates the intensity difference obtained for the third time, then the value in the column of "stored" is recorded as the corresponding stored intensity difference for the time, for example, the intensity difference stored for the first time is a, and the intensity difference stored for the third time is a + B + C. According to the table, whether the intensity difference value is stored before the current time can be judged, and the intensity difference value stored before can be obtained.
S308: and converting the intensity difference value into an intensity compensation parameter according to the electric parameters of the Bluetooth receiving device of the tested terminal, which are acquired in advance.
S309: and sending the intensity compensation parameter to the tested terminal, indicating the tested terminal to adjust the receiving parameter of the Bluetooth receiving device according to the intensity compensation parameter when reading the intensity compensation parameter, and adjusting the received signal intensity of the Bluetooth signal according to the adjusted receiving parameter.
S310: and clearing the intensity compensation parameters stored in the tested terminal.
And under the condition that the received signal strength is judged not to meet the preset qualified standard, judging that the tested terminal is unqualified, and returning the tested terminal to the calibration link to re-execute the calibration operation. The intensity compensation parameters stored in the terminal under test are deleted, where the intensity compensation parameters input by the calibration link are stored in the terminal under test, and also include the intensity compensation parameters written in the process of adjusting the received signal intensity of the bluetooth signal of the terminal under test, and these intensity compensation parameters are reasons that the received signal intensity does not meet the preset qualified standard, so that it is necessary to return to the calibration link after clearing all the intensity compensation parameters, that is, S311 is executed.
S311: and executing recalibration operation to write a preset initial intensity compensation parameter into the tested terminal, wherein the preset initial intensity compensation parameter is used for adjusting a preset qualified standard when the received signal intensity of the Bluetooth signal received by the tested terminal is full.
Wherein the preset initial intensity compensation parameter is the intrinsic intensity compensation parameter input in the calibration operation. The calibration operation is to calibrate certain specific frequency points of the bluetooth receiving signals of the terminal to be tested in the production process of the terminal to be tested, then generate certain preset initial intensity compensation parameters through certain algorithms and temperature compensation algorithms, and then write the preset initial intensity compensation parameters into the terminal to be tested. However, in the calibration operation, the calibration is inaccurate due to the contact of the thimble or the influence of inaccurate temperature or line loss compensation of a production line or the difference of the algorithm, so that the received signal strength of the bluetooth signal actually received by the terminal to be tested cannot meet the preset qualified standard.
Therefore, in the case that the received signal strength is determined not to satisfy the predetermined qualified standard, the calibration operation is re-executed, that is, the strength compensation parameters causing the received signal strength not to satisfy the predetermined qualified standard are deleted, and the predetermined initial strength compensation parameters are re-input, so as to adjust the received signal strength of the bluetooth signal received by the terminal under test to satisfy the predetermined qualified standard, wherein the re-input predetermined initial strength compensation parameters are generated in the calibration operation, and the algorithm in the calibration operation is adjusted to re-input new predetermined initial strength compensation parameters so as to cause the received signal strength of the bluetooth signal received by the terminal under test to satisfy the predetermined qualified standard in the case that the received signal strength of the bluetooth signal received by the terminal under test does not satisfy the predetermined qualified standard based on the previously input predetermined initial strength compensation.
It should be noted that, after the preset initial strength compensation parameter is written in, it may be determined again whether the received signal strength of the bluetooth signal received by the terminal to be tested meets the preset qualified standard, if the received signal strength of the bluetooth signal received by the terminal to be tested is still unqualified, the strength compensation parameter stored in the terminal to be tested is cleared again, and the recalibration operation is performed again until the received signal strength of the bluetooth signal received by the terminal to be tested meets the preset qualified standard. Further, the number of times of executing the recalibration operation is recorded, and when the number of times is equal to a preset upper limit value, the intensity compensation parameter and the recalibration operation stored in the tested terminal are not cleared any more, and the tested terminal is judged to be a defective product and is discarded.
It should be noted that, for the parts not described in detail in the above steps, reference may be made to the foregoing embodiments, and details are not described herein again.
In addition, considering that, when a plurality of iterations are performed to make the strength difference between the received signal strength of the bluetooth signal received by the terminal under test and the target received signal strength meet the requirement, that is, the received signal strength meets the preset qualification standard, and the strength difference between the received signal strength and the target received signal strength obtained in advance is outside the preset compensation range, if the number of iterations is too large, the test system will be stressed, the test resource will be excessively occupied, and the cost will be excessively increased, and therefore, a limitation needs to be made on the number of iterations, specifically, refer to fig. 4, where fig. 4 shows a bluetooth signal adjustment method provided in the embodiment of the present application, which is applied to the test system shown in fig. 1, and specifically, the process of the method is described by taking the test terminal as an execution subject of the method, the method includes: s401 to S413.
S401: and sending a transmitting instruction to the detection equipment, and instructing the detection equipment to send a Bluetooth signal to the tested terminal based on the transmitting instruction.
S402: and acquiring the received signal strength acquired from the tested terminal and sent by the detection equipment, wherein the received signal strength is acquired by the tested terminal according to the received Bluetooth signal.
S403: and judging whether the received signal strength value meets a preset qualified standard.
S404: and searching the write-in times of the current write-in of the intensity compensation parameter to the tested terminal according to a pre-stored intensity compensation parameter sending record.
And if the preset qualified standard is met, searching the write-in times of currently sending the intensity compensation parameter to the tested terminal according to a prestored intensity compensation parameter sending record. The intensity compensation parameter transmission record records the intensity compensation parameter of each transmission and records the number of transmissions.
S405: and judging whether the searched transmitting times exceed the preset times.
The preset number of times is set according to actual use, when the searched writing number of times exceeds the preset number of times, the operation is ended, and when the searched writing number of times does not exceed the preset number of times, the operation of S406 is executed. For example, after the intensity compensation parameter is written into the tested terminal, the number of writing times is recorded as K, the received signal intensity of the bluetooth signal adjusted by the tested terminal according to the intensity compensation parameter is obtained again, whether the received signal intensity meets the preset qualified standard is judged, if yes, whether K exceeds the preset number of times is judged, if yes, the operation is ended, and then the received signal intensity of the received bluetooth signal is adjusted according to the intensity compensation parameter after the tested terminal reads the intensity compensation parameter written at the kth time. That is, it can be considered that after the adjustment for K times, the intensity compensation parameter inputted for the K-th time can be determined, and the received signal intensity of the bluetooth signal received by the terminal under test can be made to approach the target received signal intensity, which can meet the use requirement.
S406: and judging whether the intensity difference value between the received signal intensity and the target received signal intensity is within a preset compensation range.
S407: and judging whether the intensity difference value obtained last time is stored.
S408: and summing the intensity difference value obtained last time and the intensity difference value obtained this time to obtain an accumulated intensity difference value.
S409: and taking the accumulated intensity difference value as the intensity difference value obtained at this time and storing the intensity difference value.
S410: and converting the intensity difference value into an intensity compensation parameter according to the electric parameters of the Bluetooth receiving device of the tested terminal, which are acquired in advance.
S411: and sending the intensity compensation parameter to the tested terminal, indicating the tested terminal to adjust the receiving parameter of the Bluetooth receiving device according to the intensity compensation parameter when reading the intensity compensation parameter, and adjusting the received signal intensity of the Bluetooth signal according to the adjusted receiving parameter.
And after the intensity compensation parameter is sent to the tested terminal, changing the writing times in the intensity compensation parameter sending record from K to K + 1.
S412: and clearing the intensity compensation parameters stored in the tested terminal.
S413: and executing recalibration operation to write a preset initial intensity compensation parameter into the tested terminal, wherein the preset initial intensity compensation parameter is used for adjusting a preset qualified standard when the received signal intensity of the Bluetooth signal received by the tested terminal is full.
It should be noted that, for the parts not described in detail in the above steps, reference may be made to the foregoing embodiments, and details are not described herein again.
Referring to fig. 5, fig. 5 is a timing diagram illustrating interaction among devices in a test system according to an embodiment of the present disclosure.
S501: and the test terminal sends a transmitting instruction to the detection equipment.
S502: and the detection equipment sends a Bluetooth signal to the tested terminal based on the emission instruction.
S503: and the tested terminal obtains the received signal strength according to the received Bluetooth signal and sends the received signal strength to the detection equipment.
S504: and the detection equipment sends the received signal strength to the test terminal.
S505: and the test terminal judges whether the received signal strength meets a preset compensation condition.
S506: and if so, the test terminal acquires the intensity difference between the received signal intensity and the pre-acquired target received signal intensity.
S507: and the test terminal acquires an intensity compensation parameter according to the intensity difference value and writes the intensity compensation parameter into the tested terminal.
S508: and the tested terminal adjusts the received signal intensity of the received Bluetooth signal according to the intensity compensation parameter when reading the intensity compensation parameter.
It should be noted that, for the parts not described in detail in the above steps, reference may be made to the foregoing embodiments, and details are not described herein again.
Referring to fig. 6, fig. 6 shows an apparatus 600 for adjusting a terminal bluetooth signal according to an embodiment of the present application, which is applied to the test system shown in fig. 1, and in particular, the apparatus is applied to a test terminal, and the apparatus includes: a transmitting unit 601, a first acquiring unit 602, a judging unit 603, a second acquiring unit 604, and an adjusting unit 605.
A sending unit 601, configured to send a transmission instruction to the detection device, and instruct the detection device to send a bluetooth signal to the terminal under test based on the transmission instruction;
a first obtaining unit 602, configured to obtain a received signal strength obtained from the terminal under test sent by the detection device, where the received signal strength is obtained by the terminal under test according to the received bluetooth signal;
a determining unit 603, configured to determine whether the received signal strength meets a preset compensation condition;
a second obtaining unit 604, configured to obtain, if the strength difference is satisfied, a strength difference between the received signal strength and a target received signal strength obtained in advance;
an adjusting unit 605, configured to obtain an intensity compensation parameter according to the intensity difference, write the intensity compensation parameter into the terminal under test, and instruct the terminal under test to adjust the received signal intensity of the received bluetooth signal according to the intensity compensation parameter when the intensity compensation parameter is read.
Further, the device also comprises a clearing unit, a recalibration unit and a time judgment unit.
And the clearing unit is used for clearing the intensity compensation parameter stored in the tested terminal if the intensity of the received signal does not meet the preset qualified standard.
And the recalibration unit is used for executing recalibration operation so as to write a preset initial intensity compensation parameter into the tested terminal, wherein the preset initial intensity compensation parameter is used for adjusting a preset qualified standard when the received signal intensity of the Bluetooth signal received by the tested terminal is full.
The frequency judging unit is used for sending a record according to a pre-stored intensity compensation parameter if the preset qualified standard is met, and searching the current write-in frequency of the intensity compensation parameter written into the tested terminal; judging whether the searched transmitting times exceed preset times or not; if the number of times does not exceed the preset number of times, judging whether the intensity difference value between the received signal intensity and the target received signal intensity is within a preset compensation range; if the number of times exceeds the preset number, the method is ended.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Referring to fig. 7, a test terminal is provided based on the above method and apparatus. The test terminal 300 comprises a memory 320 and a processor 310, said memory 320 being coupled to said processor 310; the memory 320 stores instructions that, when executed by the processor 310, cause the processor 310 to perform the above-described method.
The memory 320 may be used to store software programs and modules, and the processor 310 executes various functional applications and data processing by operating the software programs and modules stored in the memory 320. The memory 320 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 320 may further include memory located remotely from the processor 310, which may be connected to the processor via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Referring to fig. 8 again, based on the above method and apparatus, the present embodiment further provides a terminal under test 100, which includes an electronic body 10, where the electronic body 10 includes a housing 12 and a main display 120 disposed on the housing 12. The housing 12 may be made of metal, such as steel or aluminum alloy. In this embodiment, the main display 120 generally includes a display panel 111, and may also include a circuit or the like for responding to a touch operation performed on the display panel 111. The Display panel 111 may be a Liquid Crystal Display (LCD) panel, and in some embodiments, the Display panel 111 is a touch screen 109.
Referring to fig. 9, in an actual application scenario, the terminal 100 to be tested may be used as a smart phone terminal, in which case the electronic body 10 generally further includes one or more processors 102 (only one is shown in the figure), a memory 104, an RF (Radio Frequency) module 106, an audio circuit 110, a sensor 114, an input module 118, and a power module 122. It will be understood by those skilled in the art that the structure shown in fig. 9 is merely illustrative and is not intended to limit the structure of the electronic body 10. For example, the electronics body section 10 may also include more or fewer components than shown in FIG. 9, or have a different configuration than shown in FIG. 8.
Those skilled in the art will appreciate that all other components are peripheral devices with respect to the processor 102, and the processor 102 is coupled to the peripheral devices through a plurality of peripheral interfaces 124. The peripheral interface 124 may be implemented based on the following criteria: universal Asynchronous Receiver/Transmitter (UART), General Purpose Input/Output (GPIO), Serial Peripheral Interface (SPI), and Inter-Integrated Circuit (I2C), but the present invention is not limited to these standards. In some examples, the peripheral interface 124 may comprise only a bus; in other examples, the peripheral interface 124 may also include other elements, such as one or more controllers, for example, a display controller for interfacing with the display panel 111 or a memory controller for interfacing with a memory. These controllers may also be separate from the peripheral interface 124 and integrated within the processor 102 or a corresponding peripheral.
The memory 104 may be used to store software programs and modules, and the processor 102 executes various functional applications and data processing by executing the software programs and modules stored in the memory 104. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the electronic body portion 10 or the primary display 120 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The RF module 106 is configured to receive and transmit electromagnetic waves, and achieve interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The RF module 106 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The RF module 106 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices via a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols and technologies, including, but not limited to, Global System for Mobile Communication (GSM), Enhanced Mobile Communication (Enhanced Data GSM Environment, EDGE), wideband Code division multiple Access (W-CDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (WiFi) (e.g., IEEE802.1 a, IEEE802.11 b, IEEE802.1 g and/or IEEE802.11 n), Voice over internet protocol (VoIP), world wide mail Access (world wide for Wireless Communication), and other instant messaging protocols, as well as any other suitable communication protocols, and may even include those that have not yet been developed.
The audio circuitry 110, earpiece 101, sound jack 103, microphone 105 collectively provide an audio interface between a user and the electronic body portion 10 or the main display 120. Specifically, the audio circuit 110 receives sound data from the processor 102, converts the sound data into an electrical signal, and transmits the electrical signal to the earpiece 101. The earpiece 101 converts the electrical signal into sound waves that can be heard by the human ear. The audio circuitry 110 also receives electrical signals from the microphone 105, converts the electrical signals to sound data, and transmits the sound data to the processor 102 for further processing. Audio data may be retrieved from the memory 104 or through the RF module 106. In addition, audio data may also be stored in the memory 104 or transmitted through the RF module 106.
The sensor 114 is disposed in the electronic body portion 10 or the main display 120, examples of the sensor 114 include, but are not limited to: light sensors, operational sensors, pressure sensors, gravitational acceleration sensors, and other sensors.
Specifically, the light sensors may include a light sensor 114F, a pressure sensor 114G. Among them, the pressure sensor 114G may detect a pressure generated by pressing the terminal under test 100. That is, the pressure sensor 114G detects pressure generated by contact or pressing between the user and the mobile terminal, for example, contact or pressing between the user's ear and the mobile terminal. Accordingly, the pressure sensor 114G may be used to determine whether contact or pressing has occurred between the user and the terminal under test 100, and the magnitude of the pressure.
Referring to fig. 8 again, in the embodiment shown in fig. 8, the light sensor 114F and the pressure sensor 114G are disposed adjacent to the display panel 111. The light sensor 114F may turn off the display output when an object is near the main display 120, for example, when the electronic body portion 10 moves to the ear.
As one of the motion sensors, the gravitational acceleration sensor may detect the magnitude of acceleration in various directions (generally three axes), detect the magnitude and direction of gravity when stationary, and be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), and the like, for recognizing the attitude of the terminal 100 under test. In addition, the electronic body 10 may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer and a thermometer, which are not described herein,
in this embodiment, the input module 118 may include the touch screen 109 disposed on the main display 120, and the touch screen 109 may collect touch operations of the user (for example, operations of the user on or near the touch screen 109 using any suitable object or accessory such as a finger, a stylus, etc.) and drive the corresponding connection device according to a preset program. Optionally, the touch screen 109 may include a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 102, and can receive and execute commands sent by the processor 102. In addition, the touch detection function of the touch screen 109 may be implemented by various types, such as resistive, capacitive, infrared, and surface acoustic wave.
The main display 120 is used to display information input by a user, information provided to the user, and various graphic user interfaces of the electronic body section 10, which may be composed of graphics, text, icons, numbers, video, and any combination thereof, and in one example, the touch screen 109 may be provided on the display panel 111 so as to be integrated with the display panel 111.
The power module 122 is used to provide power supply to the processor 102 and other components. Specifically, the power module 122 may include a power management system, one or more power sources (e.g., batteries or ac power), a charging circuit, a power failure detection circuit, an inverter, a power status indicator light, and any other components associated with the generation, management, and distribution of power within the electronic body portion 10 or the primary display 120.
The terminal under test 100 further comprises a locator 119, and the locator 119 is configured to determine an actual location of the terminal under test 100. In this embodiment, the locator 119 implements the positioning of the terminal 100 by using a positioning service, which is understood to be a technology or a service for obtaining the position information (e.g., longitude and latitude coordinates) of the terminal 100 by using a specific positioning technology and marking the position of the object to be positioned on the electronic map.
It should be understood that the above-described terminal under test 100 is not limited to a smartphone terminal, but it should refer to a computer device that can be used in mobility. Specifically, the terminal 100 to be tested refers to a mobile computer device equipped with an intelligent operating system, and the terminal 100 to be tested includes, but is not limited to, a smart phone, a smart watch, a tablet computer, and the like.