CN111786852B - Test method and related equipment - Google Patents
Test method and related equipment Download PDFInfo
- Publication number
- CN111786852B CN111786852B CN202010616634.5A CN202010616634A CN111786852B CN 111786852 B CN111786852 B CN 111786852B CN 202010616634 A CN202010616634 A CN 202010616634A CN 111786852 B CN111786852 B CN 111786852B
- Authority
- CN
- China
- Prior art keywords
- test mode
- terminal
- test
- tested
- instruction
- 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
Links
- 238000010998 test method Methods 0.000 title abstract description 7
- 238000012360 testing method Methods 0.000 claims abstract description 423
- 230000004044 response Effects 0.000 claims description 43
- 238000000034 method Methods 0.000 claims description 37
- 238000004590 computer program Methods 0.000 claims description 5
- 230000004048 modification Effects 0.000 claims description 3
- 238000012986 modification Methods 0.000 claims description 3
- 238000013100 final test Methods 0.000 description 15
- 230000008569 process Effects 0.000 description 13
- 230000006870 function Effects 0.000 description 9
- 238000004891 communication Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 8
- 230000003993 interaction Effects 0.000 description 3
- 238000005192 partition Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000011990 functional testing Methods 0.000 description 2
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000002708 enhancing effect Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000011056 performance test Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000008054 signal transmission Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/24—Arrangements for testing
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the invention discloses a test method and related equipment, wherein after a tested terminal is powered on, the assignment of a test mode zone bit in the tested terminal is obtained; when the assignment is matched with the preset test mode mark, controlling the tested terminal to enter a test mode corresponding to the preset test mode mark; after the tested terminal is powered on, the tested terminal can quickly enter a preset test mode without the need of various operations of testers, and the terminal test efficiency can be effectively improved.
Description
Technical Field
The invention relates to the technical field of testing, in particular to a testing method and related equipment.
Background
The modern mobile communication product or wireless communication module and the like need to perform various functional tests before shipment, different functional tests are performed by using different station positions, such as downloading, calibrating, number writing, Man-Machine-Interface (MMI) tests, such as testing earphones, screens, keys, cameras and the like, and the like.
Disclosure of Invention
The embodiment of the invention provides a testing method and related equipment, which can improve the testing efficiency of a terminal.
In a first aspect, an embodiment of the present invention provides a testing method, applied to a tested terminal of a terminal testing system, including:
after the tested terminal is electrified, obtaining the assignment of a test mode flag bit in the tested terminal;
and when the assignment is matched with a preset test mode mark, controlling the tested terminal to enter a test mode corresponding to the preset test mode mark.
Optionally, the system further includes a master control terminal, and the method further includes:
receiving a first query instruction of the master control terminal, wherein the first query instruction is used for querying whether the tested terminal enters a test mode or not;
responding to the first query instruction, and sending a first response message to the master control terminal, wherein the first response message indicates that the tested terminal enters a test mode;
receiving a second query instruction of the master control terminal, wherein the second query instruction is used for querying a current test mode of the terminal to be tested;
responding to the second query instruction to send test mode information corresponding to the preset test mode mark to the main control terminal;
receiving a test instruction sent by the main control terminal according to the test mode information;
and executing the test operation corresponding to the test instruction.
Optionally, the method further comprises:
receiving a configuration instruction sent by the master control terminal, wherein the configuration instruction comprises a preconfigured test mode mark;
and responding to the configuration instruction, and modifying the assignment of the test mode zone bit into the preconfigured test mode mark.
Optionally, when the assignment matches a preset test mode flag,
setting the position of the test mode mark as a normal starting mode mark, and controlling the tested terminal to enter a test mode corresponding to the preset test mode mark;
or,
and controlling the tested terminal to enter a test mode corresponding to the preset test mode mark, and marking the test mode mark as a normal starting mode mark.
Optionally, the method further comprises:
and when the assignment is not matched with a preset test mode mark or the assignment is null, the tested terminal responds to the first query instruction and sends a second response message to the main control terminal, wherein the second response message indicates that the tested terminal does not enter the test mode.
In a second aspect, an embodiment of the present invention provides a testing apparatus, which is applied to a terminal to be tested of a terminal testing system, where the testing apparatus includes:
the obtaining module is used for obtaining the assignment of the test mode zone bit in the tested terminal after the tested terminal is electrified;
and the control module is used for controlling the tested terminal to enter a test mode corresponding to the preset test mode mark when the assignment is matched with the preset test mode mark.
Optionally, the system further includes a master control terminal, and the apparatus further includes:
the receiving module is used for receiving a first query instruction of the master control terminal, wherein the first query instruction is used for querying whether the tested terminal enters a test mode or not;
a sending module, configured to send a first response message to the master control terminal in response to the first query instruction, where the first response message indicates that the terminal under test has entered a test mode;
the receiving module is further configured to receive a second query instruction of the master control terminal, where the second query instruction is used to query a current test mode of the terminal to be tested;
the sending module is further configured to send test mode information corresponding to the preset test mode flag to the master control terminal in response to the second query instruction;
the receiving module is further configured to receive a test instruction sent by the main control terminal according to the test mode information;
and the execution module is used for executing the test operation corresponding to the test instruction.
Optionally, the apparatus further comprises:
the receiving module is further configured to receive a configuration instruction sent by the main control terminal, where the configuration instruction includes a preconfigured test mode flag;
and the modification module is used for responding to the configuration instruction and modifying the assignment of the test mode flag bit into the pre-configured test mode mark.
In a third aspect, an embodiment of the present invention provides a measured terminal, including: a processor and a memory;
the processor is connected to the memory, wherein the memory is configured to store program codes, and the processor is configured to call the program codes to execute the test method according to the first aspect.
In a fourth aspect, embodiments of the present invention provide a computer storage medium storing a computer program comprising program instructions that, when executed by a processor, perform a test method according to the first aspect.
In the embodiment of the invention, after the tested terminal is electrified, the assignment of the test mode flag bit in the tested terminal is obtained; when the assignment is matched with the preset test mode mark, controlling the tested terminal to enter a test mode corresponding to the preset test mode mark; after the tested terminal is powered on, the tested terminal can quickly enter a preset test mode without the need of various operations of testers, and the terminal test efficiency can be effectively improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, 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 some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic structural diagram of a test system according to an embodiment of the present invention;
FIG. 2 is a flow chart of a testing method according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a test system according to an embodiment of the present invention;
FIG. 4 is a flow chart of a testing method according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a testing apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a terminal under test according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
It should be understood that the terms "first," "second," and the like in the description and claims of this application and in the drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by the person skilled in the art that the described embodiments of the invention can be combined with other embodiments.
In the prior art, when stations with different test functions test a terminal to be tested, a computer is required to send corresponding commands to the terminal to be tested (such as a mobile phone and the like) through a USB or a serial port to enter a required test mode, and particularly, when the whole machine tests an MMI, the test is started only by manually starting up the machine and then inputting a long string of secret codes, so that a large amount of time consumed by non-test is wasted, and the test efficiency of the terminal is very low. Therefore, the testing method can quickly enter the preset testing mode when the testing starts, the time required for entering the testing mode is saved, the testing time cost is reduced, and the testing efficiency of the terminal is effectively improved.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a test system according to an embodiment of the present invention; the test system in the present application includes a main control terminal 101 and a terminal under test 102, and in some embodiments, the system may further include an auxiliary test terminal 103.
The main control terminal 101 is used as a main control center of the test system, and is configured to control a test process, and receive and process data of the terminal under test 102 or the auxiliary test terminal 103 to obtain a test result. Specifically, the main control terminal 101 may employ a computer, a notebook computer, or the like.
The terminal 102 to be tested refers to a terminal or a module, such as a mobile phone, a smart watch, a sports bracelet, a smart sound box, or a communication module with an antenna. The antenna may include a radio frequency antenna or a WCN (Wireless Connectivity Network) antenna, such as a GPS antenna, a WiFi antenna, a bluetooth antenna, an NFC antenna, a ZigBee antenna, and the like.
The auxiliary test terminal 103 may be a test machine, or may be a test terminal composed of a plurality of test modules. The function of the system is to receive and process the signal of the tested terminal 102 to obtain a test index, and send the test index to the main control terminal 101; or transmitting a signal to the terminal under test 102 to assist in completing the antenna performance test of the terminal under test 102; or may have both functions of receiving and processing signals, as well as transmitting signals. The auxiliary test terminal 103 may include a wireless integrated tester or the like; the wireless integrated tester is used for testing the main performance indexes of various radio equipment. The device consists of a signal generator, a voltmeter, an electronic oscilloscope and the like.
Fig. 2 is a schematic flow chart of a testing method according to an embodiment of the present invention; the test method is applied to the tested terminal in the test system and comprises the following steps:
201. after the tested terminal is powered on, obtaining the assignment of the test mode zone bit in the tested terminal;
specifically, after a tested terminal is powered on, assignment of a test mode flag bit in the tested terminal is obtained; the assignment is preset, and can be preset after the terminal to be tested is initialized, or preset after the terminal to be tested completes any test, so that after the terminal is electrified again, the assignment of the flag bit of the test mode is read, and the terminal to be tested can be rapidly controlled to enter the preset test mode.
202. And when the assignment is matched with the preset test mode mark, controlling the tested terminal to enter a test mode corresponding to the preset test mode mark.
Specifically, different default test pattern flags correspond to different test patterns, such as 0x01 for GSM cal mode (i.e. GSM calibration mode), 0x02 for GSM Final test mode (i.e. GSM Final test mode), and so on. The specific form of the preset test mode flag is not limited. And when the assignment is matched with the preset test mode mark, controlling the tested terminal to enter a test mode corresponding to the preset test mode mark.
Therefore, by utilizing the test mode zone bit, when the tested terminal is controlled to enter a desired test mode, the tested terminal can be controlled to quickly enter the test mode corresponding to the assignment of the zone bit by reading the assignment of the test mode zone bit, the time required for entering the test mode is effectively saved, the test efficiency is improved, and the test time cost is reduced. In the actual test process, each test station position can flexibly configure the test mode which needs to be entered by the next test station position.
In a possible embodiment, the system further includes a main control terminal, and after the tested terminal enters the test mode corresponding to the preset test mode flag, the method further includes:
s1, receiving a first query instruction of the master control terminal, wherein the first query instruction is used for querying whether the tested terminal enters a test mode;
specifically, the master control terminal and the tested terminal can be in wired or wireless connection, the wired connection mode comprises connection modes such as a USB (universal serial bus) or a serial port, and the wireless connection mode comprises connection modes such as Bluetooth connection and WiFi connection. After the communication connection is established between the main control terminal and the terminal to be tested, the main control terminal needs to acquire the current state of the terminal to be tested before the main control terminal starts to test the terminal to be tested. The command format of the first query instruction may be unlimited, such as "7E 000000000800 FE XX 7E".
S2, responding to the first query instruction, and sending a first response message to the main control terminal, wherein the first response message indicates that the tested terminal enters the test mode;
specifically, after the terminal under test has entered the test mode by using the method of fig. 2, the terminal under test sends a first response message to the main control terminal in response to the first query instruction, where the first response message indicates that the terminal under test has entered the test mode. The format of the first response message may be, for example, "7E 000000000800 FE FF 7E" without limitation.
S3, receiving a second query instruction of the master control terminal, wherein the second query instruction is used for querying the current test mode of the tested terminal;
specifically, after receiving the first response message, the main control terminal continues to send a second query instruction to the terminal to be tested, where the second query instruction is used to query the current test mode of the terminal to be tested. The command format of the second query instruction may be non-limiting, such as "AT + GETTESTMODE? ".
S4, responding to the second query instruction, and sending test mode information corresponding to the preset test mode mark to the main control terminal;
specifically, the tested terminal responds to the second query instruction and sends test mode information corresponding to the preset test mode mark to the main control terminal, wherein the test mode information includes, for example, a GSM cal mode or a GSM Final test mode. The instruction format of the reply instruction of the terminal under test in response to the second query instruction may be unlimited, for example "+ GETTESTMODMODE: XXX" (XXX is specific test mode information, such as GSM cal mode).
S5, receiving a test instruction sent by the main control terminal according to the test mode information;
specifically, the main control terminal sends a test instruction corresponding to the test mode information to the terminal to be tested according to the received test mode information, where the test instruction may be more than one instruction.
And S6, executing the test operation corresponding to the test instruction.
Specifically, the terminal under test responds to the test instruction, executes the test operation corresponding to the test instruction, where the test operation may be to transmit or receive a signal, and the terminal under test receives and processes the signal to generate a test result and transmits the test result to the main control terminal. Or the signal may be transmitted by the terminal to be tested, and the auxiliary test terminal 103 in fig. 1 receives and processes the signal to obtain a test result, and then transmits the test result to the main control terminal. Steps S5 and S6 may be executed in a loop multiple times to complete all test operations in the test mode.
In summary, after the tested terminal enters the preset test mode by using the method of fig. 2, the main control terminal interacts with the tested terminal to obtain the test mode, so as to enter the test flow of the test mode, thereby completing the test of the tested terminal.
In one possible embodiment, the method further comprises:
s7, receiving a configuration instruction sent by the main control terminal, wherein the configuration instruction comprises a preconfigured test mode mark;
specifically, the main control terminal sends a configuration instruction to the terminal to be tested in the process of testing the terminal to be tested in the corresponding test mode according to the test mode information or after the test is finished, wherein the configuration instruction comprises a preconfigured test mode mark for preconfiguring the test mode to be entered when the terminal is started next time.
And S8, responding to the configuration instruction, and modifying the assignment of the test mode zone bit into a pre-configured test mode mark.
Specifically, the terminal under test responds to the configuration instruction, and modifies the assignment of the test mode flag bit into a preconfigured test mode flag, for example, the test mode entered by using the method in fig. 2 is a GSM calibration mode, during the test of the GSM calibration mode, or after the test of the GSM calibration mode is finished, the main control terminal sends the configuration instruction to the terminal under test, where the configuration instruction includes 0x02, and then the terminal under test sets the test mode flag bit to 0x02, and the mode entered by the terminal under test when the terminal is turned on next time is a GSM final test mode.
The test mode to be entered after the next tested terminal is started is preset in the test process of the current station or after the test is completed, and the process is circulated until all test items are completed by the tested terminal.
In a possible embodiment, step 202 specifically includes:
2021. when the assignment is matched with the preset test mode mark, the position of the test mode mark is a normal starting mode mark, and the tested terminal is controlled to enter a test mode corresponding to the preset test mode mark;
specifically, when the assignment is matched with a preset test mode mark, the position of the test mode mark is a normal starting mode mark, and then the tested terminal is controlled to enter a test mode corresponding to the preset test mode mark; the Normal boot mode flag may be zero or other flag, and the mode information corresponding to the Normal boot mode is Normal boot mode.
Or,
2022. and when the assignment is matched with the preset test mode mark, controlling the tested terminal to enter a test mode corresponding to the preset test mode mark, and setting the test mode mark position as a normal startup mode mark.
Specifically, when the assignment is matched with the preset test mode flag, the tested terminal may also be controlled to enter the test mode corresponding to the preset test mode flag, and then the test mode flag is set as the normal boot mode flag.
By using the method, when the tested terminal is matched with the preset test mode mark, the tested terminal is controlled to be in the normal starting mode mark before or after entering the test mode corresponding to the preset test mode mark, so that the test flexibility of the tested terminal can be enhanced. In a possible embodiment, after the test flow of the current station is finished, the test mode flag bit (at this time, the flag bit is a normal boot mode flag) can be kept unchanged, and then the terminal to be tested enters a normal boot mode after the terminal to be tested is booted next time, so that the independence among the test stations can be effectively guaranteed; the method can also effectively avoid that after the current station position is finished, a tester forgets to configure the test mode to be entered by next starting, so that the tested terminal still stays in the last test mode after the next starting, and invalid test time is increased. The marking position is actively marked as a normal starting mode, when a tester forgets to configure the next test mode, the test mode can be configured by sending a configuration instruction after the tested terminal is normally started, or the test interaction is carried out by sending a test instruction after the tested terminal is started through a traditional test mode, so that the test operation is completed. In a possible embodiment, after the current station position is finished, the main control terminal sends a configuration instruction to configure a test mode to be entered by the terminal to be tested when the terminal is started next time, and the test mode flag bit is modified from a normal start mode flag to a test mode flag specified by the configuration instruction, so that the test mode configuration is flexible.
In a possible embodiment, after the terminal under test enters the preset test mode by using the method of fig. 2, and after the terminal under test interacts with the main control terminal to complete the corresponding test, the assignment of the flag bit of the test mode may not be modified, and the flag bit of the test mode is kept unchanged, so that the terminal under test still enters the original preset test mode after being started next time, and the relevance between the test station locations can be effectively ensured. Until the main control terminal sends a configuration instruction to modify the assignment of the test mode zone bit.
In one possible embodiment, the method further comprises:
and the tested terminal responds to the first query instruction and sends a second response message to the main control terminal when the assignment is not matched with the preset test mode mark or the assignment is null, wherein the second response message indicates that the tested terminal does not enter the test mode.
Specifically, when the assignment is not matched with the preset test mode flag or the assignment is null, and the terminal to be tested receives the first query instruction, the terminal to be tested may respond to the first query instruction and send a second response message to the master control terminal, where the second response message indicates that the terminal to be tested does not enter the test mode. The format of the second response message is not particularly limited. The case that the assignment does not match the preset test pattern flag includes assigning a normal pattern flag or assigning other flags, such as a reserved pattern flag (more than 1, such as any one or more of the reserved pattern flags between 0x17 and 0 xFF), where the reserved pattern flag is an undefined test pattern, and at this time, the pattern information of the reserved pattern may be reserved; the preset test mode mark is set for enhancing the test expansibility of the tested terminal, and a test mode can be added according to the test requirement. After the main control terminal receives the second response message,
in one possible embodiment, the method further comprises:
and when the assignment is not matched with the preset test mode mark or the assignment is null and the tested terminal does not receive the first query instruction, the main control terminal can perform test interaction by sending a test instruction to the tested terminal in a traditional test mode so as to complete the test operation of the tested terminal.
The following description will be made by taking the tested terminal as a mobile phone as an example:
referring to fig. 3 and fig. 4, fig. 3 is a schematic structural diagram of a test system according to an embodiment of the present invention, and fig. 4 is a schematic flow chart of a test method according to an embodiment of the present invention; the main control terminal is a computer 301 as an example, the tested terminal is a mobile phone 303 as an example, the auxiliary test terminal is a wireless integrated tester 302 as an example, the wireless integrated tester 302 is connected with the computer 301 through a GPIB bus, and the wireless integrated tester 302 performs signal transmission and signal reception through a radio frequency cable or a coupling circuit board.
1. Firstly, at a download station, initializing each test mode, a corresponding number (i.e., a preset test mode flag) and a mode to be entered after starting up (i.e., assignment of a set mode flag) into a flag partition michdata of a Flash memory (Flash) of the mobile phone 303 through a configuration file (or in other manners), where information of the configuration file is as follows:
[Next Boot Mode]
;Enable:0:disable;1:enable
Enable=1
SupportFeaturePhone=0
next Mode 0x0# test Mode flag bit Next Mode
(ii) a 0x00normal boot mode # Normal boot mode
(ii) a 0x01GSM cal mode # GSM calibration mode
(ii) a 0x02GSM Final test mode # GSM Final test mode
(ii) a 0x03Wcdma cal mode # Wcdma calibration mode
(ii) a 0x04 Wcdmamonal testmode # Wcdma final test mode
(ii) a 0x05TDscdma cal mode # TDscdma calibration mode
(ii) a 0x06TDscdmaFinal test mode # TDscdma final test mode
(ii) a 0x07LTE TDD cal mode # LTE TDD calibration mode
(ii) a 0x08LTE TDDFinal test mode # LTE TDD final test mode
(ii) a 0x09LTE FDD cal mode # LTE FDD calibration mode
(ii) a 0x0ALTE FDDFinal test mode # LTE FDD final test mode
(ii) a 0x0BNR 5g sub6g cal mode # NR 5g sub6g calibration pattern
(ii) a 0x0CNR 5g sub6gFinal test mode # NR 5g sub6g final test pattern
;0x0DNR mmW
(ii) a 0x0ENR mmWFinal testmode # NR mmW final test mode
(ii) a 0x0FCDMA2K cal mode # CDMA2K calibration mode
(ii) a 0x10CDMA2KFinal test mode # CDMA2K final test mode
;0x11BBAT mode
;0x12native MMI mode(MMI for feature phone)
;0x13Apk MMI(apply for smartphone)
(ii) a 0x14NB-IOT calmode # NB-IOT calibration mode
(ii) a 0x15NB-IOT final test mode # NB-IOT final test pattern
(ii) a 0x16UPT # UPT mode
(ii) a 0x 17-0 xFF reserved # reservation mode
Wherein the numbers 0x01-0x16 correspond to different test patterns respectively. When station testing is downloaded, the mobile phone 303 is initialized by downloading a configuration file, and then a test mode flag bit "Next boot mode" is set, that is, "Next boot mode ═ 0 xXX" (XX represents different test mode numbers, which correspond to different test modes one to one), and then the mobile phone 303 is turned off and enters the Next test station.
2. When the mobile phone reaches the next test station, the uboot code reads the value of the next boot mode stored in the miscdata partition after the mobile phone is started, and the mobile phone automatically enters the mode after reading the value of the corresponding mode.
If the value is not ' 0 ' or reserved ' and is a legal defined Next boot mode parameter, the uboot changes the parameter to ' 0 ' and stores the parameter in the iscdata partition, and the quick entry mode flow is carried out, so that the mobile phone enters a test mode corresponding to the value read by starting.
If the Next boot mode value is "0 or reserved" or the flag bit is empty, the software still goes through a normal work flow, for example, goes through a normal boot or a normal command to enter a certain test mode, which mode is specifically gone, and specifically, whether a first query instruction of the computer is received is determined, for details, see the description of the point (c) in the step 3 below.
3. Firstly, in the first situation, the mobile phone 303 already enters the corresponding test mode, if the tester plugs in the USB cable to connect the computer 301 and the mobile phone 303 at this time, and the computer 301 sends the first query instruction to the mobile phone 303, the mobile phone 303 returns the first response message to the computer, for example:
PC->MS 7E 00 00 00 00 08 00 FE XX 7E
MS->PC 7E 00 00 00 00 08 00 FE FF 7E
after receiving the reply from the mobile phone 303, the computer 301 sends a second query instruction to query the current test mode of the mobile phone 303, for example, to query the current working mode of the mobile phone through an AT command, such as:
-->:AT+GETTESTMODE?
<--:+GETTESTMODE:XXX
<--:OK
the computer 301 directly enters the corresponding mode for testing after inquiring the corresponding mode. After the test is finished, the computer (configured in advance) modifies the assignment of the flag bit of the test mode, sets the test mode directly entered after the next station is started, and prepares for the next station to quickly enter the corresponding test mode. The next test station still operates according to the execution steps of the first point in the steps 2 and 3, and all test items of the mobile phone 303 can be completed by circulating the steps.
And secondly, in the second case, the Next boot mode value is 0 or reserved or the flag bit is empty, that is, the preset test mode mark is not matched, if at this time, a tester is plugged in a USB line to connect the computer 301 and the mobile phone 303, the computer 301 sends a first query instruction to the mobile phone 303, the mobile phone 303 returns a second response message to the computer 301, and the computer 301 tests the mobile phone 303 through a traditional test mode, that is, the test instruction is sent through interaction of a USB interface, so that the test is completed.
In the third case, the Next boot mode value is "0 or reserved" or the flag bit is empty, that is, the preset test mode flag is not matched, and if the computer 301 does not send the first query instruction to the mobile phone 303, the mobile phone 303 goes to the normal boot mode.
Referring to fig. 3 and 4, the mobile phone enters the preset test mode quickly by initializing and presetting the test mode flag bit, so that the test efficiency of the tested terminals such as the mobile phone is effectively improved.
Based on the description of the foregoing testing method embodiment, an embodiment of the present invention further discloses a testing apparatus, and referring to fig. 5, fig. 5 is a schematic structural diagram of the testing apparatus provided in the embodiment of the present invention, where the testing apparatus is applied to a tested terminal of a terminal testing system, and the testing apparatus includes:
an obtaining module 501, configured to obtain an assignment of a test mode flag bit in a terminal to be tested after the terminal to be tested is powered on;
and the control module 502 is configured to control the tested terminal to enter a test mode corresponding to the preset test mode flag when the assignment matches the preset test mode flag.
In one possible embodiment, the system further includes a master control terminal, and the apparatus further includes:
the receiving module is used for receiving a first query instruction of the master control terminal, wherein the first query instruction is used for querying whether the tested terminal enters a test mode or not;
the sending module is used for responding to the first query instruction and sending a first response message to the main control terminal, wherein the first response message indicates that the tested terminal enters the test mode;
the receiving module is also used for receiving a second query instruction of the main control terminal, and the second query instruction is used for querying the current test mode of the tested terminal;
the sending module is also used for responding to the second query instruction and sending test mode information corresponding to the preset test mode mark to the main control terminal;
the receiving module is also used for receiving a test instruction sent by the main control terminal according to the test mode information;
and the execution module is used for executing the test operation corresponding to the test instruction.
In one possible embodiment, the apparatus further comprises:
the receiving module is also used for receiving a configuration instruction sent by the main control terminal after the test is finished, and the configuration instruction comprises a preconfigured test mode mark;
and the modification module is used for responding to the configuration instruction and modifying the assignment of the test mode zone bit into a pre-configured test mode mark.
In a possible embodiment, the control module is specifically configured to, when the assignment matches the preset test mode flag, set the test mode flag to be the normal power-on mode flag, and control the tested terminal to enter a test mode corresponding to the preset test mode flag;
or,
and the control module is specifically used for controlling the tested terminal to enter a test mode corresponding to the preset test mode mark when the assignment is matched with the preset test mode mark, and setting the test mode mark position as a normal starting mode mark.
In one possible embodiment, the apparatus further comprises:
and the sending module is also used for sending a second response message to the main control terminal by the tested terminal in response to the first query instruction when the assignment is not matched with the preset test mode mark or when the assignment is null, wherein the second response message indicates that the tested terminal does not enter the test mode.
It should be noted that, for a specific implementation manner of the function of the testing apparatus, reference may be made to the description of the testing method, and details are not described here. Each unit or module in the testing apparatus may be respectively or completely combined into one or several other units or modules to form the testing apparatus, or some unit(s) or module(s) therein may be further split into multiple units or modules with smaller functions to form the testing apparatus, which may implement the same operation without affecting the implementation of the technical effect of the embodiments of the present invention. The above units or modules are divided based on logic functions, and in practical applications, the functions of one unit (or module) may also be implemented by a plurality of units (or modules), or the functions of a plurality of units (or modules) may be implemented by one unit (or module).
Based on the description of the method embodiment and the device embodiment, the embodiment of the invention also provides a tested terminal.
Fig. 6 is a schematic structural diagram of a terminal under test according to an embodiment of the present invention. As shown in fig. 6, the testing apparatus described above may be applied to the terminal under test 600, and the terminal under test 600 may include: the processor 601, the network interface 604 and the memory 605, in addition, the terminal 600 under test may further include: a user interface 603, and at least one communication bus 602. Wherein a communication bus 602 is used to enable the connection communication between these components. The user interface 603 may include a Display (Display) and a Keyboard (Keyboard), and the optional user interface 603 may further include a standard wired interface and a standard wireless interface. The network interface 604 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 605 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 605 can optionally also be at least one storage device located remotely from the processor 601. As shown in fig. 6, the memory 605, which is a type of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a device control application program.
In the terminal 600 shown in fig. 6, the network interface 604 may provide a network communication function; and the user interface 603 is primarily an interface for providing input to a user; and processor 601 may be used to invoke the device control application stored in memory 605 to implement:
after the tested terminal is powered on, obtaining the assignment of the test mode zone bit in the tested terminal;
and when the assignment is matched with the preset test mode mark, controlling the tested terminal to enter a test mode corresponding to the preset test mode mark.
In a possible embodiment, the test system of the terminal under test includes a master control terminal, and the processor 601 further performs the following steps:
receiving a first query instruction of a master control terminal, wherein the first query instruction is used for querying whether a tested terminal enters a test mode or not;
responding to the first query instruction, and sending a first response message to the master control terminal, wherein the first response message indicates that the tested terminal enters a test mode;
receiving a second query instruction of the master control terminal, wherein the second query instruction is used for querying the current test mode of the terminal to be tested;
responding to the second query instruction to send test mode information corresponding to the preset test mode mark to the main control terminal;
receiving a test instruction sent by the main control terminal according to the test mode information;
and executing the test operation corresponding to the test instruction.
In one possible embodiment, processor 601 further performs the steps of:
receiving a configuration instruction sent by a main control terminal, wherein the configuration instruction comprises a preconfigured test mode mark;
and responding to the configuration instruction, and modifying the assignment of the test mode zone bit into a pre-configured test mode mark.
In one possible embodiment, the processor 601 specifically performs:
when the assignment matches a preset test pattern flag,
setting the mark position of the test mode as a normal starting mode mark, and controlling the tested terminal to enter a test mode corresponding to a preset test mode mark;
or,
and controlling the tested terminal to enter a test mode corresponding to the preset test mode mark, and setting the test mode mark position as a normal starting mode mark.
In one possible embodiment, processor 601 further performs:
and when the assignment is not matched with the preset test mode mark or the assignment is null, the tested terminal responds to the first query instruction and sends a second response message to the main control terminal, wherein the second response message indicates that the tested terminal does not enter the test mode.
It should be understood that the terminal under test 600 described in the embodiment of the present invention may perform the foregoing testing method, and may also perform the foregoing testing apparatus, which are not described herein again. In addition, the beneficial effects of the same method are not described in detail.
Furthermore, it is to be noted here that: an embodiment of the present invention further provides a computer storage medium, where the computer program executed by the aforementioned testing apparatus is stored in the computer storage medium, and the computer program includes program instructions, and when the processor executes the program instructions, the description of the testing method can be executed, so that details are not repeated herein. In addition, the beneficial effects of the same method are not described in detail. For technical details not disclosed in the embodiment of the computer storage medium related to the present invention, refer to the description of the embodiment of the method of the present invention.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can 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 above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.
Claims (6)
1. A testing method is characterized in that the testing method is applied to a tested terminal of a terminal testing system, the system further comprises a master control terminal, and the method comprises the following steps:
receiving a configuration instruction sent by the master control terminal through a USB interface, wherein the configuration instruction comprises a preconfigured test mode mark;
modifying the assignment of the test mode flag bit in the tested terminal to the pre-configured test mode flag in response to the configuration instruction,
after the tested terminal is electrified, obtaining the assignment of a test mode flag bit in the tested terminal;
when the assignment is matched with a preset test mode mark, controlling the tested terminal to enter a test mode corresponding to the preset test mode mark;
receiving a first query instruction of the master control terminal through the USB interface, wherein the first query instruction is used for querying whether the tested terminal enters a test mode or not;
responding to the first query instruction, and sending a first response message to the master control terminal through the USB interface, wherein the first response message indicates that the tested terminal enters a test mode;
receiving a second query instruction of the master control terminal through the USB interface, wherein the second query instruction is used for querying the current test mode of the tested terminal;
responding to the second query instruction, and sending test mode information corresponding to the preset test mode mark to the main control terminal through the USB interface;
receiving a test instruction sent by the main control terminal according to the test mode information through the USB interface;
and executing the test operation corresponding to the test instruction.
2. The method of claim 1, wherein when the assignment matches a preset test pattern flag,
setting the position of the test mode mark as a normal starting mode mark, and controlling the tested terminal to enter a test mode corresponding to the preset test mode mark;
or,
and controlling the tested terminal to enter a test mode corresponding to the preset test mode mark, and marking the test mode mark as a normal starting mode mark.
3. The method of claim 1, further comprising:
and when the assignment is not matched with a preset test mode mark or the assignment is null, the tested terminal responds to the first query instruction and sends a second response message to the main control terminal, wherein the second response message indicates that the tested terminal does not enter the test mode.
4. The utility model provides a testing arrangement which characterized in that is applied to the terminal under test of terminal test system, the system still includes main control terminal, testing arrangement includes:
the receiving module is used for receiving a configuration instruction sent by the main control terminal through a USB interface, wherein the configuration instruction comprises a preconfigured test mode mark;
a modification module, configured to modify, in response to the configuration instruction, an assignment of a test mode flag bit in the terminal to be tested to the preconfigured test mode flag;
the obtaining module is used for obtaining the assignment of the test mode zone bit in the tested terminal after the tested terminal is electrified;
the control module is used for controlling the tested terminal to enter a test mode corresponding to a preset test mode mark when the assignment is matched with the preset test mode mark;
the receiving module is further configured to receive a first query instruction of the master control terminal through the USB interface, where the first query instruction is used to query whether the terminal to be tested enters a test mode;
the device further comprises:
a sending module, configured to send a first response message to the master control terminal through the USB interface in response to the first query instruction, where the first response message indicates that the terminal under test has entered a test mode;
the receiving module is further configured to receive a second query instruction of the master control terminal through the USB interface, where the second query instruction is used to query a current test mode of the terminal to be tested;
the sending module is further configured to send test mode information corresponding to the preset test mode flag to the master control terminal through the USB interface in response to the second query instruction;
the receiving module is further configured to receive, through the USB interface, a test instruction sent by the main control terminal according to the test mode information;
and the execution module is used for executing the test operation corresponding to the test instruction.
5. A terminal under test, comprising: a processor and a memory;
the processor is connected with the memory, wherein the memory is used for storing program codes, and the processor is used for executing the program codes so as to enable the tested terminal to execute the testing method according to any one of claims 1-3.
6. A computer storage medium, characterized in that the computer storage medium stores computer program code which, when executed by a processor, implements a testing method according to any one of claims 1-3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010616634.5A CN111786852B (en) | 2020-06-30 | 2020-06-30 | Test method and related equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010616634.5A CN111786852B (en) | 2020-06-30 | 2020-06-30 | Test method and related equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111786852A CN111786852A (en) | 2020-10-16 |
CN111786852B true CN111786852B (en) | 2022-08-26 |
Family
ID=72760389
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010616634.5A Active CN111786852B (en) | 2020-06-30 | 2020-06-30 | Test method and related equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111786852B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113091793B (en) * | 2021-03-02 | 2023-09-05 | 北京小米移动软件有限公司 | Test equipment and test method thereof |
CN114895994B (en) * | 2022-03-10 | 2023-09-01 | 深圳优美创新科技有限公司 | Method for terminal equipment to enter test mode, terminal equipment and readable storage medium |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8862723B2 (en) * | 2011-05-27 | 2014-10-14 | Sharp Laboratories Of America, Inc. | System and method for monitoring handheld devices in a user testing mode |
US20160197684A1 (en) * | 2011-06-13 | 2016-07-07 | Mediatek Inc. | Rf testing system with serdes device |
CN104268075B (en) * | 2014-09-22 | 2017-08-18 | 广东欧珀移动通信有限公司 | A kind of method, device and mobile terminal of entrance test pattern |
CN105893233B (en) * | 2014-12-19 | 2021-04-27 | 伊姆西Ip控股有限责任公司 | Method and system for automatically testing firmware |
CN105491140B (en) * | 2015-12-15 | 2019-07-19 | 上海斐讯数据通信技术有限公司 | Remote testing method and system for terminal |
CN108089952B (en) * | 2016-11-22 | 2021-11-16 | 北京计算机技术及应用研究所 | Automatic change test equipment |
CN110309065B (en) * | 2019-06-03 | 2023-05-30 | 平安科技(深圳)有限公司 | Concurrent execution method, device and equipment of test tasks and storage medium |
-
2020
- 2020-06-30 CN CN202010616634.5A patent/CN111786852B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN111786852A (en) | 2020-10-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111786852B (en) | Test method and related equipment | |
CN108206997B (en) | Bluetooth connection method and device | |
JP3810053B2 (en) | Method and apparatus for configuring software heterogeneous for electronic devices | |
CN105577293B (en) | A kind of test method of bluetooth equipment, apparatus and system | |
JP4640859B2 (en) | How to start a proactive session from an applet in a smart card | |
KR100697174B1 (en) | Local and remote access to radio parametric and regulatory data and methods therefor | |
CN109634861B (en) | Testing method, device, processor and terminal of network game protocol | |
CN106341827A (en) | Testing methods and systems for mobile communication devices | |
US10263714B2 (en) | Mobile terminal testing device and transmitting antenna testing method | |
CN111010317A (en) | Bluetooth production and test method and system based on serial port and Bluetooth low-energy consumption dual protocol | |
US8964610B2 (en) | System and method of reducing factory program time for wireless devices | |
CN110119282A (en) | A kind of internet-of-things terminal and system based on general-purpose built-in type computer | |
CN111726795A (en) | Method and equipment for testing intelligent terminal | |
CN112632420A (en) | Interface skipping method and device, storage medium and electronic device | |
KR20080078112A (en) | Apparatus and method for updating boot logo in portable terminal | |
CN116028331A (en) | Configuration file generation method and framework construction method for middleware test | |
CN111787555A (en) | Method and equipment for testing intelligent terminal | |
CN109347578B (en) | Radio frequency performance test method and device, computer equipment and readable storage medium | |
JP2006033293A (en) | Electronic apparatus loaded to mobile terminal and control method of electronic apparatus | |
CN113472611A (en) | Method and device for acquiring WiFi signal strength and readable storage medium | |
CN109995622A (en) | Smart home device and its match network method, router, smart home system | |
KR20220169318A (en) | Method for customizing software, electronic device and storage medium therefor | |
CN110647465A (en) | Test data entry method and device and computer readable storage medium | |
CN101510179A (en) | Signal transmission apparatus and method | |
CN111356169A (en) | Mobile terminal testing device and test case extraction method thereof |
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 |