CN108519939B - Module testing method, device and system - Google Patents

Module testing method, device and system Download PDF

Info

Publication number
CN108519939B
CN108519939B CN201810198956.5A CN201810198956A CN108519939B CN 108519939 B CN108519939 B CN 108519939B CN 201810198956 A CN201810198956 A CN 201810198956A CN 108519939 B CN108519939 B CN 108519939B
Authority
CN
China
Prior art keywords
module
detected
terminal
parameter value
unmanned aerial
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810198956.5A
Other languages
Chinese (zh)
Other versions
CN108519939A (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.)
Shenzhen Autel Intelligent Aviation Technology Co Ltd
Original Assignee
Shenzhen Autel Intelligent Aviation 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 Shenzhen Autel Intelligent Aviation Technology Co Ltd filed Critical Shenzhen Autel Intelligent Aviation Technology Co Ltd
Priority to CN201810198956.5A priority Critical patent/CN108519939B/en
Publication of CN108519939A publication Critical patent/CN108519939A/en
Application granted granted Critical
Publication of CN108519939B publication Critical patent/CN108519939B/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/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/14Relay systems
    • H04B7/15Active relay systems
    • H04B7/185Space-based or airborne stations; Stations for satellite systems
    • H04B7/18502Airborne stations
    • H04B7/18506Communications with or from aircraft, i.e. aeronautical mobile service

Abstract

The utility model provides a module testing method, device and system, the method includes: carrying out automatic test on a module to be detected of a terminal under the state that the terminal is in communication connection with an unmanned aerial vehicle to obtain a first test parameter value corresponding to the module to be detected of the terminal; carrying out automatic testing on a module to be detected of the unmanned aerial vehicle to obtain a second test parameter value corresponding to the module to be detected of the unmanned aerial vehicle; the terminal to be tested is associated with the unmanned aerial vehicle to be tested; and when the first test parameter value is inconsistent with the second test parameter value, determining that a fault exists in a module to be detected of the terminal and/or a module to be detected of the unmanned aerial vehicle. Therefore, whether function implementation faults exist in the test or not when the unmanned aerial vehicle is communicated with the remote controller is achieved, and the reliability of the unmanned aerial vehicle in the actual operation process is further guaranteed.

Description

Module testing method, device and system
Technical Field
The invention relates to the technical field of unmanned aerial vehicles, in particular to a module testing method, a device and a system.
Background
The unmanned plane is called unmanned plane for short, and is an unmanned plane operated by radio remote control equipment and a self-contained program control device. The unmanned aerial vehicle carries on tasks such as ground monitoring, target tracking, military striking, because of its advantage such as have small, the flexibility is strong, plays very important role in military, civilian field.
At present, when carrying out the test of module function to unmanned aerial vehicle or rather than the remote controller that matches, only can realize testing one of them end, under this kind of condition, when probably leading to unmanned aerial vehicle and remote controller communication, functional implementation trouble appears, and then influences user experience.
Disclosure of Invention
The embodiment of the invention provides a module testing method, a module testing device and a module testing system, which are used for testing whether a function implementation fault exists or not when an unmanned aerial vehicle is communicated with a remote controller, so that the reliability of the unmanned aerial vehicle in the actual operation process is ensured.
In a first aspect, an embodiment of the present invention provides a module testing method, including:
carrying out automatic test on a module to be detected of a terminal under the state that the terminal is in communication connection with an unmanned aerial vehicle to obtain a first test parameter value corresponding to the module to be detected of the terminal;
carrying out automatic test on the module to be detected of the unmanned aerial vehicle to obtain a second test parameter value corresponding to the module to be detected of the unmanned aerial vehicle; the to-be-tested module of the terminal is associated with the to-be-tested module of the unmanned aerial vehicle;
and when the first test parameter value is inconsistent with the second test parameter value, determining that a fault exists in a module to be detected of the terminal and/or a module to be detected of the unmanned aerial vehicle.
Optionally, after obtaining the first test parameter value corresponding to the module to be tested of the terminal, the method further includes:
determining whether the first test parameter value is consistent with a preset parameter value;
when the first test parameter value is inconsistent with the preset parameter value, determining whether the number of times of carrying out automatic test on the module to be detected of the terminal is less than a preset number threshold value;
if the first test parameter value is smaller than the preset time threshold value, automatically testing the module to be detected of the terminal again to obtain a new first test parameter value corresponding to the module to be detected of the terminal;
and if the number of times is larger than or equal to the preset number threshold, prompting that the module to be detected of the terminal has a fault.
Optionally, the method comprises:
when the module to be detected at the terminal or the module to be detected of the unmanned aerial vehicle is a camera module, the preset parameter values of the camera module include: brightness, picture pixels, picture format, picture size;
when the module to be detected at the terminal or the module to be detected of the unmanned aerial vehicle is a flight control module, the preset parameter values of the flight control module include: flight distance, flight height, flight direction, flight speed;
when the module to be detected at the terminal or the module to be detected of the unmanned aerial vehicle is a positioning module, the preset parameter value of the positioning module comprises: a parameter value associated with the flight path.
Optionally, the automatically testing the module to be tested of the terminal to obtain a first test parameter value corresponding to the module to be tested of the terminal includes:
running a first test script corresponding to a module to be detected of the terminal;
and acquiring the first test parameter value from the running result and/or the running process of the first test script.
Optionally, the to-be-detected module of the unmanned aerial vehicle is subjected to an automatic test, so as to obtain a second test parameter value corresponding to the to-be-detected module of the unmanned aerial vehicle, including:
operating a second test script corresponding to the module to be detected of the unmanned aerial vehicle;
and acquiring the second test parameter value from the running result and/or the running process of the second test script.
Optionally, determining that the module to be detected of the terminal and/or the module to be detected of the unmanned aerial vehicle have a fault includes:
and determining that the module to be detected of the determined terminal and/or the module to be detected of the unmanned aerial vehicle has a fault according to the serial port printing information and the LOG LOG of the unmanned aerial vehicle.
In a second aspect, an embodiment of the present invention provides a module testing apparatus, including:
the first testing module is used for automatically testing the module to be tested of the terminal in a state that the terminal is in communication connection with the unmanned aerial vehicle to obtain a first testing parameter value corresponding to the module to be tested of the terminal;
the second testing module is used for automatically testing the module to be tested of the unmanned aerial vehicle to obtain a second testing parameter value corresponding to the module to be tested of the unmanned aerial vehicle; the to-be-tested module of the terminal is associated with the to-be-tested module of the unmanned aerial vehicle;
and the determining module is used for determining that the module to be detected of the terminal and/or the module to be detected of the unmanned aerial vehicle has a fault when the first test parameter value is inconsistent with the second test parameter value.
Optionally, the determining module is further configured to determine whether a first test parameter value corresponding to a module to be detected of the terminal is consistent with a preset parameter value after the first test parameter value is obtained;
when the first test parameter value is inconsistent with the preset parameter value, determining whether the number of times of carrying out automatic test on the module to be detected of the terminal is less than a preset number threshold value;
if the first test parameter value is smaller than the preset time threshold value, automatically testing the module to be detected of the terminal again to obtain a new first test parameter value corresponding to the module to be detected of the terminal;
and if the number of times is larger than or equal to the preset number threshold, prompting that the module to be detected of the terminal has a fault.
Optionally, when the module to be detected of the terminal or the module to be detected of the unmanned aerial vehicle is a camera module, the preset parameter value of the camera module includes: brightness, picture pixels, picture format, picture size;
when the module to be detected at the terminal or the module to be detected of the unmanned aerial vehicle is a flight control module, the preset parameter values of the flight control module include: flight distance, flight height, flight direction, flight speed;
when the module to be detected at the terminal or the module to be detected of the unmanned aerial vehicle is a positioning module, the preset parameter value of the positioning module comprises: a parameter value associated with the flight path.
Optionally, the first test module is specifically configured to:
running a first test script corresponding to a module to be detected of the terminal;
and acquiring the first test parameter value from the running result and/or the running process of the first test script.
Optionally, the second test module is specifically configured to:
operating a second test script corresponding to the module to be detected of the unmanned aerial vehicle;
and acquiring the second test parameter value from the running result and/or the running process of the second test script.
Optionally, the determining module is specifically configured to: and determining that the module to be detected of the determined terminal and/or the module to be detected of the unmanned aerial vehicle has a fault according to the serial port printing information and the LOG LOG of the unmanned aerial vehicle.
In a third aspect, an embodiment of the present invention provides a module testing system, including: the system comprises test equipment, an unmanned aerial vehicle and a ground control end;
the ground control end comprises a terminal and a remote controller, and the terminal is connected with the remote controller;
the testing equipment is respectively connected with the remote controller and the terminal;
the remote controller is wirelessly connected with the unmanned aerial vehicle;
the test apparatus is for performing the module testing method of any one of the first aspects.
In a fourth aspect, an embodiment of the present invention provides a module testing device, including:
a memory for storing a program;
a processor for executing the program stored by the memory, the processor being configured to perform the method of any of the first aspects when the program is executed.
In a fifth aspect, an embodiment of the present invention provides a computer-readable storage medium, including: instructions which, when run on a computer, cause the computer to perform the method of any one of the first aspects.
According to the module testing method, device and system provided by the embodiment of the invention, the automatic testing is carried out on the module to be tested of the terminal under the state that the terminal is in communication connection with the unmanned aerial vehicle, so that a first testing parameter value corresponding to the module to be tested of the terminal is obtained; carrying out automatic testing on a module to be detected of the unmanned aerial vehicle to obtain a second test parameter value corresponding to the module to be detected of the unmanned aerial vehicle; the to-be-tested module of the terminal is associated with the to-be-tested module of the unmanned aerial vehicle; and when the first test parameter value is inconsistent with the second test parameter value, determining that a fault exists in a module to be detected of the terminal and/or a module to be detected of the unmanned aerial vehicle. Therefore, whether function implementation faults exist in the test or not when the unmanned aerial vehicle is communicated with the remote controller is achieved, and the reliability of the unmanned aerial vehicle in the actual operation process is further guaranteed.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic diagram of a first application scenario provided in the embodiment of the present invention;
FIG. 2 is a flowchart of a module testing method according to an embodiment of the present invention;
FIG. 3 is a flowchart of a module testing method according to a second embodiment of the present invention;
FIG. 4 is a flowchart of a module testing method according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of a module testing apparatus according to a fourth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a module testing apparatus according to a fifth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, 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 invention described herein are, for example, capable of operation in sequences other than those illustrated or otherwise 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 technical solution of the present invention will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
In the following, some terms in the present application are explained to facilitate understanding by those skilled in the art:
1) an unmanned plane is a short name of an unmanned plane and is an unmanned plane operated by radio remote control equipment and a self-contained program control device.
2) A Universal Serial Bus (USB) to ethernet adapter, which is mainly used as a conversion signal for some devices without network ports. With the miniaturization and simplification of the equipment, some equipment is only provided with a standard USB interface, but is not provided with a network port, a serial port, a parallel port and the like, and at the moment, if the interface is required to be used, the interface can be converted into the network port, the serial port and the like through a USB-to-Ethernet adapter.
3) And the USB concentrator is used for expanding one USB interface into a plurality of USB serial ports so as to be accessed by a plurality of devices.
The test method for the unmanned aerial vehicle and the terminal provided by the embodiment of the invention can test whether the function realization fault exists or not when the unmanned aerial vehicle is communicated with the remote controller, thereby ensuring the reliability of the unmanned aerial vehicle in the actual operation process.
Fig. 1 is a schematic diagram of a first application scenario provided in the embodiment of the present invention, where the application scenario described in the embodiment of the present invention may also be understood as a test system according to the embodiment of the present invention.
As shown in fig. 1, the testing device 1 is in wired connection with the remote controller 2 through a network cable, a USB-to-ethernet adapter and a USB hub; the remote controller 2 and the unmanned aerial vehicle 4 can realize wireless connection through a custom communication protocol, such as an image transmission protocol, or a wireless technology, such as WiFi; the test device 1 can be wirelessly connected with the terminal 3; the terminal 3 may be connected to the remote controller 2 through the above-mentioned USB hub.
Based on the structure, unmanned aerial vehicle 4 can communicate with terminal 3 through remote controller 2 realization, and then, test equipment 1 can carry out the in-process that communicates at unmanned aerial vehicle 4 and terminal 3, carry out automatic test to terminal 3 and unmanned aerial vehicle 4, and then realized terminal 3 and unmanned aerial vehicle 4's collaborative test, can in time confirm unmanned aerial vehicle 4 and terminal in communication process, whether respective functional module has the function to realize the trouble, and then can in time solve the trouble problem, promote the reliability of unmanned aerial vehicle when using.
The application scenarios are combined. The following describes the technical solutions of the present invention and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present invention will be described below with reference to the accompanying drawings.
Fig. 2 is a flowchart of a module testing method according to an embodiment of the present invention, and as shown in fig. 2, the method in this embodiment may include:
s101, carrying out automatic testing on the module to be detected of the terminal in a state that the terminal is in communication connection with the unmanned aerial vehicle to obtain a first test parameter value corresponding to the module to be detected of the terminal.
In this embodiment, referring to the application scenario shown in fig. 1, first, a test environment (software environment and hardware environment) of the unmanned aerial vehicle and the terminal needs to be established.
Specifically, firstly, test software is installed in the test equipment, where the test software refers to a pre-written test script for testing each module to be tested in the unmanned aerial vehicle and the terminal, and for example, a Python language may be used to write the test script.
Wherein, the module to be detected of terminal or unmanned aerial vehicle can include: the device comprises a camera module, a flight control module, a positioning module and the like. The module that waits that detects at terminal is corresponding with the module that waits that detects of unmanned aerial vehicle, for example, when the module that waits that detects at terminal is camera module, the module that waits of unmanned aerial vehicle is also corresponding camera module. Here, the implementation function of the camera module of the drone may be the same as or different from that of the camera module of the terminal, which is not limited herein.
The terminal in this embodiment may be an intelligent terminal such as a tablet computer and a mobile phone.
It should be noted that, the number and the type of the modules to be detected are not limited in this embodiment, and theoretically, all the functional modules loaded in the terminal and the unmanned aerial vehicle can be used as the modules to be detected.
And secondly, a hardware test environment can be set up. So as to realize the connection mode among the devices in the test system.
After the environment is set up, the test equipment can carry out testing.
In this embodiment, the test device may first obtain a first test script corresponding to the module to be detected of the terminal, where the first test script refers to a pre-written test code and is used to simulate an execution process and an execution result of the module to be detected of the terminal. And then acquiring a first test parameter value corresponding to the module to be tested of the terminal from the running result and/or the running process of the first test script. The first test parameter values may include one or more of brightness, picture pixels, picture format, picture size.
S102, carrying out automatic testing on the module to be detected of the unmanned aerial vehicle to obtain a second testing parameter value corresponding to the module to be detected of the unmanned aerial vehicle.
In this embodiment, the test equipment may run a second test script corresponding to the module to be detected of the unmanned aerial vehicle, where the second test script refers to a pre-written test code and is used to simulate an execution process and an execution result of the module to be detected of the unmanned aerial vehicle; and acquiring the second test parameter value from the running result and/or the running process of the second test script. The module to be detected of the unmanned aerial vehicle is a module corresponding to the function of the module to be detected of the terminal on the unmanned aerial vehicle. For example, the module to be detected at the terminal is a camera module, and then the module to be detected of the unmanned aerial vehicle is also a camera module.
S103, when the first test parameter value is inconsistent with the second test parameter value, determining that the module to be detected of the terminal and/or the module to be detected of the unmanned aerial vehicle has a fault.
In this embodiment, if the first test parameter value obtained by testing the terminal is inconsistent with the second parameter value obtained by testing the unmanned aerial vehicle, it may be that the module to be detected at the terminal and/or the module to be detected of the unmanned aerial vehicle have a fault. Here, the fact that the module to be detected has a fault means that the module to be detected cannot achieve a required function when running.
When the first test parameter value is inconsistent with the second test parameter value, it indicates that there is an error in the control instruction sent by the module to be detected of the terminal to the unmanned aerial vehicle, or that the module to be detected of the unmanned aerial vehicle does not normally execute the control instruction sent by the detection module of the terminal (which may be a parameter setting instruction, for example, a camera module, and may be a setting instruction for camera brightness, picture pixels, and the like).
Optionally, the test equipment may determine that one or more of the module to be detected at the terminal or the module to be detected of the unmanned aerial vehicle has a fault by checking serial port print information and LOG of the unmanned aerial vehicle.
Optionally, when the first test parameter value is consistent with the second test parameter value, it indicates that the parameter settings of the module to be detected of the terminal and the module to be detected of the unmanned aerial vehicle are correct. The module that detects at terminal and the module that detects of unmanned aerial vehicle do not all have the functional fault who realizes communication promptly.
It should be noted that, in the embodiment of the present invention, the execution sequence of the automated test on the terminal and the unmanned aerial vehicle is not limited.
The implementation process of the embodiment of performing the automated testing on the drone is described in detail below, and is specifically shown in fig. 3.
Fig. 3 is a flowchart of a module testing method according to a second embodiment of the present invention, and as shown in fig. 3, the method in this embodiment may include:
s201, carrying out automatic testing on the module to be detected of the unmanned aerial vehicle to obtain a third testing parameter value corresponding to the module to be detected of the unmanned aerial vehicle.
In this embodiment, a third test script corresponding to a module to be detected of the unmanned aerial vehicle is obtained, where the third test script refers to a test code written in advance and is used to simulate an execution process and an execution result of the module to be detected of the unmanned aerial vehicle; and acquiring a third test parameter value corresponding to the module to be detected of the unmanned aerial vehicle from the operation result and/or the operation process of the third test script.
S202, when the third test parameter value is determined to be consistent with the preset parameter value, the module to be detected of the terminal is automatically tested, and a fourth test parameter value corresponding to the module to be detected of the terminal is obtained.
In this embodiment, a fourth test script corresponding to a module to be detected of the terminal is obtained, where the fourth test script refers to a test code that is written in advance and is used to simulate an execution process and an execution result of the module to be detected of the terminal; and acquiring a fourth test parameter value corresponding to the module to be tested of the terminal from the running result and/or the running process of the fourth test script. The module to be detected of the terminal is a module corresponding to the function of the module to be detected of the unmanned aerial vehicle on the terminal. For example, the module to be detected of the unmanned aerial vehicle is a camera module, and then the module to be detected of the terminal is also a camera module.
S203, when the third test parameter value is inconsistent with the fourth test parameter value, determining that the communication between the unmanned aerial vehicle and the terminal is abnormal.
In this embodiment, if the third test parameter value obtained by testing the unmanned aerial vehicle is inconsistent with the fourth test parameter value obtained by testing the terminal, it may be that there is an abnormality in communication between the unmanned aerial vehicle and the terminal. The test script at the unmanned aerial vehicle end is operated firstly, and then the test script at the terminal is operated, so that whether the unmanned aerial vehicle correctly executes the control instruction (which can be an instruction for setting parameters of the module to be detected) sent by the mobile phone can be judged. And the test parameters of the terminal can be used for verifying whether the unmanned aerial vehicle correctly executes the control instruction of the terminal.
For example, assuming that a test script of a certain function of the unmanned aerial vehicle is operated, a certain parameter of a certain function module at the unmanned aerial vehicle end is set, the parameter value is stored as a variable a, a test parameter value of the function module is obtained and stored as a variable B, and if the variable a is the same as the variable B, the parameter setting of the unmanned aerial vehicle is correct. Finally, by running a test script of the mobile phone app, obtaining a parameter value of a corresponding functional module on a terminal interface, storing the parameter value as a variable C, and if the variable A is inconsistent with the variable C, indicating that the unmanned aerial vehicle does not update information to the terminal in real time, namely, communication is abnormal; if the variable A is consistent with the variable C, the communication between the unmanned aerial vehicle and the mobile phone is normal.
In this embodiment, a to-be-detected module of the unmanned aerial vehicle is automatically tested to obtain a corresponding third test parameter value; when the third test parameter value is determined to be consistent with the preset parameter value, automatically testing the module to be detected of the terminal to obtain a fourth test parameter value corresponding to the module to be detected of the terminal; and when the third test parameter value is inconsistent with the fourth test parameter value, determining that the communication between the unmanned aerial vehicle and the terminal is abnormal. Therefore, whether function implementation faults exist in the test or not when the unmanned aerial vehicle is communicated with the remote controller is achieved, and the reliability of the unmanned aerial vehicle in the actual operation process is further guaranteed.
Fig. 4 is a flowchart of a module testing method provided in a third embodiment of the present invention, and as shown in fig. 4, the method in this embodiment may include:
s301, carrying out automatic testing on the module to be detected at the terminal under the state that the terminal is in communication connection with the unmanned aerial vehicle, and obtaining a first test parameter value corresponding to the module to be detected at the terminal.
For a specific implementation process and technical principle of step S301 in this embodiment, please refer to the related description of step S101 in fig. 2, which is not described herein again.
S302, judging whether the first test parameter value is inconsistent with a preset parameter value; if yes, go to step S305; if not, go to step S303.
S303, judging whether the times of the automatic test of the module to be detected of the terminal are less than a preset time threshold value or not; if the number of times is less than the preset number threshold, returning to execute the step S301; if the number is greater than or equal to the preset number threshold, step S304 is executed.
S304, prompting that the module to be detected of the terminal has a fault, and ending the process.
In this embodiment, an automatic test is performed on a module to be detected of a terminal, a new first test parameter value is generated each time the automatic test is performed, whether the first test parameter value is consistent with a preset parameter value is determined, and if so, it is determined that the parameter setting of the module to be detected in the terminal is correct. If the number of times of the automatic tests reaches a preset upper limit value, the first test parameter consistent with the preset parameter value still cannot be obtained, the fact that the module to be detected in the terminal has a fault is indicated, and a worker is prompted to conduct troubleshooting on the first target detection module of the terminal.
S305, carrying out automatic testing on the module to be detected of the unmanned aerial vehicle to obtain a second test parameter value corresponding to the module to be detected of the unmanned aerial vehicle.
S306, when the first test parameter value is inconsistent with the second test parameter value, determining that a fault exists in the module to be detected of the terminal and/or the module to be detected of the unmanned aerial vehicle.
For the detailed implementation process and technical principle of steps S305 and S306 in this embodiment, please refer to the related description of step S102 and step S103 in fig. 2, which is not described herein again.
In this embodiment, a corresponding first test parameter value is obtained by automatically testing a module to be tested of a terminal; and when the first test parameter value is determined to be inconsistent with the preset parameter value, carrying out cycle test on the module to be detected of the terminal until the test times reach a preset upper limit value, and if the first test parameter value consistent with the preset parameter value cannot be obtained, prompting that the module to be detected in the terminal has a fault. Therefore, whether the parameters in each module to be detected in the terminal are correctly set can be found in time, and the module to be detected in the terminal can be accurately tested.
Fig. 5 is a schematic structural diagram of a module testing apparatus according to a fourth embodiment of the present invention, and as shown in fig. 5, the apparatus in this embodiment may include:
the first testing module 10 is used for automatically testing a module to be tested of the terminal in a state that the terminal is in communication connection with the unmanned aerial vehicle to obtain a first testing parameter value corresponding to the module to be tested of the terminal;
the second testing module 20 is used for automatically testing the module to be tested of the unmanned aerial vehicle to obtain a second testing parameter value corresponding to the module to be tested of the unmanned aerial vehicle; the to-be-tested module of the terminal is associated with the to-be-tested module of the unmanned aerial vehicle;
the determining module 30 is configured to determine that a fault exists in the module to be detected of the terminal and/or the module to be detected of the unmanned aerial vehicle when the first test parameter value is inconsistent with the second test parameter value.
The determining module is further configured to determine whether a first test parameter value corresponding to a module to be detected of the terminal is consistent with a preset parameter value after the first test parameter value is obtained;
when the first test parameter value is inconsistent with the preset parameter value, determining whether the number of times of carrying out automatic test on the module to be detected of the terminal is less than a preset number threshold value;
if the first test parameter value is smaller than the preset time threshold value, automatically testing the module to be detected of the terminal again to obtain a new first test parameter value corresponding to the module to be detected of the terminal;
and if the number of times is larger than or equal to the preset number threshold, prompting that the module to be detected of the terminal has a fault.
When the module to be detected at the terminal or the module to be detected of the unmanned aerial vehicle is a camera module, the preset parameter values of the camera module include: brightness, picture pixels, picture format, picture size;
when the module to be detected at the terminal or the module to be detected of the unmanned aerial vehicle is a flight control module, the preset parameter values of the flight control module include: flight distance, flight height, flight direction, flight speed;
when the module to be detected at the terminal or the module to be detected of the unmanned aerial vehicle is a positioning module, the preset parameter value of the flight control module comprises: a parameter value associated with the flight path.
Optionally, the first test module 10 is specifically configured to:
running a first test script corresponding to a module to be detected of the terminal;
and acquiring the first test parameter value from the running result and/or the running process of the first test script.
Optionally, the second testing module 20 is specifically configured to:
operating a second test script corresponding to the module to be detected of the unmanned aerial vehicle;
and acquiring the second test parameter value from the running result and/or the running process of the second test script.
Optionally, the determining module 30 is specifically configured to: and determining that the module to be detected of the determined terminal and/or the module to be detected of the unmanned aerial vehicle has a fault according to the serial port printing information and the LOG LOG of the unmanned aerial vehicle.
The present embodiment may implement the technical solutions in the methods shown in fig. 2 to fig. 4, and the implementation processes and technical effects are similar to those of the methods described above, and are not described herein again.
It should be noted that the functional modules in the testing apparatus may implement their corresponding functions by one or a combination of software, firmware, and hardware, and are not limited herein.
Fig. 6 is a schematic structural diagram of a module testing apparatus according to a fifth embodiment of the present invention, and as shown in fig. 6, a module testing apparatus 40 in this embodiment includes:
a processor 41 and a memory 42; wherein:
a memory 42 for storing executable instructions, which may also be a flash (flash memory).
A processor 41 for executing the executable instructions stored in the memory to implement the steps of the method according to the above embodiments. For example, a computer (equivalent to a test device) that can establish communication with a terminal, a remote controller; the computer executes the methods shown in fig. 2-4 by calling and executing executable instructions (which may be code written in a programming language such as C, C + +, Java, or the like) in a hard disk or a removable storage device in a pre-configured software execution environment. Reference may be made in particular to the description relating to the preceding method embodiment.
Alternatively, the memory 42 may be separate or integrated with the processor 41.
When the memory 42 is a device independent from the processor 41, the test equipment 40 of the drone and the terminal may further include:
a bus 43 for connecting the memory 42 and the processor 41.
Optionally, the testing device may further include a communication interface for wired or wireless connection with an external device, such as the above-mentioned remote controller, terminal, or the like.
In addition, embodiments of the present application further provide a computer-readable storage medium, in which computer-executable instructions are stored, and when at least one processor of the user equipment executes the computer-executable instructions, the user equipment performs the above-mentioned various possible methods.
Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an ASIC. Additionally, the ASIC may reside in test equipment. Of course, the processor and the storage medium may reside as discrete components in the test apparatus.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (11)

1. A method for testing a module, comprising:
carrying out automatic test on a module to be detected of the terminal under the state that the terminal is in communication connection with the unmanned aerial vehicle to obtain a first test parameter value corresponding to the module to be detected of the terminal;
carrying out automatic test on the module to be detected of the unmanned aerial vehicle to obtain a second test parameter value corresponding to the module to be detected of the unmanned aerial vehicle; the terminal to be tested is associated with the unmanned aerial vehicle to be tested;
when the first test parameter value is inconsistent with the second test parameter value, determining that a fault exists in a module to be detected of the terminal and/or a module to be detected of the unmanned aerial vehicle;
after the first test parameter value corresponding to the module to be tested of the terminal is obtained, the method further includes:
determining whether the first test parameter value is consistent with a preset parameter value;
when the first test parameter value is inconsistent with the preset parameter value, determining whether the number of times of carrying out automatic test on the module to be detected of the terminal is less than a preset number threshold value;
if the first test parameter value is smaller than the preset time threshold value, automatically testing the module to be detected of the terminal again to obtain a new first test parameter value corresponding to the module to be detected of the terminal;
and if the number of times is larger than or equal to the preset number threshold, prompting that the module to be detected of the terminal has a fault.
2. The method of claim 1,
when the module to be detected at the terminal or the module to be detected of the unmanned aerial vehicle is a camera module, the preset parameter values of the camera module include: brightness, picture pixels, picture format, picture size;
when the module to be detected at the terminal or the module to be detected of the unmanned aerial vehicle is a flight control module, the preset parameter values of the flight control module include: flight distance, flight height, flight direction, flight speed;
when the module to be detected at the terminal or the module to be detected of the unmanned aerial vehicle is a positioning module, the preset parameter value of the positioning module comprises: a parameter value associated with the flight path.
3. The method according to claim 1, wherein the automatically testing the module to be tested of the terminal to obtain the first test parameter value corresponding to the module to be tested of the terminal comprises:
running a first test script corresponding to a module to be detected of the terminal;
and acquiring the first test parameter value from the running result and/or the running process of the first test script.
4. The method according to claim 1, wherein the automatically testing the module to be tested of the unmanned aerial vehicle to obtain a second test parameter value corresponding to the module to be tested of the unmanned aerial vehicle comprises:
operating a second test script corresponding to the module to be detected of the unmanned aerial vehicle;
and acquiring the second test parameter value from the running result and/or the running process of the second test script.
5. The method according to any one of claims 1 to 4, wherein the determining that the module to be detected of the terminal and/or the module to be detected of the UAV is/are faulty comprises:
and determining that the module to be detected of the determined terminal and/or the module to be detected of the unmanned aerial vehicle has a fault according to the serial port printing information and the LOG LOG of the unmanned aerial vehicle.
6. A module testing apparatus, comprising:
the first testing module is used for automatically testing the module to be tested of the terminal in a state that the terminal is in communication connection with the unmanned aerial vehicle to obtain a first testing parameter value corresponding to the module to be tested of the terminal;
the second testing module is used for automatically testing the module to be tested of the unmanned aerial vehicle to obtain a second testing parameter value corresponding to the module to be tested of the unmanned aerial vehicle; the to-be-tested module of the terminal is associated with the to-be-tested module of the unmanned aerial vehicle;
the determining module is used for determining that the module to be detected of the terminal and/or the module to be detected of the unmanned aerial vehicle have faults when the first test parameter value is inconsistent with the second test parameter value;
the determining module is further configured to determine whether a first test parameter value corresponding to a module to be detected of the terminal is consistent with a preset parameter value after the first test parameter value is obtained;
when the first test parameter value is inconsistent with the preset parameter value, determining whether the number of times of carrying out automatic test on the module to be detected of the terminal is less than a preset number threshold value;
if the first test parameter value is smaller than the preset time threshold value, automatically testing the module to be detected of the terminal again to obtain a new first test parameter value corresponding to the module to be detected of the terminal;
and if the number of times is larger than or equal to the preset number threshold, prompting that the module to be detected of the terminal has a fault.
7. The apparatus of claim 6,
when the module to be detected at the terminal or the module to be detected of the unmanned aerial vehicle is a camera module, the preset parameter values of the camera module include: brightness, picture pixels, picture format, picture size;
when the module to be detected at the terminal or the module to be detected of the unmanned aerial vehicle is a flight control module, the preset parameter values of the flight control module include: flight distance, flight height, flight direction, flight speed;
when the module to be detected at the terminal or the module to be detected of the unmanned aerial vehicle is a positioning module, the preset parameter value of the positioning module comprises: a parameter value associated with the flight path.
8. The apparatus of claim 6, wherein the first testing module is specifically configured to:
running a first test script corresponding to a module to be detected of the terminal;
and acquiring the first test parameter value from the running result and/or the running process of the first test script.
9. The apparatus of claim 6, wherein the second testing module is specifically configured to:
operating a second test script corresponding to the module to be detected of the unmanned aerial vehicle;
and acquiring the second test parameter value from the running result and/or the running process of the second test script.
10. The apparatus according to any one of claims 6 to 9, wherein the determining module is specifically configured to: and determining that the module to be detected of the determined terminal and/or the module to be detected of the unmanned aerial vehicle has a fault according to the serial port printing information and the LOG LOG of the unmanned aerial vehicle.
11. A modular test system, comprising: the system comprises test equipment, an unmanned aerial vehicle and a ground control end;
the ground control end comprises a terminal and a remote controller, and the terminal is connected with the remote controller;
the testing equipment is respectively connected with the remote controller and the terminal;
the remote controller is wirelessly connected with the unmanned aerial vehicle;
the test apparatus is configured to perform the module testing method of any one of claims 1 to 5.
CN201810198956.5A 2018-03-12 2018-03-12 Module testing method, device and system Active CN108519939B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810198956.5A CN108519939B (en) 2018-03-12 2018-03-12 Module testing method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810198956.5A CN108519939B (en) 2018-03-12 2018-03-12 Module testing method, device and system

Publications (2)

Publication Number Publication Date
CN108519939A CN108519939A (en) 2018-09-11
CN108519939B true CN108519939B (en) 2022-05-24

Family

ID=63433558

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810198956.5A Active CN108519939B (en) 2018-03-12 2018-03-12 Module testing method, device and system

Country Status (1)

Country Link
CN (1) CN108519939B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113886119B (en) * 2021-09-27 2022-12-09 北京三快在线科技有限公司 Fault repairing method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105974222A (en) * 2016-04-27 2016-09-28 乐视控股(北京)有限公司 Unmanned aerial vehicle fault detection method, apparatus and system thereof
CN107004039A (en) * 2016-11-30 2017-08-01 深圳市大疆创新科技有限公司 Object method of testing, apparatus and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9983919B2 (en) * 2015-05-19 2018-05-29 The United States Of America, As Represented By The Secretary Of The Navy Dynamic error code, fault location, and test and troubleshooting user experience correlation/visualization systems and methods
CN106708688B (en) * 2015-11-13 2019-08-20 成都鼎桥通信技术有限公司 Module test method and terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105974222A (en) * 2016-04-27 2016-09-28 乐视控股(北京)有限公司 Unmanned aerial vehicle fault detection method, apparatus and system thereof
CN107004039A (en) * 2016-11-30 2017-08-01 深圳市大疆创新科技有限公司 Object method of testing, apparatus and system

Also Published As

Publication number Publication date
CN108519939A (en) 2018-09-11

Similar Documents

Publication Publication Date Title
US20180151003A1 (en) System and method for transferring diagnostic commands to a vehicle
CN106776294B (en) Automatic android mobile phone testing method and system
EP3486782A1 (en) Satellite software verification system
CN110287122B (en) Automatic test method, device, terminal and storage medium
CN110704323B (en) Automatic data testing method and device based on rail transit line data
CN111176910A (en) System function testing method and device
CN110347539B (en) Test method, device, system, computing device and medium applied to server
CN111506047B (en) Vehicle diagnosis method, device and storage medium
CN112291621A (en) System upgrading automation test method, device and test equipment
US11107308B2 (en) Automated hardware-in-the-loop tester for automotive electronic control units
CN103973858A (en) Automatic testing system of mobile terminals
CN108519939B (en) Module testing method, device and system
CN105827333A (en) System and method of baseband chip automatic test
CN107943005B (en) Detection method and detection device and unmanned aerial vehicle
CN107544899B (en) Method and device for executing test case
CN110198222A (en) A kind of distribution power automation terminal plug and play test method and test main website
CN114915554B (en) Remote upgrading method, device, computer equipment and storage medium
CN113358956B (en) Detection method, detection device and detection system of movable charging pile
CN106997291B (en) Control method, master node and slave node
CN115158400A (en) Urban rail vehicle-mounted equipment and testing method thereof
CN211982148U (en) Wireless signal detection system and wireless signal detection device
CN105243015A (en) Automated software test method and system
CN109857082B (en) Automatic transmission diagnostic method and apparatus
CN113938899A (en) Mesh networking test method, device, equipment and storage medium
US20150149107A1 (en) Loopback test of the proper operation of technical devices in an industrial process automation system

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
CB02 Change of applicant information

Address after: 518055 Shenzhen, Guangdong, Nanshan District Xili street, No. 1001, Zhiyuan Road, B1 9.

Applicant after: Shenzhen daotong intelligent Aviation Technology Co.,Ltd.

Address before: 518055 Shenzhen, Guangdong, Nanshan District Xili street, No. 1001, Zhiyuan Road, B1 9.

Applicant before: AUTEL ROBOTICS Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant