CN113010439A - Equipment factory detection method and device, electronic equipment and storage medium - Google Patents

Equipment factory detection method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113010439A
CN113010439A CN202110467588.1A CN202110467588A CN113010439A CN 113010439 A CN113010439 A CN 113010439A CN 202110467588 A CN202110467588 A CN 202110467588A CN 113010439 A CN113010439 A CN 113010439A
Authority
CN
China
Prior art keywords
factory
test program
working mode
equipment
detection
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.)
Granted
Application number
CN202110467588.1A
Other languages
Chinese (zh)
Other versions
CN113010439B (en
Inventor
蓝会宝
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kedong Guangzhou Software Technology Co Ltd
Original Assignee
Kedong Guangzhou Software Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kedong Guangzhou Software Technology Co Ltd filed Critical Kedong Guangzhou Software Technology Co Ltd
Priority to CN202110467588.1A priority Critical patent/CN113010439B/en
Publication of CN113010439A publication Critical patent/CN113010439A/en
Application granted granted Critical
Publication of CN113010439B publication Critical patent/CN113010439B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Factory Administration (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a factory equipment detection method, a factory equipment detection device, electronic equipment and a storage medium, wherein the factory equipment detection method comprises the following steps: detecting the current working mode of the machine; downloading a target delivery test program from a test program storage server under the condition that the current working mode is determined to be a device delivery detection mode; and carrying out equipment delivery test according to the target delivery test program. The technical scheme of the embodiment of the invention can improve the efficiency of factory detection of the equipment.

Description

Equipment factory detection method and device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of equipment testing, in particular to a factory equipment detection method and device, electronic equipment and a storage medium.
Background
The factory test is an important process in equipment development, and the production efficiency of the equipment can be improved through an excellent quality monitoring means, a factory test process and a factory test method.
Currently, factory test programs for devices are usually integrated into the official release software of the devices. That is, the factory test program of the existing device is the same entity as the official release software, and the factory test program is directly implanted into the device. Where formal release software is typically used to provide all of the available application functionality of the device. For example, when the device is a digital communication device, the formal release software may provide a dial-up function of the digital communication device, and the like.
In the process of implementing the invention, the inventor finds that the prior art has the following defects: the equipment factory detection link is generally arranged at the later stage of a project, and the development/verification time of a factory test program is compressed at the moment, so that the research and development pressure of the factory test program is increased. If the factory test problem or hardware problem is exposed when the factory test is carried out in the later project stage of the equipment, the cost and the cost for solving the problem can be increased. Meanwhile, part of application functions in the formal release software are based on hardware and bottom layer drivers of the equipment, if only the application layer software is changed, the hardware and the bottom layer drivers of the equipment are not changed, but the repeated verification of a factory test program needs to be carried out on a newly released formal release software version again, and high time cost is caused. Correspondingly, if only the factory detection program in the formal release software version has a problem, the flash of the device needs to be programmed again to upgrade the version of the factory detection program, and higher time cost is also needed.
Disclosure of Invention
The embodiment of the invention provides a factory equipment detection method and device, electronic equipment and a storage medium, and aims to improve the factory equipment detection efficiency.
In a first aspect, an embodiment of the present invention provides a device factory detection method, which is applied to a device under test, and includes:
detecting the current working mode of the machine;
downloading a target delivery test program from a test program storage server under the condition that the current working mode is determined to be a device delivery detection mode;
and carrying out equipment delivery test according to the target delivery test program.
In a second aspect, an embodiment of the present invention further provides an apparatus for factory testing of a device, configured on a device under test, including:
the current working mode detection module is used for detecting the current working mode of the local computer;
the target delivery test program downloading module is used for downloading the target delivery test program from the test program storage server under the condition that the current working mode is determined to be the equipment delivery detection mode;
and the equipment delivery test module is used for carrying out equipment delivery test according to the target delivery test program.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the method for factory inspection of a device provided in any embodiment of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a computer storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for factory inspection of a device according to any embodiment of the present invention.
The embodiment of the invention autonomously detects the current working mode of the local machine through the tested equipment, and downloads the target delivery test program from the test program storage server under the condition that the current working mode is determined to be the equipment delivery detection mode, so as to carry out equipment delivery test according to the real-time downloaded target delivery test program. According to the equipment delivery detection method, the equipment delivery test program does not need to be implanted into the tested equipment, and the problem of low delivery detection efficiency caused by implanting the delivery test program into the tested equipment in the existing equipment delivery detection method can be effectively solved, so that the efficiency of delivery detection of the equipment is improved.
Drawings
Fig. 1 is a flowchart of a factory testing method for devices according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a network architecture for factory inspection of a device under test according to an embodiment of the present invention;
fig. 3 is a flowchart of a factory detection method for equipment according to a second embodiment of the present invention;
fig. 4 is a schematic diagram of a factory detection apparatus for equipment according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention.
It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
The terms "first" and "second," and the like in the description and claims of embodiments of the invention and in the drawings, are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "comprising" and "having," 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 set forth for a listed step or element but may include steps or elements not listed.
Example one
Fig. 1 is a flowchart of an equipment factory inspection method according to an embodiment of the present invention, where the embodiment is applicable to a case where a device under test downloads a target factory test program from a server for factory inspection, and the method may be executed by an equipment factory inspection apparatus, where the apparatus may be implemented in a software and/or hardware manner, and may be generally integrated in an electronic device, and the electronic device may be a device under test, and is used in cooperation with a server for storing the target factory test program. Accordingly, as shown in fig. 1, the method comprises the following operations:
and S110, detecting the current working mode of the machine.
In the embodiment of the present invention, the device to be tested may be a device that needs to be subjected to factory inspection, any requirement that has factory inspection may be used as the device to be tested, and optionally, the device to be tested may include a digital communication device, that is, a data communication device, such as a switch device, and the like.
Wherein, the current working mode is also the current working mode of the tested device.
Specifically, the device under test needs to be in a power-on state before the factory detection of the device. Correspondingly, after the tested device is started, the current working mode of the machine can be automatically detected. Optionally, the device under test may detect the current operating mode of the device in a variety of ways. For example, the device under test may detect the states of some modules or units of the device to determine the current operating mode, or the device under test may receive a factory detection control instruction sent by the factory detection control device remotely to determine the current operating mode. The factory detection control device may be a device for controlling a factory detection process of the device to be detected, and may be configured to send a factory detection control instruction to the device to be detected, so that the device to be detected performs factory detection according to the factory detection control instruction. Optionally, the factory detection control instruction may include, for example, a start test instruction, a test instruction, an inquiry instruction, a parameter setting instruction, a stop instruction, and the like.
And S120, downloading the target delivery test program from the test program storage server under the condition that the current working mode is determined to be the equipment delivery detection mode.
The factory detection mode of the device may be a mode representing that the tested device needs to perform a factory detection process currently. The test program storage server may be a server storing a factory test program. The target factory test program may be a factory test program for performing factory test on the device under test.
In the embodiment of the invention, the factory test program of the tested equipment is not integrated in the formal release software of the tested equipment any more, but the factory test program and the formal release software are stripped, and the factory test program of the tested equipment is uniformly stored in the test program storage server. Correspondingly, when the tested device determines that the current working mode is the factory detection mode of the device, the factory test is required, and the matched target factory test program can be downloaded from the test program storage server in a remote manner, so that the factory test of the device can be performed according to the target factory test program.
It is understood that the device under test may be of multiple types, and that the same type of device under test may also have different device models. Therefore, the factory test programs corresponding to different devices under test may be different. Correspondingly, the test program storage server can simultaneously store various factory test programs corresponding to different tested devices. Therefore, the device to be tested needs to download a target factory test program matched with the device from the test program storage server for device factory test. In addition, in order to ensure that the device under test can download the target factory test program from the test program storage server, the device under test and the test program storage server need to maintain communication connection. Optionally, the communication connection between the device to be tested and the test program storage server may be a wired connection or a wireless connection, and only the communication between the device to be tested and the test program storage server may be established, and the embodiment of the present invention does not limit the specific manner of the communication connection.
Fig. 2 is a schematic diagram of a network architecture for performing factory inspection on a device under test according to an embodiment of the present invention, and in a specific example, as shown in fig. 2, a factory inspection control device may be a PC (personal computer) running a factory test platform, and is used as a host computer to control each device under test to perform factory inspection. Among them, the factory test platform can be developed based on the MFC (Microsoft Foundation Classes) program. The test program storage server may be an FTP (File Transfer Protocol)/TFTP (simple File Transfer Protocol) server, and the PC and the FTP/TFTP server are in communication connection with each of the devices to be tested through the tooling test switch to simultaneously control the devices to be tested to perform factory inspection. The tool test switch is only used as an expanded network port, and is convenient for testing a plurality of tested devices simultaneously. Correspondingly, each tested device can download the matched target delivery test program from the FTP/TFTP server respectively, so as to carry out real-time delivery detection on the device according to the downloaded target delivery test program. Taking the tested device as the tested switch as an example, the tested device may receive and process the factory detection control instruction of the PC-side test platform through a socket, including but not limited to initializing software and hardware of the tested device, a test instruction, an inquiry instruction, a stop instruction, and the like. It can be understood that the factory equipment detection processes of different tested devices can be performed independently of each other without mutual interference.
And S130, carrying out equipment delivery test according to the target delivery test program.
And after the tested equipment acquires the target delivery test program, carrying out delivery test on the equipment according to the acquired target delivery test program. Optionally, the device to be tested may automatically perform the factory test of the device by using the target factory test program, or may perform the factory test of the device according to the target factory test program and a factory test control instruction sent by the factory test control device, which is not limited in the embodiment of the present invention.
In the embodiment of the present invention, optionally, the target factory test program and the formal release software of the device under test may be developed and released in parallel.
According to the technical scheme, the factory test program of the tested equipment is stripped from the formal release software, so that the factory test program of the equipment can be prevented from being implanted into the tested equipment. Accordingly, the development/verification time of the factory test program is not limited by the development and development of the official release software. That is, after the bottom layer software such as a BSP (board support package) and a kernel of the device under test enters a stable period, the program development of the factory test program and the formal release software can be respectively created, so as to implement the parallel development of the factory test program and the formal release software, thereby preventing the development process of the factory test program from being blocked in the later stage of the project development of the device under test due to the serial development of the factory test program and the formal release software, further improving the development efficiency of the factory test program, and reducing the development cost of the factory test program. Meanwhile, the factory test program is separated from the formal release software, and when the formal release software has problems and needs to be modified and upgraded, the factory test program does not need to be verified repeatedly, so that the time cost of the factory test program is further reduced. Correspondingly, if the factory test program has a problem, the factory test program is not implanted into the tested equipment but stored in the test program storage server, so that the factory test program stored in the test program storage server only needs to be upgraded, the flash is programmed into the tested equipment again, and the version of the factory test program is upgraded, so that the time cost of the factory test program is further reduced. Therefore, the factory test program of the tested equipment is separated from the formal release software, and the target factory test program is directly downloaded from the test program storage server for testing when the tested equipment needs to be subjected to factory test, so that the factory detection efficiency of the tested equipment can be greatly improved.
The embodiment of the invention autonomously detects the current working mode of the local machine through the tested equipment, and downloads the target delivery test program from the test program storage server under the condition that the current working mode is determined to be the equipment delivery detection mode, so as to carry out equipment delivery test according to the real-time downloaded target delivery test program. According to the equipment delivery detection method, the equipment delivery test program does not need to be implanted into the tested equipment, and the problem of low delivery detection efficiency caused by implanting the delivery test program into the tested equipment in the existing equipment delivery detection method can be effectively solved, so that the efficiency of delivery detection of the equipment is improved.
Example two
Fig. 3 is a flowchart of a factory testing method for a device according to a second embodiment of the present invention, which is embodied on the basis of the second embodiment, and in this embodiment, various specific optional implementation manners of detecting a current operating mode of a local machine, downloading a target factory test program from a test program storage server, and performing a factory test on the device according to the target factory test program are provided. Accordingly, as shown in fig. 3, the method of the present embodiment may include:
s210, detecting a working mode configuration unit of the machine; wherein, the working mode configuration unit comprises an interface, a port or a network port.
S220, determining the current working mode according to the current configuration state of the working mode configuration unit.
The working mode configuration unit can be used for configuring the working mode of the device to be tested. Optionally, the working mode configuration unit may be a unit or a module in the device under test, such as an interface (e.g., a serial port or a USB port, etc.), a port or a network port of the device under test, as long as the working mode of the device under test can be configured, and the embodiment of the present invention does not limit the specific type of the working mode configuration unit. The current configuration state may be a current configuration state of the working mode configuration unit, such as a connection state of an interface or a network port, an occupation state of a port, and the like.
Specifically, the device to be tested can detect the working mode configuration unit of the device to determine the current configuration state of the working mode configuration unit, so that the current working mode of the device to be tested is determined according to the current configuration state of the working mode configuration unit.
In an optional embodiment of the present invention, the determining the current operating mode according to the current configuration state of the operating mode configuration unit may include: determining that the current working mode is the factory detection mode when the current configuration state of the working mode configuration unit is determined to be the factory detection mode configuration state; and under the condition that the current configuration state of the working mode configuration unit is determined to be a non-factory detection mode configuration state, determining that the current working mode is a normal working mode.
The factory detection mode configuration state may be a configuration state used for representing that the current working mode of the device to be tested is the factory detection mode of the device, and may be configured in advance according to actual requirements.
Specifically, if the current configuration state of the working mode configuration unit is determined to be the factory detection mode configuration state by the device to be tested, which indicates that the device to be tested needs factory detection of the device, the current working mode may be determined to be the factory detection mode of the device. If the current configuration state of the working mode configuration unit is determined to be the non-factory detection mode configuration state by the tested device, indicating that the tested device does not need factory detection of the device, the current working mode can be determined to be the normal working mode. In the equipment delivery detection mode, equipment delivery detection is required to be carried out on the equipment to be detected, and the equipment cannot be started to operate normally; under the normal working mode, the tested device can be started and operated normally.
In an optional embodiment of the present invention, if the operating mode configuration unit is a serial port, determining that the current configuration state of the operating mode configuration unit is a factory detection mode configuration state may include: and under the condition that the first control line and the second control line of the serial port are in a loopback state and the third control line and the fourth control line of the serial port are in a loopback state, determining that the current configuration state of the serial port is the factory detection mode configuration state.
The first control line, the second control line, the third control line and the fourth control line may be four different control lines in a serial port, and the specific types of the first control line, the second control line, the third control line and the fourth control line are not limited in the embodiment of the present invention.
Optionally, if the device under test sets the serial port as the operating mode configuration unit, the device under test may check the configuration state of the serial port. Further, if the device under test determines that the first control line and the second control line of the serial port are in the loopback state and the third control line and the fourth control line of the serial port are in the loopback state, if the first control line and the second control line are communicated with each other, the loopback state of the first control line and the second control line is realized, and if the seventh control line and the eighth control line are communicated with each other, the loopback state of the third control line and the fourth control line is realized, the current configuration state of the serial port can be determined to be the factory detection mode configuration state.
It should be noted that, for a device under test that starts an operating system kernel by using uboot (Universal Boot Loader, an open source code project), the device under test may detect a current working mode of the device at the uboot stage when a program is powered on, so as to avoid that the device under test is normally started in a default normal working mode to skip a device factory detection link.
According to the technical scheme, the factory detection mode configuration state of the tested device is configured by using the function of the serial port line sequence, so that the configuration cost of the factory detection mode configuration state can be reduced, and the operability of the factory detection mode configuration state is improved.
And S230, judging whether the current working mode is the factory detection mode of the equipment, if so, executing S240, and otherwise, executing S270.
And S240, automatically downloading the environment variables according to the kernel boot program configuration of the computer.
And S250, downloading the target delivery test program from the test program storage server according to the automatic downloading environment variable.
The automatic downloading environment variable can be used for the tested device to automatically download the target delivery test program from the test program storage server.
In order to realize automatic downloading of a target factory test program of the tested equipment, partial environment variables need to be set when the tested equipment enters a factory test mode of the equipment. Optionally, the device under test may configure the automatic download environment variable according to the kernel start program of the local device, so as to support the function of the device under test to automatically download the target factory test program.
Optionally, the automatic downloading environment variable may specify the IP addresses of the test program storage server and the device under test, specify a downloading path according to the IP addresses of the test program storage server and the device under test, and download the target factory test program according to the downloading path. For example, if the test program storage server is an FTP/TFTP server, the device under test may download the target factory test program from TFTP of the test program storage server according to the automatic download environment variable. Optionally, the device under test may download the target factory test program to the memory.
For example, if the device to be tested uses uboot to start the kernel of the operating system, the environment variable server may be automatically downloaded according to the uboot setting, so as to set the IP address of the test program storage server. Optionally, the IP address of the device under test may be set in a MAC (Media Access Control) address binding manner, so as to identify uniqueness of the IP address, and avoid failure of downloading the target factory test program due to collision of IP addresses of multiple devices under test.
And S260, carrying out equipment delivery test according to the target delivery test program.
In an optional embodiment of the present invention, the performing a factory test on a device according to the target factory test program may include: determining target delivery detection resources of the target delivery test program; receiving a factory detection instruction sent by factory detection control equipment; starting the target delivery test program according to the delivery detection instruction; or, automatically starting the environment variable according to the configuration of the kernel start program of the local computer; automatically starting the target delivery test program through an automatic starting environment variable; and automatically carrying out equipment delivery test according to the started target delivery test program.
The target factory detection resource may be a system resource used for executing a target factory test program in the device under test, including but not limited to a variable or a thread of an algorithm required for executing the target factory test program, and the specific resource type of the target factory detection resource is not limited in the embodiment of the present invention. The factory detection instruction may be an instruction sent by the factory test control device to the device to be tested, used for instructing the device to be tested to start factory detection, and may be a test start instruction. The automatic start environment variable may be used to automatically start the target factory test program after the device under test is downloaded to the target factory test program.
After the tested device obtains the target delivery test program, the device delivery test can be performed in different modes. Optionally, if the device to be tested is controlled by the factory detection control device to perform a factory detection process, the factory detection control device may interact with the device to be tested through the socket. The factory detection control equipment can also realize a graphical user interface based on MFC or visual c + + and other technical means, so as to receive a user operation instruction through the graphical user interface, and send a factory detection control instruction to the tested equipment according to the user operation instruction to control the tested equipment to carry out factory detection on the equipment. Optionally, when the tested device receives a factory detection instruction sent by the factory detection control device, the target factory test program may be started according to the factory detection instruction, so as to automatically perform the factory test of the device according to the started target factory test program. Or the tested equipment can also automatically start an environment variable according to the kernel start program configuration of the tested equipment, so that the target delivery test program is automatically started through the automatically started environment variable, and delivery test of the equipment is automatically carried out according to the started target delivery test program.
For example, if the device to be tested uses uboot to start the kernel of the operating system, the environment variable autostart may be automatically started according to the uboot setting, and the autostart may automatically start the target factory test program after the target factory test program is downloaded.
And S270, determining that the current working mode is a normal working mode, and normally starting the tested equipment.
Correspondingly, if the current working mode of the tested device is the normal working mode, the tested device can be started from the flash normally, and the normal operation and use of the tested device are not influenced.
In a specific application scenario, the tested device is exemplified by using Linux as an operating system. After the tested device is in communication connection with the test program storage server, when the program is powered on, the current working mode of the tested device is detected before the main _ loop function through uboot, and the problem that the target delivery test program cannot be initialized is avoided. Correspondingly, if the tested device detects that the first control line and the second control line of the serial port are communicated and the seventh control line and the eighth control line are communicated, the current working mode can be determined to be the factory detection mode of the device. At this time, the tested device can modify the uboot environment variable in the uboot code, and download the target factory test program from the test program storage server to the memory and start the target factory test program through tftp, wherein the operation steps are as follows:
(1) setnv ("autostart", "yes"); setting a temporary environment variable, downloading a test program storage server through a tftp command, and then automatically starting;
(2) setnv ("serverp", 192.168.1.100); setting an IP address of a test program storage server for storing the target delivery test program, and also setting an IP address of a local machine (specific setting instructions are omitted here) to determine a download path of the target delivery test program;
(3) setnv ("ipaddr", 192. xxx); setting the IP address of the tested device, wherein xxx is the three bits behind the MAC address of the tested device; the tested equipment, a test program storage server for storing a target delivery test program and delivery detection control equipment are in the same network segment;
(4)sprintf(buf,"tftp0x40600000xxxxxxx");
rc ═ run _ command (buf, 0); executing the tftp command, downloading and executing the mirror image file of the target factory test program, and downloading to the specified memory address: 0x40600000, different system architecture, memory address
(5) [ ] Initial RAM filesystem and RAM disk (initramfs/initrd) support; the image folder (/ usr/image) can be newly built under the linux kernel/usr/directory, the root file system is placed under the/usr/image, the linux link of the busybox in the original root file system is renamed to init, and initramfs (initramfile system) is loaded normally. The command can configure initramfs through a kernel, generate an initramfs mirror image, enable initramfs in a General setup, and compile a target factory test program into the initramfs mirror image. The path of the memory file system is as follows: (./usr/image) Initramfs source file(s).
(6) [ ] Kernel support for ELF bindings; enabling elf file support in Userspace binding formats, the format of kernel and initramfs packages may be set.
(7) make uImage; and/compiling the command, compiling the kernel, generating a file with the kernel and initramfs packaged, and automatically loading the memory file system after the kernel is started.
According to the technical scheme, the factory test programs of the tested equipment are uniformly stored in the test program storage server, and the target factory test programs are downloaded from the test program storage server under the condition that the tested equipment passes through the current configuration state of the detection working mode configuration unit and the current working mode is determined to be the factory test mode of the equipment, so that the factory test of the equipment is carried out according to the target factory test programs, the factory test programs are separated from formal release software, the factory test programs of the equipment are prevented from being implanted into the tested equipment, the problem of low factory test efficiency caused by the fact that the factory test programs are implanted into the tested equipment in the existing factory test method of the equipment can be effectively solved, and the factory test efficiency of the equipment is improved.
It should be noted that any permutation and combination between the technical features in the above embodiments also belong to the scope of the present invention.
EXAMPLE III
Fig. 4 is a schematic diagram of a factory equipment detection apparatus provided in a third embodiment of the present invention, and as shown in fig. 4, the apparatus includes: a current working mode detection module 310, a target factory test program downloading module 320, and a device factory test module 330, wherein:
a current working mode detection module 310, configured to detect a current working mode of the local computer;
a target delivery test program downloading module 320, configured to download a target delivery test program from the test program storage server when it is determined that the current operating mode is the device delivery detection mode;
and the equipment factory test module 330 is configured to perform equipment factory test according to the target factory test program.
The embodiment of the invention autonomously detects the current working mode of the local machine through the tested equipment, and downloads the target delivery test program from the test program storage server under the condition that the current working mode is determined to be the equipment delivery detection mode, so as to carry out equipment delivery test according to the real-time downloaded target delivery test program. According to the equipment delivery detection method, the equipment delivery test program does not need to be implanted into the tested equipment, and the problem of low delivery detection efficiency caused by implanting the delivery test program into the tested equipment in the existing equipment delivery detection method can be effectively solved, so that the efficiency of delivery detection of the equipment is improved.
Optionally, the current working mode detecting module 310 is specifically configured to: detecting a working mode configuration unit of the machine; the working mode configuration unit comprises an interface, a port or a network port; and determining the current working mode according to the current configuration state of the working mode configuration unit.
Optionally, the target factory test program downloading module 320 is specifically configured to: determining that the current working mode is the factory detection mode when the current configuration state of the working mode configuration unit is determined to be the factory detection mode configuration state; and under the condition that the current configuration state of the working mode configuration unit is determined to be a non-factory detection mode configuration state, determining that the current working mode is a normal working mode.
Optionally, if the operating mode configuration unit is a serial port, the target factory test program downloading module 320 is specifically configured to: and under the condition that the first control line and the second control line of the serial port are in a loopback state and the third control line and the fourth control line of the serial port are in a loopback state, determining that the current configuration state of the serial port is the factory detection mode configuration state.
Optionally, the target factory test program downloading module 320 is specifically configured to: configuring an automatic downloading environment variable according to a kernel starting program of the computer; and downloading the target delivery test program from the test program storage server according to the automatic downloading environment variable.
Optionally, the factory equipment testing module 330 is specifically configured to: determining target delivery detection resources of the target delivery test program; receiving a factory detection instruction sent by factory detection control equipment; starting the target delivery test program according to the delivery detection instruction; or, automatically starting the environment variable according to the configuration of the kernel start program of the local computer; automatically starting the target delivery test program through the automatic starting environment variable; and automatically carrying out equipment delivery test according to the started target delivery test program.
Optionally, the device under test includes a digital communication device.
Optionally, the target factory test program is developed and released in parallel with the formal release software of the device under test.
The device factory detection device can execute the device factory detection method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method. For details of the technology that are not described in detail in this embodiment, reference may be made to a device factory inspection method provided in any embodiment of the present invention.
Since the device factory detection apparatus described above is an apparatus capable of executing the device factory detection method in the embodiment of the present invention, based on the device factory detection method described in the embodiment of the present invention, a person skilled in the art can understand a specific implementation manner and various variations of the device factory detection apparatus in the embodiment, so that how the device factory detection apparatus implements the device factory detection method in the embodiment of the present invention is not described in detail here. As long as a person skilled in the art implements the apparatus used in the method for factory inspection of equipment in the embodiment of the present invention, the apparatus is within the scope of the present application.
Example four
Fig. 5 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention, where the electronic device may be a device under test. As shown in fig. 5, the electronics include a processor 40, a memory 41, an input device 42, and an output device 43; the number of the processors 40 in the electronic device may be one or more, and one processor 40 is taken as an example in fig. 5; the processor 40, the memory 41, the input device 42 and the output device 43 in the electronic apparatus may be connected by a bus or other means, and the connection by the bus is exemplified in fig. 5.
The memory 41 is a computer-readable storage medium, and may be used to store a software program, a computer-executable program, and modules, such as program instructions/modules corresponding to the device factory inspection method in the embodiment of the present invention (for example, the current operating mode inspection module 310, the target factory test program downloading module 320, and the device factory test module 330 in the device factory inspection apparatus). The processor 40 executes various functional applications and data processing of the electronic device by executing software programs, instructions and modules stored in the memory 41, that is, implements the device factory inspection method described above.
The memory 41 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 41 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 41 may further include memory located remotely from processor 40, which may be connected to the electronic device through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 42 is operable to receive input numeric or character information and to generate key signal inputs relating to user settings and function controls of the electronic apparatus. The output device 43 may include a display device such as a display screen.
EXAMPLE five
An embodiment of the present invention further provides a computer storage medium storing a computer program, where the computer program is executed by a computer processor to perform the factory detection method for the device according to any one of the above embodiments of the present invention: detecting the current working mode of the machine; downloading a target delivery test program from a test program storage server under the condition that the current working mode is determined to be a device delivery detection mode; and carrying out equipment delivery test according to the target delivery test program.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM) or flash Memory), an optical fiber, a portable compact disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, Radio Frequency (RF), etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A factory detection method of equipment is characterized in that the method is applied to the equipment to be detected and comprises the following steps:
detecting the current working mode of the machine;
downloading a target delivery test program from a test program storage server under the condition that the current working mode is determined to be a device delivery detection mode;
and carrying out equipment delivery test according to the target delivery test program.
2. The method of claim 1, wherein said detecting a current operating mode of the native machine comprises:
detecting a working mode configuration unit of the machine; the working mode configuration unit comprises an interface, a port or a network port;
and determining the current working mode according to the current configuration state of the working mode configuration unit.
3. The method of claim 2, wherein said determining the current operating mode based on the current configuration state of the operating mode configuration unit comprises:
determining that the current working mode is the factory detection mode when the current configuration state of the working mode configuration unit is determined to be the factory detection mode configuration state;
and under the condition that the current configuration state of the working mode configuration unit is determined to be a non-factory detection mode configuration state, determining that the current working mode is a normal working mode.
4. The method according to claim 3, wherein if the working mode configuration unit is a serial port, determining that the current configuration state of the working mode configuration unit is a factory detection mode configuration state includes:
and under the condition that the first control line and the second control line of the serial port are in a loopback state and the third control line and the fourth control line of the serial port are in a loopback state, determining that the current configuration state of the serial port is the factory detection mode configuration state.
5. The method of claim 1, wherein downloading the target factory test program from the test program storage server comprises:
configuring an automatic downloading environment variable according to a kernel starting program of the computer;
and downloading the target delivery test program from the test program storage server according to the automatic downloading environment variable.
6. The method according to claim 1, wherein said performing factory testing of the device according to the target factory testing program comprises:
determining target delivery detection resources of the target delivery test program;
receiving a factory detection instruction sent by factory detection control equipment;
starting the target delivery test program according to the delivery detection instruction;
alternatively, the first and second electrodes may be,
configuring an automatic starting environment variable according to a kernel starting program of the computer;
automatically starting the target delivery test program through the automatic starting environment variable;
and automatically carrying out equipment delivery test according to the started target delivery test program.
7. The method according to any of claims 1-6, wherein said target factory test program is developed and released in parallel with the formal release software of said device under test.
8. The device factory detection device is configured on a device to be detected, and comprises:
the current working mode detection module is used for detecting the current working mode of the local computer;
the target delivery test program downloading module is used for downloading the target delivery test program from the test program storage server under the condition that the current working mode is determined to be the equipment delivery detection mode;
and the equipment delivery test module is used for carrying out equipment delivery test according to the target delivery test program.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the factory detection method of a device as claimed in any one of claims 1 to 7.
10. A computer storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the factory test method of any one of claims 1 to 7.
CN202110467588.1A 2021-04-28 2021-04-28 Equipment factory detection method and device, electronic equipment and storage medium Active CN113010439B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110467588.1A CN113010439B (en) 2021-04-28 2021-04-28 Equipment factory detection method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110467588.1A CN113010439B (en) 2021-04-28 2021-04-28 Equipment factory detection method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113010439A true CN113010439A (en) 2021-06-22
CN113010439B CN113010439B (en) 2022-02-15

