CN116127990A - Device testing method, system, computer device and storage medium - Google Patents

Device testing method, system, computer device and storage medium Download PDF

Info

Publication number
CN116127990A
CN116127990A CN202211580998.8A CN202211580998A CN116127990A CN 116127990 A CN116127990 A CN 116127990A CN 202211580998 A CN202211580998 A CN 202211580998A CN 116127990 A CN116127990 A CN 116127990A
Authority
CN
China
Prior art keywords
target
target equipment
interaction
graphic code
interactive
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
CN202211580998.8A
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.)
Shenzhen Smartmore Technology Co Ltd
Original Assignee
Shenzhen Smartmore 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 Smartmore Technology Co Ltd filed Critical Shenzhen Smartmore Technology Co Ltd
Priority to CN202211580998.8A priority Critical patent/CN116127990A/en
Publication of CN116127990A publication Critical patent/CN116127990A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/0095Testing the sensing arrangement, e.g. testing if a magnetic card reader, bar code reader, RFID interrogator or smart card reader functions properly
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10009Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
    • G06K7/10366Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves the interrogation device being adapted for miscellaneous applications
    • G06K7/10465Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves the interrogation device being adapted for miscellaneous applications the interrogation device being capable of self-diagnosis, e.g. in addition to or as part of the actual interrogation process
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30168Image quality inspection
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Toxicology (AREA)
  • Biomedical Technology (AREA)
  • Electromagnetism (AREA)
  • General Health & Medical Sciences (AREA)
  • Quality & Reliability (AREA)
  • User Interface Of Digital Computer (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application relates to a device testing method, a system, a computer device and a storage medium. The method comprises the following steps: determining interaction objects of various attributes set for target equipment to be tested; the interactive object is an object which can interact with the target equipment in the using process of the target equipment; the interaction results between the interaction objects with different attributes and the target equipment are different; when testing the target equipment, switching the interactive objects with various attributes; controlling the target equipment to move aiming at each switched interaction object, and controlling the target equipment to interact with the interaction objects in the moving process of the target equipment to obtain an interaction result; the relative pose of the target equipment and the interactive object changes in the motion process; and determining a performance test result of the target equipment according to the interaction result of the target equipment aiming at each switched interaction object. By adopting the method, the test efficiency can be improved.

Description

Device testing method, system, computer device and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a device testing method, a system, a computer device, and a storage medium.
Background
With the development of computer technology, various technologies have been developed, so that the functions of devices are increasingly abundant. For example, by means of embedded technology, the mobile terminal can realize functions of networking and instant messaging, and can realize functions of image acquisition. In order to ensure the normal use of the various functions of the device, the device is usually required to be tested.
In the traditional technology, the equipment needs to be tested and observed manually, and the problems of errors and time consumption existing in manual operation cannot be avoided, so that the efficiency of equipment testing is low.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a device testing method, system, computer device, computer-readable storage medium, and computer program product that can improve efficiency.
In a first aspect, the present application provides a device testing method. The method comprises the following steps:
determining interaction objects of various attributes set for target equipment to be tested; the interactive object is an object which can interact with the target equipment in the using process of the target equipment; the interaction results between the interaction objects with different attributes and the target equipment are different;
when testing the target equipment, switching the interactive objects with various attributes;
Controlling the target equipment to move aiming at each switched interaction object, and controlling the target equipment to interact with the interaction objects in the moving process of the target equipment to obtain an interaction result; the relative pose of the target equipment and the interactive object changes in the motion process;
and determining a performance test result of the target equipment according to the interaction result of the target equipment aiming at each switched interaction object.
In one embodiment, before determining the interactive object of the multiple attributes set for the target device to be tested, the method further includes:
under the condition that the new version program submitted to the code warehouse is detected, compiling the new version program to obtain an executable file to be updated;
generating a hash value of the executable file to obtain file verification information;
transmitting the executable file and the file verification information to the target device to instruct the target device to verify the executable file based on the file verification information;
and running the executable file through the target equipment to realize interaction with the interaction object under the condition that the verification is passed.
In one embodiment, the executable file includes a driver for the target device; before determining the interactive object of the multiple attributes set for the target device to be tested, the method further comprises:
Obtaining a driver test result obtained by running a driver through target equipment;
and under the condition that the driver test result represents that the driver is normal, executing the step of determining the interactive objects of the multiple attributes set for the target device to be tested.
In one embodiment, controlling the target device motion for each interactive object switched to includes:
generating a control instruction for each interactive object switched to by a control device;
and sending a control instruction to the operating device through the control device so as to instruct the operating device to control the movement of the target equipment in response to the control instruction.
In one embodiment, the interactive objects of the plurality of attributes comprise interactive objects of the plurality of visual attributes; at least one graphic code is arranged on the interactive object; the imaging quality of the images generated after the graphic codes on the interactive objects with different visual attributes are acquired is different; in the motion process of the target equipment, controlling the interaction between the target equipment and the interaction object to obtain an interaction result comprises the following steps:
in the motion process of the target equipment, the target equipment is controlled to acquire a target graphic code image of the graphic code on the interactive object, and the target graphic code image is identified through the target equipment to obtain an identification result.
In one embodiment, the target device is moved according to a preset path; the preset path is set based on the position of the graphic code on the interactive object; in the process of moving the target device, controlling the target device to acquire a target graphic code image of the graphic code on the interactive object comprises:
determining an image acquisition position corresponding to the position of the graphic code on the interactive object from a preset path; the image acquisition position is a position for acquiring images of the graphic codes;
and under the condition that the target equipment moves to the image acquisition position, triggering the target equipment to acquire a target graphic code image of the graphic code on the interactive object.
In one embodiment, during movement of the target device, controlling the target device to acquire a target graphic code image of a graphic code on the interactive object includes:
in the motion process of the target equipment, primarily acquiring images of graphic codes on the interactive object through the target equipment to obtain reference graphic code images;
adjusting parameters of the target equipment according to the quality of the reference graphic code image;
collecting a target graphic code image of a graphic code on an interactive object through the target equipment after parameter adjustment; the image quality of the target graphic code image is better than the image quality of the reference graphic code image.
In a second aspect, the present application also provides a device testing system. The system comprises a control device, an operating device, a computer device and a target device;
the control device is used for determining interaction objects of various attributes set for target equipment to be tested; the interactive object is an object which can interact with the target equipment in the using process of the target equipment; the interaction results between the interaction objects with different attributes and the target equipment are different; when testing the target equipment, switching the interactive objects with various attributes;
the control device is used for controlling the movement of the target equipment aiming at each switched interaction object, and controlling the interaction between the target equipment and the interaction objects in the movement process of the target equipment to obtain an interaction result; the relative pose of the target equipment and the interactive object changes in the motion process;
the target device is used for interacting with the interaction object to obtain an interaction result;
and the computer equipment is used for determining the performance test result of the target equipment according to the interaction result of the target equipment aiming at each switched interaction object.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor implementing the steps of the embodiments of the methods described herein when the processor executes the computer program.
In a fourth aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the embodiments of the methods described herein.
In a fifth aspect, the present application also provides a computer program product. Comprising a computer program which, when executed by a processor, performs the steps of the various embodiments of the methods described herein.
The device testing method, the system, the computer device, the storage medium and the computer program product determine interaction objects of various attributes set for target devices to be tested; the interactive object is an object which can interact with the target equipment in the using process of the target equipment; the interaction results between the interaction objects with different attributes and the target equipment are different, and the interaction with the interaction objects with different attributes is considered, so that the influence of the attributes of the interaction objects on the test result can be avoided, and the accuracy of the test result is ensured. When testing the target equipment, switching the interactive objects with various attributes; controlling the target equipment to move aiming at each switched interaction object, and controlling the target equipment to interact with the interaction objects in the moving process of the target equipment to obtain an interaction result; the relative pose of the target equipment and the interactive object changes in the motion process; and determining a performance test result of the target equipment according to the interaction result of the target equipment aiming at each switched interaction object. By switching the interactive objects with various attributes and controlling the movement of the target equipment, the target object interacts with the interactive object to obtain an interaction result, so that a performance test result can be determined according to the interaction result, the equipment is not required to be manually tested and observed, and the test efficiency can be improved.
Drawings
FIG. 1 is an application environment diagram of a device testing method in one embodiment;
FIG. 2 is a flow chart of a device testing method in one embodiment;
FIG. 3 is an application environment diagram of a device testing method in another embodiment;
FIG. 4 is a block diagram of a device testing system in one embodiment;
FIG. 5 is an internal block diagram of a computer device in one embodiment;
fig. 6 is an internal structural view of a computer device in another embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The device testing method provided by the embodiment of the application can be applied to an application environment shown in fig. 1. Wherein the target device 102 communicates with the test device 104 over a network.
The test equipment 104 can determine interaction objects of various attributes set for the target equipment to be tested; the interactive object is an object which can interact with the target equipment in the using process of the target equipment; there is a difference in the interaction results between the interaction objects of different attributes and the target device.
The test device 104 may switch the interactive objects of the multiple attributes when testing the target device; the test device 104 may control the target device motion for each interactive object switched to. In the motion process of the target device 102, the target device 102 can interact with the interaction object to obtain an interaction result; the relative pose of the target device and the interactive object changes in the motion process.
The test device 104 may determine a performance test result of the target device according to the interaction result of the target device for each of the interaction objects switched to.
Wherein the test equipment 104 may comprise at least one of a terminal or a server. The terminal may include at least one of various personal computers, notebook computers, smart phones, tablet computers, internet of things devices, or portable wearable devices, etc. The internet of things device may include at least one of an intelligent sound box, an intelligent television, an intelligent air conditioner, an intelligent vehicle-mounted device, or the like. The portable wearable device may include at least one of a smart watch, a smart bracelet, or a headset, among others. The server may be implemented as a stand-alone server or as a server cluster composed of a plurality of servers.
In one embodiment, as shown in fig. 2, a device testing method is provided, in which the method is applied to a system including a target device and a test device, and is implemented through interaction of the target device and the test device.
In this embodiment, the method includes the steps of:
s202, determining interaction objects of various attributes set for target equipment to be tested.
The interactive object is an object which can interact with the target equipment in the using process of the target equipment. There is a difference in the interaction results between the interaction objects of different attributes and the target device.
Illustratively, the target device to be tested may comprise an embedded device. The interactive objects of various attributes can be arranged on a switcher, and the switcher is connected with a control device. The test device may determine, via the control means, interaction objects of the plurality of properties set for the target device on the switcher. The embedded device is a device capable of independently operating, and the software content only comprises a software running environment and an operating system thereof, and the hardware content comprises various contents such as a signal processor, a memory, a communication module and the like.
In one embodiment, the test apparatus may include a computer apparatus, a control device, and a manipulation device. The control device can be an industrial personal computer, the operating device can be a mechanical arm, and the computer equipment can be an upper computer of the target equipment.
In one embodiment, the interactive object of the plurality of attributes may be a material of the plurality of visual attributes. It is understood that the material refers to a material of matter, and may include materials, parts, semi-finished products, exterior parts, etc. circulated in the production field, and leftover bits and pieces, waste materials, and various wastes necessarily generated in the production process, other than the final product. For example, the material may be at least one of a printed circuit board, a metal plate, or other components.
S204, when testing the target equipment, switching the interactive objects with various attributes.
For example, when testing the target device, the testing device may control the switcher to switch the interactive objects with multiple attributes through the control device.
In one embodiment, the switch may be, but is not limited to, a disk switch. The control means may control the rotation of the disc changer to switch the interactive objects of the plurality of properties.
S206, controlling the target equipment to move according to each switched interaction object, and controlling the target equipment to interact with the interaction objects in the moving process of the target equipment to obtain an interaction result.
The relative pose of the target equipment and the interactive object changes in the motion process.
For example, the test device may control the target device movement for each interactive object switched to by the manipulation means. In the process of moving the target equipment, the test equipment can control the target equipment to detect the switched interactive object, so that a detection result is obtained.
In one embodiment, the target device is provided with detection means. The target device may detect the interactive object by means of a detection means. The detection means may comprise at least one of electro-optical means, infra-red emitting means, laser emitting means, radar or sonar etc. For example, the target device may be a scanner and the detection means may be a camera.
In one embodiment, controlling the target device motion may include at least one of controlling the target device movement or rotation. For example, the control target device moves from one location point to another location point. The control target device rotates at least one position point.
It should be noted that, as the target device moves, at least one of the relative position of the target device and the interactive object or the posture of the target device changes. The relative position may include at least one of a relative angle or a relative distance. Movement of the target device changes the relative position between the target device and the interactive object, and rotation of the target device itself changes the pose of the target device.
S208, determining a performance test result of the target equipment according to the interaction result of the target equipment aiming at each switched interaction object.
For example, the target device may send the interaction result to the control apparatus. The control means may forward the interaction result to the computer device. The testing device can analyze the interaction results of the target device aiming at the switched interaction objects through the computer device to obtain the performance testing result of the target device. The performance test results are used to indicate whether the performance of the target device meets the requirements. For example, the performance test result may include an interaction success rate and an interaction time consumption, and the performance of the target device is determined to be capable of meeting the requirement under the condition that the interaction success rate is not less than a success threshold and the interaction time consumption is not greater than a duration threshold. The time consuming for the interaction refers to the time spent by the interaction of the target device and the interaction object to reach the interaction result.
In the device testing method, the interactive objects of various attributes set for the target device to be tested are determined; the interactive object is an object which can interact with the target equipment in the using process of the target equipment; the interaction results between the interaction objects with different attributes and the target equipment are different, and the interaction with the interaction objects with different attributes is considered, so that the influence of the attributes of the interaction objects on the test result can be avoided, and the accuracy of the test result is ensured. When testing the target equipment, switching the interactive objects with various attributes; controlling the target equipment to move aiming at each switched interaction object, and controlling the target equipment to interact with the interaction objects in the moving process of the target equipment to obtain an interaction result; the relative pose of the target equipment and the interactive object changes in the motion process; and determining a performance test result of the target equipment according to the interaction result of the target equipment aiming at each switched interaction object. By switching the interactive objects with various attributes and controlling the movement of the target equipment, the target object interacts with the interactive object to obtain an interaction result, so that a performance test result can be determined according to the interaction result, the embedded equipment is not required to be tested and observed manually, and the test efficiency can be improved.
In one embodiment, before determining the interactive object of the plurality of attributes set for the target device to be tested, the method further comprises: under the condition that the new version program submitted to the code warehouse is detected, compiling the new version program to obtain an executable file to be updated; generating a hash value of the executable file to obtain file verification information; transmitting the executable file and the file verification information to the target device to instruct the target device to verify the executable file based on the file verification information; and running the executable file through the target equipment to realize interaction with the interaction object under the condition that verification is passed.
Illustratively, a developer can write a new version of the program for the target device and submit the new version of the program to a code repository in a remote server. In the case that the new version program submitted to the code warehouse is detected, the remote server can send the new version program to the computer equipment, and the test equipment can compile the new version program through the computer equipment to obtain an executable file to be updated to the target equipment. It is understood that the executable file may be a binary file. The test device may generate the hash value of the executable file using a message digest algorithm by the computer device. It is understood that the message digest algorithm may include any of MD5, MD4, MD3, MD2, etc.
The computer device may communicate with the target device over a network, and the test device may send the executable file and the file verification information to the target device over the computer device. The target device can analyze the file verification information to verify the integrity of the executable file, and under the condition that the verification is passed, the target device can realize interaction with the interaction object by running the executable file. It can be understood that the potential safety hazard exists when the executable file is directly copied to the target device through the network, and the security can be ensured by adding the file verification.
In one embodiment, the computer device may copy the executable file to the target device by way of a serial connection with the target device, and the target device may run the executable file.
In this embodiment, compiling a new version program to obtain an executable file to be updated; generating a hash value of the executable file to obtain file verification information; transmitting the executable file and the file verification information to the target device to instruct the target device to verify the executable file based on the file verification information; under the condition that verification is passed, the executable file is operated through the target equipment, so that potential safety hazards caused by incomplete executable file can be avoided, and the version updating safety of the target equipment is improved.
In one embodiment, the executable file includes a driver of the target device; before determining the interactive object of the multiple attributes set for the target device to be tested, the method further comprises: obtaining a driver test result obtained by running a driver through target equipment; and under the condition that the driver test result represents that the driver is normal, executing the step of determining the interactive objects of the multiple attributes set for the target device to be tested.
Illustratively, the executable file may include at least one of a driver or a software development kit for the target device. After the verification is passed, the target device can run the driver to complete the test of the basic function of the target device to obtain a driver test result. The target device may send the driver test results to the control apparatus. In the case where the driver test result indicates that the driver is normal, the test device may perform the step of determining an interactive object for a plurality of attributes set for the target device to be tested through the test apparatus.
In this embodiment, a driver test result obtained by running a driver on a target device is obtained; under the condition that the test result of the driver represents that the driver is normal, the step of determining the interactive objects of various attributes set for the target equipment to be tested is executed, so that the influence of the abnormality of the driver on the equipment test can be avoided, and the accuracy of the equipment test is ensured.
In one embodiment, controlling the target device motion for each interactive object switched to includes: generating a control instruction for each interactive object switched to by a control device; and sending a control instruction to the operating device through the control device so as to instruct the operating device to control the movement of the target equipment in response to the control instruction.
The computer device sends a start-up instruction to the control apparatus, for example, after sending the executable file and the file verification information to the target device. It can be understood that the control device does not start the test flow immediately after receiving the start command, but starts the test flow when the test result of the driver indicates that the driver is normal. Under the condition that the driver test result indicates that the driver is normal, the test equipment can generate a control instruction for each interactive object switched to by the control device. The test device may send control instructions to the handling apparatus via the control apparatus. The manipulation device may control the movement of the target apparatus in response to the control instruction.
In one embodiment, the computer device may send an activation instruction to the control means and the manipulation means to activate the control means and the manipulation means.
In one embodiment, the test device may determine a preset path set for the interactive object through the control device, and generate a control instruction based on the preset path corresponding to the switched interactive object. The control device can respond to the control instruction and control the code scanner to move according to a preset path indicated by the control instruction.
In one embodiment, the control device may include an industrial personal computer disposed at the test site. The manipulator may comprise a robotic arm disposed at the test site.
In this embodiment, a control instruction is generated by a control device for each interactive object switched to; and the control device sends a control instruction to the control device to instruct the control device to respond to the control instruction to control the movement of the target equipment, and the test of the target equipment is realized through the communication between the control device and the control device, so that the efficiency is improved.
In one embodiment, the interactive objects of the plurality of attributes comprise interactive objects of a plurality of visual attributes; at least one graphic code is arranged on the interactive object; the imaging quality of the images generated after the graphic codes on the interactive objects with different visual attributes are acquired is different; in the process of moving the target equipment, controlling the target equipment to interact with the interaction object, and obtaining an interaction result comprises the following steps: in the process of moving the target equipment, the target equipment is controlled to acquire a target graphic code image of the graphic code on the interactive object, and the target graphic code image is identified through the target equipment to obtain an identification result.
The target equipment acquires images of graphic codes on different interaction objects, and is interfered by various visual attributes, so that the acquired images of the graphic codes have different imaging quality.
Illustratively, the imaging quality of the graphics code may affect the accuracy with which the target device recognizes the recognition result. In the process of moving the target equipment, the target equipment can acquire a target graphic code image of the graphic code on the interactive object and identify the target graphic code image to obtain an identification result. Wherein the interaction result may comprise a recognition result. The recognition result may include a target graphic code image, a decoding result, and decoding time consuming.
In one embodiment, the computer device may be a host computer. The upper computer can acquire the identification result. The upper computer stores the correct decoding result of each graphic code. The upper computer can determine the decoding accuracy by comparing the recognition result with the correct decoding result of each graphic code. Under the condition that the decoding accuracy is not less than an accuracy threshold and the decoding time is not more than a time length threshold, the upper computer can determine a performance test result which characterizes the performance of the target equipment to meet the requirement.
In the embodiment, in the motion process of the target device, the target device is controlled to acquire a target graphic code image of the graphic code on the interactive object, the target graphic code image is identified through the target device, an identification result is obtained, a scene of scanning the interactive object is simulated, and accuracy of a test result of the target device is guaranteed.
In one embodiment, the target device is moved according to a preset path; the preset path is set based on the position of the graphic code on the interactive object; in the motion process of the target device, controlling the target device to acquire a target graphic code image of the graphic code on the interactive object comprises: determining an image acquisition position corresponding to the position of the graphic code on the interactive object from a preset path; the image acquisition position is a position for acquiring images of the graphic codes; and under the condition that the target equipment moves to the image acquisition position, triggering the target equipment to acquire a target graphic code image of the graphic code on the interactive object.
The preset path is obtained by traversing the position of each graphic code on the interactive object.
The test device may, for example, determine an image acquisition position on the predetermined path corresponding to the position of the graphic code on the interactive object by means of the control device. In the case where the manipulation device controls the movement of the target device to the image pickup position, the control device may send a graphic code recognition instruction to the target device. The target device may collect a target graphic code image of the graphic code on the interactive object in response to the graphic code identification instruction.
In one embodiment, the target device may continuously collect images of the graphic code on the interactive object during the movement process, and identify the collected target graphic code pattern to obtain the first identification result.
In one embodiment, in the case that the first recognition result does not include the decoding result of each graphic code on the interactive object, the test device may perform determining, from the preset path, an image acquisition position and subsequent steps corresponding to the position of the graphic code on the interactive object, to obtain the second recognition result. It can be understood that the continuous code scanning function can be tested by combining two modes of continuous code scanning and code scanning triggering, and meanwhile, the test that missing graphic codes influence the code scanning accuracy is avoided.
In the embodiment, determining an image acquisition position corresponding to the position of the graphic code on the interactive object from a preset path; under the condition that the target equipment moves to the image acquisition position, the target equipment is triggered to acquire the target graphic code image of the graphic code on the interactive object, so that the target equipment is ensured to acquire the graphic code on the interactive object, omission is avoided, and the accuracy of the test is improved.
In one embodiment, controlling the target device to acquire a target graphic code image of a graphic code on the interactive object during movement of the target device includes: in the motion process of the target equipment, primarily acquiring images of graphic codes on the interactive object through the target equipment to obtain reference graphic code images; adjusting parameters of the target equipment according to the quality of the reference graphic code image; collecting a target graphic code image of a graphic code on an interactive object through the target equipment after parameter adjustment; the image quality of the target graphic code image is better than the image quality of the reference graphic code image.
For example, for a new interactive object to switch to, the target device needs to tune to ensure the imaging quality of the graphics code. In the motion process of the target equipment, the test equipment can primarily acquire images of the graphic codes on the interactive object through the target equipment to obtain reference graphic code images. The target device may adaptively adjust parameters related to imaging quality by a binary search. For example, in the case where the sharpness of the reference graphic code image does not reach the sharpness threshold or the sharpness of the reference graphic code image does not reach the sharpness threshold, the target device may determine that the image quality of the reference graphic code image does not meet the quality requirement, and at this time, the target device may adaptively tune the parameters. The target device after the parameter adjustment can acquire a target graphic code image of the graphic code on the interactive object.
In one embodiment, the target device may be a code scanner. The code scanner can adjust parameters of the camera. It can be understood that the influence of the materials with different visual properties on the imaging quality of the image acquired by the target equipment is different, so that the code scanner self-adaptive parameter adjustment is required for different materials to ensure the quality of the target graphic code image and ensure the decoding effect.
In the embodiment, in the motion process of the target device, the target device performs image acquisition on the graphic code on the interactive object preliminarily to obtain a reference graphic code image; adjusting parameters of the target equipment according to the quality of the reference graphic code image; the target equipment after parameter adjustment is used for collecting target graphic code images of graphic codes on the interactive objects, and the parameter of the target equipment can be adjusted for different interactive objects, so that the accuracy of the test is ensured.
In one embodiment, an application environment diagram of a device testing method is provided as shown in FIG. 3. The test equipment comprises an operating device, a control device and an upper computer. The developer submits the new version of the program to a code repository on a remote server. The remote server can send the new version program to the upper computer, and the upper computer can compile the new version program to obtain an executable file to be updated and generate file verification information. The upper computer can communicate with the target equipment through a network, sends the executable file and the file verification information to the target equipment, and sends a starting instruction to the control device. The control means may send control instructions to the manipulation means, which may control the movement of the target device in response to the control instructions. The target equipment can acquire target graphic code images of graphic codes on the switched materials in the moving process, and the target graphic code images are identified to obtain an identification result. The control device can acquire the identification result and forward the identification result to the upper computer. The upper computer can analyze the identification result to obtain a performance test result.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a device testing system for realizing the device testing method. The implementation of the solution provided by the apparatus is similar to the implementation described in the above method, so the specific limitation in the embodiment of one or more device testing systems provided below may refer to the limitation of the device testing method hereinabove, and will not be repeated herein.
In one embodiment, as shown in FIG. 4, there is provided a device testing system 400 comprising: control means 402, manipulating means 404, target devices 406 and computer devices 408; wherein:
control means 402 for determining an interaction object for a plurality of attributes set for a target device 406 to be tested; the interactive object is an object that will interact with the target device 406 during use of the target device 406; the interaction results between the interaction objects with different attributes and the target device 406 are different; when testing the target device 406, switching the interactive objects with various attributes; the manipulating device 404 is configured to control, for each of the switched interactive objects, the target device 406 to move, and control the target device 406 to interact with the interactive object during the movement process of the target device 406, so as to obtain an interaction result; the relative pose of the target device 406 and the interactive object changes during the motion process;
the target device 406 is configured to interact with the interaction object to obtain an interaction result;
computer device 408 is configured to determine a performance test result of target device 406 according to the interaction result of target device 406 for each of the interaction objects switched to.
In one embodiment, the computer device 408 is configured to compile the new version program to obtain an executable file to be updated when the new version program submitted to the code repository is detected; generating a hash value of the executable file to obtain file verification information; the executable file and file verification information are sent to the target device 406.
A target device 406 for verifying the executable file based on the file verification information; in the case of verification passing, the executable file is run to effect interaction with the interactive object.
In one embodiment, the executable file includes a driver for the target device 406; a control device 402, configured to obtain a driver test result obtained by running a driver on a target device 406; in the case where the driver test result characterizes that the driver is normal, a step of determining an interactive object for a plurality of attributes set for the target device 406 to be tested is performed.
In one embodiment, the control device 402 is configured to generate a control instruction for each interactive object switched to; the control instructions are sent to the operator 404.
A manipulating device 404 for controlling the movement of the target equipment 406 in response to the control instruction.
In one embodiment, the interactive objects of the plurality of attributes comprise interactive objects of the plurality of visual attributes; at least one graphic code is arranged on the interactive object; the imaging quality of the images generated after the graphic codes on the interactive objects with different visual attributes are acquired is different; a control device 402, configured to control, during a movement of the target device 406, the target device 406 to collect a target graphic code image of a graphic code on the interactive object; and the target device 406 is used for identifying the target graphic code image to obtain an identification result.
In one embodiment, the target device 406 is moved according to a preset path; the preset path is set based on the position of the graphic code on the interactive object; a control device 402, configured to determine, from a preset path, an image acquisition position corresponding to a position of the graphic code on the interactive object; the image acquisition position is a position for acquiring images of the graphic codes; in the event that the target device 406 moves to the image acquisition position, the target device 406 is triggered to acquire a target graphic code image of the graphic code on the interactive object.
In one embodiment, the target device 406 is configured to perform image acquisition on the graphic code on the interactive object to obtain a reference graphic code image in a movement process of the target device 406; adjusting parameters of the target device 406 according to the quality of the reference graphic code image; after the parameter adjustment is completed, collecting a target graphic code image of the graphic code on the interactive object; the image quality of the target graphic code image is better than the image quality of the reference graphic code image.
Each of the devices in the device testing system described above may be implemented in whole or in part by software, hardware, and combinations thereof. The above devices may be embedded in hardware in the processor in the computer device 408 or may be stored in software in the memory in the computer device 408, so that the processor may invoke and perform the operations corresponding to the above devices.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 5. The computer device includes a processor, a memory, an Input/Output interface (I/O) and a communication interface. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface is connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing executable files and file verification information. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a device testing method.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure of which may be as shown in fig. 6. The computer device includes a processor, a memory, an input/output interface, a communication interface, a display unit, and an input means. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a device testing method. The display unit of the computer device is used for forming a visual picture, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be a key, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structures shown in fig. 5 or 6 are merely block diagrams of portions of structures related to the aspects of the present application and are not intended to limit the computer devices to which the aspects of the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or may have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the method embodiments described above when the computer program is executed.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, implements the steps of the method embodiments described above.
In an embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the steps of the method embodiments described above.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the various embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the various embodiments provided herein may include at least one of relational databases and non-relational databases. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic units, quantum computing-based data processing logic units, etc., without being limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples represent only a few embodiments of the present application, which are described in more detail and are not thereby to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.

Claims (10)

1. A method of device testing, the method comprising:
determining interaction objects of various attributes set for target equipment to be tested; the interactive object is an object which can interact with the target equipment in the using process of the target equipment; the interaction results between the interaction objects with different attributes and the target equipment are different;
Switching the interactive objects with the multiple attributes when testing the target equipment;
controlling the target equipment to move aiming at each switched interaction object, and controlling the target equipment to interact with the interaction objects in the moving process of the target equipment to obtain an interaction result; the relative pose of the target equipment and the interactive object changes in the motion process;
and determining a performance test result of the target equipment according to the interaction result of the target equipment aiming at each switched interaction object.
2. The method of claim 1, further comprising, prior to said determining the interactive object for the plurality of attributes set for the target device to be tested:
under the condition that a new version program submitted to a code warehouse is detected, compiling the new version program to obtain an executable file to be updated;
generating a hash value of the executable file to obtain file verification information;
transmitting the executable file and the file verification information to target equipment so as to instruct the target equipment to verify the executable file based on the file verification information;
And running the executable file through the target equipment to realize interaction with the interaction object under the condition that verification is passed.
3. The method of claim 2, wherein the executable file comprises a driver of the target device; before the determining the interactive object of the multiple attributes set for the target device to be tested, the method further comprises:
obtaining a driver test result obtained by the target device through running the driver;
and under the condition that the driver test result indicates that the driver is normal, executing the step of determining the interactive objects of the multiple attributes set for the target equipment to be tested.
4. The method of claim 1, wherein controlling the target device motion for each interactive object switched to comprises:
generating a control instruction for each interactive object switched to by a control device;
and sending the control instruction to a manipulation device through the control device so as to instruct the manipulation device to control the movement of the target equipment in response to the control instruction.
5. The method of any one of claims 1 to 4, wherein the interactive objects of the plurality of attributes comprise interactive objects of a plurality of visual attributes; at least one graphic code is arranged on the interactive object; the imaging quality of the images generated after the graphic codes on the interactive objects with different visual attributes are acquired is different; and in the motion process of the target equipment, controlling the target equipment to interact with the interaction object, wherein the step of obtaining an interaction result comprises the following steps of:
And in the motion process of the target equipment, controlling the target equipment to acquire a target graphic code image of the graphic code on the interactive object, and identifying the target graphic code image through the target equipment to obtain an identification result.
6. The method of claim 5, wherein the target device is moved according to a preset path; the preset path is set based on the position of the graphic code on the interactive object; and in the motion process of the target device, controlling the target device to acquire a target graphic code image of the graphic code on the interactive object comprises the following steps:
determining an image acquisition position corresponding to the position of the graphic code on the interactive object from the preset path; the image acquisition position is a position for acquiring the image of the graphic code;
and under the condition that the target equipment moves to the image acquisition position, triggering the target equipment to acquire a target graphic code image of the graphic code on the interactive object.
7. The method of claim 5, wherein controlling the target device to capture a target graphic code image of the graphic code on the interactive object during the movement of the target device comprises:
In the motion process of the target equipment, primarily acquiring images of the graphic codes on the interactive object through the target equipment to obtain reference graphic code images;
adjusting parameters of the target equipment according to the quality of the reference graphic code image;
collecting a target graphic code image of the graphic code on the interactive object through the target equipment after the parameter adjustment; the image quality of the target graphic code image is better than the image quality of the reference graphic code image.
8. A device testing system, the system comprising a control device, a manipulation device, a computer device and a target device;
the control device is used for determining interaction objects of various attributes set for target equipment to be tested; the interactive object is an object which can interact with the target equipment in the using process of the target equipment; the interaction results between the interaction objects with different attributes and the target equipment are different; switching the interactive objects with the multiple attributes when testing the target equipment;
the control device is used for controlling the target equipment to move according to each switched interaction object, and controlling the target equipment to interact with the interaction objects in the moving process of the target equipment to obtain an interaction result; the relative pose of the target equipment and the interactive object changes in the motion process;
The target device is used for interacting with the interaction object to obtain an interaction result;
and the computer equipment is used for determining the performance test result of the target equipment according to the interaction result of the target equipment aiming at each switched interaction object.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 7 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.
CN202211580998.8A 2022-12-09 2022-12-09 Device testing method, system, computer device and storage medium Pending CN116127990A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211580998.8A CN116127990A (en) 2022-12-09 2022-12-09 Device testing method, system, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211580998.8A CN116127990A (en) 2022-12-09 2022-12-09 Device testing method, system, computer device and storage medium

Publications (1)

Publication Number Publication Date
CN116127990A true CN116127990A (en) 2023-05-16

Family

ID=86309026

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211580998.8A Pending CN116127990A (en) 2022-12-09 2022-12-09 Device testing method, system, computer device and storage medium

Country Status (1)

Country Link
CN (1) CN116127990A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117047785A (en) * 2023-10-11 2023-11-14 大扬智能科技(北京)有限公司 Robot control method, robot control device, and robot system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117047785A (en) * 2023-10-11 2023-11-14 大扬智能科技(北京)有限公司 Robot control method, robot control device, and robot system
CN117047785B (en) * 2023-10-11 2023-12-19 大扬智能科技(北京)有限公司 Robot control method, robot control device, and robot system

Similar Documents

Publication Publication Date Title
US11080844B2 (en) System and method for testing an electronic device
US20130117738A1 (en) Server Upgrades with Safety Checking and Preview
CN116127990A (en) Device testing method, system, computer device and storage medium
JP6653929B1 (en) Automatic determination processing device, automatic determination processing method, inspection system, program, and recording medium
US20240012966A1 (en) Method and system for providing a three-dimensional computer aided-design (cad) model in a cad environment
US8907945B2 (en) Inferring and maintaining symmetry relationships in a 3-D editor
CN115858049A (en) RPA flow componentization arrangement method, device, equipment and medium
CN114326171B (en) Screen detection method and device
CN115618302A (en) Multi-sensor fusion method and system, electronic equipment and storage medium
US11003346B2 (en) Prototype storing method
CN110147298B (en) Virtual tape library backup system and equipment
CN109324931B (en) Method for realizing vmware mount recovery in data de-duplication system
US11164396B2 (en) Servicing system with snapshot function
CN103295387A (en) Electronic equipment, projection remote controller and realizing method thereof
CN111625233A (en) Configuration method, device and equipment of state diagram and storage medium
JP6634819B2 (en) Information processing system, control method thereof, and program
WO2022181252A1 (en) Joint detection device, training model generation device, joint detection method, training model generation method, and computer-readable recording medium
CN116402090B (en) Processing method, device and equipment of neural network calculation graph
CN106796446B (en) Workspace metadata management
CN114510370A (en) Backup method and device based on panoramic editor, electronic equipment and storage medium
US20220300240A1 (en) Display apparatus, data sharing system, and display control method
WO2023013788A1 (en) Trained model management device and trained model management method
CN114253527A (en) Data processing method based on physical programming and physical programming equipment
CN117389534A (en) Communication file generation method, device, computer equipment and storage medium
CN116932139A (en) Container mirror image detection method, system and computer equipment

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