CN107896131B - Bluetooth signal adjusting method, device, test terminal, system and readable medium - Google Patents
Bluetooth signal adjusting method, device, test terminal, system and readable medium Download PDFInfo
- Publication number
- CN107896131B CN107896131B CN201711408284.8A CN201711408284A CN107896131B CN 107896131 B CN107896131 B CN 107896131B CN 201711408284 A CN201711408284 A CN 201711408284A CN 107896131 B CN107896131 B CN 107896131B
- Authority
- CN
- China
- Prior art keywords
- received signal
- intensity
- terminal
- signal strength
- preset
- 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.)
- Expired - Fee Related
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 156
- 238000000034 method Methods 0.000 title claims abstract description 62
- 238000001514 detection method Methods 0.000 claims abstract description 77
- 238000004891 communication Methods 0.000 abstract description 8
- 230000005540 biological transmission Effects 0.000 description 12
- 230000006870 function Effects 0.000 description 12
- 230000008569 process Effects 0.000 description 11
- 230000002093 peripheral effect Effects 0.000 description 9
- 238000012545 processing Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 238000003860 storage Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 238000010295 mobile communication Methods 0.000 description 4
- 238000003825 pressing Methods 0.000 description 4
- 230000011664 signaling Effects 0.000 description 4
- 230000001133 acceleration Effects 0.000 description 3
- 230000002238 attenuated effect Effects 0.000 description 3
- 238000004519 manufacturing process Methods 0.000 description 3
- 238000012797 qualification Methods 0.000 description 3
- 230000003321 amplification Effects 0.000 description 2
- 238000013459 approach Methods 0.000 description 2
- 238000001914 filtration Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000003199 nucleic acid amplification method Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 229910000838 Al alloy Inorganic materials 0.000 description 1
- 229910000851 Alloy steel Inorganic materials 0.000 description 1
- 238000009825 accumulation Methods 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 238000010923 batch production Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000001186 cumulative effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000002950 deficient Effects 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 229910052751 metal Inorganic materials 0.000 description 1
- 239000002184 metal Substances 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000010079 rubber tapping Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 239000010959 steel Substances 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B17/00—Monitoring; Testing
- H04B17/20—Monitoring; Testing of receivers
- H04B17/21—Monitoring; Testing of receivers for calibration; for correcting measurements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B17/00—Monitoring; Testing
- H04B17/20—Monitoring; Testing of receivers
- H04B17/29—Performance testing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B17/00—Monitoring; Testing
- H04B17/30—Monitoring; Testing of propagation channels
- H04B17/309—Measuring or estimating channel quality parameters
- H04B17/318—Received signal strength
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Quality & Reliability (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The application discloses a Bluetooth signal adjusting method, a Bluetooth signal adjusting device, a testing terminal, a Bluetooth signal adjusting system and a readable medium, and belongs to the technical field of communication. The method comprises the following steps: the test terminal sends a transmitting instruction to the detection equipment, and the detection equipment is instructed to send a Bluetooth signal to the tested terminal based on the transmitting instruction; acquiring the intensity of a received signal sent by a tested terminal, wherein the intensity of the received signal is acquired by the tested terminal according to a received Bluetooth signal; judging whether the received signal strength meets a preset compensation condition or not; if yes, obtaining the intensity difference between the received signal intensity and the preset target received signal intensity; and obtaining an intensity compensation parameter according to the intensity difference, writing the intensity compensation parameter into the tested terminal, and indicating 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. Therefore, the received signal strength of the Bluetooth signal is closer to the target received signal strength, and the accuracy and consistency of the received signal strength are improved.
Description
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method, an apparatus, a test terminal, a system and a readable medium for adjusting a bluetooth signal.
Background
In the production process of the wireless terminal, the accuracy of the received signal strength of the terminal is usually ensured by calibrating or writing a fixed calibration compensation value in the bluetooth mode, in the calibration process, the received signal strength of each terminal has residual errors possibly caused by differences of environmental interference, temperature, humidity, power supply or RF thimble contact line loss and the like, while the received signal strength deviation caused by the hardware difference of the terminal product in the batch production process cannot be ensured by writing the fixed compensation value in the calibration process, and the accuracy and consistency of the received signal strength of the bluetooth signal of the terminal are too low.
Disclosure of Invention
The application provides a Bluetooth signal adjusting method, a Bluetooth signal adjusting device, a testing terminal, a Bluetooth signal adjusting system and a computer readable medium, and aims to overcome the defects.
In a first aspect, an embodiment of the present application provides a bluetooth signal adjusting method, which is applied to a test system, where the test system includes a detection device, a test terminal, and a terminal under test. The method comprises the following steps: the test terminal sends a transmitting instruction to the detection equipment, and the detection equipment is instructed to send a Bluetooth signal to the tested terminal based on the transmitting instruction; acquiring the received signal strength sent by the tested terminal, wherein the received signal strength is acquired by the tested terminal according to the received Bluetooth signal; judging whether the received signal strength meets a preset compensation condition or not; if yes, obtaining a strength difference value between the received signal strength and a preset target received signal strength; 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.
In a second aspect, an embodiment of the present application further provides a bluetooth signal adjusting method, which is applied to a test system, where the test system includes a test terminal, a detection device, and a terminal under test, and the method includes: the test terminal sends a transmitting instruction to the detection equipment; the detection equipment sends a Bluetooth signal to the tested terminal based on the emission instruction; the tested terminal obtains the received signal strength according to the received Bluetooth signal and sends the received signal strength to the testing terminal; the test terminal acquires the intensity of a received signal sent by the tested terminal and judges whether the intensity of the received signal meets a preset compensation condition; if yes, acquiring a strength difference value between the received signal strength and a pre-acquired target received signal strength; obtaining an intensity compensation parameter according to the intensity difference value, and writing the intensity compensation parameter into the tested terminal; 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.
In a third aspect, an embodiment of the present application further provides an apparatus for adjusting a terminal bluetooth signal, which is applied to a test terminal of a test system, where the test system further includes a detection device and a terminal to be tested, and the apparatus includes: the device comprises a sending unit, a first acquiring unit, a judging unit, a second acquiring unit and an adjusting unit. The sending unit is used for sending a sending instruction to the detection equipment and instructing the detection equipment to send a Bluetooth signal to the tested terminal based on the sending instruction; a first obtaining unit, configured to obtain a received signal strength sent by the terminal under test, where the received signal strength is obtained by the terminal under test according to the received bluetooth signal; the judging unit is used for judging whether the received signal strength meets a preset compensation condition or not; a second obtaining unit, configured to, if the strength difference is satisfied, obtain a strength difference between the received signal strength and a target received signal strength that is obtained in advance; and the adjusting unit is used for acquiring an intensity compensation parameter according to the intensity difference value, 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 the intensity compensation parameter is read.
In a fourth aspect, an embodiment of the present application further provides a test terminal, which includes a memory and a processor, where the memory is coupled with the processor. The memory stores instructions that, when executed by the processor, cause the processor to: 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; acquiring the received signal strength sent by the tested terminal, wherein the received signal strength is acquired by the tested terminal according to the received Bluetooth signal; judging whether the received signal strength meets a preset compensation condition or not; if yes, acquiring a strength difference value between the received signal strength and a pre-acquired target received signal strength; 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.
In a fifth aspect, an embodiment of the present application further provides a test system, including: the device comprises detection equipment, a test terminal and a tested terminal, wherein the detection equipment and the tested terminal are connected with the test terminal. And the test terminal is used for sending a transmitting instruction to the detection equipment. And the detection equipment is used for sending a Bluetooth signal to the terminal to be detected based on the emission instruction. And the tested terminal is used for obtaining the received signal strength according to the received Bluetooth signal and sending the received signal strength to the test terminal. The test terminal is further used for obtaining the strength of the received signal sent by the tested terminal and judging whether the strength of the received signal meets a preset compensation condition; if yes, acquiring a strength difference value between the received signal strength and a pre-acquired target received signal strength; and obtaining an intensity compensation parameter according to the intensity difference value, and writing the intensity compensation parameter into the tested terminal. And the tested terminal is used for adjusting the received signal strength of the received Bluetooth signal according to the intensity compensation parameter when the intensity compensation parameter is read.
In a sixth aspect, the present application also provides a computer-readable medium having program code executable by a processor, where the program code causes the processor to execute the above method.
According to the Bluetooth signal adjusting method, the Bluetooth signal adjusting device, the testing terminal, the testing system and the readable medium, the testing terminal sends the emission instruction to the detecting device, the detecting device sends the Bluetooth signal according to the emission instruction, the tested terminal receives the Bluetooth signal, and the received signal strength corresponding to the Bluetooth signal is obtained according to the received Bluetooth signal. The method comprises the steps that a test terminal obtains the intensity of a received signal sent by a tested terminal, when the signal intensity value is judged to meet a preset compensation condition, the intensity difference value between the received signal intensity and the preset target received signal intensity is obtained, an intensity compensation parameter is obtained according to the intensity difference value, and the intensity compensation parameter is written into the tested terminal. 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. Therefore, the received signal strength of the Bluetooth signal of the terminal to be tested is adjusted according to the strength difference between the received signal strength and the preset target received signal strength, so that the received signal strength of the Bluetooth signal is closer to the target received signal strength, and the accuracy and the consistency of the received signal strength are improved.
Additional features and advantages of embodiments of the present application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of embodiments of the present application. The objectives and other advantages of the embodiments of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 shows a block diagram of a test system provided by an embodiment of the present application;
fig. 2 is a flowchart illustrating a method of adjusting bluetooth signals according to a first embodiment of the present application;
fig. 3 is a flowchart illustrating a method of adjusting bluetooth signals according to a second embodiment of the present application;
fig. 4 is a flowchart illustrating a method of adjusting bluetooth signals according to a third embodiment of the present application;
FIG. 5 is a timing diagram illustrating interaction among devices of a test system according to an embodiment of the present disclosure;
fig. 6 shows a block diagram of an adjusting apparatus for bluetooth signals of a terminal according to a fourth embodiment of the present application;
FIG. 7 is a block diagram of a test terminal according to a fourth embodiment of the present application;
fig. 8 shows a schematic structural diagram of a terminal under test provided in an embodiment of the present application;
fig. 9 shows a block diagram of a tested terminal according to an embodiment of the present application.
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 subjected to 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 non-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 a non-signaling test of a bluetooth signal of a tested terminal, and under the non-signaling test, the tested terminal controls the establishment of communication connection between the tested terminal and a detection device through data lines such as a USB or other communication modes, specifically, the tested terminal sets a frequency band and a frequency point of the tested terminal, so that the tested terminal and the detection device establish bluetooth communication connection according to the frequency band and the frequency point. The test terminal controls the detection and transmission of 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 non-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 sent by the tested terminal, 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 a return value of a readremoterssi function or a readRSSI function to obtain the received signal strength of the received bluetooth signal, and then transmit the received signal strength to the test terminal. Specifically, after the terminal under test receives the bluetooth signal and analyzes the received signal strength obtained by obtaining the bluetooth signal, the received signal strength of the bluetooth signal may be sent to the test terminal. The measured terminal may obtain the received signal strength of the bluetooth signal and then store the received signal strength in a local memory. The test terminal sends an acquisition request to the tested terminal, and the tested terminal 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 test terminal acquires the received signal strength of the tested terminal for receiving the Bluetooth signal again, executes judgment again to determine whether the received signal strength meets the preset compensation condition, and iterates for multiple times to enable the received signal strength of the Bluetooth signal received by the tested terminal to be continuously close to the target received signal strength, namely the strength difference value can be finally located outside the preset compensation range under the condition that the received signal strength meets the preset qualified condition, and the received signal strength does not need to be adjusted.
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 sent by the tested terminal, 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:
reference numerals | Obtained by | After accumulation | Stored |
1 | A | A | A |
2 | B | A+B | A+B |
3 | C | A+B+C | A+B+C |
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 sent by the tested terminal, 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 test terminal.
S504: and the test terminal judges whether the received signal strength meets a preset compensation condition.
S505: and if so, the test terminal acquires the intensity difference between the received signal intensity and the pre-acquired target received signal intensity.
S506: 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.
S507: 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.
The sending unit is used for sending a sending instruction to the detection equipment and instructing the detection equipment to send a Bluetooth signal to the tested terminal based on the sending instruction;
a first obtaining unit, configured to obtain a received signal strength sent by the terminal under test, where the received signal strength is obtained by the terminal under test according to the received bluetooth signal;
the judging unit is used for judging whether the received signal strength meets a preset compensation condition or not;
a second obtaining unit, configured to, if the strength difference is satisfied, obtain a strength difference between the received signal strength and a target received signal strength that is obtained in advance;
and the adjusting unit is used for acquiring an intensity compensation parameter according to the intensity difference value, 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 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 (Microwave for Wireless communications, wimax), and any other suitable protocol for instant messaging, and may even include those protocols 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.
In summary, according to the bluetooth signal adjusting method, device, test terminal, system, and readable medium provided in this embodiment of the present application, the test terminal sends an emission instruction to the detection device, the detection device sends a bluetooth signal according to the emission instruction, and the terminal to be tested receives the bluetooth signal and obtains the received signal strength corresponding to the bluetooth signal according to the received bluetooth signal. The method comprises the steps that a test terminal obtains the intensity of a received signal sent by a tested terminal, when the signal intensity value is judged to meet a preset compensation condition, the intensity difference value between the received signal intensity and the preset target received signal intensity is obtained, an intensity compensation parameter is obtained according to the intensity difference value, and the intensity compensation parameter is written into the tested terminal. 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. Therefore, the received signal strength of the Bluetooth signal of the terminal to be tested is adjusted according to the strength difference between the received signal strength and the preset target received signal strength, so that the received signal strength of the Bluetooth signal is closer to the target received signal strength, and the accuracy and the consistency of the received signal strength are improved.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (mobile terminal) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments. In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.
Claims (9)
1. A Bluetooth signal adjusting method is applied to a test system, wherein the test system comprises a detection device, a test terminal and a tested terminal, and the method comprises the following steps:
the test terminal sends a transmitting instruction to the detection equipment, and the detection equipment is instructed to send a Bluetooth signal to the tested terminal based on the transmitting instruction;
acquiring the received signal strength sent by the tested terminal, wherein the received signal strength is acquired by the tested terminal according to the received Bluetooth signal;
judging whether the received signal strength meets a preset qualified standard, wherein the preset qualified standard is used for detecting whether the received signal strength of the Bluetooth signal received by the tested equipment meets the qualified standard, and the preset qualified standard is greater than the first received signal strength and less than the second received signal strength;
if the received signal strength meets the preset qualified standard, acquiring a strength difference value between the received signal strength and a preset target received signal strength;
judging whether the intensity difference value is within a preset compensation range, wherein the preset compensation range is greater than the intensity of a third received signal or less than the intensity of a fourth received signal, and the intensity of the third received signal is greater than the intensity of the fourth received signal;
and if the intensity compensation parameter is within the preset compensation range, acquiring 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 the intensity compensation parameter is read.
2. The method of claim 1, wherein obtaining a strength difference between the received signal strength and a preset target received signal strength comprises:
judging whether the intensity difference value obtained last time is stored;
if so, summing the intensity difference obtained last time and the intensity difference obtained this time to obtain an accumulated intensity difference;
and taking the accumulated intensity difference value as the intensity difference value obtained at this time and storing the intensity difference value.
3. The method according to any one of claims 1-2, wherein the obtaining an intensity compensation parameter according to the intensity difference, writing the intensity compensation parameter into the terminal under test, and instructing the terminal under test to adjust the received signal intensity of the received bluetooth signal according to the intensity compensation parameter when reading the intensity compensation parameter comprises:
converting the intensity difference value into an intensity compensation parameter according to the electric parameters of the Bluetooth receiving device of the tested terminal acquired in advance;
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.
4. The method of claim 1, further comprising:
if the intensity compensation parameter does not meet the preset qualified standard, removing the intensity compensation parameter stored in the tested terminal;
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 the received signal intensity of the Bluetooth signal received by the tested terminal to meet a preset qualified standard.
5. A Bluetooth signal adjusting method is applied to a test system, wherein the test system comprises a test terminal, a detection device and a tested terminal, and the method comprises the following steps:
the test terminal sends a transmitting instruction to the detection equipment;
the detection equipment sends a Bluetooth signal to the tested terminal based on the emission instruction;
the tested terminal obtains the received signal strength according to the received Bluetooth signal and sends the received signal strength to the testing terminal;
the test terminal acquires the intensity of a received signal sent by the tested terminal and judges whether the intensity of the received signal meets a preset qualified standard, the preset qualified standard is used for detecting whether the intensity of the received signal of the Bluetooth signal received by the tested equipment meets the qualified standard, and the preset qualified standard is greater than the first intensity of the received signal and less than the second intensity of the received signal; if the received signal strength meets the preset qualified standard, acquiring a strength difference value between the received signal strength and a preset target received signal strength; judging whether the intensity difference value is within a preset compensation range, wherein the preset compensation range is greater than the intensity of a third received signal or less than the intensity of a fourth received signal, and the intensity of the third received signal is greater than the intensity of the fourth received signal; if the intensity difference value is within the preset compensation range, obtaining an intensity compensation parameter according to the intensity difference value, and writing the intensity compensation parameter into the tested terminal;
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.
6. The utility model provides an adjusting device of terminal bluetooth signal which characterized in that is applied to test system's test terminal, test system still includes check out test set and terminal under test, the device includes:
the sending unit is used for sending a sending instruction to the detection equipment and instructing the detection equipment to send a Bluetooth signal to the tested terminal based on the sending instruction;
a first obtaining unit, configured to obtain a received signal strength sent by the terminal under test, where the received signal strength is obtained by the terminal under test according to the received bluetooth signal;
the judging unit is used for judging whether the received signal strength meets a preset qualified standard, the preset qualified standard is used for detecting whether the received signal strength of the Bluetooth signal received by the tested equipment meets the qualified standard, and the preset qualified standard is greater than the first received signal strength and smaller than the second received signal strength; if the received signal strength meets the preset qualified standard, judging whether the strength difference value between the received signal strength and the preset target received signal strength is within a preset compensation range, wherein the preset compensation range is greater than a third received signal strength or less than a fourth received signal strength, and the third received signal strength is greater than the fourth received signal strength;
a second obtaining unit, configured to obtain a strength difference between the received signal strength and a target received signal strength obtained in advance;
and the adjusting unit is used for acquiring an intensity compensation parameter according to the intensity difference if the intensity compensation parameter is within a preset compensation range, 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 the intensity compensation parameter is read.
7. A test terminal comprising a memory and a processor, the memory coupled to the processor; the memory stores instructions that, when executed by the processor, cause the processor to perform the method of any of claims 1-4.
8. A test system, comprising: the system comprises detection equipment, a test terminal and a tested terminal, wherein the detection equipment and the tested terminal are connected with the test terminal;
the test terminal is used for sending a transmitting instruction to the detection equipment;
the detection equipment is used for sending a Bluetooth signal to the terminal to be detected based on the emission instruction;
the tested terminal is used for obtaining the received signal strength according to the received Bluetooth signal and sending the received signal strength to the testing terminal;
the test terminal is further configured to obtain the received signal strength sent by the tested terminal, and determine whether the received signal strength meets a preset qualified standard, where the preset qualified standard is used to detect whether the received signal strength of the bluetooth signal received by the tested device meets the qualified standard, and is greater than the first received signal strength and less than the second received signal strength; if the received signal strength meets the preset qualified standard, acquiring a strength difference value between the received signal strength and a preset target received signal strength; judging whether the intensity difference value is within a preset compensation range, wherein the preset compensation range is greater than the intensity of a third received signal or less than the intensity of a fourth received signal, and the intensity of the third received signal is greater than the intensity of the fourth received signal; if the intensity difference value is within the preset compensation range, obtaining an intensity compensation parameter according to the intensity difference value, and writing the intensity compensation parameter into the tested terminal;
and the tested terminal is used for adjusting the received signal strength of the received Bluetooth signal according to the intensity compensation parameter when the intensity compensation parameter is read.
9. A computer-readable medium having program code executable by a processor, wherein the program code causes the processor to perform the method of any one of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711408284.8A CN107896131B (en) | 2017-12-22 | 2017-12-22 | Bluetooth signal adjusting method, device, test terminal, system and readable medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711408284.8A CN107896131B (en) | 2017-12-22 | 2017-12-22 | Bluetooth signal adjusting method, device, test terminal, system and readable medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107896131A CN107896131A (en) | 2018-04-10 |
CN107896131B true CN107896131B (en) | 2021-06-15 |
Family
ID=61808159
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711408284.8A Expired - Fee Related CN107896131B (en) | 2017-12-22 | 2017-12-22 | Bluetooth signal adjusting method, device, test terminal, system and readable medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107896131B (en) |
Families Citing this family (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111064462B (en) * | 2018-10-16 | 2023-06-13 | 阿里巴巴集团控股有限公司 | Data processing system, method and device |
CN110022243A (en) * | 2019-02-21 | 2019-07-16 | 上海华虹集成电路有限责任公司 | A kind of system and method for low-power consumption bluetooth chip performance parameter adjust automatically |
CN110231588B (en) * | 2019-05-15 | 2023-08-22 | 欧普照明股份有限公司 | Method and device for positioning based on wireless signal index |
CN110505647A (en) * | 2019-08-12 | 2019-11-26 | 广州小鹏汽车科技有限公司 | Diagnostic method, diagnostic device, vehicle and storage medium |
CN111093259B (en) * | 2019-12-27 | 2023-10-03 | 深圳市亿诚伟业电子有限公司 | Bluetooth power adjustment method and device, storage medium and terminal |
CN111669190B (en) * | 2020-05-29 | 2021-11-12 | 上海橙群微电子有限公司 | Signal strength compensation method for transmitting circuit and receiving circuit |
CN112437418B (en) * | 2020-07-17 | 2024-01-30 | 珠海市杰理科技股份有限公司 | 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 |
CN111917496B (en) * | 2020-08-04 | 2022-06-28 | 上海智向信息科技有限公司 | Bluetooth RSSI signal processing system |
CN112637881B (en) * | 2020-12-28 | 2023-02-28 | 深圳创维数字技术有限公司 | Reliability testing method, device and computer storage medium |
CN114966534A (en) * | 2021-02-18 | 2022-08-30 | Oppo广东移动通信有限公司 | Equipment ranging method, device, equipment and storage medium |
CN113466841B (en) * | 2021-07-16 | 2024-05-03 | Oppo广东移动通信有限公司 | Distance measuring method, device, electronic equipment and storage medium |
CN113852430B (en) * | 2021-08-17 | 2023-08-22 | 广东朝歌智慧互联科技有限公司 | Bluetooth equipment performance test system and test method in user environment |
CN114679744B (en) * | 2022-03-01 | 2024-09-27 | 北京中网华通设计咨询有限公司 | Wireless signal strength detection method and device, electronic equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO1999005781A1 (en) * | 1997-07-24 | 1999-02-04 | Ericsson Inc. | Method and apparatus for converting a wideband if signal to a complex (quadrature) baseband signal |
CN102638320A (en) * | 2012-05-09 | 2012-08-15 | 大唐移动通信设备有限公司 | Method and equipment for determining radiofrequency signal calibration parameter of terminal testing instrument |
CN102695259A (en) * | 2012-05-30 | 2012-09-26 | 福建星网锐捷网络有限公司 | Method and device for power adjustment and access controller |
CN105338608A (en) * | 2015-12-02 | 2016-02-17 | 上海斐讯数据通信技术有限公司 | Method and equipment for regulating signal transmitting power of router |
CN105764083A (en) * | 2014-12-18 | 2016-07-13 | 中兴通讯股份有限公司 | RSSI compensation method, device and base station |
CN106323353A (en) * | 2016-08-12 | 2017-01-11 | 广东欧珀移动通信有限公司 | Calibration method and device for proximity sensor, and terminal |
-
2017
- 2017-12-22 CN CN201711408284.8A patent/CN107896131B/en not_active Expired - Fee Related
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO1999005781A1 (en) * | 1997-07-24 | 1999-02-04 | Ericsson Inc. | Method and apparatus for converting a wideband if signal to a complex (quadrature) baseband signal |
CN102638320A (en) * | 2012-05-09 | 2012-08-15 | 大唐移动通信设备有限公司 | Method and equipment for determining radiofrequency signal calibration parameter of terminal testing instrument |
CN102695259A (en) * | 2012-05-30 | 2012-09-26 | 福建星网锐捷网络有限公司 | Method and device for power adjustment and access controller |
CN105764083A (en) * | 2014-12-18 | 2016-07-13 | 中兴通讯股份有限公司 | RSSI compensation method, device and base station |
CN105338608A (en) * | 2015-12-02 | 2016-02-17 | 上海斐讯数据通信技术有限公司 | Method and equipment for regulating signal transmitting power of router |
CN106323353A (en) * | 2016-08-12 | 2017-01-11 | 广东欧珀移动通信有限公司 | Calibration method and device for proximity sensor, and terminal |
Also Published As
Publication number | Publication date |
---|---|
CN107896131A (en) | 2018-04-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107896131B (en) | Bluetooth signal adjusting method, device, test terminal, system and readable medium | |
CN108234034B (en) | Bluetooth signal adjusting method, device, test terminal, system and readable medium | |
CN108055092B (en) | Bluetooth signal adjusting method, device, test terminal, system and readable medium | |
CN108234035B (en) | Transmission power adjusting method, device, terminal testing system and electronic terminal | |
CN108199789B (en) | Bluetooth signal adjusting method, device, test terminal, system and readable medium | |
CN108199787B (en) | Transmission power adjusting method, device, terminal testing system and electronic terminal | |
CN108279408B (en) | Proximity sensor calibration method and device, mobile terminal and computer readable medium | |
CN108199785B (en) | Transmission power testing method, device and system and electronic equipment | |
CN108415024B (en) | Proximity sensor calibration method and device, mobile terminal and computer readable medium | |
CN107450029B (en) | Battery state checking method and device, computer equipment and computer readable storage medium | |
CN109753425B (en) | Popup window processing method and device | |
CN109348504B (en) | Power detection method, mobile terminal and power detection circuit | |
CN106294168B (en) | A kind of method and system carrying out Application testing | |
WO2018103441A1 (en) | Network positioning method and terminal device | |
EP1811797A1 (en) | Tester and test system for wireless device | |
CN112637756B (en) | Position detection method, position detection device, electronic equipment and computer readable storage medium | |
CN108234045B (en) | Received signal strength adjusting method and device, terminal testing system and electronic terminal | |
CN108768548B (en) | Radio frequency calibration method, device, mobile terminal and computer readable storage medium | |
CN104809055B (en) | Application program testing method and device based on cloud platform | |
CN112491484A (en) | Radio frequency test method, device, storage medium and electronic device | |
CN105282692A (en) | Speed measurement information display method and device | |
CN108234046B (en) | Received signal strength adjusting method and device, terminal testing system and electronic terminal | |
CN108123762B (en) | Transmission power testing method, device and system and electronic equipment | |
CN108199788B (en) | Transmission power testing method, device and system and electronic equipment | |
CN108039928B (en) | Received signal strength testing method, device and system and electronic equipment |
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: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20210615 |
|
CF01 | Termination of patent right due to non-payment of annual fee |