Family

ID=76381031

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110467588.1A Active CN113010439B (en) 2021-04-28 2021-04-28 Equipment factory detection method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113010439B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090318134A1 (en) * 2008-06-18 2009-12-24 Qualcomm Incorporated System and method of reducing factory program time for wireless devices
CN103024438A (en) * 2012-12-31 2013-04-03 深圳市九洲电器有限公司 Set-top box, and production test method and production test system for set-top box
CN103744824A (en) * 2013-12-18 2014-04-23 乐视致新电子科技(天津)有限公司 Outgoing testing method and testing system
CN105072441A (en) * 2015-09-15 2015-11-18 广东九联科技股份有限公司 Set-top-box software detection method
CN106708586A (en) * 2017-01-11 2017-05-24 湘潭大学 Handheld instrument and method for automatic online updating of embedded system programs
CN106886472A (en) * 2017-02-23 2017-06-23 郑州云海信息技术有限公司 A kind of system for managing mainboard test
CN110446028A (en) * 2019-08-09 2019-11-12 深圳市云之尚网络科技有限公司 Set-top box production test method and system
CN209746056U (en) * 2019-03-25 2019-12-06 南京滨德科技有限公司 DTU device delivery debugging system
CN111274130A (en) * 2020-01-16 2020-06-12 深圳乐信软件技术有限公司 Automatic testing method, device, equipment and storage medium
CN111999090A (en) * 2020-09-04 2020-11-27 河南工业大学 Offline detection device and method for vehicle air conditioner
CN112203251A (en) * 2020-09-11 2021-01-08 福建瑶光智能科技有限公司 TBOX automatic testing method and device realized by using cascade mode

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090318134A1 (en) * 2008-06-18 2009-12-24 Qualcomm Incorporated System and method of reducing factory program time for wireless devices
CN103024438A (en) * 2012-12-31 2013-04-03 深圳市九洲电器有限公司 Set-top box, and production test method and production test system for set-top box
CN103744824A (en) * 2013-12-18 2014-04-23 乐视致新电子科技(天津)有限公司 Outgoing testing method and testing system
CN105072441A (en) * 2015-09-15 2015-11-18 广东九联科技股份有限公司 Set-top-box software detection method
CN106708586A (en) * 2017-01-11 2017-05-24 湘潭大学 Handheld instrument and method for automatic online updating of embedded system programs
CN106886472A (en) * 2017-02-23 2017-06-23 郑州云海信息技术有限公司 A kind of system for managing mainboard test
CN209746056U (en) * 2019-03-25 2019-12-06 南京滨德科技有限公司 DTU device delivery debugging system
CN110446028A (en) * 2019-08-09 2019-11-12 深圳市云之尚网络科技有限公司 Set-top box production test method and system
CN111274130A (en) * 2020-01-16 2020-06-12 深圳乐信软件技术有限公司 Automatic testing method, device, equipment and storage medium
CN111999090A (en) * 2020-09-04 2020-11-27 河南工业大学 Offline detection device and method for vehicle air conditioner
CN112203251A (en) * 2020-09-11 2021-01-08 福建瑶光智能科技有限公司 TBOX automatic testing method and device realized by using cascade mode

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
LUCAS SALES VIEIRA等: "Test Automation in a Test Factory: an Experience Report", 《PROCEEDINGS OF THE XIV BRAZILIAN SYMPOSIUM ON INFORMATION SYSTEMS》 *
拉古小师傅: "如何在uboot上实现从网络下载版本镜像并直接在内存中加载之?", 《HTTPS://WWW.CNBLOGS.COM/LAGUJW/P/4476199.HTML》 *
鹿勇: "无线通信模块生产测试系统的设计和实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Also Published As

