Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for automatically identifying computer port state and starting test program

A technology of port status and testing procedures, which is applied in software testing/debugging, electrical digital data processing, error detection/correction, etc. It can solve problems such as no plug-in equipment, automatic clicking, and personnel fatigue, so as to avoid repeated clicking and guarantee The effect of improving reliability and efficiency

Active Publication Date: 2020-05-22
DONGGUAN HUABEL ELECTRONICS TECH
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] At present, when connecting devices such as mobile phones to the test computer for testing and other operations, it is usually manually judged the connection status of the device and clicks the corresponding button of the test software according to the judgment result of the connection status to perform the corresponding test or write the number. and other operations, but manual work is not conducive to the improvement of efficiency, and it will cause fatigue and misoperation of personnel
In order to solve the above problems, there is a test program that clicks at a fixed time. However, it is so easy to happen that the device is not plugged in, but the program clicks automatically. At this time, the test program will report an error, and a lot of manual participation is still required.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for automatically identifying computer port state and starting test program
  • Method and device for automatically identifying computer port state and starting test program

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] In order to describe the technical content and structural features of the present invention in detail, further description will be given below in conjunction with the implementation and accompanying drawings.

[0025] see figure 1 , the invention discloses a method for automatically identifying the state of a computer port and starting a test program, comprising the following steps:

[0026] a. Send the command to obtain the port connection state to the corresponding processing module and obtain the corresponding return value, wherein, when the port is connected to the device to be tested, the return value is the hardware ID of the device.

[0027] b. Judging whether the port is connected to the device to be tested according to the return value; if the judgment result is that the port is connected to the device to be tested, then perform step c. When judging from the return value that the port is not connected to the device to be tested, it waits for the connection of ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method and device for automatically identifying a computer port state and starting a test program. The method comprises the steps of a, sending a command for acquiring a portconnection state and obtaining a corresponding return value; b, judging whether the port is connected with to-be-tested equipment or not according to the return value, if the judgment result is thatthe port is connected with the to-be-tested equipment, executing the step c; c, analyzing the obtained feature data of the return value, and comparing the feature data with first feature data of hardware ID identified when the equipment is connected for the first time and second feature data of the hardware ID identified when the equipment is connected for the second time, wherein the first feature data and the second feature data are stored in a configuration file; if the feature data of the return value is consistent with the first feature data, executing the step d, and if the feature dataof the return value is consistent with the second feature data, returning to the step a; d, determining the position of a button according to the information, which is stored in the configuration file, of the button of the test program; and e, controlling a mouse to move to the position of the button and click, and returning to the step a after the click is finished.

Description

technical field [0001] The invention relates to the technical field of equipment testing, in particular to a method and a device for automatically identifying the state of a computer port and starting a testing program. Background technique [0002] At present, when connecting devices such as mobile phones to the test computer for testing and other operations, it is usually manually judged the connection status of the device and clicks the corresponding button of the test software according to the judgment result of the connection status to perform the corresponding test or write the number. Waiting for operations, but manual operations are not conducive to the improvement of efficiency, and will cause fatigue and misoperation of personnel. In order to solve the above problems, there is a test program that clicks at a fixed time. However, it is so easy to happen that the device is not inserted, but the program clicks automatically. At this time, the test program will report ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F11/36
CPCG06F11/3688
Inventor 金剑黄中根文韬
Owner DONGGUAN HUABEL ELECTRONICS TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products