CN114253785A - Target equipment detection method, device, equipment and computer readable medium - Google Patents

Target equipment detection method, device, equipment and computer readable medium Download PDF

Info

Publication number
CN114253785A
CN114253785A CN202111589484.4A CN202111589484A CN114253785A CN 114253785 A CN114253785 A CN 114253785A CN 202111589484 A CN202111589484 A CN 202111589484A CN 114253785 A CN114253785 A CN 114253785A
Authority
CN
China
Prior art keywords
detection
quality detection
target device
target
test
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111589484.4A
Other languages
Chinese (zh)
Inventor
黄光辉
张国承
张海军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Harxon Corp
Original Assignee
Harxon Corp
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 Harxon Corp filed Critical Harxon Corp
Priority to CN202111589484.4A priority Critical patent/CN114253785A/en
Publication of CN114253785A publication Critical patent/CN114253785A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application relates to a target device detection method, a target device detection device and a computer readable medium. The target device detection method comprises the following steps: sending a quality detection request to the target equipment, wherein the quality detection request is used for judging whether to carry out quality detection or not by the target equipment; when the target equipment determines to carry out quality detection, receiving a detection signal returned by the target equipment according to a quality detection request, wherein the detection signal is used for indicating that the target equipment agrees to carry out quality detection; and acquiring a test instruction according to the detection signal, and calling a self test program according to the test instruction to carry out quality detection on the target equipment. The method and the device solve the problem that the detection rate of quality detection of the target equipment by manually controlling the test program in the related art is low.

Description