Publication number Publication date
CN113010439B (en) 2022-02-15

Similar Documents

Publication Publication Date Title
CN106909362B (en) Method and device for generating BMC (baseboard management controller) firmware and method and device for starting BMC system
CN100583038C (en) Method, system and apparatus for launching an interface with an electronic device
CN110597542A (en) Automatic OTA (over the air) software upgrading method and device and electronic equipment
US7293168B2 (en) System and method for initially configuring and booting a device using a device identifier
EP2291741A1 (en) System and method of reducing factory program time for wireless devices
CN114138283A (en) Remote automatic deployment method, device, terminal and storage medium for operating system
CN111459524A (en) Software upgrading method, device and system
CN113010439B (en) Equipment factory detection method and device, electronic equipment and storage medium
CN106776310B (en) Debugging method and debugging device
CN112214413A (en) Application program testing method, device, equipment and storage medium
US11023220B2 (en) Firmware update with integrated smart sequence and action engine
CN110908733B (en) Working mode determining method and device, and control method and device
CN115878144A (en) Terminal equipment program upgrading system and method
CN115604307A (en) Processing method and device for upgrading log, terminal equipment and computer medium
CN106506276A (en) A kind of information detecting method for server
CN113515299A (en) Software development kit SDK hot upgrading method, device, equipment and storage medium
CN108415844B (en) Plug-in debugging method and device
CN112799641A (en) Method and device for expanding software development kit, electronic equipment and storage medium
KR20210036793A (en) Communication apparatus and test method thereof
CN114527994A (en) Firmware programming method and system and vehicle control system
CN109428936B (en) APP upgrading method, device, system, electronic equipment and storage medium
CN112433938A (en) Method and device for testing application of mobile terminal
EP1703383A1 (en) Electronic device having an alterable configuration and methods of manufacturing and configuring the device
US20220398106A1 (en) Computer Implemented Method And Distributed Computing Infrastructure For Automated Plug And Play Configuration
KR101617765B1 (en) Method for automatically transforming android application package

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