Execution device testing method, device, equipment, system and storage medium
By setting the test sequence on the functional module and identifying the execution device using the port number of the control port, the problem that multiple cameras with the same model cannot be tested is solved, and effective testing of these cameras is achieved.
Patent Information
- Application Number
- CN202111006862.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-30
- Publication Date
- 2025-02-14
- Estimated Expiration
- 2041-08-30
AI Technical Summary
It is difficult to test multiple cameras of the same model in the prior art because they share the same I2C address and cannot be distinguished by the I2C address.
By setting a predefined test sequence on the functional module, the target execution device currently to be tested is determined from the attached execution device group, the port number of the control port indicates the test sequence, the test of the target execution device is executed, and the test of the target execution device is disabled. Testing of the remaining performing devices.
The test of multiple cameras with the same model is realized, and the port number of the control port is identified to solve the problem of sharing I2C addresses.
Smart Images

Figure CN113704036B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communications, and in particular to a method, device, equipment, system and storage medium for executing device testing. Background Art
[0002] Currently, when testing the cameras mounted on the mainstream communication chip, it is required that the models of multiple cameras mounted on the same I2C address bus are different from each other, so that the multiple cameras can be distinguished by the I2C address, thereby realizing the testing of multiple cameras. Summary of the invention
[0003] The present application provides an execution device testing method, apparatus, equipment, system and storage medium to solve the technical problem of testing multiple cameras of the same model.
[0004] In a first aspect, an actuator testing method is provided, which is applied to a functional module having at least one control port, each of which can control an actuator;
[0005] The method comprises:
[0006] Based on a preset test sequence, determining a target execution device to be tested from the execution device group attached to the functional module, wherein the test sequence is indicated by the port number of each control port controlling the execution device group;
[0007] A test is performed on the target execution device, and a test is prohibited on the remaining execution devices, where the remaining execution devices are execution devices in the execution device group other than the target execution device.
[0008] Optionally, based on a preset test sequence, determining a target execution device to be tested from the execution device group attached to the functional module includes:
[0009] Obtaining a first port number, where the first port number is the port number of the control port corresponding to the execution device that has completed the test most recently in the execution device group;
[0010] Based on the test sequence, determining a second port number that is adjacent to the first port number and has not been tested;
[0011] An execution device controlled by the control port corresponding to the second port number is determined as the target execution device.
[0012] Optionally, performing a test on the target execution device includes:
[0013] Transmitting a first electrical signal to the target execution device by controlling a control port corresponding to the target execution device, wherein the first electrical signal is used to start the target execution device;
[0014] Acquiring, through a data signal interface, a data signal transmitted after the target execution device is started;
[0015] When the data signal is consistent with the preset data signal, it is determined that the test on the target execution device has passed.
[0016] Optionally, disable execution of tests for the remaining execution devices, including:
[0017] For any one of the remaining execution devices, a second electrical signal is transmitted to the any one execution device by controlling a control port corresponding to the any one execution device, where the second electrical signal is used to shut down the any one execution device.
[0018] In a second aspect, an execution device testing method is provided, which is applied to an execution device, wherein the execution device is connected to a control port of a functional module through a control bus, and comprises:
[0019] Obtaining an electrical signal from the control port through the control bus, wherein the electrical signal includes a first electrical signal or a second electrical signal, wherein the first electrical signal is used to start the execution device, and the second electrical signal is used to shut down the execution device;
[0020] A startup thread or a shutdown thread is executed based on the electrical signal, wherein the first electrical signal is used to cause the execution device to execute the startup thread, and the second electrical signal is used to cause the execution device to execute the shutdown thread.
[0021] Optionally, the execution device also communicates with the data signal interface of the functional module via a data bus;
[0022] After the start thread is executed based on the electrical signal through the data bus, it also includes:
[0023] The test data is returned to the functional module via the data bus.
[0024] In a third aspect, a testing system is provided, comprising:
[0025] A functional module having at least one control port and an actuator group, each of the control ports being capable of controlling an actuator;
[0026] The functional module is used to determine the target execution device to be tested from the execution device group attached to the functional module based on a pre-set test sequence, wherein the test sequence is indicated by the port numbers of the control ports that control the execution device group; execute the test on the target execution device, and prohibit the execution of the test on the remaining execution devices, wherein the remaining execution devices are the execution devices in the execution device group other than the target execution device.
[0027] In a fourth aspect, an actuator testing device is provided, which is applied to a functional module having at least one control port, each of which can control an actuator;
[0028] The device comprises:
[0029] A determination unit, configured to determine a target execution device to be tested from the execution device group attached to the functional module based on a preset test sequence, wherein the test sequence is indicated by the port numbers of the control ports controlling the execution device group;
[0030] The processing unit is used 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.
[0031] In a fifth aspect, an electronic device is provided, comprising: a processor, a memory and a communication bus, wherein the processor and the memory communicate with each other via the communication bus;
[0032] The memory is used to store computer programs;
[0033] The processor is used to execute the program stored in the memory to implement the execution device testing method described in the first aspect or the second aspect.
[0034] In a sixth aspect, a computer-readable storage medium is provided, storing a computer program, wherein when the computer program is executed by a processor, the execution device testing method described in the first aspect or the second aspect is implemented.
[0035] The above technical solution provided by the embodiment of the present application has the following advantages over the prior art: in the technical solution provided by the embodiment of the present application, it is applied to a functional module having at least one control port, and each control port can control an execution device; based on the pre-set test sequence, the target execution device to be tested is determined from the execution device group attached to the functional module, and the test sequence is indicated by the port number of each control port that controls the execution device group; the test of the target execution device is executed, and the test of the remaining execution devices is prohibited, and the remaining execution devices are the execution devices in the execution device group except the target execution device. In this embodiment, each control port can control an execution device, and the test sequence of the execution device is indicated by the port number of the control port, so this embodiment realizes the identification of the execution device by the port number of the control port, so even if the execution devices are multiple devices of the same model and need to share the I2C address, the execution device can still be identified by the port number of the control port. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] 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.
[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0038] Figure 1 A schematic diagram of a flow chart of a device testing method executed in an embodiment of the present application;
[0039] Figure 2 It is another flowchart of executing the device testing method in the embodiment of the present application;
[0040] Figure 3 A schematic diagram of the structure of the test system in the embodiment of the present application;
[0041] Figure 4 This is another structural schematic diagram of the test system in the embodiment of the present application;
[0042] Figure 5 This is a schematic diagram of the structure of the device testing apparatus in the embodiment of the present application;
[0043] Figure 6 This is a schematic diagram of the structure of the device testing apparatus in the embodiment of the present application;
[0044] Figure 7 Schematic diagram of the structure of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION
[0045] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0046] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0047] The I2C protocol stipulates that cameras of different models are assigned different I2C addresses. Therefore, when multiple cameras are tested through a communication chip, each camera can be identified based on I2C, and then the test of each camera can be realized. However, when the models of multiple cameras connected to the communication chip are the same, the I2C addresses assigned to each camera are the same, so the I2C addresses can no longer be used to distinguish each camera. Therefore, how to test multiple cameras of the same model has become a technical problem that needs to be solved urgently by people in this field.
[0048] In order to solve the above technical problems, an embodiment of the present application provides an actuator testing method, which is applied to a functional module having at least one control port, each control port being capable of controlling an actuator;
[0049] The functional module in the application includes but is not limited to smartphones with controllers (such as Android phones, iOS phones, Windows Phone phones, etc.), tablet computers, PDAs, laptops, video matrices, monitoring platforms, mobile Internet devices (MID, Mobile Internet Devices) or wearable devices, etc. The above are only examples and not exhaustive, including but not limited to the above devices, wherein the controller has at least one control port.
[0050] In applications, 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 pin (GPIO) on the communication chip.
[0051] It should be understood that in this embodiment, the fact that each control port can control an execution device does not mean that each control port must control an execution device. In an application, some of the control ports in at least one control port control execution devices, while the remaining control ports can be in an idle state, that is, not used to control the execution device.
[0052] like Figure 1 As shown, the method may include the following steps:
[0053] Step 101 : Based on a preset test sequence, a target execution device to be tested is determined from the execution device group attached to the functional module. The test sequence is indicated by the port numbers of the control ports that control the execution device group.
[0054] It should be understood that the number of the execution device groups in this step is not greater than the number of the at least one control port. When the number of the execution device groups is the same as the number of the at least one control port, each control port of the functional module controls an execution device; when the number of the execution device groups is less than the number of the at least one control port, some control ports of the functional module are controlled by execution devices, while the other control ports are in an idle state.
[0055] In this embodiment, the port numbers of the control ports may be preset. For example, after the port numbers are set, the control ports may be GPI0, GPI1 . . . GPIn.
[0056] In the application, the port numbers of each control port of the control execution device group can be sorted in order from small to large to obtain a test order; or, the port numbers of each control port of the control execution device group can be sorted in order from large to small to obtain a test order, and this embodiment does not make any specific limitations on this.
[0057] In this embodiment, the execution device includes but is not limited to a camera module.
[0058] In a specific embodiment, when determining the target execution device, a first port number is obtained, where the first port number is the port number of the control port corresponding to the execution device that most recently completed the test in the execution device group; based on the test sequence, a second port number that is adjacent to the first port number and has not been tested is determined; and the execution device controlled by the control port corresponding to the second port number is determined as the target execution device.
[0059] In the application, when the execution device is tested, the functional module can record relevant information in the test process, such as the test time and the test result, so the first port number can be determined based on the recorded relevant information in the test process. The test result includes the port number of the test passed or the port number of the test failed, for example, the test result can be that GPI0 passed the test, or GPI1 failed the test, etc.
[0060] In this embodiment, the tested control ports and the untested control ports may be recorded separately, so when determining the second port number, the second port number adjacent to the first port number may be determined from the untested control ports.
[0061] Step 102: 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 the execution devices in the execution device group except the target execution device.
[0062] In a specific embodiment, executing a test on a target execution device may include transmitting a first electrical signal to the target execution device by controlling a control port corresponding to the target execution device, wherein the first electrical signal is used to start the target execution device; when test data returned by the target execution device after starting is obtained through a data signal interface, it is determined that the test of the target execution device has passed.
[0063] In the application, when the target execution device is a camera module, the camera module has a Power Down function pin, which is connected to the control port corresponding to the camera module; the camera module also has a MIPI (Mobile Industry Processor Interface) CSI (Camera Serial Interface) pin, which is connected to the MIPI CSI pin in the functional module and is used to transmit test data to the functional module. When the camera module is started, the camera module collects image data in real time and returns the image data to the functional module, then the test passes, otherwise the test fails.
[0064] In the application, after the control port corresponding to the target execution device transmits a first electrical signal to the target execution device, the target execution device starts automatically. If the target execution device returns test data to the functional module through the data signal interface (such as the MIPI CSI pin), it is determined that the test of the target execution device has passed.
[0065] In a specific embodiment, when the test on the remaining execution devices is prohibited, for any of the remaining execution devices, a second electrical signal is transmitted to any execution device by controlling the control port corresponding to any execution device, and the second electrical signal is used to shut down any execution device.
[0066] In the application, when any actuator is a camera module, the camera module has a Power Down function pin, which is connected to the control port corresponding to the camera module; the camera module also has a MIPI (Mobile Industry Processor Interfac) CSI (Camera Serial Interface) pin, which is connected to the MIPI CSI pin in the functional module. Through the MIPI CSI pin, the camera module can transmit test data to the functional module.
[0067] In the application, after the control port corresponding to any execution device transmits the second electrical signal to any execution device, any execution device is turned off, so any execution device cannot transmit test data to the functional module through the data signal interface.
[0068] In the technical solution provided in the embodiment of the present application, it is applied to a functional module with at least one control port, each control port can control an execution device; based on the pre-set test sequence, the target execution device to be tested is determined from the execution device group attached to the functional module, and the test sequence is indicated by the port number of each control port that controls the execution device group; the test of the target execution device is executed, and the test of the remaining execution devices is prohibited, and the remaining execution devices are the execution devices in the execution device group except the target execution device. In this embodiment, each control port can control an execution device, and the test sequence of the execution device is indicated by the port number of the control port. Therefore, this embodiment realizes the identification of the execution device by the port number of the control port, so even if the execution devices are multiple devices of the same model and need to share the I2C address, the execution device can still be identified by the port number of the control port.
[0069] Based on the same concept, an embodiment of the present application provides an execution device testing method, which can be applied to an execution device, the execution device is connected to the control port of the functional module through a control bus;
[0070] like Figure 2 As shown, the method may include the following steps:
[0071] Step 201: Obtain 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, where the first electrical signal is used to start an execution device, and the second electrical signal is used to shut down the execution device;
[0072] Step 202: Execute a startup thread or a shutdown thread based on an electrical signal, wherein the first electrical signal is used to cause the execution device to execute the startup thread, and the second electrical signal is used to cause the execution device to execute the shutdown thread.
[0073] Optionally, the execution device also communicates with the data signal interface of the functional module via a data bus;
[0074] After executing the start thread based on the electrical signal through the data bus, it also includes:
[0075] The test data is returned to the functional module via the data bus.
[0076] In order to more clearly explain the embodiments of the present application, the following uses an example in which the functional module is an M2M (Machine to Machine) module and the execution device is a camera module to illustrate the solution of the present application:
[0077] like Figure 3 As shown, Figure 3 A structural schematic diagram of a test system shown in an embodiment of the present application, the test system includes an M2M module and n camera modules;
[0078] The M2M module includes I2C pins, n groups of camera pins, and each group of camera pins includes MIPI CSI pins and GPIO pins;
[0079] Each camera module includes MIPI CSI pins, GPIO pins and PD (Power Down) function pins;
[0080] Among them, the I2C pins in the M2M module are connected to the I2C pins on each camera module through a low-speed communication bus; the MIPI CSI pins in any group of camera pins (taking MIPI CSI0 as an example) are connected to the MIPI CSI pins on a camera module (taking Camera 0 as an example), and the GPIO0 pin is connected to the PD pin on Camera 0.
[0081] The testing process is:
[0082] If GPIO 0 outputs high level, GPIO 1-n outputs low level, and Camera 0 image acquisition is normal, the MIPI CSI 0 test passes, otherwise the test fails; then GPIO 1 outputs high level, GPIO 0 and 2-n output low level, and Camera 1 image acquisition is normal, the MIPI CSI1 test passes, otherwise the test fails; GPIO 2 outputs high level, GPIO 0, 1, and 3-n output low level, and Camera 2 image acquisition is normal, the MIPI CSI 2 test passes, otherwise the test fails. And so on, that is, only one camera module is turned on for testing each time.
[0083] Based on the same concept, a test system is provided in the embodiment of the present application. The specific implementation of the system can refer to the description of the method embodiment part, and the repeated parts will not be repeated. Figure 4 As shown, the system mainly includes:
[0084] A functional module 401 having at least one control port and an actuator group 402, each control port being capable of controlling one actuator 402;
[0085] Functional module 401 is used to determine the target execution device to be tested from the execution device group 402 attached to the functional module based on a pre-set test sequence, and the test sequence is indicated by the port number of each control port controlled by the execution device group; execute the test on the target execution device, and prohibit the execution of the test on the remaining execution devices, which are the execution devices in the execution device group except the target execution device.
[0086] Based on the same concept, an actuator testing device is provided in an embodiment of the present application, which is applied to a functional module having at least one control port, each control port being capable of controlling an actuator;
[0087] like Figure 5 As shown, the device comprises:
[0088] A determination unit 501 is used to determine the target execution device to be tested from the execution device group attached to the functional module based on a preset test sequence, wherein the test sequence is indicated by the port number of each control port controlling the execution device group;
[0089] The processing unit 502 is used to execute a test on the target execution device and prohibit executing a test on the remaining execution devices, where the remaining execution devices are the execution devices in the execution device group except the target execution device.
[0090] Optionally, the determining unit 501 is configured to:
[0091] Obtaining a first port number, where the first port number is the port number of the control port corresponding to the execution device that has completed the test most recently in the execution device group;
[0092] Based on the test sequence, determining a second port number that is adjacent to the first port number and has not been tested;
[0093] Determine that the execution device controlled by the control port corresponding to the second port number is the target execution device.
[0094] Optionally, the processing unit 502 is configured to:
[0095] Transmitting a first electrical signal to the target execution device by controlling a control port corresponding to the target execution device, wherein the first electrical signal is used to start the target execution device;
[0096] When the test data returned from the started target execution device is received, it is determined that the test of the target execution device has passed.
[0097] Optionally, the processing unit 502 is configured to:
[0098] For any of the remaining execution devices, a second electrical signal is transmitted to any execution device by controlling a control port corresponding to any of the execution devices, and the second electrical signal is used to shut down any of the execution devices.
[0099] Based on the same concept, an embodiment of the present application provides an execution device testing device, which is applied to an execution device, wherein the execution device is connected to a control port of a functional module via a control bus;
[0100] like Figure 6 As shown, the device comprises:
[0101] An acquisition unit 601 is used to acquire an electrical signal from the control port through the control bus, where the electrical signal includes a first electrical signal or a second electrical signal, where the first electrical signal is used to start the execution device, and the second electrical signal is used to shut down the execution device;
[0102] The execution unit 602 is used to execute a startup thread or a shutdown thread based on the electrical signal, wherein the first electrical signal is used to enable the execution device to execute the startup thread, and the second electrical signal is used to enable the execution device to execute the shutdown thread.
[0103] Optionally, the execution device also communicates with the data signal interface of the functional module via a data bus;
[0104] The device is also used to:
[0105] After the startup thread is executed based on the electrical signal through the data bus, the test data is returned to the functional module through the data bus.
[0106] Based on the same concept, an electronic device is also provided in the embodiment of the present application, such as Figure 7 As shown, 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 through 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:
[0107] Based on a pre-set test sequence, a target execution device to be tested is determined from the execution device group attached to the functional module, and the test sequence is indicated by the port number of each control port that controls the execution device group;
[0108] A test is performed on a target execution device, and a test is prohibited on remaining execution devices, where the remaining execution devices are execution devices in the execution device group other than the target execution device.
[0109] The communication bus 703 mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus 703 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0110] The memory 702 may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Alternatively, the memory may also be at least one storage device located away from the processor 701.
[0111] The above-mentioned processor 701 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc., and can also 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, discrete hardware components.
[0112] In another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is run on a computer, the computer executes the device testing method described in the above embodiment.
[0113] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can 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 the computer instruction is loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instruction can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instruction is transmitted from a website site, a computer, a server or a data center by wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, a data center, etc. that contains one or more available media integration. The available medium can be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape, etc.), an optical medium (such as a DVD) or a semiconductor medium (such as a solid-state hard disk), etc.
[0114] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0115] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A method for testing an execution device, characterized in that: Applicable to a functional module having at least one control port, each of which is capable of controlling an actuator; The method comprises: Based on a preset test sequence, a target execution device to be tested is determined from the execution device group attached to the functional module, wherein the test sequence is indicated by the port number of each control port controlled by the execution device group; wherein the execution device group is a plurality of execution devices of the same model and sharing an I2C address; Execute a test on the target execution device, and prohibit execution of a test on the remaining execution devices, wherein the remaining execution devices are execution devices in the execution device group other than the target execution device; The step of executing a test on the target execution device includes: Transmitting a first electrical signal to the target execution device by controlling a control port corresponding to the target execution device, wherein the first electrical signal is used to start the target execution device; When receiving the test data returned from the started target execution device, determining that the test of the target execution device passes; Among them, it is prohibited to perform tests on the remaining execution devices, including: For any one of the remaining execution devices, a second electrical signal is transmitted to the any one execution device by controlling a control port corresponding to the any one execution device, where the second electrical signal is used to shut down the any one execution device.
2. The method according to claim 1, characterized in that Based on a preset test sequence, determining a target execution device to be tested from the execution device group attached to the functional module includes: Obtaining a first port number, where the first port number is the port number of the control port corresponding to the execution device that has completed the test most recently in the execution device group; Based on the test sequence, determining a second port number that is adjacent to the first port number and has not been tested; Determine that the execution device controlled by the control port corresponding to the second port number is the target execution device.
3. A method for testing an execution device, characterized in that: Applied to an execution device, the execution device is connected to a control port of a functional module through a control bus, and each control port of the functional module can control one execution device; The functional module is used to determine the target execution device to be tested from the execution device group attached to the functional module based on a preset test sequence, and the test sequence is indicated by the port number of each control port controlled by the execution device group; wherein the execution device group is a plurality of execution devices of the same model and sharing an I2C address; execute the test on the target execution device, and prohibit the execution of the test on the remaining execution devices, wherein the remaining execution devices are the execution devices in the execution device group other than the target execution device; wherein the execution of the test on the target execution device includes: transmitting a first electrical signal to the target execution device by controlling the control port corresponding to the target execution device; and determining that the test of the target execution device has passed when test data returned from the target execution device after startup is received; wherein prohibiting the execution of the test on the remaining execution devices includes: transmitting a second electrical signal to any of the remaining execution devices by controlling the control port corresponding to the any execution device; The method comprises: Obtaining an electrical signal from the control port through the control bus, wherein the electrical signal includes a first electrical signal or a second electrical signal, wherein the first electrical signal is used to start the execution device, and the second electrical signal is used to shut down the execution device; A startup thread or a shutdown thread is executed based on the electrical signal, wherein the first electrical signal is used to cause the execution device to execute the startup thread, and the second electrical signal is used to cause the execution device to execute the shutdown thread.
4. The method according to claim 3, characterized in that The execution device also communicates with the data signal interface of the functional module via a data bus; After the start thread is executed based on the electrical signal through the data bus, it also includes: The test data is returned to the functional module via the data bus.
5. A testing system, characterized in that: include: A functional module having at least one control port and an actuator group, each of the control ports being capable of controlling an actuator; The functional module is used to determine the target execution device to be tested from the execution device group attached to the functional module based on a pre-set test sequence, and the test sequence is indicated by the port number of each control port controlled by the execution device group; wherein the execution device group is a plurality of execution devices of the same model and sharing an I2C address; perform a test on the target execution device, and prohibit the execution of a test on the remaining execution devices, wherein the remaining execution devices are execution devices other than the target execution device in the execution device group; wherein the execution of the test on the target execution device includes: transmitting a first electrical signal to the target execution device by controlling the control port corresponding to the target execution device, wherein the first electrical signal is used to start the target execution device; when receiving the test data returned from the target execution device after startup, determining that the test of the target execution device has passed; wherein prohibiting the execution of the test on the remaining execution devices includes: for any of the remaining execution devices, transmitting a second electrical signal to the any execution device by controlling the control port corresponding to the any execution device, wherein the second electrical signal is used to shut down the any execution device.
6. An actuator testing device, characterized in that: Applicable to a functional module having at least one control port, each of which is capable of controlling an actuator; The device comprises: A determination unit, configured to determine the target execution device to be tested from the execution device group attached to the functional module based on a preset test sequence, wherein the test sequence is indicated by the port number of each control port controlled by the execution device group; wherein the execution device group is a plurality of execution devices of the same model and sharing an I2C address; A processing unit, used for executing a test on the target execution device and prohibiting the execution of a test on the remaining execution devices, wherein the remaining execution devices are execution devices in the execution device group other than the target execution device; wherein executing a test on the target execution device comprises: transmitting a first electrical signal to the target execution device by controlling a control port corresponding to the target execution device, wherein the first electrical signal is used to start the target execution device; and determining that the test of the target execution device has passed when test data returned from the target execution device after being started is received; wherein prohibiting the execution of a test on the remaining execution devices comprises: for any execution device among the remaining execution devices, transmitting a second electrical signal to the any execution device by controlling a control port corresponding to the any execution device, wherein the second electrical signal is used to shut down the any execution device.
7. An electronic device, characterized in that: include: A processor, a memory and a communication bus, wherein the processor and the memory communicate with each other via the communication bus; The memory is used to store computer programs; The processor is used to execute the program stored in the memory to implement the execution device testing method described in any one of claims 1-2 or any one of claims 3-4.
8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the execution device testing method described in any one of claims 1-2 or any one of claims 3-4 is implemented.
Citation Information
Patent Citations
Equipment testing method and device, equipment and storage medium
CN113219262A