Target equipment detection method, device, equipment and computer readable medium
Technical Field
The present application relates to the field of device detection technologies, and in particular, to a method, an apparatus, a device, and a computer readable medium for detecting a target device.
Background
With the development of science and technology, the requirements on the quality of software and hardware of target equipment are higher and higher. In the related art, the software and hardware quality detection method of the target device is that an operator artificially controls a test program of the target device to detect the quality of the target device. However, the detection rate of the quality detection of the target equipment by the artificial control test program is low, and the quality detection of the target equipment is incomplete, so that the quality of the target equipment cannot be detected when the quality of the target equipment is in a problem, and the quality of the target equipment is affected.
Disclosure of Invention
The application provides a target device detection method, a target device detection device and a computer readable medium, which aim to solve the problem that the detection rate of quality detection of the target device by a manual control test program in the related art is low.
In a first aspect, the present application provides a target device detection method, including: sending a quality detection request to target equipment, wherein the quality detection request is used for judging whether quality detection is carried out or not by the target equipment; when the target device determines to perform quality detection, receiving a detection signal returned by the target device according to the quality detection request, wherein the detection signal is used for indicating that the target device agrees to perform quality detection; and acquiring a test instruction according to the detection signal, and calling a self test program according to the test instruction to carry out quality detection on the target equipment.
In a second aspect, the present application provides an apparatus for detecting a target device, including: the request detection module is used for sending a quality detection request to target equipment, wherein the quality detection request is used for judging whether to carry out quality detection on the target equipment; a signal receiving module, configured to receive a detection signal returned by the target device according to the quality detection request when the target device determines to perform quality detection, where the detection signal is used to indicate that the target device agrees to perform quality detection; and the quality detection module acquires a test instruction according to the detection signal and calls a self test program to carry out quality detection on the target equipment according to the test instruction.
In a third aspect, the present application provides an electronic device, which includes a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
the memory is used for storing a computer program;
the processor is configured to implement the steps of the target device detection method according to any embodiment of the first aspect when executing the program stored in the memory.
In a fourth aspect, the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the target device detection method according to any one of the embodiments of the first aspect.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages:
the target device detection method provided by the embodiment of the application comprises the following steps: sending a quality detection request to target equipment, wherein the quality detection request is used for judging whether quality detection is carried out or not by the target equipment; when the target device determines to perform quality detection, receiving a detection signal returned by the target device according to the quality detection request, wherein the detection signal is used for indicating that the target device agrees to perform quality detection; and acquiring a test instruction according to the detection signal, and calling a self test program according to the test instruction to carry out quality detection on the target equipment. According to the target device detection method of the embodiment of the present invention, after a quality detection request is sent to the target device, if the target device determines to perform quality detection on the target device according to the quality detection request, a detection signal generated by the target device according to the quality detection request is returned, a test instruction is obtained according to the detection signal, then a self test program is invoked according to the test instruction to perform quality detection on the target device, thereby achieving quality detection on the target device, the target device detection method is characterized in that the control device performs quality detection control on the target device, the control device acquires the test instruction when receiving the detection signal, and invokes the test program according to the test instruction to perform quality detection on the target device, thereby effectively improving the quality detection rate of the target device, the target equipment can be comprehensively detected, and the problems that the detection rate of quality detection of the target equipment by a manual control test program is low, the quality detection of the target equipment is not comprehensive, and the quality of the target equipment cannot be detected when the quality of the target equipment is in problem, so that the quality of the target equipment is influenced are solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic flowchart of an optional target device detection method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of another alternative target device detection method provided in an embodiment of the present application;
fig. 3 is a schematic flowchart of another alternative target device detection method provided in an embodiment of the present application;
fig. 4 is a schematic flowchart of another alternative target device detection method provided in an embodiment of the present application;
fig. 5 is a schematic flowchart of another alternative target device detection method provided in an embodiment of the present application;
fig. 6 is a schematic flowchart of another alternative target device detection method provided in an embodiment of the present application;
fig. 7 is a schematic flowchart of another alternative target device detection method provided in an embodiment of the present application;
fig. 8 is a schematic structural diagram of an alternative target device detection apparatus according to an embodiment of the present application;
fig. 9 is a block diagram of an alternative target device detection apparatus according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of an alternative electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
To solve the problems mentioned in the background, according to an aspect of the embodiments of the present application, an embodiment of a target device 830 detection method is provided.
As shown in fig. 1, a schematic flowchart of an optional target device 830 detection method according to an embodiment of the present invention is provided, where the method may include the following steps S110, S120, and S130:
step S110, sending a quality detection request to the target device 830, where the quality detection request is used by the target device 830 to determine whether to perform quality detection;
in some embodiments of the present application, a quality detection request is sent to the target device 830 by the detection device 820, where the quality detection request is used for the target device 830 to determine whether to perform quality detection, and it should be noted that the target device 830 may determine whether to perform quality detection, where the detection device 820 sends a quality detection request to the target device 830 and the target device 830 determines to perform quality detection, or the detection device 820 sends a quality detection request to the target device 830 and the target device 830 determines not to perform quality detection, which is not specifically limited by the embodiments of the present application.
It should be noted that, in the quality detection request in the embodiment of the present application, the detection device 820 may further send a notification of quality detection to the target device 830, and the target device 830 performs quality detection within a predetermined time according to the notification of quality detection, so that the trouble of performing quality detection on the target device 830 by a human control test program may be reduced, and the convenience of performing quality detection on the target device 830 may be increased.
Step S120, when the target device 830 determines to perform quality detection, receiving a detection signal returned by the target device 830 according to the quality detection request, wherein the detection signal is used for indicating that the target device 830 agrees to perform quality detection;
in some embodiments of the present application, after the target device 830 receives the quality detection request sent by the detection device 820, when the target device 830 determines to perform quality detection, the target device 830 generates a detection signal according to the quality detection request and sends the detection signal to the detection device 820, and the detection device 820 receives the detection signal returned by the target device 830 according to the quality detection request, where the detection signal is used to indicate that the target device 830 agrees to perform quality detection.
It should be noted that, when the target device 830 determines not to perform quality detection, the detection device 820 may receive a stop detection signal returned by the target device 830 according to the quality detection request, where the stop detection signal is used to indicate that the target device 830 does not agree to perform quality detection, and until the target device 830 determines to perform quality detection, the detection device 820 receives a detection signal returned by the target device 830 according to the quality detection request, and the detection signal is used to indicate that the target device 830 agrees to perform quality detection. In addition, when the target device 830 determines not to perform quality detection, it may be determined that the target device 830 does not agree to perform quality detection for the target device 830 according to the quality detection request, and when the detection device 820 does not receive the detection signal within a predetermined time, it may be determined that the target device 830 does not agree to perform quality detection, until the target device 830 determines to perform quality detection, the target device 830 does not generate a detection signal according to the quality detection request and transmits the detection signal to the detection device 820, and the detection device 820 receives the detection signal, which is used to indicate that the target device 830 agrees to perform quality detection.
Step S130, obtaining a test instruction according to the detection signal, and calling a self test program according to the test instruction to perform quality detection on the target device 830.
In some embodiments of the present application, the detection device 820 sends a quality detection request to the target device 830, where the quality detection request is used for the target device 830 to determine whether to perform quality detection, when the target device 830 determines to perform quality detection, the detection device 820 receives a detection signal returned by the target device 830 according to the quality detection request, where the detection signal is used to indicate that the target device 830 agrees to perform quality detection, the detection device 820 obtains a test instruction from the control device 810 according to the detection signal, and the detection device 820 invokes its own test program to perform quality detection on the target device 830 according to the test instruction.
According to the method for detecting the target device 830 of the embodiment of the present invention, after the detection device 820 sends a quality detection request to the target device 830, if the target device 830 determines to perform quality detection on the target device 830 according to the quality detection request, the detection signal generated by the target device 830 according to the quality detection request is returned, the control device 810 acquires a test instruction according to the detection signal, then the detection device 820 invokes its own test program according to the test instruction to perform quality detection on the target device 830, thereby implementing quality detection on the target device 830, the detection method for the target device 830 performs quality detection control on the target device 830 by the control device 810, the control device 810 acquires the test instruction when receiving the detection signal, invokes the test program according to the test instruction to perform quality detection on the target device 830, and the quality detection rate on the target device 830 can be effectively improved, the target equipment 830 can be detected comprehensively, and the problems that the quality of the target equipment 830 cannot be detected when the quality of the target equipment 830 is failed due to low detection rate of quality detection of the target equipment 830 by a manual control test program and incomplete quality detection of the target equipment 830 caused by manual control test program are solved.
It is understood that the test programs may include, but are not limited to, ADC test programs, battery test programs, GPS test programs, CAN module test programs, version test programs, and the like.
As shown in fig. 2, specifically, in step S110, a quality detection request is sent to the target device 830, and the quality detection request is used for the target device 830 to determine whether to perform quality detection, which may be implemented by steps S210 and S220 as follows:
step S210, receiving a quality detection requirement transmitted by the control device 810, and acquiring a detection capability of the control device according to the quality detection requirement, where the quality detection requirement is used to determine a detection capability required for performing quality detection on the target device 830;
step S220, when the detection capability of the device is matched with the quality detection requirement, a quality detection request is sent out according to the quality detection requirement.
In some embodiments of the present application, after the detection device 820 receives the quality detection requirement transmitted by the control device 810, the detection device 820 obtains its own detection capability according to the quality detection requirement, the quality detection requirement transmitted by the control device 810 is used by the detection device 820 to determine the detection capability required for performing quality detection on the target device 830, and when the detection capability of the detection device 820 itself matches the quality detection requirement, the detection device 820 sends a quality detection request to the target device 830 according to the quality detection requirement.
It should be noted that, in the above embodiment, the control device 810 sends the quality detection requirement to the detection device 820, so that the detection device 820 obtains its own detection capability according to the quality detection requirement, where the quality detection requirement is used to determine the detection capability required by the detection device 820 to perform quality detection on the target device 830. It can be understood that, when the detection capability of the detection device 820 itself does not match the quality detection requirement sent by the control device 810 to the detection device 820, the detection device 820 may not send a quality detection request according to the quality detection requirement, until the detection capability obtained by the detection device 820 matches the quality detection requirement sent by the control device 810, the detection device 820 may send a quality detection request to the target device 830, in the detection method of the target device 830 of the embodiment of the present invention, the detection device 820 obtains the detection capability of itself according to the quality detection requirement sent by the control device 810, and when the detection capability of itself matches the quality detection requirement, the detection device 820 sends a quality detection request to the target device 830 according to the quality detection requirement, thereby determining whether the quality detection request sent to the target device 830 matches the detection capability of the detection device 820, the problem that the detection device 820 cannot perform quality detection on the target device 830 and the quality detection rate of the target device 830 is reduced due to the fact that the quality detection request sent to the target device 830 is not matched with the detection capability of the detection device 820 is solved, so that the quality detection rate of the detection device 820 on the target device 830 is improved, and the quality of the target device 830 is guaranteed.
As shown in fig. 3, specifically, in the step S130, acquiring a test instruction according to the detection signal, and invoking a self-test program according to the test instruction to perform quality detection on the target device 830 may be implemented by the following steps S310 and S320:
step S310, when receiving a detection signal returned by the target device 830, sending the detection signal to the control device 810, so that the control device 810 determines a detection item for performing quality detection on the target device 830, and determines a test instruction according to the detection item;
in step S320, the test instruction transmitted by the control device 810 is received, so as to invoke the self test program to perform quality detection on the target device 830 according to the detection item in the test instruction.
In some embodiments of the present application, when the detection device 820 receives a detection signal returned by the target device 830, the detection device 820 may send the detection signal to the control device 810, so that the control device 810 may determine a detection item for performing quality detection on the target device 830, the control device 810 may further determine a test instruction according to the detection item and send the test instruction to the detection device 820, and after the detection device 820 receives the test instruction transmitted by the control device 810, the detection device 820 invokes its own test program according to the detection item in the test instruction to perform quality detection on the target device 830
According to the method for detecting the target device 830, the control device 810 determines detection items according to the detection signals and generates a test instruction according to the detection items, the control device 810 transmits the test instruction to the detection device 820, so that the detection device 820 calls a self test program according to the detection items in the test instruction to perform quality detection on the target device 830, the test instruction is generated according to specific detection items and is sent to the detection device 820, the detection device 820 calls the test program corresponding to the detection items to perform quality detection on the target device 830, the problem that errors or missed detection are caused when a plurality of detection items are detected uniformly can be effectively avoided, and the quality detection rate of the detection device 820 on the target device 830 is improved.
It is understood that the test programs may include, but are not limited to, ADC test programs, battery test programs, GPS test programs, CAN module test programs, version test programs, and the like.
As shown in fig. 4, specifically, in the step S130, a test instruction is obtained according to the detection signal, and a self-test program is called according to the test instruction to perform quality detection on the target device 830, which may also be implemented by the following steps S410 and S420:
step S410, when receiving a detection signal returned by the target device 830, sending the detection signal to the control device 810, so that the control device 810 determines a detection item for performing quality detection on the target device 830 according to a test target in the detection signal, and determines a test instruction according to the detection item;
in step S420, a test instruction transmitted by the control device 810 is received, so as to invoke a self test program to perform quality detection on the target device 830 according to a detection item in the test instruction.
In some embodiments of the present application, the detection device 820 sends a test instruction transmitted by the control device 810 to the target device 830, the detection device 820 obtains a test target required by the detection device 820 to perform quality detection on the target device 830 according to the test instruction, when the detection device 820 receives the test target of the target device 830, the detection device 820 may obtain a detection item according to the test target, where the detection item is used to determine the test quality of the detection device 820 for performing quality detection on the target device 830, and then the detection device 820 invokes its own test program to perform quality detection on the target device 830 according to the detection item in the test instruction.
In the method for detecting the target device 830 according to the embodiment of the application, the detection device 820 sends a received detection signal returned by the target device 830 to the control device 810, so that the control device 810 determines a detection item for performing quality detection on the target device 830 according to a test target in the detection signal, the control device 810 determines a test instruction according to the detection item and sends the test instruction to the detection device 820, after receiving the test instruction sent by the control device 810, the detection device 820 calls a self test program according to the detection item in the test instruction to perform quality detection on the target device 830, so that the control device 810 determines the test target in the detection signal of the target device 830, determines the detection item according to the test target of the detection signal, determines the test instruction according to the detection item, and determines the test program to perform quality detection on the target device 830 according to the detection item in the test instruction, the situation that the target device 830 generates the test instruction directly for quality detection is prone to error or leak detection is avoided, and the quality detection rate of the target device 830 by the detection device 820 is improved.
It is understood that the test programs may include, but are not limited to, ADC test programs, battery test programs, GPS test programs, CAN module test programs, version test programs, and the like.
As shown in fig. 5, specifically, after acquiring the test instruction according to the detection signal and invoking the self-test program according to the test instruction to perform the quality detection on the target device 830 in the step S130, the following steps S510 and S520 may be further included:
step S510, receiving, through the asynchronous transceiving interface, quality detection process data transmitted by the target device 830, and transmitting the quality detection process data to the control device 810, so that the control device 810 generates a progress adjustment instruction, where the progress adjustment instruction is used to adjust a quality detection progress of the target device 830;
step S520, receiving the progress adjustment instruction sent by the control device 810, and adjusting the quality detection progress of the target device 830 according to the progress adjustment instruction.
In some embodiments of the present application, the detection device 820 receives, through its own asynchronous transceiver, quality detection flow data transmitted by the target device 830, and transmits the quality detection flow data to the control device 810, so that the control device 810 generates a progress adjustment instruction, the progress adjustment instruction is used to adjust a quality detection progress of the target device 830, the control device 810 sends the progress adjustment instruction to the detection device 820, and after receiving the progress adjustment instruction sent by the control device 810, the detection device 820 adjusts a quality detection progress of the target device 830 according to the progress adjustment instruction.
It should be noted that the quality detection progress of the target device 830 is adjusted by the detection device 820 according to the progress adjustment instruction, and when the detection device 820 receives, through the asynchronous transceiver/transmitter, quality detection flow data transmitted by the target device 830, and the quality detection flow is slow, the detection device 820 may accelerate the quality detection progress of the target device 830 according to the progress adjustment instruction generated by the quality detection flow data; when the detection device 820 receives the quality detection process data transmitted by the target device 830 through the asynchronous transceiver and transmitter, which reflects that the quality detection process is fast, the detection device 820 may slow down the quality detection process of the target device 830 according to the progress adjustment instruction generated by the quality detection process data, which is not specifically limited in this embodiment of the present application.
As shown in fig. 6, specifically, after the step S130 obtains the test instruction according to the detection signal and invokes the self-test program according to the test instruction to perform the quality detection on the target device 830, the following steps may be further implemented by the step S610:
step S610 is to determine a plurality of detection items included in the test instruction, and sequentially call test programs corresponding to the plurality of detection items to perform quality detection on the target device 830.
In some embodiments of the present application, the test instruction includes a plurality of detection items, the detection device 820 sends the plurality of detection items to the control device 810 to obtain a test instruction required by the control device 810 to perform quality detection on the target device 830, the detection device 820 invokes its own test program to perform quality detection on the target device 830 according to the test instruction, and the detection device 820 receives a plurality of detection results of the plurality of detection items returned by the target device 830 until the plurality of detection items in the test instruction are tested. It should be noted that the test instruction may include a plurality of detection items, the detection device 820 may perform quality detection on the target device 830 according to one detection item in the test instruction, and the detection result is returned to the detection device 820 after the quality detection is performed on the target device 830 until the test is completed on the plurality of detection items of the test instruction.
It should be noted that the detection items in the embodiments of the present application may include an ADC detection item, a battery detection item, a GPS detection item, a CAN module detection item, a version detection item, and the like, and the present application does not specifically limit this.
It is understood that the test programs may include, but are not limited to, ADC test programs, battery test programs, GPS test programs, CAN module test programs, version test programs, and the like.
As shown in fig. 7, specifically, after the step S610 sequentially calls the test programs corresponding to the plurality of detection items to perform quality detection on the target device 830, the method may further include the steps S710 and S720:
step S710, receiving a detection result obtained by sequentially detecting a plurality of detection items by the target device 830;
in step S720, the detection result is sent to the control device 810, so that the control device 810 displays the detection results corresponding to the plurality of detection items.
In some embodiments of the present application, the detection device 820 may receive a detection result obtained by performing quality detection on the target device 830, and may send the detection result to the control device 810, so that the control device 810 displays the detection results corresponding to a plurality of detection items, so that the detection result of the detection method for the target device 830 is more obvious, and an operator may visually observe the quality detection result of the target device 830.
According to another aspect of the embodiment of the present application, as shown in fig. 8, a schematic structural diagram of an optional target device 830 detection apparatus provided in the embodiment of the present application is shown. The target device 830 detection apparatus according to the embodiment of the present application may include a control device 810, a detection device 820, and a target device 830, where the detection device 820 is connected to the control device 810 and the target device 830, respectively.
In some embodiments of the present application, the control device 810 may be connected to the detection device 820 through an asynchronous serial communication port, the control device 810 may be connected to the target device 830 through a serial communication cable, for example, an RS485 or RS232 communication cable, the control device 810 sends a quality detection request to the detection device 820, the detection device 820 forwards the quality detection request to the target device 830, the target device 830 generates a detection signal according to the quality detection request and sends the detection signal to the detection device 820, the detection device 820 forwards the detection signal to the control device 810, the control device 810 generates a test instruction according to the detection signal and sends the test instruction to the detection device 820, and thus the detection device 820 invokes its own test program to perform quality detection on the target device 830. It should be noted that the target device 830 may further send the detection result of the quality detection to the detection device 820, and the detection device 820 forwards the detection result to the control device 810, and the control device 810 may display the detection result.
In some embodiments of the present application, the target device 830 may be a TBOX device, and the detection device 820 may be a tooling board, where the tooling board is connected to the TBOX device via an RS485 communication interface, and the tooling board is connected to the control device 810 via a UART serial port. The control device 810 communicates with the tooling plate through a UART serial port, so that the test flow and progress CAN be transceived and controlled, a test program is burned in the tooling plate, a test instruction of the control device 810 is received through the UART, programs such as ADC (analog to digital converter) test, battery test, GPS (global positioning system) test, CAN (controller area network) module test, version test and the like are respectively called by using the test instruction, the test instruction is sent to the TBOX device through an RS485 interface, and the TBOX device calls the test program and returns a response test result after receiving the tooling plate test instruction through the RS485 interface. According to the detection method of the target device 830, the hardware and software quality of the target device 830 can be detected, the problem that the self-detection mode of the device is easy to miss detection is solved, meanwhile, a tooling plate used in the detection method of the target device 830 can be manufactured by using production equipment, so that the manufacturing cost can be reduced, in addition, a UART serial port of the detection method of the target device 830 uses an RS485 communication protocol, the same set of test communication interface protocol is used with an RS485 interface, the convenience of software and hardware quality detection of the target device 830 can be improved, and the quality detection rate of the target device 830 is improved.
In some examples, another method for detecting the target device 830 is further provided, where the target device 830 may be configured to receive a quality detection request sent by the control device 810, where the quality detection request is used by the target device 830 to determine whether to perform quality detection, and when the target device 830 determines to perform quality detection, the target device 830 generates a detection signal according to the quality detection request and sends the detection signal to the detection device 820, where the detection signal is used to indicate that the target device 830 agrees to perform quality detection, and the target device 830 sends the detection signal to the detection device 820, so that the detection device 820 obtains a test instruction and invokes a test program of the detection device 820 to perform quality detection on the target device 830 according to the test instruction.
In other examples, another method for detecting the target device 830 is further provided, where the control device 810 sends a quality detection request to the detection device 820, so that the detection device 820 sends the quality detection request to the target device 830, where the quality detection request is used for the target device 830 to determine whether to perform quality detection, and when the target device 830 determines to perform quality detection, the control device 810 generates a test instruction from a detection signal forwarded by the detection device 820, and sends the test instruction to the detection device 820, so that the detection device 820 invokes its test program to perform quality detection on the target device 830 according to the test instruction.
According to another aspect of the embodiments of the present application, as shown in fig. 9, an embodiment of the present application further provides an apparatus for detecting a target device 830, where the apparatus for detecting a target device 830 includes, but is not limited to:
a request detection module 910, configured to send a quality detection request to the target device 830, where the quality detection request is used for the target device 830 to determine whether to perform quality detection;
a signal receiving module 920, configured to receive a detection signal returned by the target device 830 according to the quality detection request when the target device 830 determines to perform quality detection, where the detection signal is used to indicate that the target device 830 agrees to perform quality detection;
the quality detection module 930 obtains a test instruction according to the detection signal, and invokes a self-test program to perform quality detection on the target device 830 according to the test instruction.
It should be noted that the request detection module 910 in this embodiment may be configured to execute step S110 in the foregoing embodiment, the received signal module 920 in this embodiment may be configured to execute step S120 in the foregoing embodiment, and the quality detection module 930 in this embodiment may be configured to execute step S130 in the foregoing embodiment.
Optionally, the request detecting module 910 is specifically configured to:
according to the method for determining whether to perform quality detection by the target device 830 when the detection device 820 sends a quality detection request to the target device 830, the target device 830 may determine whether to perform quality detection, where the detection device 820 sends a quality detection request to the target device 830 and the target device 830 determines to perform quality detection, or the detection device 820 sends a quality detection request to the target device 830 and the target device 830 determines not to perform quality detection, which is not specifically limited in the embodiment of the present application.
Optionally, the signal receiving module 920 is specifically configured to:
after the target device 830 receives a quality detection request sent by the detection device 820, when the target device 830 determines to perform quality detection, the target device 830 generates a detection signal according to the quality detection request and sends the detection signal to the detection device 820, and the detection device 820 receives a detection signal returned by the target device 830 according to the quality detection request, where the detection signal is used to indicate that the target device 830 agrees to perform quality detection.
Optionally, the quality detection module 930 is specifically configured to:
the detection device 820 sends a quality detection request to the target device 830, the quality detection request is used for the target device 830 to judge whether to perform quality detection, when the target device 830 determines to perform quality detection, the detection device 820 receives a detection signal returned by the target device 830 according to the quality detection request, the detection signal is used for indicating that the target device 830 agrees to perform quality detection, the detection device 820 obtains a test instruction from the control device 810 according to the detection signal, and the detection device 820 calls a self test program according to the test instruction to perform quality detection on the target device 830.
According to another aspect of the embodiments of the present application, an electronic device is further provided, as shown in fig. 10, including a processor 1010, a communication interface 1020, a memory 1030, and a communication bus 1040, where the processor 1010, the communication interface 1020, and the memory 1030 are configured to communicate with each other through the communication bus 1040. The electronic devices include, but are not limited to:
a memory 1030 for storing a computer program;
a processor 1010 for executing the program stored in the memory 1030, wherein the processor 1010 is configured to execute the method for detecting the target device 830 described above when the processor 1010 executes the computer program stored in the memory 1030.
The memory 1030, which is a non-transitory computer readable storage medium, may be used to store a non-transitory software program and a non-transitory computer executable program, such as the target device 830 detection method described in the embodiments of the present application. The processor 1010 implements the above-described target device 830 detection method by executing non-transitory software programs, and instructions, stored in the memory 1030.
The memory 1030 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data for performing the target device 830 detection method described above. Additionally, the memory 1030 may include high-speed random access memory 1030, and may also include non-transitory memory 1030, such as at least one piece of disk memory 1030, flash memory device, or other non-transitory solid-state memory 1030. In some embodiments, the memory 1030 may optionally include memory 1030 that is remotely located from the processor 1010, and such remote memory 1030 may be connected to the processor 1010 through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Non-transitory software programs and instructions necessary to implement the above-described target device 830 detection method are stored in the memory 1030, and when executed by the one or more processors 1010, perform the above-described target device 830 detection method, for example, performing method steps S110 to S130 described in fig. 1, method steps S210, S220, S120, and S130 described in fig. 2, method steps S110, S120, S310, and S320 described in fig. 3, method steps S110, S120, S410, and S420 described in fig. 4, method steps S110, S120, S130, S510, and S520 described in fig. 5, method steps S110, S120, and S610 described in fig. 6, and method steps S110, S120, S610, S710, and S720 described in fig. 7.
The memory 1030 and the processor 1010 in the electronic device communicate via a communication bus 1040 and a communication interface 1020. The communication bus 1040 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus 1040 may be divided into an address bus, a data bus, a control bus, and the like.
The Processor 1010 may be a general-purpose Processor 1010, and includes a Central Processing Unit 1010 (CPU), a Network Processor 1010 (NP), and the like; the device may also be a Digital Signal processor 1010 (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, or discrete hardware components.
The embodiment of the present invention further provides a storage medium, which stores computer-executable instructions, where the computer-executable instructions are used to execute the target device 830 detection method.
In one embodiment, the storage medium stores computer-executable instructions, which are executed by one or more control processors 1010, for example, by one processor 1010 of the electronic device, and which cause the one or more processors 1010 to execute the method for detecting the target device 830, for example, the method steps S110 to S130 described in fig. 1, the method steps S210, S220, S120, and S130 described in fig. 2, the method steps S110, S120, S310, and S320 described in fig. 3, the method steps S110, S120, S410, and S420 described in fig. 4, the method steps S110, S120, S130, S510, and S520 described in fig. 5, the method steps S110, S120, and S610 described in fig. 6, the method steps S110, S120, and S610 described in fig. 7, and the method steps S110, S120, S610 described in fig. 7, Step S710 and step S720.
The above described embodiments are merely illustrative, wherein elements illustrated as separate components may or may not be physically separate, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the Processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs) 1010, Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors 1010, controllers, micro-controllers, microprocessors 1010, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented by means of units performing the functions described herein. The software codes may be stored in memory 1030 and executed by processor 1010. Memory 1030 may be implemented within processor 1010 or external to processor 1010.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical division, and in actual implementation, there may be other divisions, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or make a contribution to the prior art, or may be implemented in the form of a software product stored in a storage medium and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
It is noted that, herein, relational terms such as "first," "second," and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A target device detection method, comprising:
sending a quality detection request to target equipment, wherein the quality detection request is used for judging whether quality detection is carried out or not by the target equipment;
when the target device determines to perform quality detection, receiving a detection signal returned by the target device according to the quality detection request, wherein the detection signal is used for indicating that the target device agrees to perform quality detection;
and acquiring a test instruction according to the detection signal, and calling a self test program according to the test instruction to carry out quality detection on the target equipment.
2. The target device detection method of claim 1, wherein the issuing of the quality detection request to the target device comprises:
receiving a quality detection requirement transmitted by control equipment, and acquiring the detection capability of the control equipment according to the quality detection requirement, wherein the quality detection requirement is used for determining the detection capability required by the quality detection of the target equipment;
and when the detection capability of the self-body is matched with the quality detection requirement, sending the quality detection request according to the quality detection requirement.
3. The target device detection method of claim 1, wherein the obtaining a test instruction according to the detection signal and invoking a self-test program according to the test instruction to perform quality detection on the target device comprises:
when a detection signal returned by the target equipment is received, the detection signal is sent to control equipment, so that the control equipment determines a detection item for performing quality detection on the target equipment, and determines the test instruction according to the detection item;
and receiving the test instruction transmitted by the control equipment, and calling a self test program to carry out quality detection on the target equipment according to the detection items in the test instruction.
4. The target device detection method according to claim 3, wherein the invoking of a self-test program according to the detection item in the test instruction to perform quality detection on the target device comprises:
when a detection signal returned by the target equipment is received, the detection signal is sent to the control equipment, so that the control equipment determines a detection item for performing quality detection on the target equipment according to a test target in the detection signal, and determines the test instruction according to the detection item;
and receiving the test instruction transmitted by the control equipment, and calling a self test program to carry out quality detection on the target equipment according to the detection items in the test instruction.
5. The method for detecting the target device according to claim 1, wherein after the calling a self-testing program according to the testing instruction to perform quality detection on the target device, the method further comprises:
receiving quality detection process data sent by the target equipment through an asynchronous receiving and sending transmission interface, and sending the quality detection process data to control equipment so that the control equipment generates a progress adjusting instruction, wherein the progress adjusting instruction is used for adjusting the quality detection progress of the target equipment;
and receiving the progress adjusting instruction sent by the control equipment, and adjusting the quality detection progress of the target equipment according to the progress adjusting instruction.
6. The target device detection method according to claim 1, wherein the invoking of a self test program according to the test instruction to perform quality detection on the target device comprises:
and determining a plurality of detection items contained in the test instruction, and sequentially calling a plurality of test programs corresponding to the detection items so as to perform quality detection on the target equipment.
7. The method according to claim 6, wherein after the sequentially invoking test programs corresponding to the plurality of detection items to perform quality detection on the target device, the method further comprises:
receiving a detection result obtained by sequentially detecting a plurality of detection items by the target equipment;
and sending the detection result to control equipment to enable the control equipment to display the detection result corresponding to the plurality of detection items.
8. An object device detection apparatus, characterized in that the object device detection apparatus comprises:
the request detection module is used for sending a quality detection request to target equipment, wherein the quality detection request is used for judging whether to carry out quality detection on the target equipment;
a signal receiving module, configured to receive a detection signal returned by the target device according to the quality detection request when the target device determines to perform quality detection, where the detection signal is used to indicate that the target device agrees to perform quality detection;
and the quality detection module acquires a test instruction according to the detection signal and calls a self test program to carry out quality detection on the target equipment according to the test instruction.
9. An electronic device comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus, and wherein the memory is configured to store a computer program, and the processor is configured to implement the steps of the target device detection method according to any one of claims 1 to 7 when executing the program stored in the memory.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the target device detection method according to any one of claims 1 to 7.
CN202111589484.4A 2021-12-23 2021-12-23 Target equipment detection method, device, equipment and computer readable medium Pending CN114253785A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111589484.4A CN114253785A (en) 2021-12-23 2021-12-23 Target equipment detection method, device, equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111589484.4A CN114253785A (en) 2021-12-23 2021-12-23 Target equipment detection method, device, equipment and computer readable medium

