CN106772465B - Automatic testing method and system for sensitivity attenuation of GPS (Global positioning System) of mobile terminal - Google Patents

Automatic testing method and system for sensitivity attenuation of GPS (Global positioning System) of mobile terminal Download PDF

Info

Publication number
CN106772465B
CN106772465B CN201710071695.6A CN201710071695A CN106772465B CN 106772465 B CN106772465 B CN 106772465B CN 201710071695 A CN201710071695 A CN 201710071695A CN 106772465 B CN106772465 B CN 106772465B
Authority
CN
China
Prior art keywords
test
preset
value
item
gps
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710071695.6A
Other languages
Chinese (zh)
Other versions
CN106772465A (en
Inventor
古启才
张华�
赖燕铭
石雷
宋彬
胡亚军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201710071695.6A priority Critical patent/CN106772465B/en
Publication of CN106772465A publication Critical patent/CN106772465A/en
Application granted granted Critical
Publication of CN106772465B publication Critical patent/CN106772465B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S19/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/01Satellite radio beacon positioning systems transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/13Receivers
    • G01S19/23Testing, monitoring, correcting or calibrating of receiver elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/20Monitoring; Testing of receivers
    • H04B17/29Performance testing

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)
  • Monitoring And Testing Of Transmission In General (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a method and a system for automatically testing the sensitivity attenuation of a mobile terminal GPS, wherein the method comprises the following steps: presetting a test serial number, a corresponding preset test duration, a preset reference performance parameter value and a preset performance parameter change threshold of each test item of a mobile terminal for automatically carrying out a sensitivity attenuation test of a GPS; when the automatic test is started, sequentially carrying out the sensitivity attenuation test of the GPS on each test item according to the test sequence number and the corresponding preset test duration, and judging whether the difference value between the performance parameter value obtained by each test and the preset reference performance parameter value is smaller than a preset performance parameter change threshold value or not item by item; and when all the test items are tested, automatically outputting the test results of all the test items. The invention can complete the sensitivity attenuation test of the GPS at one time and obtain the test result at one time, thereby greatly improving the manpower efficiency, reducing the manpower repetitive action and greatly shortening the development period of the test.

Description

Automatic testing method and system for sensitivity attenuation of GPS (Global positioning System) of mobile terminal
Technical Field
The invention relates to the technical field of mobile terminals, in particular to a method and a system for automatically testing the sensitivity attenuation of a mobile terminal GPS.
Background
GPS (Global Positioning System), the GPS capability of a mobile terminal is very important to the user experience. In terms of performance optimization and debugging of the GPS module, in a research and development stage, various test items are usually required to be continuously and manually operated to perform a sensitivity-attenuation (de-sense) interference test, so as to simulate the performance stability of the GPS of a terminal user in different use scenes. In the traditional mode, a hardware engineer manually tests and excludes items by items, log records (log) under different scenes are respectively derived item by item, item by item records and comparison are carried out, and performance parameters such as CNR (Carrier to Noise Ratio) or clock frequency and the like are analyzed, so that the stability of the GPS sensitivity is tested. Due to the fact that the number of test items is too many, repetitive actions are needed, waste of human resources is caused, and efficiency is extremely low.
Accordingly, the prior art is yet to be improved and developed.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide an automatic test method and system for sensitivity attenuation of a mobile terminal GPS, so as to solve the problems that the current sensitivity attenuation interference test of the GPS requires item-by-item test, logs are exported item-by-item, and comparison item-by-item causes manpower waste, and efficiency is low and test results are inaccurate due to manual test.
The technical scheme adopted by the invention for solving the technical problem is as follows:
an automatic test method for sensitivity attenuation of a mobile terminal GPS comprises the following steps:
step A, presetting the test serial number, the corresponding preset test duration, the preset reference performance parameter value and the preset performance parameter change threshold of each test item of the mobile terminal for automatically carrying out the sensitivity attenuation test of the GPS;
step B, when the automatic test is started, sequentially carrying out the sensitivity attenuation test of the GPS on each test item according to the test serial number and the corresponding preset test duration, and judging whether the difference value between the performance parameter value obtained by each test and the preset reference performance parameter value is smaller than the preset performance parameter change threshold value item by item;
and step C, automatically outputting the test result of each test item after all the test items are tested.
The automatic test method for the sensitivity attenuation of the GPS of the mobile terminal comprises the following specific steps:
step A1, presetting the test sequence number and the corresponding preset test duration of each test item of the mobile terminal for automatically carrying out the sensitivity attenuation test of the GPS;
step A2, presetting a preset reference performance parameter value for the mobile terminal to carry out the sensitivity attenuation test of the GPS: the reference CNR signal-to-noise ratio value and the reference clock value, and a preset CNR signal-to-noise ratio change threshold value and a preset clock signal change threshold value.
The automatic test method for the sensitivity attenuation of the mobile terminal GPS comprises the following specific steps:
step B1, when starting the automatic test, acquiring a reference CNR signal-to-noise ratio value, a reference clock value, a preset CNR signal-to-noise ratio change threshold value and a preset clock signal change threshold value;
step B2, acquiring a current test serial number, determining a current test item according to the current test serial number, and acquiring a preset test duration corresponding to the current test item;
step B3, according to the preset test duration corresponding to the obtained current test item, carrying out the sensitivity attenuation test of the GPS on the current test item, and recording the test starting time;
step B4, when the test of the current test item is finished, acquiring a CNR signal-to-noise ratio average value and a clock signal average value obtained by the test, respectively performing difference calculation with a reference CNR signal-to-noise ratio value and a reference clock value, judging whether the difference values are respectively smaller than a preset CNR signal-to-noise ratio change threshold value and a preset clock signal change threshold value, then recording the result, and then entering step B5;
and step B5, judging whether the current test item is the last test item, if so, entering the step C, and if not, returning to the step B2 to test the next test item.
The automatic test method for the sensitivity attenuation of the mobile terminal GPS, wherein the step B1 specifically includes:
step B11, when starting the automatic test, opening the GPS of the mobile terminal and closing the peripheral equipment, then entering step B12;
and step B12, acquiring a reference CNR signal-to-noise ratio value, a reference clock value, a preset CNR signal-to-noise ratio change threshold value and a preset clock signal change threshold value.
The automatic test method for the sensitivity attenuation of the mobile terminal GPS, wherein the step B2 specifically includes:
step B21, acquiring a current test serial number, determining a current test item according to the current test serial number, and acquiring a preset test duration corresponding to the current test item;
step B22, starting a timer with a certain time equal to the preset test time corresponding to the current test item;
the step B3 specifically includes:
step B31, according to the preset test duration corresponding to the obtained current test item, carrying out the sensitivity attenuation test of the GPS on the current test item, and recording the test starting time;
and step B32, judging whether the test of the current test item is finished according to whether the timer reaches the timing time, and if so, entering the step B4.
The automatic test method for the sensitivity attenuation of the mobile terminal GPS, wherein the step B4 specifically includes:
step B41, when the test of the current test item is completed, obtaining the average value of the signal-to-noise ratio of the CNR obtained by the test, and judging whether the difference value with the reference CNR signal-to-noise ratio value is smaller than the preset CNR signal-to-noise ratio change threshold value, if so, judging that the CNR signal-to-noise ratio test is passed, then recording the result, and then entering the step B42;
step B42, obtaining the average value of the clock signals obtained by the test, judging whether the difference value with the reference clock value is smaller than the preset clock signal change threshold value, if so, judging that the clock signal test is passed, then recording the result, and then entering step B43;
and step B43, judging whether the CNR signal-to-noise ratio test and the clock signal test are both passed, if so, judging that the current item test is passed, then recording the result, and then entering step B5.
The automatic test method for the sensitivity attenuation of the mobile terminal GPS comprises the following specific steps: and after all the test items are tested, automatically outputting a test result file containing the test serial number, the test time, the test item name and the test result of each test item, and outputting a corresponding performance parameter log file.
An automatic test system for sensitivity attenuation of a mobile terminal GPS comprises:
the system comprises a presetting module, a detection module and a control module, wherein the presetting module is used for presetting the test serial number, the corresponding preset test duration, the preset reference performance parameter value and the preset performance parameter change threshold of each test item of the mobile terminal for automatically carrying out the sensitivity attenuation test of the GPS;
the test processing module is used for sequentially carrying out the sensitivity attenuation test of the GPS on each test item according to the corresponding preset test duration according to the test serial number when the automatic test is started, and judging whether the difference value between the performance parameter value obtained by each test and the preset reference performance parameter value is smaller than the preset performance parameter change threshold value or not item by item;
and the result output module is used for automatically outputting the test result of each test item after all the test items are tested.
The automatic test system for the sensitivity attenuation of the GPS of the mobile terminal, wherein the presetting module comprises:
the first preset unit is used for presetting the test serial number and the corresponding preset test duration of each test item of the mobile terminal for automatically carrying out the sensitivity attenuation test of the GPS;
the second preset unit is used for presetting a preset reference performance parameter value of the mobile terminal for carrying out the sensitivity attenuation test of the GPS: the reference CNR signal-to-noise ratio value and the reference clock value, and a preset CNR signal-to-noise ratio change threshold value and a preset clock signal change threshold value.
The automatic test system for the sensitivity attenuation of the GPS of the mobile terminal, wherein the test processing module comprises:
the threshold value obtaining unit is used for obtaining a reference CNR signal-to-noise ratio value, a reference clock value, a preset CNR signal-to-noise ratio change threshold value and a preset clock signal change threshold value when the automatic test is started;
the test condition acquisition unit is used for acquiring a current test serial number, determining a current test item according to the current test serial number and acquiring a preset test duration corresponding to the current test item;
the test unit is used for carrying out the sensitivity attenuation test of the GPS on the current test item according to the preset test duration corresponding to the obtained current test item and recording the test starting time;
the first judgment unit is used for acquiring a CNR signal-to-noise ratio average value and a clock signal average value obtained by testing when the testing of the current test item is finished, respectively carrying out difference calculation with a reference CNR signal-to-noise ratio value and a reference clock value, judging whether the difference values are respectively smaller than a preset CNR signal-to-noise ratio change threshold value and a preset clock signal change threshold value, and then recording the result;
and the second judging unit is used for judging whether the current test item is the last test item.
In summary, the present invention provides an automatic test method and system for sensitivity attenuation of a mobile terminal GPS, wherein the method comprises the steps of: presetting a test serial number, a corresponding preset test duration, a preset reference performance parameter value and a preset performance parameter change threshold of each test item of a mobile terminal for automatically carrying out a sensitivity attenuation test of a GPS; when the automatic test is started, sequentially carrying out the sensitivity attenuation test of the GPS on each test item according to the test sequence number and the corresponding preset test duration, and judging whether the difference value between the performance parameter value obtained by each test and the preset reference performance parameter value is smaller than a preset performance parameter change threshold value or not item by item; and when all the test items are tested, automatically outputting the test results of all the test items. The invention can complete the sensitivity attenuation test of the GPS at one time and obtain the test result at one time, thereby greatly improving the manpower efficiency, reducing the manpower repetitive action and greatly shortening the development period of the test.
Drawings
FIG. 1 is a flow chart of the method for automatically testing the sensitivity attenuation of the GPS of the mobile terminal according to the preferred embodiment of the invention.
FIG. 2 is a schematic diagram of a test result file output by the present invention.
FIG. 3 is a flowchart of an embodiment of the method for automatically testing the sensitivity attenuation of the GPS of the mobile terminal according to the invention.
FIG. 4 is a schematic block diagram of a preferred embodiment of the sensitivity attenuation automated testing system of the mobile terminal GPS of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a flowchart of an automatic testing method for sensitivity attenuation of a mobile terminal GPS according to the present invention. Fig. 1 shows an automatic test method for sensitivity attenuation of a mobile terminal GPS, which includes:
step S100, presetting the test serial number, the corresponding preset test duration, the preset reference performance parameter value and the preset performance parameter change threshold of each test item of the mobile terminal for automatically carrying out the sensitivity attenuation test of the GPS;
step S200, when the automatic test is started, sequentially carrying out the sensitivity attenuation test of the GPS on each test item according to the test serial number and the corresponding preset test duration, and judging whether the difference value between the performance parameter value obtained by each test and the preset reference performance parameter value is smaller than the preset performance parameter change threshold value item by item;
and step S300, automatically outputting the test result of each test item after all the test items are tested.
According to the invention, different preset test items are realized through a preset application program, the automatic test is carried out item by item according to the preset test duration, whether the preset test duration is smaller than a preset performance parameter change threshold value is judged, the comparison result, the test serial number and the corresponding result file of the test time point are output, and the corresponding performance parameter log file is output, so that the sensitivity attenuation interference test of the GPS is completed at one time, and the test result is obtained at one time.
The mobile terminal comprises a mobile phone and a tablet personal computer, and the mobile phone is taken as an example in the embodiment.
In step S100, the test serial number, the corresponding preset test duration, the preset reference performance parameter value, and the preset performance parameter change threshold of each test item for automatically performing a sensitivity attenuation (CNR) test of the GPS by the mobile phone are preset.
In the present embodiment, each test item, i.e., different response operations, can be seen from fig. 2, which includes but is not limited to WIFI, DATA LINK (DATA LINK), T-card FILE COPY (MSDC COPY FILE), talk (talk) call, Bluetooth (BT), screen (LCM), Play music and VIDEO (Play MP3/VIDEO), radio on and off (FM on/off), Camera on and off (Camera on/of), USB FILE COPY (USB COPY FILE), Touch screen click (Touch panel update), and so on.
For WIFI, it specifically includes states of Transmission (TX), Reception (RX), standby (IDLE), etc.; for data links, it includes GPRS, 3G, LTE, etc.; for T-card file copy, it includes that the T-card file is copied to a mobile phone storage (T card to phone store), and the mobile phone storage file is copied to a T-card (phone store to Tcard); for calls, it includes 2G, 3G, 4G calls; for bluetooth, it also includes Transmit (TX), Receive (RX), standby (IDLE) states; for the screen, it includes the cases of ON/OFF, Different MIPI CLOCKs (differential MIPI CLOCK), etc.
In this embodiment, the Test case Number (Test case Number) is a Test sequence Number, which is associated with each Test item one by one, and different response operations (Test items) are set for different Test sequence numbers; for example, as shown in fig. 2, the test serial number 2 corresponds to a reception test item of WIFI; and the test number 17 corresponds to a test item for playing music and video.
In this embodiment, the corresponding preset test duration is, that is, the duration of the test on each test item or the required test time, for example, the WIFI reception test item corresponding to the test serial number 2 may be preset to be tested for 30min, and then the corresponding preset test duration is also 30 min.
Further, step S100 specifically includes:
s110, presetting test serial numbers and corresponding preset test duration of each test item of the mobile terminal for automatically carrying out the sensitivity attenuation test of the GPS; when the method is specifically implemented, the test sequence number and the corresponding preset test duration of each test item for automatically carrying out the sensitivity attenuation test of the GPS by the mobile phone are preset.
S120, presetting a preset reference performance parameter value of the mobile terminal for carrying out the sensitivity attenuation test of the GPS: a reference CNR signal-to-noise ratio value and a reference clock value, as well as a preset CNR signal-to-noise ratio change threshold value and a preset clock signal change threshold value; in this embodiment, the reference CNR signal-to-noise ratio value and the reference clock value are: the mobile terminal acquires the mean value of the signal-to-noise ratio of the CNR and the reference clock value (reference clock frequency value) in the case of turning off all application peripherals in the flight mode in the GPS signal environment modulated by the signal source of 15.75 MHZ.
In this embodiment, the reference CNR snr value may be set to 37db, and the reference clock value may be set to 26 MHZ; the preset CNR snr variation threshold may be set to 3db, that is, the difference (CNR Value) between the CNR snr average and the reference CNR snr Value is limited to within 3 db; the preset Clock signal variation threshold may be set to 1ppm (frequency error), i.e. the difference (Clock value) between the average value of the Clock signal and the reference Clock value is limited to within 1 ppm. It should be noted that, in the implementation of the present invention, the difference values are absolute values, that is, positive values.
In step S200, when the automated test is started, sequentially performing a sensitivity attenuation test of the GPS on each test item according to a test sequence number and a corresponding preset test duration, and determining, item by item, whether a difference between a performance parameter value obtained by each test and a preset reference performance parameter value is smaller than a preset performance parameter change threshold; when the test is implemented specifically, when a user starts the automatic test, the mobile phone automatically carries out the sensitivity attenuation test of the GPS on each test item in sequence according to the test sequence number and the preset test duration; meanwhile, the performance parameter value obtained by each test is subtracted from the preset performance parameter value, and whether the difference value is smaller than the preset performance parameter change threshold value or not is judged, so that whether the test is passed or not is judged.
Further, the step S200 specifically includes:
s210, when the automatic test is started, acquiring a reference CNR signal-to-noise ratio value, a reference clock value, a preset CNR signal-to-noise ratio change threshold value and a preset clock signal change threshold value; in specific implementation, when the automated test is started, the mobile phone automatically acquires a reference CNR signal-to-noise ratio value, a reference clock value, a preset CNR signal-to-noise ratio change threshold value and a preset clock signal change threshold value for standby.
S220, acquiring a current test serial number, determining a current test item according to the current test serial number, and acquiring a preset test duration corresponding to the current test item; in specific implementation, because the test serial number, the test item and the preset test duration have a one-to-one mapping relationship, each test starts with the acquisition of the test serial number, and the test item and the preset test duration are determined according to the acquired current test serial number.
S230, according to the preset test duration corresponding to the obtained current test item, carrying out the sensitivity attenuation test of the GPS on the current test item, and recording the test starting time; in particular implementation, referring to fig. 2, the start test time is a time point, which is based on the universal time coordinated (UTC time) time; for example, test number 9 corresponds to the 2G talk test item, and the start test time thereof is 2016-12-0800:51: 13.283883283883.
S240, when the test of the current test item is finished, acquiring a CNR signal-to-noise ratio average value and a clock signal average value obtained by the test, respectively performing difference calculation with a reference CNR signal-to-noise ratio value and a reference clock value, judging whether the difference values are respectively smaller than a preset CNR signal-to-noise ratio change threshold value and a preset clock signal change threshold value, then recording the result, and then entering the step S250.
S250, judging whether the current test item is the last test item, if so, entering the step S300, and if not, returning to the step S220 to test the next test item; in specific implementation, whether the current test item is the last test item can be judged by judging whether the test serial number is the maximum test serial number; if so, prompting that the test is finished, and then directly outputting a test result; and if not, continuing to test the next test item.
Further, the step S210 specifically includes:
step S211, when the automatic test is started, the GPS of the mobile terminal is started, the peripheral equipment is closed, and then the step S212 is carried out; in specific implementation, when the automatic test is started, the GPS of the mobile phone is turned on, the peripheral module is turned off, and the test is carried out in a flight mode.
Step S212, a reference CNR signal-to-noise ratio value, a reference clock value, a preset CNR signal-to-noise ratio change threshold value and a preset clock signal change threshold value are obtained.
Further, the step S220 specifically includes:
step S221, obtaining a current test serial number, determining a current test item according to the current test serial number, and obtaining a preset test duration corresponding to the current test item.
Step S222, starting a timer with a certain time equal to the preset test time corresponding to the current test item; in specific implementation, the start timer (gps test timer) is used for monitoring the test time of the current test item, so that the test time is equal to the preset test time; for example, if the preset test duration of the current test item is 10min, the corresponding timer with the starting timing time equal to 10min controls the test time of the current test item.
Further, the step S230 specifically includes:
step B231, according to the preset test duration corresponding to the obtained current test item, carrying out the sensitivity attenuation test of the GPS on the current test item, and recording the test starting time; in specific implementation, the step of performing the sensitivity attenuation test of the GPS on the current test item includes: opening a GPS module, and acquiring the number of satellites in the current environment, the corresponding CNR signal-to-noise ratio average value, the CNR signal-to-noise ratio maximum value and the CNR signal-to-noise ratio minimum value, and the clock deviation average value, the CNR signal-to-noise ratio maximum value and the CNR signal-to-noise ratio minimum value of 26 MHZ; wherein, the starting test time is coordinated universal time (UTC time) of starting test.
Step B232, judging whether the test of the current test item is finished or not according to whether the timer reaches the timing time or not, and if so, entering the step S240; and when the test is implemented specifically, judging whether the current test is finished according to whether the timer reaches the timing time.
Further, the step S240 specifically includes:
step S241, when the test of the current test item is finished, obtaining the average value of the signal-to-noise ratio of the CNR obtained by the test, judging whether the difference value with the reference CNR signal-to-noise ratio value is smaller than a preset CNR signal-to-noise ratio change threshold value, if so, judging that the CNR signal-to-noise ratio test is passed, then recording the result, and then entering step S242. In specific implementation, the GPS module is opened, the number of satellites in the current environment and the corresponding CNR signal-to-noise ratio average value, the maximum value and the minimum value are obtained, the obtained CNR signal-to-noise ratio average value and the previously obtained reference CNR signal-to-noise ratio value are subtracted, and if the obtained difference value (for example, 2db) is smaller than a preset CNR signal-to-noise ratio change threshold value (for example, 3db), the CNR signal-to-noise ratio test of the current test item is judged to be passed; otherwise, judging that interference exists, and recording the result.
Step S242, obtaining the average value of the clock signal obtained by the test, and determining whether the difference value with the reference clock value is smaller than the preset clock signal change threshold, if so, determining that the clock signal test is passed, then recording the result, and then entering step S243. In specific implementation, a GPS module is started, a clock signal average value is obtained and is subjected to difference calculation with a reference clock value obtained previously, and a 26MHZ clock deviation average value (difference value), a maximum value and a minimum value are obtained; if the obtained difference (for example, 0.5ppm) is smaller than a preset clock signal change threshold (for example, 1ppm), judging that the clock signal test of the current test item passes; otherwise, judging that interference exists, and recording the result.
And S243, judging whether the CNR signal-to-noise ratio test and the clock signal test are both passed, if so, judging that the current item test is passed, then recording the result, and then entering S250. In specific implementation, the CNR snr test and the clock signal test are respectively determined, and as long as one of the CNR snr test and the clock signal test determines that interference exists, the sensitivity attenuation test of the GPS of the current test item is determined as interference, that is, the test fails (fail), and when both of the CNR snr test and the clock signal test are determined as pass, the sensitivity attenuation test of the GPS of the current test item is determined as pass (pass). That is, in this embodiment, it is required to satisfy less than 3db and 1PPM respectively at the same time to determine that the test item test passes, otherwise, it is determined that there is interference, for example, if the obtained difference values are 1db and 2PPM respectively, the test item fails, and it is determined that there is interference.
In step S300, after all the test items are tested, the mobile phone automatically outputs the test result of each test item, so that the user can obtain the test result at one time.
Further, the step S300 specifically includes: and after all the test items are tested, automatically outputting a test result file containing the test serial number, the test time, the test item name and the test result of each test item, and outputting a corresponding performance parameter log file. In specific implementation, as shown in fig. 2, the test result file includes: the Test sequence Number (Test case Number), the Test time (UTC time), the Test item name (CNR Test item), the difference between the CNR signal-to-noise ratio average and the reference CNR signal-to-noise ratio Value (CNR Value), the difference between the Clock signal average and the reference Clock Value (Clock Value), and the Test result (Test result).
It should be noted that the test result file shown in fig. 2 is only an example of a format and is not used to limit the specific content of the present invention; for the performance parameter log file, it may adopt a common format, which is not described herein again.
According to the invention, the problem of one-time result acquisition is realized by judging whether the preset performance parameter threshold value is exceeded, the stability of the test result is improved, and the analysis of the test is accelerated. The invention can complete the sensitivity attenuation test of the GPS at one time and obtain the test result at one time, thereby greatly improving the manpower efficiency, reducing the manpower repetitive action and greatly shortening the development period of the test.
The invention also provides a specific application embodiment of the automatic testing method for the sensitivity attenuation of the mobile terminal GPS, as shown in FIG. 3, the automatic testing method for the sensitivity attenuation of the mobile terminal GPS according to the specific application embodiment of the invention comprises the following steps:
step S10, starting an automatic test;
step S11, turning on the GPS positioning of the mobile terminal and turning off the peripheral equipment;
step S12, acquiring a preset reference performance parameter value and a preset performance parameter change threshold value; the method specifically comprises the following steps: a reference CNR signal-to-noise ratio value, a reference clock value, a preset CNR signal-to-noise ratio change threshold value and a preset clock signal change threshold value;
step S13, acquiring a current test serial number, determining a current test item, and acquiring a preset test duration;
step S14, starting a timer;
step S15, carrying out the sensitivity attenuation test of the GPS on the current test item, and recording the test starting time;
step S16, whether the test of the current test item is finished is judged, if yes, the step S17 is executed, and if not, the step S15 is executed;
s17, obtaining the average CNR signal-to-noise ratio obtained by testing, subtracting the reference CNR signal-to-noise ratio value, judging whether the average CNR signal-to-noise ratio is smaller than a preset CNR signal-to-noise ratio change threshold value, recording the result, and then entering S18;
step S18, obtaining the average value of the clock signals obtained by the test, performing difference calculation with the reference clock value, judging whether the average value is smaller than a preset clock signal change threshold value, recording the result, and then entering step S19;
s19, judging whether the CNR signal-to-noise ratio and the clock signal test are passed, recording the result, and then entering the step S20;
step S20, judging whether the current test item is the last test item, if yes, entering step S21, and if no, returning to step S13;
and step S21, outputting a test result file containing the test serial number, the test time, the test item name and the test result of each test item, and outputting a corresponding performance parameter log file.
The method for automatically testing the sensitivity attenuation of the GPS of the mobile terminal realizes different preset test items through a preset application program, automatically tests item by item according to the preset test duration, judges whether a preset performance parameter threshold is reached, and outputs a comparison result, a test sequence number, a corresponding result file of a test time point and a corresponding performance parameter log file, thereby completing the sensitivity attenuation interference test of the GPS at one time and acquiring a test result at one time. The invention greatly improves the manpower efficiency, reduces the manpower repetitive actions and shortens the development period of the test.
Those of ordinary skill in the art will understand that: all or part of the steps of implementing the embodiments of the method described above may be implemented by hardware associated with program instructions, and the program may be stored in a computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The invention also provides an automatic test system for the sensitivity attenuation of the GPS of the mobile terminal, as shown in fig. 4, comprising: a presetting module 100, a test processing module 200, a result output module 300, wherein,
the preset module 100 is used for presetting the test serial number, the corresponding preset test duration, the preset reference performance parameter value and the preset performance parameter change threshold of each test item of the mobile terminal for automatically performing the sensitivity attenuation test of the GPS; as described above.
The test processing module 200 is configured to, when the automated test is started, sequentially perform a sensitivity attenuation test of the GPS on each test item according to a test sequence number and a corresponding preset test duration, and determine, item by item, whether a difference between a performance parameter value obtained by each test and a preset reference performance parameter value is smaller than a preset performance parameter change threshold; as described above.
A result output module 300, configured to automatically output the test result of each test item after all test items are tested; as described above.
Further, the presetting module 100 includes:
the first preset unit is used for presetting the test serial number and the corresponding preset test duration of each test item of the mobile terminal for automatically carrying out the sensitivity attenuation test of the GPS; as described above.
The second preset unit is used for presetting a preset reference performance parameter value of the mobile terminal for carrying out the sensitivity attenuation test of the GPS: a reference CNR signal-to-noise ratio value and a reference clock value, as well as a preset CNR signal-to-noise ratio change threshold value and a preset clock signal change threshold value; as described above.
Further, the test processing module 200 includes:
the threshold value obtaining unit is used for obtaining a reference CNR signal-to-noise ratio value, a reference clock value, a preset CNR signal-to-noise ratio change threshold value and a preset clock signal change threshold value when the automatic test is started; as described above.
The test condition acquisition unit is used for acquiring a current test serial number, determining a current test item according to the current test serial number and acquiring a preset test duration corresponding to the current test item; as described above.
The test unit is used for carrying out the sensitivity attenuation test of the GPS on the current test item according to the preset test duration corresponding to the obtained current test item and recording the test starting time; as described above.
The first judgment unit is used for acquiring a CNR signal-to-noise ratio average value and a clock signal average value obtained by testing when the testing of the current test item is finished, respectively carrying out difference calculation with a reference CNR signal-to-noise ratio value and a reference clock value, judging whether the difference values are respectively smaller than a preset CNR signal-to-noise ratio change threshold value and a preset clock signal change threshold value, and then recording the result; as described above.
The second judging unit is used for judging whether the current test item is the last test item; as described above.
In conclusion, the method and the device can complete the sensitivity attenuation test of the GPS at one time and obtain the test result at one time, thereby greatly improving the labor efficiency, reducing the repetitive actions of the labor and greatly shortening the development period of the test.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.

Claims (6)

1. An automatic test method for sensitivity attenuation of a mobile terminal GPS is characterized by comprising the following steps:
step A, presetting the test serial number, the corresponding preset test duration, the preset reference performance parameter value and the preset performance parameter change threshold of each test item of the mobile terminal for automatically carrying out the sensitivity attenuation test of the GPS;
step A1, presetting the test sequence number and the corresponding preset test duration of each test item of the mobile terminal for automatically carrying out the sensitivity attenuation test of the GPS;
step A2, presetting a preset reference performance parameter value for the mobile terminal to carry out the sensitivity attenuation test of the GPS: a reference CNR signal-to-noise ratio value and a reference clock value, as well as a preset CNR signal-to-noise ratio change threshold value and a preset clock signal change threshold value;
step B, when the automatic test is started, sequentially carrying out the sensitivity attenuation test of the GPS on each test item according to the test serial number and the corresponding preset test duration, and judging whether the difference value between the performance parameter value obtained by each test and the preset reference performance parameter value is smaller than the preset performance parameter change threshold value item by item;
step B1, when starting the automatic test, acquiring a reference CNR signal-to-noise ratio value, a reference clock value, a preset CNR signal-to-noise ratio change threshold value and a preset clock signal change threshold value;
step B2, acquiring a current test serial number, determining a current test item according to the current test serial number, and acquiring a preset test duration corresponding to the current test item;
step B3, according to the preset test duration corresponding to the obtained current test item, carrying out the sensitivity attenuation test of the GPS on the current test item, and recording the test starting time;
step B4, when the test of the current test item is finished, acquiring a CNR signal-to-noise ratio average value and a clock signal average value obtained by the test, respectively performing difference calculation with a reference CNR signal-to-noise ratio value and a reference clock value, judging whether the difference values are respectively smaller than a preset CNR signal-to-noise ratio change threshold value and a preset clock signal change threshold value, then recording the result, and then entering step B5;
step B5, judging whether the current test item is the last test item, if yes, entering the step C, and if not, returning to the step B2 to test the next test item;
and step C, automatically outputting the test result of each test item after all the test items are tested.
2. The method for automatically testing the sensitivity attenuation of the GPS of the mobile terminal according to claim 1, wherein the step B1 specifically includes: step B11, when starting the automatic test, opening the GPS of the mobile terminal and closing the peripheral equipment, then entering step B12;
and step B12, acquiring a reference CNR signal-to-noise ratio value, a reference clock value, a preset CNR signal-to-noise ratio change threshold value and a preset clock signal change threshold value.
3. The method for automatically testing the sensitivity attenuation of the GPS of the mobile terminal according to claim 2, wherein the step B2 specifically includes: step B21, acquiring a current test serial number, determining a current test item according to the current test serial number, and acquiring a preset test duration corresponding to the current test item;
step B22, starting a timer with a certain time equal to the preset test time corresponding to the current test item;
the step B3 specifically includes:
step B31, according to the preset test duration corresponding to the obtained current test item, carrying out the sensitivity attenuation test of the GPS on the current test item, and recording the test starting time;
and step B32, judging whether the test of the current test item is finished according to whether the timer reaches the timing time, and if so, entering the step B4.
4. The method for automatically testing the sensitivity attenuation of the GPS of the mobile terminal according to claim 3, wherein the step B4 specifically includes: step B41, when the test of the current test item is completed, obtaining the average value of the signal-to-noise ratio of the CNR obtained by the test, and judging whether the difference value with the reference CNR signal-to-noise ratio value is smaller than the preset CNR signal-to-noise ratio change threshold value, if so, judging that the CNR signal-to-noise ratio test is passed, then recording the result, and then entering the step B42;
step B42, obtaining the average value of the clock signals obtained by the test, judging whether the difference value with the reference clock value is smaller than the preset clock signal change threshold value, if so, judging that the clock signal test is passed, then recording the result, and then entering step B43;
and step B43, judging whether the CNR signal-to-noise ratio test and the clock signal test are both passed, if so, judging that the current item test is passed, then recording the result, and then entering step B5.
5. The method for automatically testing the sensitivity attenuation of the GPS of the mobile terminal according to claim 1, wherein the step C specifically includes: and after all the test items are tested, automatically outputting a test result file containing the test serial number, the test time, the test item name and the test result of each test item, and outputting a corresponding performance parameter log file.
6. An automatic test system for sensitivity attenuation of a mobile terminal GPS is characterized by comprising: the system comprises a presetting module, a detection module and a control module, wherein the presetting module is used for presetting the test serial number, the corresponding preset test duration, the preset reference performance parameter value and the preset performance parameter change threshold of each test item of the mobile terminal for automatically carrying out the sensitivity attenuation test of the GPS;
the preset module comprises: the first preset unit is used for presetting the test serial number and the corresponding preset test duration of each test item of the mobile terminal for automatically carrying out the sensitivity attenuation test of the GPS;
the second preset unit is used for presetting a preset reference performance parameter value of the mobile terminal for carrying out the sensitivity attenuation test of the GPS: a reference CNR signal-to-noise ratio value and a reference clock value, as well as a preset CNR signal-to-noise ratio change threshold value and a preset clock signal change threshold value; the test processing module is used for sequentially carrying out the sensitivity attenuation test of the GPS on each test item according to the corresponding preset test duration according to the test serial number when the automatic test is started, and judging whether the difference value between the performance parameter value obtained by each test and the preset reference performance parameter value is smaller than the preset performance parameter change threshold value or not item by item;
the result output module is used for automatically outputting the test result of each test item after all the test items are tested;
the test processing module includes: the threshold value obtaining unit is used for obtaining a reference CNR signal-to-noise ratio value, a reference clock value, a preset CNR signal-to-noise ratio change threshold value and a preset clock signal change threshold value when the automatic test is started;
the test condition acquisition unit is used for acquiring a current test serial number, determining a current test item according to the current test serial number and acquiring a preset test duration corresponding to the current test item;
the test unit is used for carrying out the sensitivity attenuation test of the GPS on the current test item according to the preset test duration corresponding to the obtained current test item and recording the test starting time;
the first judgment unit is used for acquiring a CNR signal-to-noise ratio average value and a clock signal average value obtained by testing when the testing of the current test item is finished, respectively carrying out difference calculation with a reference CNR signal-to-noise ratio value and a reference clock value, judging whether the difference values are respectively smaller than a preset CNR signal-to-noise ratio change threshold value and a preset clock signal change threshold value, and then recording the result;
and the second judging unit is used for judging whether the current test item is the last test item.
CN201710071695.6A 2017-02-09 2017-02-09 Automatic testing method and system for sensitivity attenuation of GPS (Global positioning System) of mobile terminal Active CN106772465B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710071695.6A CN106772465B (en) 2017-02-09 2017-02-09 Automatic testing method and system for sensitivity attenuation of GPS (Global positioning System) of mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710071695.6A CN106772465B (en) 2017-02-09 2017-02-09 Automatic testing method and system for sensitivity attenuation of GPS (Global positioning System) of mobile terminal

Publications (2)

Publication Number Publication Date
CN106772465A CN106772465A (en) 2017-05-31
CN106772465B true CN106772465B (en) 2021-08-10

Family

ID=58956822

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710071695.6A Active CN106772465B (en) 2017-02-09 2017-02-09 Automatic testing method and system for sensitivity attenuation of GPS (Global positioning System) of mobile terminal

Country Status (1)

Country Link
CN (1) CN106772465B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109343092B (en) * 2018-08-31 2021-01-05 深圳市广和通无线股份有限公司 Performance test method and device, electronic equipment and storage medium
CN115037665B (en) * 2022-06-06 2023-10-03 北京达佳互联信息技术有限公司 Equipment testing method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7283091B1 (en) * 2005-08-08 2007-10-16 Trimble Navigation Limited Radio positioning system for providing position and time for assisting GPS signal acquisition in mobile unit
CN102135623A (en) * 2011-03-23 2011-07-27 中兴通讯股份有限公司 Mobile terminal and calibration method of global positioning system
CN103336181A (en) * 2013-05-28 2013-10-02 惠州Tcl移动通信有限公司 GPS (global positioning system) OTA (on the air) test method and system
CN105630686A (en) * 2016-03-24 2016-06-01 厦门美图移动科技有限公司 Traversal testing method and device for applications and mobile terminal
CN106027173A (en) * 2016-07-05 2016-10-12 上海斐讯数据通信技术有限公司 Sensitivity testing method and system
KR20160149913A (en) * 2015-06-19 2016-12-28 전자부품연구원 Method and apparatus for maintaining pulse per second of gps at low cost

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7283091B1 (en) * 2005-08-08 2007-10-16 Trimble Navigation Limited Radio positioning system for providing position and time for assisting GPS signal acquisition in mobile unit
CN102135623A (en) * 2011-03-23 2011-07-27 中兴通讯股份有限公司 Mobile terminal and calibration method of global positioning system
CN103336181A (en) * 2013-05-28 2013-10-02 惠州Tcl移动通信有限公司 GPS (global positioning system) OTA (on the air) test method and system
KR20160149913A (en) * 2015-06-19 2016-12-28 전자부품연구원 Method and apparatus for maintaining pulse per second of gps at low cost
CN105630686A (en) * 2016-03-24 2016-06-01 厦门美图移动科技有限公司 Traversal testing method and device for applications and mobile terminal
CN106027173A (en) * 2016-07-05 2016-10-12 上海斐讯数据通信技术有限公司 Sensitivity testing method and system

Also Published As

Publication number Publication date
CN106772465A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN107562610B (en) Method, device, terminal and medium for acquiring page loading time
CN106772465B (en) Automatic testing method and system for sensitivity attenuation of GPS (Global positioning System) of mobile terminal
JP5710680B2 (en) System and method for reducing factory program time for wireless devices
CN104461899A (en) Method and system for analyzing resource consumption in testing process and testing terminal
CN113067597B (en) Link processing method and device, electronic equipment and storage medium
CN111179907A (en) Voice recognition test method, device, equipment and computer readable storage medium
CN112787894A (en) Wireless device test system, method, apparatus, medium, and device
CN106028367B (en) Automatic testing method and system based on CMWrun testing platform
CN112863545B (en) Performance test method, device, electronic equipment and computer readable storage medium
EP3905244A1 (en) Method and device for detecting audio input module, and storage medium
CN113140109A (en) Drive test data processing method and device, computer equipment and storage medium
CN110912628A (en) Interference testing method, device, terminal and storage medium
WO2022194011A1 (en) Echo cancellation method and apparatus, device, and storage medium
CN115080412A (en) Software update quality evaluation method, device, equipment and computer storage medium
CN110932803B (en) Interference intensity acquisition method, device, terminal and storage medium
CN110932802B (en) Interference test method, device, terminal and storage medium
CN110611880A (en) Household WiFi prediction method and device, electronic equipment and storage medium
US11030832B2 (en) Apparatus and method for generating test case for vehicle
CN106027778A (en) Display method and display system of booting interface of mobile terminal
CN110890928B (en) Interference testing method, device, terminal and storage medium
CN113938943B (en) Method, system, equipment and medium for testing coexistence performance of wireless communication
CN110633192A (en) Test method, test device, terminal device and computer readable storage medium
CN117907809B (en) Batch chip testing method and device and electronic equipment
CN110890927B (en) Interference testing method, device, terminal and storage medium
CN114614926B (en) Simulation test method and device of communication 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
GR01 Patent grant
GR01 Patent grant