CN105738723A - Production line automatic detection method and detection device - Google Patents
Production line automatic detection method and detection device Download PDFInfo
- Publication number
- CN105738723A CN105738723A CN201610064762.7A CN201610064762A CN105738723A CN 105738723 A CN105738723 A CN 105738723A CN 201610064762 A CN201610064762 A CN 201610064762A CN 105738723 A CN105738723 A CN 105738723A
- Authority
- CN
- China
- Prior art keywords
- mode
- configuration information
- detection
- detected
- program
- 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.)
- Pending
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 148
- 238000004519 manufacturing process Methods 0.000 title claims abstract description 50
- 238000012360 testing method Methods 0.000 claims abstract description 92
- 238000003860 storage Methods 0.000 claims abstract description 61
- 238000000034 method Methods 0.000 claims description 30
- 230000005540 biological transmission Effects 0.000 claims description 6
- 238000007689 inspection Methods 0.000 claims 2
- 230000008569 process Effects 0.000 description 12
- 238000011161 development Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 238000012986 modification Methods 0.000 description 4
- 230000008859 change Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000009434 installation Methods 0.000 description 2
- 238000009826 distribution Methods 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 238000012806 monitoring device Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention provides a production line automatic detection method and a detection device, and belongs to the testing field. The production line automatic detection method is characterized in that after a starting loading program is run by a device to be detected, and a preset file stored in a mobile storage medium connected with the device to be detected can be detected; the preset file can be parsed, and the configuration information of the preset file can be acquired; and the detection mode corresponding to the configuration information can be executed. The device to be detected is used to parse the configuration information stored in the mobile storage medium connected with the device to be detected, and therefore the detection of the device to be detected can be realized, the testing time can be saved, the testing efficiency can be improved, and at the same time, the labor costs and the production costs of the device to be detected can be saved.
Description
Technical Field
The invention relates to the field of equipment detection, in particular to an automatic detection method and detection equipment for a production line.
Background
In the production test process of a factory, a device to be tested needs to run a specific test program or enter a specific test mode according to the actual requirement of a production line; in addition, the configuration of the equipment is different according to different requirements of the test station, so a production line detection method of the equipment to be detected is needed to meet the test requirements of the equipment to be detected.
The prior art provides three automatic production line detection methods, the first method is to change the level of a specific pin (pin) to make the equipment enter different modes in a jig mode so as to realize the production line detection of the equipment to be detected. The second method is that after the device is started up, a Personal Computer (PC) is configured by a Command (Command) in a tool (tool) manner, so as to realize the production line detection of the device to be detected. And the third mode is a manual mode, and after the equipment is started, personnel configure the equipment through manual operation so as to realize the production line detection of the equipment to be detected.
However, when the first method provided by the prior art is used, the related test points need to be reserved on the circuit of the device to be detected; and a jig is required to be manufactured, so that the production cost of the equipment to be detected is increased. When the second method provided by the prior art is used, because the Command in the PC is started for a long time, the testing time is increased, and the testing efficiency is reduced. When the third method provided by the prior art is used, the time required by manual configuration of personnel is long, so that the test time is increased, the test efficiency is reduced, the labor cost is increased, and in addition, the phenomena of misoperation and the like possibly occur due to personal factors of the personnel in the test process, so that the accuracy of the test result is reduced.
Disclosure of Invention
In order to reduce the testing cost and the labor cost of equipment to be detected and improve the testing efficiency and the testing accuracy, the embodiment of the invention provides an automatic production line detection method and detection equipment. The technical scheme is as follows:
in a first aspect, a method for automatically detecting a production line is provided, where the method includes:
after a device to be detected runs a start loading program, detecting a preset file stored on a mobile storage medium connected with the device to be detected;
analyzing the preset file to obtain configuration information contained in the preset file; and
and executing a detection mode corresponding to the configuration information.
With reference to the first aspect, in a first possible implementation manner, the preset file at least includes at least one of system upgrade mode configuration information, user-defined mode configuration information, and factory detection mode configuration information, and detection program installation configuration information.
With reference to the first aspect or the first possible implementation manner of the first aspect, in a second possible implementation manner, the detecting a preset file stored on a mobile storage medium connected to the device to be detected includes:
and detecting whether the format of the preset file conforms to the format predefined by the equipment to be detected.
With reference to the first possible implementation manner of the first aspect, in a third possible implementation manner, the executing a detection mode corresponding to the configuration information includes:
transmitting the configuration information to a system starting program of the equipment to be detected; and
and the system starting program executes a detection mode corresponding to the configuration information according to the configuration file.
With reference to the third possible implementation manner of the first aspect, in a fourth possible implementation manner, the testing mode includes at least one of a system upgrade mode, a user-defined mode, and a factory detection mode, and the executing, by the system start-up program, the detection mode corresponding to the configuration information according to the configuration file includes:
after the system is started, the system starting program installs the detection program according to the detection program installation configuration information; and
and executing at least one of the system upgrading mode, the user-defined mode and the factory detection mode according to an execution command in the detection program.
In a second aspect, there is provided a detection apparatus, comprising:
the detection module is used for detecting a preset file stored on a mobile storage medium connected with the equipment to be detected after the equipment to be detected operates and starts a loading program;
the analysis module is used for analyzing the preset file and acquiring the configuration information contained in the preset file; and
and the execution module is used for executing the detection mode corresponding to the configuration information.
With reference to the second aspect, in a first possible implementation manner, the preset file at least includes at least one of system upgrade mode configuration information, user-defined mode configuration information, and factory detection mode configuration information, and detection program installation configuration information.
With reference to the second aspect or the first possible implementation manner of the second aspect, in a second possible implementation manner, the detection module is specifically configured to:
and detecting whether the format of the preset file conforms to the format predefined by the equipment to be detected.
With reference to the first possible implementation manner of the second aspect, in a third possible implementation manner, the execution module includes:
the transmission submodule is used for transmitting the configuration information to a system starting program of the equipment to be detected; and
and the mode execution submodule is used for executing the detection mode corresponding to the configuration information according to the configuration file.
With reference to the third possible implementation manner of the second aspect, in a fourth possible implementation manner, the test mode includes at least one of a system upgrade mode, a user-defined mode, and a factory detection mode, and the mode execution submodule is specifically configured to:
after the system is started, the system starting program installs the detection program according to the detection program installation configuration information; and
and executing at least one of the system upgrading mode, the user-defined mode and the factory detection mode according to an execution command in the detection program.
In a third aspect, a detection apparatus is provided, which includes a memory and a processor connected to the memory, the memory being configured to store a set of program codes, and the processor calling the program codes stored in the memory to perform the following operations:
after a device to be detected runs a start loading program, detecting a preset file stored on a mobile storage medium connected with the device to be detected;
analyzing the preset file to obtain configuration information contained in the preset file; and
and executing a detection mode corresponding to the configuration information.
With reference to the third aspect, in a first possible implementation manner, the preset file at least includes at least one of system upgrade mode configuration information, user-defined mode configuration information, and factory detection mode configuration information, and detection program installation configuration information.
With reference to the third aspect or the first possible implementation manner of the third aspect, in a second possible implementation manner, the detecting a preset file stored on a mobile storage medium connected to the device to be detected includes:
and detecting whether the format of the preset file conforms to the format predefined by the equipment to be detected.
With reference to the first possible implementation manner of the third aspect, in a third possible implementation manner, the executing a detection mode corresponding to the configuration information includes:
transmitting the configuration information to a system starting program of the equipment to be detected; and
and the system starting program executes a detection mode corresponding to the configuration information according to the configuration file.
With reference to the third possible implementation manner of the third aspect, in a fourth possible implementation manner, the test mode includes at least one of a system upgrade mode, a user-defined mode, and a factory detection mode, and the executing, by the system start-up program according to the configuration file, a detection mode corresponding to the configuration information includes:
after the system is started, the system starting program installs the detection program according to the detection program installation configuration information; and
and executing at least one of the system upgrading mode, the user-defined mode and the factory detection mode according to an execution command in the detection program.
In a fourth aspect, an automatic production line detection system is provided, the system comprising:
the device comprises a device to be detected and a mobile storage medium, wherein the device to be detected is connected with the mobile storage medium in a connection mode comprising a direct connection mode through a wired or wireless mode and an indirect connection mode through third-party equipment such as a computer;
the removable storage medium includes:
the storage module is used for storing preset files;
the connection module is used for being connected with the equipment to be detected in any one of two modes, namely a direct connection mode through a wired or wireless mode and an indirect connection mode through third-party equipment such as a computer;
the equipment to be detected comprises:
the connection module is used for being connected with the mobile storage medium in any one of two modes, namely a direct connection mode through a wired or wireless mode and an indirect connection mode through third-party equipment such as a computer;
the detection module is used for detecting a preset file stored on a mobile storage medium connected with the equipment to be detected after the equipment to be detected operates and starts a loading program;
the analysis module is used for analyzing the preset file and acquiring the configuration information contained in the preset file; and
and the execution module is used for executing the detection mode corresponding to the configuration information.
With reference to the fourth aspect, in a first possible implementation manner, the preset file at least includes at least one of system upgrade mode configuration information, user-defined mode configuration information, and factory detection mode configuration information, and detection program installation configuration information.
With reference to the fourth aspect or the first possible implementation manner of the fourth aspect, in a second possible implementation manner, the detection module is specifically configured to:
and detecting whether the format of the preset file conforms to the format predefined by the equipment to be detected.
With reference to the first possible implementation manner of the fourth aspect, in a third possible implementation manner, the execution module includes:
the transmission submodule is used for transmitting the configuration information to a system starting program of the equipment to be detected; and
and the mode execution submodule is used for executing the detection mode corresponding to the configuration information according to the configuration file.
With reference to the third possible implementation manner of the fourth aspect, in a fourth possible implementation manner, the test mode includes at least one of a system upgrade mode, a user-defined mode, and a factory detection mode, and the mode execution submodule is specifically configured to:
after the system is started, the system starting program installs the detection program according to the detection program installation configuration information; and
and executing at least one of the system upgrading mode, the user-defined mode and the factory detection mode according to an execution command in the detection program.
In a fifth aspect, a removable storage medium is provided, the removable storage medium comprising:
the storage module is used for storing preset files; and
and the connecting module is used for being connected with the equipment to be detected in any one of two modes, namely a direct connection mode through a wired or wireless mode and an indirect connection mode through third-party equipment such as a computer.
In a sixth aspect, an apparatus to be detected is provided, which includes:
the connection module is used for being connected with the mobile storage medium in any one of two modes, namely a direct connection mode through a wired or wireless mode and an indirect connection mode through third-party equipment such as a computer;
the detection module is used for detecting a preset file stored on a mobile storage medium connected with the equipment to be detected after the equipment to be detected operates and starts a loading program;
the analysis module is used for analyzing the preset file and acquiring the configuration information contained in the preset file; and
and the execution module is used for executing the detection mode corresponding to the configuration information.
With reference to the sixth aspect, in a first possible implementation manner, the preset file at least includes at least one of system upgrade mode configuration information, user-defined mode configuration information, and factory detection mode configuration information, and detection program installation configuration information.
With reference to the sixth aspect or the first possible implementation manner of the sixth aspect, in a second possible implementation manner, the detection module is specifically configured to:
and detecting whether the format of the preset file conforms to the format predefined by the equipment to be detected.
With reference to the first possible implementation manner of the sixth aspect, in a third possible implementation manner, the execution module includes:
the transmission submodule is used for transmitting the configuration information to a system starting program of the equipment to be detected; and
and the mode execution submodule is used for executing the detection mode corresponding to the configuration information according to the configuration file.
With reference to the third possible implementation manner of the sixth aspect, in a fourth possible implementation manner, the test mode includes at least one of a system upgrade mode, a user-defined mode, and a factory detection mode, and the mode execution submodule is specifically configured to:
after the system is started, the system starting program installs the detection program according to the detection program installation configuration information; and
and executing at least one of the system upgrading mode, the user-defined mode and the factory detection mode according to an execution command in the detection program.
The embodiment of the invention provides an automatic detection method and detection equipment for a production line, which comprise the following steps: after the equipment to be detected operates and starts the loading program, detecting a preset file stored on a mobile storage medium connected with the equipment to be detected; analyzing the preset file to obtain configuration information contained in the preset file; and executing a detection mode corresponding to the configuration information. The configuration information stored on the mobile storage medium connected with the equipment to be detected is analyzed through the equipment to be detected, so that the detection of the equipment to be detected is realized, the testing time is saved, the testing efficiency is improved, and meanwhile, the labor cost and the production cost of the equipment to be detected are saved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only 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 flowchart of an automatic production line detection method according to an embodiment of the present invention;
fig. 2 is a flowchart of an automatic production line detection method according to an embodiment of the present invention;
fig. 3 is a flowchart of an automatic production line detection method according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a detection apparatus according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a detection apparatus according to an embodiment of the present invention;
fig. 6 is a schematic view of an automatic production line detection system according to an embodiment of the present invention;
FIG. 7 is a schematic structural diagram of a removable storage medium according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an apparatus to be detected according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions 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, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides an automatic production line detection method, which is characterized in that the detection of the equipment to be detected is realized by analyzing the configuration information stored on a mobile storage medium connected with the equipment to be detected by the equipment to be detected, and the retention of related test points on a circuit of the equipment to be detected and the manufacture of a jig are avoided, so that the production cost of the equipment to be detected is reduced. In addition, because the configuration is not carried out through the Command in the PC, the starting time is reduced, the testing efficiency is improved, in addition, the development of the PCtool is avoided, the development cost is not needed, the production cost of the equipment to be tested is reduced, and the labor cost is reduced. In addition, because manual configuration of personnel is not needed, the testing time is reduced, the testing efficiency is improved, the labor cost is reduced, and in addition, the phenomena of misoperation and the like possibly caused by personal factors of the personnel in the testing process are avoided, so that the accuracy of the testing result is improved. In addition, the embodiment of the present invention does not limit the operating system operated by the device to be detected, and the operating system may be any one of a UNIX system, a Linux system, an OS system, and operating systems such as a Windows system, an iOS system, an Android system, a WP system, and a ChromeOS system.
Embodiment one is an automatic production line detection method provided in an embodiment of the present invention, and as shown in fig. 1, the method includes:
101. and after the equipment to be detected operates and starts the loading program, detecting the preset file stored on the mobile storage medium connected with the equipment to be detected.
Specifically, whether the format of the preset file conforms to the format predefined by the device to be detected is detected.
The preset file at least comprises at least one of system upgrading mode configuration information, user-defined mode configuration information and factory detection mode configuration information, and detection program installation configuration information.
102. And analyzing the preset file to obtain the configuration information contained in the preset file.
103. And executing a detection mode corresponding to the configuration information.
Specifically, the configuration information is transmitted to a system starting program of the equipment to be detected;
and the system starting program executes a detection mode corresponding to the configuration information according to the configuration file.
The test mode includes at least one of a system upgrade mode, a user defined mode and a factory detection mode, and the process of the system startup program executing the detection mode corresponding to the configuration information according to the configuration file may be:
after the system is started, the system starting program installs the detection program according to the detection program installation configuration information;
and executing at least one of a system upgrade mode, a user-defined mode and a factory detection mode according to an execution command in the detection program.
The embodiment of the invention provides an automatic production line detection method, which is characterized in that the detection of the equipment to be detected is realized by analyzing the configuration information stored on a mobile storage medium connected with the equipment to be detected by the equipment to be detected, the test time is saved, the test efficiency is improved, and meanwhile, the labor cost and the production cost of the equipment to be detected are saved.
Embodiment two is an automatic production line detection method provided in an embodiment of the present invention, and as shown in fig. 2, the method includes:
201. and starting the equipment to be detected and running a starting loading program.
Specifically, since the boot loader (Bootloader) of the boot loader is operated before the kernel of the operating system is operated when the device to be detected is started, the Bootloader is automatically operated after the device to be detected is started.
202. And starting a loading program to load the mobile storage medium and detecting the preset file stored on the mobile storage medium connected with the equipment to be detected.
Specifically, whether the format of the preset file conforms to the predefined format of the device to be detected is detected, the predefined format of the device to be detected is a predefined format that can be read by a Bootloader, and the detection process may be as follows:
and acquiring format information of the preset file, comparing the format information with format information prestored in the equipment to be detected, if the format information of the preset file is matched with the format information prestored in the equipment to be detected, the format of the preset file accords with a format predefined by the equipment to be detected, and otherwise, the format of the preset file does not accord with the format predefined by the equipment to be detected. Or,
and the Bootloader reads the preset file, if the preset file is successfully read, the format of the preset file accords with the predefined format of the equipment to be detected, and if the preset file is not successfully read, the preset file is indicated to be not accord with the predefined format of the equipment to be detected according to the error type of the reading error.
The two manners for detecting whether the format of the preset file conforms to the predefined format of the device to be detected are only exemplary, and in practical applications, the detection whether the format of the preset file conforms to the predefined format of the device to be detected may also be implemented in other manners.
Because the starting time of the Command in the PC is longer, compared with the prior art in which the configuration is carried out through the Command on the basis of the PCtool, the invention reads the preset file through the Bootloader, thereby reducing the test time and improving the test efficiency.
The preset file at least comprises at least one of system upgrade mode configuration information, user-defined mode configuration information and factory detection mode configuration information, and detection program installation configuration information, specifically:
the detection program installation configuration information may be expressed as:
||execute||cp/udisk/PAT-215/*.apk/data/app/||7
||execute||chmod777/data/app/*.apk||Z
and in the Bootloader, the fields are used for indicating that the test program is automatically installed after the boot is started.
In the device to be tested, the test program may be in APK format.
In order to save storage space of the device to be tested, the test program can be deleted after the test is completed.
The upgrade mode configuration information may be expressed as:
#Androidrecoverymode
the upgrading program of the system upgrading is configured in the system file of the device to be tested in advance, so the characters are used for indicating to start the upgrading program in the system file of the device to be tested and contain corresponding upgrading version information.
The plant detection mode configuration information may be expressed as:
#enablefactorytestmode
||execute||setpropservice.ftd.start1||c
the characters are used for indicating the equipment to be detected to enter a factory test mode, installing a corresponding test program and automatically testing, and the c is a parity check bit to prevent a program file from being modified by misoperation.
The custom mode configuration information may be expressed as:
||config||XXXX||O
where XXXX is used to indicate a user defined test pattern.
The above configuration information is merely exemplary, and the embodiment of the present invention does not limit the form of the specific configuration information.
Optionally, in practical application, in addition to the information, the preset file may further include:
the IP setting configuration information may be expressed as:
||execute||ifconfigeth0192.168.1.188netmask255.255.255.0up||
the characters are used for indicating that the Ethernet of the equipment to be detected is set to be in a static IP mode, the IP is set to be 192.168.1.188, and communication between the PC and the equipment to be detected is facilitated in the scene that the equipment to be detected and the mobile storage medium are connected through the PC.
The port setting configuration information may be expressed as:
#enableadbtcp
||execute||setpropservice.adb.tcp.port5555||4
the characters are used for indicating that an ADBsocket port number is 5555, and communication between a PC (personal computer) and equipment to be detected is facilitated in a scene that the equipment to be detected and a mobile storage medium are connected through the PC.
The right acquisition configuration information may be expressed as:
#restartadbd
||execute||setpropservice.adb.root1||=
the characters are used for indicating to set the root property, so that the test program can acquire the root authority, the test time is prevented from being increased due to the authority problem in the process of installing the test program and testing, and the test efficiency is improved.
203. And analyzing the preset file, acquiring configuration information contained in the preset file, and recording the configuration information.
Specifically, the preset file is analyzed, and the configuration information included in the preset file is obtained from redundant information including a file name, a file format, and the like.
204. And transmitting the configuration information to a system starting program of the equipment to be detected.
Specifically, the configuration information is transmitted to a system startup program of the device to be tested, and the system startup program generates a startup task and starts a test program according to the configuration information.
205. And after the system is started, the system starting program installs the detection program according to the detection program installation configuration information.
Specifically, the system startup program generates an installation task according to the detection program installation configuration information, sets the installation task of the test program, establishes a temporary folder for installing the test program, and sets the running mode, interface, priority and the like of the test program according to the detection program installation configuration information.
206. And executing at least one of a system upgrade mode, a user-defined mode and a factory detection mode according to an execution command in the detection program.
Specifically, the test mode according to the embodiment of the present invention includes at least one of a system upgrade mode, a user-defined mode, and a factory detection mode.
The upgrade mode includes: and entering an upgrade interface, reading corresponding upgrade information (such as version information of an upgrade version) from the configuration information, and upgrading the system.
The user-defined mode comprises the following steps: and entering an operation interface configured by default or defined by a user in the system, reading a user-defined command in the configuration information, and operating the user-defined command.
The factory test mode includes: and (4) not starting Android, entering Tinymode and displaying a factory test UI interface. The mode can communicate with the PC (through USB/WIFI/Ethernet) to complete the related test
It should be noted that, steps 205 to 206 are processes for implementing the system boot program to execute the detection mode corresponding to the configuration information according to the configuration file, and besides the above-mentioned modes, the processes may also be implemented in other modes, and the specific mode is not limited in the embodiment of the present invention.
It should be noted that steps 204 to 205 are processes for implementing the execution of the detection mode corresponding to the configuration information, and the processes may be implemented in other ways besides the ways described in the above steps, and the specific ways are not limited in the embodiment of the present invention.
In addition, the characters described in the embodiment of the present invention are characters in an Android system environment, the characters are only exemplary, and in other operating system environments, the form of the character string matches with the operating system that is running. The embodiment of the present invention does not limit the form of other characters in the other operating system environment.
According to the method provided by the embodiment of the invention, the equipment to be detected analyzes the configuration information stored on the mobile storage medium connected with the equipment to be detected, so that the detection of the equipment to be detected is realized, and related test points and manufacturing jigs on a circuit of the equipment to be detected are avoided, thereby reducing the production cost of the equipment to be detected. In addition, because the configuration is not carried out through the Command in the PC, the starting time is reduced, the testing efficiency is improved, in addition, the development of the PCtool is avoided, the development cost is not needed, the production cost of the equipment to be tested is reduced, and the labor cost is reduced. In addition, because manual configuration of personnel is not needed, the testing time is reduced, the testing efficiency is improved, the labor cost is reduced, and in addition, the phenomena of misoperation and the like possibly caused by personal factors of the personnel in the testing process are avoided, so that the accuracy of the testing result is improved.
The embodiment of the invention provides an automatic production line detection method, which is characterized in that the detection of the equipment to be detected is realized by analyzing the configuration information stored on a mobile storage medium connected with the equipment to be detected by the equipment to be detected, the test time is saved, the test efficiency is improved, and meanwhile, the labor cost and the production cost of the equipment to be detected are saved.
In a third embodiment of the present invention, a method for automatically detecting a production line according to an embodiment of the present invention, where a user may customize a test mode and modify a configuration file, with reference to fig. 3, the method includes:
301. and starting the equipment to be detected and running a starting loading program.
Specifically, the step is the same as step 201, and is not described herein again.
302. And starting a loading program to load the mobile storage medium and detecting the preset file stored on the mobile storage medium connected with the equipment to be detected.
Specifically, the step is the same as step 202, and is not described herein again.
303. And analyzing the preset file, acquiring configuration information contained in the preset file, and recording the configuration information.
Specifically, the step is the same as step 203, and is not described herein again.
304. And transmitting the configuration information to a system starting program of the equipment to be detected.
Specifically, the step is the same as step 204, and is not described herein again.
305. The system startup program installs the detection program according to the detection program installation configuration information after the system is started
Specifically, the step is the same as step 205, and is not described herein again.
306. And executing at least one of a system upgrade mode, a user-defined mode and a factory detection mode according to an execution command in the detection program. After step 306, either one of step 307 and step 308 is executed.
Specifically, the step is the same as step 206, and is not described herein again.
307. And acquiring a configuration file modification instruction of a user, and generating a modified configuration file according to the configuration file modification instruction. After step 307, step 309 is performed.
Specifically, the configuration file modification instruction may be represented as:
||Mode||Command||Checksum
wherein, Mode represents the format of command, which can be executed, such as execute; or may be configured, e.g. config
And (2) Command: specific command statements
Checksum: checking the value, wherein each group of commands corresponds to a unique value, and if the mode and the command have any change, the checksum needs to be recalculated.
And updating the characters into a configuration file to generate a modified configuration file.
308. And acquiring a user-defined test mode setting instruction of a user, and generating a user-defined test mode according to the user-defined test mode instruction. After step 308, step 309 is performed.
Specifically, the custom test mode setting instruction may be expressed as:
||config||XXXX||O
where XXXX is used to indicate a user defined test pattern.
The above configuration information is merely exemplary, and the embodiment of the present invention does not limit the form of the specific configuration information.
If the command is a conventional adb command, the command is directly expanded into a configuration file, and the equipment end to be detected does not need to be modified; if the command is a special command, a corresponding analysis program needs to be added to the equipment to be detected.
For example, assuming that the user-defined test mode is to set a debug level to facilitate capturing a corresponding log and to assist in analysis, the user-defined test mode setting instruction may be expressed as:
||config||debuglevelset4||O
wherein, the characters are used for indicating the setting of debug level. And the command is not a special command, and the end of the device to be detected does not need to be modified.
309. And detecting whether the modified configuration information and/or the configuration information of the user-defined test mode conform to a predefined format of the equipment to be detected.
Specifically, the detection method in this step is the same as that in step 202, and is not described herein again.
310. And sending the modified configuration information and/or the configuration information of the user-defined test mode to a mobile storage medium, and storing the modified configuration information and/or the configuration information of the user-defined test mode in a preset file by the mobile storage medium.
The embodiment of the invention provides an automatic production line detection method, which is characterized in that the detection of the equipment to be detected is realized by analyzing the configuration information stored on a mobile storage medium connected with the equipment to be detected by the equipment to be detected, the test time is saved, the test efficiency is improved, and meanwhile, the labor cost and the production cost of the equipment to be detected are saved. In addition, by supporting the user to define the test mode and modify the configuration file, the application range is increased, the personalized requirements of the user are met, and the user experience is improved.
Fourth embodiment is a detection apparatus provided in an embodiment of the present invention, and as shown in fig. 4, the detection apparatus includes:
the detection module 41 is configured to detect a preset file stored on a mobile storage medium connected to the device to be detected after the device to be detected operates and starts the loading program;
the analysis module 42 is configured to analyze the preset file to obtain configuration information included in the preset file;
and an executing module 43, configured to execute the detection mode corresponding to the configuration information.
Optionally, the preset file at least includes at least one of system upgrade mode configuration information, user-defined mode configuration information, and factory detection mode configuration information, and detection program installation configuration information.
Optionally, the detection module 41 is specifically configured to:
and detecting whether the format of the preset file conforms to the format predefined by the equipment to be detected.
Optionally, the executing module 43 includes:
the transmission submodule 431 is used for transmitting the configuration information to a system starting program of the equipment to be detected;
the mode execution sub-module 432 is configured to execute the detection mode corresponding to the configuration information according to the configuration file.
Optionally, the test mode includes at least one of a system upgrade mode, a user-defined mode, and a factory detection mode, and the mode execution sub-module 432 is specifically configured to:
after the system is started, the system starting program installs the detection program according to the detection program installation configuration information;
and executing at least one of a system upgrade mode, a user-defined mode and a factory detection mode according to an execution command in the detection program.
The embodiment of the invention provides a test device, which analyzes configuration information stored on a mobile storage medium connected with the device to be detected through the device to be detected, so that the detection of the device to be detected is realized, the test time is saved, the test efficiency is improved, and meanwhile, the labor cost and the production cost of the device to be detected are saved.
Fifth embodiment is a detection apparatus provided by an embodiment of the present invention, and as shown in fig. 5, the detection apparatus includes a memory 51 and a processor 52 connected to the memory, where the memory 51 is configured to store a set of program codes, and the processor 52 calls the program codes stored in the memory 51 to perform the following operations:
after the equipment to be detected operates and starts the loading program, detecting a preset file stored on a mobile storage medium connected with the equipment to be detected;
analyzing the preset file to obtain configuration information contained in the preset file;
and executing a detection mode corresponding to the configuration information.
Optionally, the preset file at least includes at least one of system upgrade mode configuration information, user-defined mode configuration information, and factory detection mode configuration information, and detection program installation configuration information.
Optionally, the processor 52 calls the program code stored in the memory 51 for performing the following operations:
and detecting whether the format of the preset file conforms to the format predefined by the equipment to be detected.
Optionally, the processor 52 calls the program code stored in the memory 51 for performing the following operations:
transmitting the configuration information to a system starting program of the equipment to be detected;
and the system starting program executes a detection mode corresponding to the configuration information according to the configuration file.
Optionally, the test mode comprises at least one of a system upgrade mode, a user defined mode and a factory test mode, and the processor 52 calls the program code stored in the memory 51 to perform the following operations:
after the system is started, the system starting program installs the detection program according to the detection program installation configuration information;
and executing at least one of a system upgrade mode, a user-defined mode and a factory detection mode according to an execution command in the detection program.
The embodiment of the invention provides a test device, which analyzes configuration information stored on a mobile storage medium connected with the device to be detected through the device to be detected, so that the detection of the device to be detected is realized, the test time is saved, the test efficiency is improved, and meanwhile, the labor cost and the production cost of the device to be detected are saved.
Sixth embodiment is an automatic production line detection system provided in an embodiment of the present invention, and as shown in fig. 6, the system includes:
the device to be detected 61 and the mobile storage medium 62 are connected, wherein the connection mode of the device to be detected 61 and the mobile storage medium 62 comprises a direct connection mode through a wired or wireless mode and an indirect connection mode through a third-party device such as a computer;
the removable storage medium 62 includes:
the storage module 621 is configured to store a preset file;
the connection module 622 is used for connecting the device to be detected in any one of two ways, namely, a direct connection way through a wired or wireless way and an indirect connection way through third-party equipment such as a computer;
the device to be tested 61 comprises:
the connection module 611 is configured to connect with the mobile storage medium in any one of two manners, namely, a direct connection manner through a wired or wireless manner and an indirect connection manner through a third-party device such as a computer;
the detection module 612 is configured to detect a preset file stored on a mobile storage medium connected to the device to be detected after the device to be detected runs and starts the loading program;
an analyzing module 613, configured to analyze the preset file and obtain configuration information included in the preset file;
and an executing module 614, configured to execute the detection mode corresponding to the configuration information.
Optionally, the preset file at least includes at least one of system upgrade mode configuration information, user-defined mode configuration information, and factory detection mode configuration information, and detection program installation configuration information.
Optionally, the detection module 612 is specifically configured to:
and detecting whether the format of the preset file conforms to the format predefined by the equipment to be detected.
Optionally, the executing module 614 includes:
the transmitting submodule 6141 is configured to transmit the configuration information to a system start program of the device to be detected;
the mode execution sub-module 6142 is configured to execute the detection mode corresponding to the configuration information according to the configuration file.
Optionally, the test mode includes at least one of a system upgrade mode, a user-defined mode, and a factory detection mode, and the mode execution sub-module 6142 is specifically configured to:
after the system is started, the system starting program installs the detection program according to the detection program installation configuration information;
and executing at least one of a system upgrade mode, a user-defined mode and a factory detection mode according to an execution command in the detection program.
The embodiment of the invention provides an automatic production line detection system, which analyzes configuration information stored in a mobile storage medium connected with equipment to be detected through the equipment to be detected, realizes detection of the equipment to be detected, saves the detection time, improves the detection efficiency, and saves the labor cost and the production cost of the equipment to be detected.
Seventh embodiment is a removable storage medium according to an embodiment of the present invention, and as shown in fig. 7, the removable storage medium includes:
the storage module 71 is used for storing preset files;
the connection module 72 is used for connecting with the device to be detected in any one of two ways, namely, directly connecting in a wired or wireless way and indirectly connecting through a third-party device such as a computer.
The embodiment of the invention provides a mobile storage medium, which analyzes configuration information stored in the mobile storage medium through a device to be detected connected with the mobile storage medium, so that the detection of the device to be detected is realized, the test time is saved, the test efficiency is improved, and meanwhile, the labor cost and the production cost of the device to be detected are saved.
Eighth embodiment is an apparatus to be detected provided in the embodiment of the present invention, and as shown in fig. 8, the apparatus to be detected includes:
the connection module 81 is used for connecting with the mobile storage medium in any one of two ways, namely, directly connecting in a wired or wireless way and indirectly connecting through third-party equipment such as a computer;
the detection module 82 is used for detecting a preset file stored on a mobile storage medium connected with the equipment to be detected after the equipment to be detected operates and starts the loading program;
the parsing module 83 is configured to parse the preset file to obtain configuration information included in the preset file;
and an executing module 84, configured to execute the detection mode corresponding to the configuration information.
Optionally, the preset file at least includes at least one of system upgrade mode configuration information, user-defined mode configuration information, and factory detection mode configuration information, and detection program installation configuration information.
Optionally, the detection module 82 is specifically configured to:
and detecting whether the format of the preset file conforms to the format predefined by the equipment to be detected.
Optionally, the executing module 83 includes:
the transmission submodule 831 is configured to transmit the configuration information to a system start program of the device to be detected;
the mode execution sub-module 832 is configured to execute the detection mode corresponding to the configuration information according to the configuration file.
Optionally, the test mode includes at least one of a system upgrade mode, a user-defined mode, and a factory detection mode, and the mode execution submodule 832 is specifically configured to:
after the system is started, the system starting program installs the detection program according to the detection program installation configuration information;
and executing at least one of a system upgrade mode, a user-defined mode and a factory detection mode according to an execution command in the detection program.
The embodiment of the invention provides equipment to be detected, which realizes the detection of the equipment to be detected by analyzing the configuration information stored on a mobile storage medium connected with the equipment to be detected, saves the test time, improves the test efficiency, and saves the labor cost and the production cost of the equipment to be detected.
All the above-mentioned optional technical solutions can be combined arbitrarily to form the optional embodiments of the present invention, and are not described herein again.
It should be noted that: in the above embodiment, when the test device executes the automatic production line detection method, only the division of the functional modules is used as an example, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the test device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the embodiments of the automatic production line detection method, the automatic production line detection system and the monitoring device provided by the embodiments belong to the same concept, and specific implementation processes thereof are described in the embodiments of the methods and are not described herein again.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
Claims (10)
1. An automatic production line detection method is characterized by comprising the following steps:
after a device to be detected runs a start loading program, detecting a preset file stored on a mobile storage medium connected with the device to be detected;
analyzing the preset file to obtain configuration information contained in the preset file; and
and executing a detection mode corresponding to the configuration information.
2. The method of claim 1, wherein the preset file comprises at least one of system upgrade mode configuration information, user-defined mode configuration information, and factory test mode configuration information, and test program installation configuration information.
3. The method according to claim 1 or 2, wherein the detecting the preset file stored on the mobile storage medium connected to the device to be detected comprises:
and detecting whether the format of the preset file conforms to the format predefined by the equipment to be detected.
4. The method of claim 2, wherein the performing the detection mode corresponding to the configuration information comprises:
transmitting the configuration information to a system starting program of the equipment to be detected; and
and the system starting program executes a detection mode corresponding to the configuration information according to the configuration file.
5. The method of claim 4, wherein the test mode comprises at least one of a system upgrade mode, a user defined mode, and a factory test mode, and wherein the system boot-up procedure executing the test mode corresponding to the configuration information according to the configuration file comprises:
after the system is started, the system starting program installs the detection program according to the detection program installation configuration information; and
and executing at least one of the system upgrading mode, the user-defined mode and the factory detection mode according to an execution command in the detection program.
6. A detection apparatus, comprising:
the detection module is used for detecting a preset file stored on a mobile storage medium connected with the equipment to be detected after the equipment to be detected operates and starts a loading program;
the analysis module is used for analyzing the preset file and acquiring the configuration information contained in the preset file; and
and the execution module is used for executing the detection mode corresponding to the configuration information.
7. The inspection apparatus of claim 6, wherein the preset file contains at least one of system upgrade mode configuration information, user-defined mode configuration information, and factory inspection mode configuration information, and inspection program installation configuration information.
8. The detection device according to claim 6 or 7, wherein the detection module is specifically configured to:
and detecting whether the format of the preset file conforms to the format predefined by the equipment to be detected.
9. The detection apparatus according to claim 7, wherein the execution module comprises:
the transmission submodule is used for transmitting the configuration information to a system starting program of the equipment to be detected; and
and the mode execution submodule is used for executing the detection mode corresponding to the configuration information according to the configuration file.
10. The test device of claim 9, wherein the test mode includes at least one of a system upgrade mode, a user defined mode, and a factory test mode, and wherein the mode execution submodule is specifically configured to:
after the system is started, the system starting program installs the detection program according to the detection program installation configuration information;
and executing at least one of the system upgrading mode, the user-defined mode and the factory detection mode according to an execution command in the detection program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610064762.7A CN105738723A (en) | 2016-01-29 | 2016-01-29 | Production line automatic detection method and detection device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610064762.7A CN105738723A (en) | 2016-01-29 | 2016-01-29 | Production line automatic detection method and detection device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105738723A true CN105738723A (en) | 2016-07-06 |
Family
ID=56246976
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610064762.7A Pending CN105738723A (en) | 2016-01-29 | 2016-01-29 | Production line automatic detection method and detection device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105738723A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107577595A (en) * | 2017-07-14 | 2018-01-12 | 捷开通讯(深圳)有限公司 | Communication apparatus software detecting method, electronic equipment and the device with store function |
CN108650507A (en) * | 2018-04-26 | 2018-10-12 | 珠海全志科技股份有限公司 | Test method, device, terminal device and the storage medium of terminal device |
CN108874696A (en) * | 2017-12-29 | 2018-11-23 | 哈尔滨安天科技股份有限公司 | Automatic test approach, device and the electronic equipment of more legal power safety storage equipment |
CN111242445A (en) * | 2020-01-06 | 2020-06-05 | 广州熔科机电技术有限公司 | Method, device and readable storage medium for testing products based on configuration production line |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101247293A (en) * | 2008-03-11 | 2008-08-20 | 福建星网锐捷网络有限公司 | Automatic test approach and system |
CN101894059A (en) * | 2010-06-11 | 2010-11-24 | 中兴通讯股份有限公司 | Method and system for detecting operating condition |
US20110296382A1 (en) * | 2010-05-27 | 2011-12-01 | Michael Pasternak | Mechanism for Dynamic Software Testing Using Test Entity |
CN102789396A (en) * | 2011-05-18 | 2012-11-21 | 鸿富锦精密工业(深圳)有限公司 | Switching system and method for BIOS (Basic Input/Output System) configuration mode |
US20130238940A1 (en) * | 2012-03-07 | 2013-09-12 | International Business Machines Corporation | Method for ranking analysis tools |
CN104122494A (en) * | 2013-04-27 | 2014-10-29 | 英业达科技有限公司 | A test system and method capable of automatically generating test scripts |
CN104216823A (en) * | 2013-06-03 | 2014-12-17 | 联想(北京)有限公司 | Automatic testing method and master control device |
CN104765664A (en) * | 2014-01-08 | 2015-07-08 | 鸿富锦精密工业(深圳)有限公司 | PCI (Peripheral Component Interface) equipment detection system and method |
CN104850495A (en) * | 2015-05-14 | 2015-08-19 | 曙光信息产业(北京)有限公司 | Automatic detection method and device |
CN105095074A (en) * | 2015-07-10 | 2015-11-25 | 北京金山安全软件有限公司 | Upgrade test method and device for configuration file |
-
2016
- 2016-01-29 CN CN201610064762.7A patent/CN105738723A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101247293A (en) * | 2008-03-11 | 2008-08-20 | 福建星网锐捷网络有限公司 | Automatic test approach and system |
US20110296382A1 (en) * | 2010-05-27 | 2011-12-01 | Michael Pasternak | Mechanism for Dynamic Software Testing Using Test Entity |
CN101894059A (en) * | 2010-06-11 | 2010-11-24 | 中兴通讯股份有限公司 | Method and system for detecting operating condition |
CN102789396A (en) * | 2011-05-18 | 2012-11-21 | 鸿富锦精密工业(深圳)有限公司 | Switching system and method for BIOS (Basic Input/Output System) configuration mode |
US20130238940A1 (en) * | 2012-03-07 | 2013-09-12 | International Business Machines Corporation | Method for ranking analysis tools |
CN104122494A (en) * | 2013-04-27 | 2014-10-29 | 英业达科技有限公司 | A test system and method capable of automatically generating test scripts |
CN104216823A (en) * | 2013-06-03 | 2014-12-17 | 联想(北京)有限公司 | Automatic testing method and master control device |
CN104765664A (en) * | 2014-01-08 | 2015-07-08 | 鸿富锦精密工业(深圳)有限公司 | PCI (Peripheral Component Interface) equipment detection system and method |
CN104850495A (en) * | 2015-05-14 | 2015-08-19 | 曙光信息产业(北京)有限公司 | Automatic detection method and device |
CN105095074A (en) * | 2015-07-10 | 2015-11-25 | 北京金山安全软件有限公司 | Upgrade test method and device for configuration file |
Non-Patent Citations (3)
Title |
---|
卡祖利诺 等著: "《C# Web应用程序入门经典 第1版》", 31 August 2003, 清华大学出版社 * |
孙天泽 主编: "《嵌入式Linux开发技术 第1版》", 30 April 2011, 北京航空航天大学出版社 * |
李俊娥 主编: "《计算机网络基础实验教程 第1版》", 30 April 2007 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107577595A (en) * | 2017-07-14 | 2018-01-12 | 捷开通讯(深圳)有限公司 | Communication apparatus software detecting method, electronic equipment and the device with store function |
CN108874696A (en) * | 2017-12-29 | 2018-11-23 | 哈尔滨安天科技股份有限公司 | Automatic test approach, device and the electronic equipment of more legal power safety storage equipment |
CN108874696B (en) * | 2017-12-29 | 2022-09-30 | 安天科技集团股份有限公司 | Automatic testing method and device for multi-authority safety storage equipment and electronic equipment |
CN108650507A (en) * | 2018-04-26 | 2018-10-12 | 珠海全志科技股份有限公司 | Test method, device, terminal device and the storage medium of terminal device |
CN111242445A (en) * | 2020-01-06 | 2020-06-05 | 广州熔科机电技术有限公司 | Method, device and readable storage medium for testing products based on configuration production line |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107171833B (en) | Method for realizing batch upgrading of BMC and BIOS of server through BMC | |
CN102841841B (en) | A kind of test asserts processing method and system | |
CN105738723A (en) | Production line automatic detection method and detection device | |
CN110045991B (en) | RAID configuration method and device of server, computer equipment and storage medium | |
CN110633209A (en) | Automatic testing method and system for vehicle-mounted android multimedia navigator | |
CN103973858B (en) | The Auto-Test System of mobile terminal | |
US20150040112A1 (en) | Enabling Interoperability Between Software Applications By Utilizing Partial Binaries | |
CN110309039B (en) | Method, device, equipment and storage medium for automatically acquiring application program log | |
CN112241311A (en) | Firmware simulation method and device, electronic equipment and readable storage medium | |
US9760470B2 (en) | Device, method, and program analysis of new source code to be added to execution program to check for bug | |
CN108650507B (en) | Terminal device testing method and device, terminal device and storage medium | |
CN112115055A (en) | Multi-machine automatic testing method and device and computer equipment | |
CN106776310B (en) | Debugging method and debugging device | |
CN116303099B (en) | Cross-platform rapid deployment method, device, medium and equipment for automatic test environment | |
CN117591368A (en) | Automatic monitoring plug-in for server performance and working method thereof | |
CN107612786B (en) | Method and system for testing router | |
CN116049011A (en) | Deployment method and device of test environment, electronic equipment and storage medium | |
CN114385493A (en) | Performance test method and device, electronic equipment and storage medium | |
CN115014828A (en) | Automated device testing method and related device | |
CN111240752B (en) | Operating system self-adaption method and system | |
CN115168175A (en) | Program error solving method, device, electronic equipment and storage medium | |
CN112015427A (en) | Method and device for building multiple compiling environments and electronic equipment | |
CN106775670B (en) | Manufacturing and using method of tool kit applied to mobile terminal and tool kit | |
CN116303067B (en) | Testing method, device, equipment and medium based on cloud testing platform | |
CN114860336B (en) | System auditing mode implementation method based on PXE and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160706 |