CN113704036A - Method, device, equipment, system and storage medium for executing device test - Google Patents

Method, device, equipment, system and storage medium for executing device test Download PDF

Info

Publication number
CN113704036A
CN113704036A CN202111006862.1A CN202111006862A CN113704036A CN 113704036 A CN113704036 A CN 113704036A CN 202111006862 A CN202111006862 A CN 202111006862A CN 113704036 A CN113704036 A CN 113704036A
Authority
CN
China
Prior art keywords
test
execution
control port
executive
execution device
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
Application number
CN202111006862.1A
Other languages
Chinese (zh)
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.)
Fibocom Wireless Inc
Original Assignee
Fibocom Wireless Inc
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 Fibocom Wireless Inc filed Critical Fibocom Wireless Inc
Priority to CN202111006862.1A priority Critical patent/CN113704036A/en
Publication of CN113704036A publication Critical patent/CN113704036A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test buses, lines or interfaces, e.g. stuck-at or open line faults
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2268Logging of test results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/273Tester hardware, i.e. output processing circuits

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Testing Of Individual Semiconductor Devices (AREA)

Abstract

The application relates to a method, a device, equipment, a system and a storage medium for testing an executive device, wherein the method is applied to a functional module with at least one control port, and each control port can control one executive device; the method comprises the following steps: determining a current target execution device to be tested from an actuator group hung on the functional module based on a preset test sequence; and executing the test on the target execution device, and forbidding executing the test on the rest execution devices, wherein the rest execution devices are execution devices in the actuator group except the target execution device. The present embodiment realizes that the execution device is identified by the port number of the control port, so even if the execution device is a plurality of devices of the same model which need to share the I2C address, the execution device can be identified by the port number of the control port.

Description

