Method for testing serial port possessing multiple executing functions

A serial port and test method technology, applied in the direction of error detection/correction, instrumentation, electrical digital data processing, etc., can solve the problems of test pressure reduction, low efficiency, unfavorable serial port test, etc., to achieve test pressure increase, improve Efficiency and Possibility Reduction Effects

Inactive Publication Date: 2009-07-01
INVENTEC CORP
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This single-threaded test method is not only inefficient, but also for multi-tasking systems such as Windows 2000, if the current test thread exits the processor after the test is completed, before the next thread enters the processor and occupies the port for testing, serial The port will be idle, which reduces the test pressure accordingly, which is not conducive to large-scale serial port testing

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 for testing serial port possessing multiple executing functions
  • Method for testing serial port possessing multiple executing functions
  • Method for testing serial port possessing multiple executing functions

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] Process flow of the present invention is described below in conjunction with accompanying drawing:

[0041] figure 1 It is a test logic schematic diagram of the serial port multi-thread test method of the present invention, and its description is as follows:

[0042] First, the threads 10, 20, and M to be tested are divided into multiple thread segments (10a, 10b, ... 10n), (20a, 20b, ... 20n), (Ma, Mb, . .....Mn), then from multiple threads (10a, 10b, 1oc, 10d...10n), (20a, 20b,...20n), (Ma, Mb, . ...Mn) select a current test thread 10 with critical section access authority; then execute the current thread segment 10a of the current test thread 10 in the critical section 30; finally release the occupation of the critical section 30.

[0043] The so-called critical section refers to a piece of code. The operating system implements the critical section by using a specific structure and corresponding algorithm to provide protection for a special piece of code or a synch...

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 relates to a multi-thread testing method for serial ports, which is used to perform multi-thread testing on serial ports. Through the multi-thread and slicing mechanism, the pressure on the serial port during the test process is increased, and the test efficiency is improved. , the present invention includes the following steps: executing multiple test threads, dividing each test thread into multiple thread segments, and selecting a current test thread with critical section access authority from the multiple test threads, Execute the test of the current thread fragment of the current thread in the critical section, exit the critical section, and other untested threads continue to compete according to the mutual exclusion rules of the critical section.

Description

technical field [0001] The invention relates to a method for testing a serial port, in particular to a method for testing a serial port by using multiple threads. Background technique [0002] As computers are used more and more widely, the requirements for detecting various hardware devices of computers are also getting higher and higher. As an indispensable I / O (input / output) port in PC, serial port (COM PORT) is responsible for the important task of communicating with peripherals or other PCs. Due to the limitation of the characteristics of the serial port itself, in the process of data transmission, each data frame must be continuously transmitted bit by bit, without interruption in the middle; and the status of the serial port at each moment (such as pin status, and baud Rate, frame format (Frame Format), etc.) can only be unique, if multiple threads (Multi Thread) access the serial port at the same time, unpredictable consequences will occur. [0003] Therefore, the ...

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/00
Inventor 刘文涵宋建福孟祥滨
Owner INVENTEC CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products