Publications (1)

Publication Number Publication Date
CN114253785A true CN114253785A (en) 2022-03-29

Family

ID=80797154

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111589484.4A Pending CN114253785A (en) 2021-12-23 2021-12-23 Target equipment detection method, device, equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN114253785A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117193258A (en) * 2023-10-10 2023-12-08 朗戈智能系统(上海)有限公司 Automatic detection method, equipment and computer readable medium for light-operated controller

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117193258A (en) * 2023-10-10 2023-12-08 朗戈智能系统(上海)有限公司 Automatic detection method, equipment and computer readable medium for light-operated controller
CN117193258B (en) * 2023-10-10 2024-05-07 朗戈智能系统(上海)有限公司 Automatic detection method, equipment and computer readable medium for light-operated controller

Similar Documents

Publication Publication Date Title
US10595347B2 (en) Systems and methods for coupling wireless devices
CN105577293B (en) A kind of test method of bluetooth equipment, apparatus and system
CN104202729B (en) The adding method of a kind of contact person, Apparatus and system
US10123333B2 (en) Media access control (MAC) address identification
US20160036956A1 (en) Contextually updating wireless device firmware
WO2018095218A1 (en) Method for remote controller upgrading test and device
JP2007166577A5 (en)
KR101740345B1 (en) System and method of providing driver software to test controller to facilitate testing by wireless transceiver tester of a device under test
JP2010056916A5 (en)
CN108155955B (en) Bluetooth frequency offset test calibration device and method
US10072372B2 (en) Control method for washing machine, washing machine
JP2008113156A5 (en)
WO2014169645A1 (en) Method for detecting fault of intelligent terminal, and intelligent terminal
US20100218043A1 (en) System and method for testing a serial attached small computer system interface
GB2422068A (en) Testing mobile communication devices
CN114253785A (en) Target equipment detection method, device, equipment and computer readable medium
US10277339B2 (en) Measuring apparatus and measuring method
CN106210714A (en) The system of a kind of test machine top box WIFI handling capacity, method and device
CN112629576A (en) Temperature and pressure sensor testing method, equipment, device and storage medium
CN108039928B (en) Received signal strength testing method, device and system and electronic equipment
CN108123762B (en) Transmission power testing method, device and system and electronic equipment
JP2019117598A5 (en)
US9877347B2 (en) Vehicular communication apparatus and reset guard function control program product
CN108958211A (en) A kind of output bas line test method
US20210092620A1 (en) Communication apparatus and test method thereof

Legal Events

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