Method, device, equipment, system and storage medium for executing device test
Technical Field
The present application relates to the field of communications, and in particular, to a method, an apparatus, a device, a system, and a storage medium for performing device testing.
Background
At present, when testing the camera of mounting on it through mainstream communication chip, the model of the multiple cameras that require to hang on same I2C address bus is different each other to distinguish a plurality of cameras through I2C address, and then realize the test to a plurality of cameras.
Disclosure of Invention
The application provides a method, a device, equipment, a system and a storage medium for testing an executive device, which are used for solving the technical problem of testing a plurality of cameras with the same model.
In a first aspect, a method for testing an executive device is provided, which is applied to a functional module having at least one control port, wherein each control port can control one executive device;
the method comprises the following steps:
determining a current target execution device to be tested from an actuator group hung on the functional module based on a preset test sequence, wherein the test sequence is indicated by a port number of each control port controlling the actuator group;
and executing the test on the target execution device, and forbidding executing the test on the rest execution devices, wherein the rest execution devices are execution devices in the execution device group except the target execution device.
Optionally, determining a current target execution device to be tested from the actuator group attached to the functional module based on a preset testing sequence, including:
acquiring a first port number, wherein the first port number is a port number of a control port corresponding to an executive device which completes the test for the last time in the executive device group;
determining a second port number adjacent to the first port number and not tested based on the testing sequence;
and determining the executive device controlled by the control port corresponding to the second port number as the target executive device.
Optionally, performing a test of the target execution device comprises:
transmitting a first electric signal to the target execution device by controlling a control port corresponding to the target execution device, wherein the first electric signal is used for starting the target execution device;
acquiring a data signal transmitted after the target execution device is started through a data signal interface;
and when the data signal is consistent with a preset data signal, determining that the target execution device is tested.
Optionally, inhibiting execution of the testing of the remaining execution devices includes:
and for any executive device in the rest executive devices, transmitting a second electric signal to the any executive device by controlling a control port corresponding to the any executive device, wherein the second electric signal is used for closing the any executive device.
In a second aspect, a method for testing an execution device is provided, where the execution device is connected to a control port of a functional module through a control bus, and the method includes:
acquiring electrical signals from the control port through the control bus, wherein the electrical signals comprise a first electrical signal or a second electrical signal, the first electrical signal is used for starting the executive device, and the second electrical signal is used for closing the executive device;
executing an activation thread or a deactivation thread based on the electrical signals, the first electrical signal for causing the execution device to execute the activation thread, the second electrical signal for causing the execution device to execute the deactivation thread.
Optionally, the execution device further communicates with the data signal interface of the functional module through a data bus;
after executing the starting thread based on the electric signal through the data bus, the method further comprises the following steps:
and returning test data to the functional module through the data bus.
In a third aspect, a test system is provided, comprising:
the system comprises a function module with at least one control port and an actuator group, wherein each control port can control one actuator;
the function module is used for determining a current target executive device to be tested from an actuator group hung on the function module based on a preset test sequence, and the test sequence is indicated by the port number of each control port controlling the actuator group; and executing the test on the target execution device, and forbidding executing the test on the rest execution devices, wherein the rest execution devices are execution devices in the execution device group except the target execution device.
In a fourth aspect, an executive device testing device is provided, which is applied to a functional module having at least one control port, wherein each control port can control an executive device;
the device comprises:
a determining unit, configured to determine, based on a preset test sequence, a current target execution device to be tested from an actuator group hooked to the functional module, where the test sequence is indicated by a port number of each control port that controls the actuator group;
and the processing unit is used for executing the test on the target execution device and forbidding executing the test on the residual execution devices, wherein the residual execution devices are the execution devices in the execution device group except the target execution device.
In a fifth aspect, an electronic device is provided, comprising: the system comprises a processor, a memory and a communication bus, wherein the processor and the memory are communicated with each other through the communication bus;
the memory for storing a computer program;
the processor is configured to execute the program stored in the memory to implement the method for testing a device according to the first aspect or the second aspect.
A sixth aspect provides a computer readable storage medium storing a computer program which, when executed by a processor, implements the executive device testing method of the first or second aspect.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages: the technical scheme provided by the embodiment of the application is applied to a functional module with at least one control port, and each control port can control one executive device; determining a current target execution device to be tested from an actuator group hung on the functional module based on a preset test sequence, wherein the test sequence is indicated by port numbers of control ports controlling the actuator group; and executing the test on the target execution device, and forbidding executing the test on the rest execution devices, wherein the rest execution devices are execution devices in the actuator group except the target execution device. In this embodiment, each control port can control one execution device, and the port number of the control port indicates the test sequence of the execution devices, so this embodiment realizes that the execution devices are identified by the port number of the control port, so even if the execution devices are of the same model and need to share the I2C address, the execution devices can still be identified by the port number of the control port.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
FIG. 1 is a schematic flow chart illustrating a method for performing device testing in an embodiment of the present application;
FIG. 2 is a schematic flow chart illustrating a method for performing device testing in an embodiment of the present application;
FIG. 3 is a schematic diagram of a test system according to an embodiment of the present application;
FIG. 4 is a schematic diagram of another structure of a test system in an embodiment of the present application;
FIG. 5 is a schematic structural diagram of an apparatus for performing device testing in an embodiment of the present application;
FIG. 6 is a schematic structural diagram of an apparatus for performing device testing in an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all 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 application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The I2C protocol provides that the I2C addresses allocated to different models of cameras are different, so that when a plurality of cameras are tested through a communication chip, each camera can be identified based on I2C, and then the test of each camera is realized. However, when the models of the cameras hooked by the communication chip are the same, the I2C addresses allocated to the cameras are the same, so that the cameras cannot be distinguished by using the I2C addresses any more, and therefore how to test the cameras with the same models becomes an urgent technical problem to be solved by those skilled in the art.
In order to solve the above technical problem, an embodiment of the present application provides a method for testing an execution device, where the method is applied to a functional module having at least one control port, and each control port can control one execution device;
in application, the function module includes, but is not limited to, a smart Phone (such as an Android Phone, an iOS Phone, a Windows Phone, etc.) having a controller, a tablet computer, a palm computer, a notebook computer, a video matrix, a monitoring platform, a Mobile Internet device (MID, Mobile Internet Devices), or a wearable device, which are examples, but not exhaustive, and include, but are not limited to, the above device, where the controller has at least one control port.
In an application, the controller may be a communication chip, such as an M2M module (Machine to Machine, data algorithm module), and accordingly, the control port is a General-purpose input/output (GPIO) pin on the communication chip.
It should be understood that each control port is capable of controlling one execution device in this embodiment does not mean that each control port is required to control one execution device, and in an application, some control ports of at least one control port control the execution devices, while the rest of the other control ports may be in an idle state, i.e., not used for controlling the execution devices.
As shown in fig. 1, the method may include the steps of:
step 101, determining a current target execution device to be tested from an actuator group hung on a functional module based on a preset test sequence, wherein the test sequence is indicated by a port number of each control port controlling the actuator group.
It should be appreciated that the number of actuator groups in this step is not greater than the number of at least one control port. When the number of the actuator group is the same as that of at least one control port, each control port of the functional module controls one actuator; when the number of the actuator group is less than the number of the at least one control port, part of the control ports of the functional module are controlled by the actuator, and other control ports are in an idle state.
In this embodiment, the port numbers of the control ports may be preset, for example, after the port numbers are set, each control port may be GPI0 or GPI1 … GPIn.
In application, the port numbers of the control ports of the actuator group can be sequenced from small to large to obtain a test sequence; or, according to the sequence from large to small, the port numbers of the control ports controlling the actuator group are sorted to obtain the test sequence, which is not specifically limited in this embodiment.
In this embodiment, the execution device includes, but is not limited to, a camera module.
In a specific embodiment, when a target execution device is determined, a first port number is obtained, and the first port number is a port number of a control port corresponding to an execution device which has completed testing for the last time in an actuator group; determining a second port number which is adjacent to the first port number and is not tested based on the test sequence; and determining the executive device controlled by the control port corresponding to the second port number as a target executive device.
In application, when testing the executive device, the functional module can record relevant information in the testing process, such as testing time, testing results and the like, so that the first port number can be determined based on the recorded relevant information in the testing process. Wherein, the test result includes a port number that passes the test or a port number that fails the test, for example, the test result may be that GPI0 passes the test, or GPI1 fails the test, etc.
In this embodiment, since the control ports that have been tested and the control ports that have not been tested can be recorded separately, when the second port number is determined, the second port number adjacent to the first port number can be determined from the control ports that have not been tested.
And 102, executing the test on the target execution device, and forbidding executing the test on the rest execution devices, wherein the rest execution devices are the execution devices in the actuator group except the target execution device.
In one embodiment, performing the test on the target execution device may include transmitting a first electrical signal to the target execution device through a control port corresponding to the control target execution device, where the first electrical signal is used to start the target execution device; and when the test data returned after the target execution device is started is acquired through the data signal interface, determining that the test of the target execution device passes.
In application, when the target execution device is a camera module, the camera module is provided with a Power Down functional pin, and the Power Down functional pin is connected with a control port corresponding to the camera module; the camera module further has a Mobile Industry Processor Interface (MIPI) CSI (camera Serial Interface) pin, and the MIPI CSI pin is connected to the MIPI CSI pin in the functional module, and is used for transmitting test data to the functional module. When the camera module is corresponding to the camera module, the camera module is started, image data are collected in real time and returned to the function module, the test is passed, and otherwise the test is not passed.
In application, after a control port corresponding to a target execution device transmits a first electric signal to the target execution device, the target execution device is self-started, and if the target execution device returns test data to a functional module through a data signal interface (such as an MIPI CSI pin), it is determined that the target execution device passes a test.
In a specific embodiment, when the test of the remaining execution devices is prohibited, a second electric signal is transmitted to any execution device by controlling a control port corresponding to any execution device for any execution device in the remaining execution devices, and the second electric signal is used for closing any execution device.
In application, when any execution device is a camera module, the camera module is provided with a Power Down functional pin, and the Power Down functional pin is connected with a control port corresponding to the camera module; the camera module further has a Mobile Industry Processor Interface (MIPI) CSI (camera Serial interface) pin, the MIPI CSI pin is connected with the MIPI CSI pin in the functional module, and the camera module can transmit test data to the functional module through the MIPI CSI pin.
In application, after the control port corresponding to any executive device transmits the second electric signal to any executive device, any executive device is closed, so that any executive device cannot transmit test data to the functional module through the data signal interface.
The technical scheme provided by the embodiment of the application is applied to a functional module with at least one control port, and each control port can control one executive device; determining a current target execution device to be tested from an actuator group hung on the functional module based on a preset test sequence, wherein the test sequence is indicated by port numbers of control ports controlling the actuator group; and executing the test on the target execution device, and forbidding executing the test on the rest execution devices, wherein the rest execution devices are execution devices in the actuator group except the target execution device. In this embodiment, each control port can control one execution device, and the port number of the control port indicates the test sequence of the execution devices, so this embodiment realizes that the execution devices are identified by the port number of the control port, so even if the execution devices are of the same model and need to share the I2C address, the execution devices can still be identified by the port number of the control port.
Based on the same conception, the embodiment of the application provides a method for testing an executive device, which can be applied to the executive device, wherein the executive device is connected to a control port of a functional module through a control bus;
as shown in fig. 2, the method may include the steps of:
step 201, acquiring an electrical signal from a control port through a control bus, where the electrical signal includes a first electrical signal or a second electrical signal, the first electrical signal is used to start an execution device, and the second electrical signal is used to close the execution device;
step 202, executing the start-up thread or the shut-down thread based on electrical signals, the first electrical signal for causing the execution device to execute the start-up thread and the second electrical signal for causing the execution device to execute the shut-down thread.
Optionally, the execution device further communicates with the data signal interface of the functional module through a data bus;
after executing the starting thread based on the electric signal through the data bus, the method further comprises the following steps:
and returning the test data to the functional module through the data bus.
In order to more clearly illustrate the embodiments of the present application, the following describes the solution of the present application by taking the functional module as an M2M (Machine to Machine) module, and the execution device as a camera module as an example:
as shown in fig. 3, fig. 3 is a schematic structural diagram of a test system according to an embodiment of the present application, where the test system includes an M2M module and n camera modules;
the M2M module comprises an I2C pin and n groups of camera pins, wherein each group of camera pins comprise an MIPI CSI pin and a GPIO pin;
each camera module comprises an MIPI CSI pin, a GPIO pin and a PD (Power Down) functional pin;
the I2C pin in the M2M module is connected with the I2C pin on each camera module through a low-speed communication bus; an MIPI CSI pin (taking MIPI CSI0 as an example) in any group of Camera pins is connected with an MIPI CSI pin on a Camera module (taking Camera 0 as an example), and meanwhile, a GPIO0 pin is connected with a PD pin on Camera 0.
The test process is as follows:
GPIO0 outputs high level, GPIO 1-n outputs low level, Camera 0 image is normally obtained, the MIPI CSI0 test is passed, otherwise, the test is failed; then GPIO 1 outputs high level, GPIO0 and 2-n output low level, Camera 1 image is normally obtained, MIPI CSI1 test passes, otherwise test fails; GPIO 2 outputs high level, GPIOs 0, 1 and 3-n output low level, Camera 2 image acquisition is normal, MIPI CSI 2 test passes, otherwise test fails. And so on, namely only one camera module is started to test each time.
Based on the same concept, the embodiment of the present application provides a test system, and the specific implementation of the system may refer to the description of the method embodiment section, and repeated descriptions are omitted, as shown in fig. 4, the system mainly includes:
a function module 401 having at least one control port, each control port capable of controlling one actuator 402, and an actuator group 402;
the functional module 401 is configured to determine a current target execution device to be tested from the actuator group 402 hooked to the functional module based on a preset test sequence, where the test sequence is indicated by a port number of each control port controlling the actuator group; and executing the test on the target execution device, and forbidding executing the test on the rest execution devices, wherein the rest execution devices are execution devices in the actuator group except the target execution device.
Based on the same concept, the embodiment of the application provides an executive device testing device which is applied to a functional module with at least one control port, wherein each control port can control one executive device;
as shown in fig. 5, the apparatus includes:
a determining unit 501, configured to determine, based on a preset test sequence, a current target execution device to be tested from an actuator group hooked to a function module, where the test sequence is indicated by a port number of each control port controlling the actuator group;
the processing unit 502 is configured to execute a test on the target execution device and prohibit execution of a test on the remaining execution devices, where the remaining execution devices are execution devices in the execution device group except the target execution device.
Optionally, the determining unit 501 is configured to:
acquiring a first port number, wherein the first port number is a port number of a control port corresponding to an executive device which completes the test for the last time in the executive device group;
determining a second port number which is adjacent to the first port number and is not tested based on the test sequence;
and determining the executive device controlled by the control port corresponding to the second port number as the target executive device.
Optionally, the processing unit 502 is configured to:
transmitting a first electric signal to the target execution device by controlling a control port corresponding to the target execution device, wherein the first electric signal is used for starting the target execution device;
and when receiving test data returned by the target execution device after starting, determining that the test of the target execution device passes.
Optionally, the processing unit 502 is configured to:
and for any executive device in the rest executive devices, transmitting a second electric signal to any executive device by controlling a control port corresponding to any executive device, wherein the second electric signal is used for closing any executive device.
Based on the same conception, the embodiment of the application provides an executive device testing device which is applied to an executive device, wherein the executive device is connected to a control port of a functional module through a control bus in a hanging manner;
as shown in fig. 6, the apparatus includes:
an obtaining unit 601, configured to obtain, through the control bus, an electrical signal from the control port, where the electrical signal includes a first electrical signal or a second electrical signal, the first electrical signal is used to start the execution device, and the second electrical signal is used to turn off the execution device;
an execution unit 602, configured to execute a start thread or a stop thread based on the electrical signal, where the first electrical signal is used to enable the execution device to execute the start thread, and the second electrical signal is used to enable the execution device to execute the stop thread.
Optionally, the execution device further communicates with the data signal interface of the functional module through a data bus;
the apparatus is also configured to:
and returning test data to the functional module through the data bus after executing the starting thread based on the electric signal through the data bus.
Based on the same concept, an embodiment of the present application further provides an electronic device, as shown in fig. 7, the electronic device mainly includes: a processor 701, a memory 702, and a communication bus 703, wherein the processor 701 and the memory 702 communicate with each other via the communication bus 703. The memory 702 stores a program executable by the processor 701, and the processor 701 executes the program stored in the memory 702 to implement the following steps:
determining a current target execution device to be tested from an actuator group hung on the functional module based on a preset test sequence, wherein the test sequence is indicated by port numbers of control ports controlling the actuator group;
and executing the test on the target execution device, and forbidding executing the test on the rest execution devices, wherein the rest execution devices are execution devices in the actuator group except the target execution device.
The communication bus 703 mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus 703 may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 7, but this is not intended to represent only one bus or type of bus.
The Memory 702 may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Alternatively, the memory may be at least one memory device located remotely from the processor 701.
The Processor 701 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like, or may be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic devices, discrete gates or transistor logic devices, and discrete hardware components.
In yet another embodiment of the present application, there is also provided a computer-readable storage medium having stored therein a computer program which, when run on a computer, causes the computer to execute the method of performing device testing described in the above embodiment.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wirelessly (e.g., infrared, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that includes one or more of the available media. The available media may be magnetic media (e.g., floppy disks, hard disks, tapes, etc.), optical media (e.g., DVDs), or semiconductor media (e.g., solid state drives), among others.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. The executive device testing method is characterized by being applied to a functional module with at least one control port, wherein each control port can control one executive device;
the method comprises the following steps:
determining a current target execution device to be tested from an actuator group hung on the functional module based on a preset test sequence, wherein the test sequence is indicated by a port number of each control port controlling the actuator group;
and executing the test on the target execution device, and forbidding executing the test on the rest execution devices, wherein the rest execution devices are execution devices in the execution device group except the target execution device.
2. The method of claim 1, wherein determining a current target executive device to be tested from the group of executors hooked up to the function module based on a preset testing sequence comprises:
acquiring a first port number, wherein the first port number is a port number of a control port corresponding to an executive device which completes the test for the last time in the executive device group;
determining a second port number adjacent to the first port number and not tested based on the testing sequence;
and determining the executive device controlled by the control port corresponding to the second port number as the target executive device.
3. The method of claim 1, wherein performing testing of the target executive device comprises:
transmitting a first electric signal to the target execution device by controlling a control port corresponding to the target execution device, wherein the first electric signal is used for starting the target execution device;
and when receiving test data returned by the target execution device after starting, determining that the test of the target execution device passes.
4. The method of claim 1, wherein inhibiting execution of the testing of the remaining execution devices comprises:
and for any executive device in the rest executive devices, transmitting a second electric signal to the any executive device by controlling a control port corresponding to the any executive device, wherein the second electric signal is used for closing the any executive device.
5. An executive device testing method is applied to an executive device, the executive device is hung to a control port of a functional module through a control bus, and the executive device testing method comprises the following steps:
acquiring electrical signals from the control port through the control bus, wherein the electrical signals comprise a first electrical signal or a second electrical signal, the first electrical signal is used for starting the executive device, and the second electrical signal is used for closing the executive device;
executing an activation thread or a deactivation thread based on the electrical signals, the first electrical signal for causing the execution device to execute the activation thread, the second electrical signal for causing the execution device to execute the deactivation thread.
6. The method of claim 5, wherein the execution device further communicates with a data signal interface of the functional module via a data bus;
after executing the starting thread based on the electric signal through the data bus, the method further comprises the following steps:
and returning test data to the functional module through the data bus.
7. A test system, comprising:
the system comprises a function module with at least one control port and an actuator group, wherein each control port can control one actuator;
the function module is used for determining a current target executive device to be tested from an actuator group hung on the function module based on a preset test sequence, and the test sequence is indicated by the port number of each control port controlling the actuator group; and executing the test on the target execution device, and forbidding executing the test on the rest execution devices, wherein the rest execution devices are execution devices in the execution device group except the target execution device.
8. The executive device testing device is characterized by being applied to a functional module with at least one control port, wherein each control port can control an executive device;
the device comprises:
a determining unit, configured to determine, based on a preset test sequence, a current target execution device to be tested from an actuator group hooked to the functional module, where the test sequence is indicated by a port number of each control port that controls the actuator group;
and the processing unit is used for executing the test on the target execution device and forbidding executing the test on the residual execution devices, wherein the residual execution devices are the execution devices in the execution device group except the target execution device.
9. An electronic device, comprising: the system comprises a processor, a memory and a communication bus, wherein the processor and the memory are communicated with each other through the communication bus;
the memory for storing a computer program;
the processor, configured to execute the program stored in the memory, to implement the executive device testing method of any one of claims 1-4 or any one of claims 5-6.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the method of performing device testing of any of claims 1-4 or any of claims 5-6.
CN202111006862.1A 2021-08-30 2021-08-30 Method, device, equipment, system and storage medium for executing device test Pending CN113704036A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111006862.1A CN113704036A (en) 2021-08-30 2021-08-30 Method, device, equipment, system and storage medium for executing device test

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111006862.1A CN113704036A (en) 2021-08-30 2021-08-30 Method, device, equipment, system and storage medium for executing device test

Publications (1)

Publication Number Publication Date
CN113704036A true CN113704036A (en) 2021-11-26

Family

ID=78657016

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111006862.1A Pending CN113704036A (en) 2021-08-30 2021-08-30 Method, device, equipment, system and storage medium for executing device test

Country Status (1)

Country Link
CN (1) CN113704036A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113219262A (en) * 2021-04-26 2021-08-06 深圳市广和通无线股份有限公司 Equipment test method, device, equipment and storage medium
CN113238955A (en) * 2021-05-30 2021-08-10 北京大米科技有限公司 Test method, related device and computer storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113219262A (en) * 2021-04-26 2021-08-06 深圳市广和通无线股份有限公司 Equipment test method, device, equipment and storage medium
CN113238955A (en) * 2021-05-30 2021-08-10 北京大米科技有限公司 Test method, related device and computer storage medium

Similar Documents

Publication Publication Date Title
CN105512033B (en) A kind of automated testing method of mobile terminal, device and mobile terminal
US9710255B1 (en) Updating system of firmware of complex programmable logic device and updating method thereof
CN104991847B (en) A kind of RAM leakage automated detection method, device and mobile terminal
CN106126424A (en) A kind of visual automated testing method of script, device and mobile terminal
CN111782339A (en) Container creation method and device, electronic equipment and storage medium
CN107621963B (en) Software deployment method, software deployment system and electronic equipment
CN109800119A (en) A kind of product function test method and device
CN114020681B (en) Method, device and system for distributing logical drive letter, electronic equipment and storage medium
CN107391106A (en) The initial method and terminal of camera parameter
CN111767241A (en) PCIe fault injection test method, device and storage medium
CN108628712B (en) Application program testing method and terminal equipment
CN110515634A (en) Method, computer system and the medium of firmware are updated by Distal tool program
CN115712559A (en) Method and device for testing hardware management software and electronic equipment
CN108132832A (en) Application program launching method and device
CN113704036A (en) Method, device, equipment, system and storage medium for executing device test
CN106709338A (en) Program detection method and device
CN116126613A (en) Position detection method and device of PCIe (peripheral component interconnect express) equipment, electronic equipment and storage medium
CN107391404B (en) Data transmission method and device based on hardware port
US20220365770A1 (en) Prioritized ranking for memory device preparation
CN114157662B (en) Cloud platform parameter adaptation method, device, terminal equipment and storage medium
CN116149941A (en) Monitoring method and device of server component, server and storage medium
CN105592572A (en) Bluetooth connection control method and terminal
CN111538666B (en) Method, device, computer equipment and storage medium for collecting test results in batches
CN113805490A (en) Device control method, system, apparatus, device and storage medium
TWI540431B (en) Electronic apparatus and managing method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination