Fixing method and device based on virtual serial port COM port

A technology of virtual serial port and fixed method, which is applied in the field of serial port conversion, can solve problems such as COM port number change, achieve the effect of ensuring normal operation, ensuring stable operation, and simplifying installation and debugging work

Inactive Publication Date: 2020-09-11
北京博兴瑞通科技有限公司
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In order to solve the problem of changing the COM port number in various devices that use USB-to-serial port chips for data communication at present, so that the automatic correction of the device COM port after the change does not affect the normal operation of the software, the present invention provides a virtual Fixing method of serial port COM port

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
  • Fixing method and device based on virtual serial port COM port
  • Fixing method and device based on virtual serial port COM port

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0029] This embodiment proposes a method for fixing a COM port based on a virtual serial port.

[0030] The method of this embodiment can automatically detect whether the device has established normal communication with the host computer when the device USB is connected to the system (host computer), and judge whether the device COM port number identified by the system is consistent with the pre-configured port number, If the port number recognized by the system is inconsistent with the pre-configured port number, the port number automatically assigned by the system will be automatically changed to the pre-configured port number.

[0031] Through the above working principle, this embodiment can detect and correct the change of the COM port in time, so as to ensure the normal operation of the control program of the industrial control equipment.

[0032] Specifically, such as figure 1 As shown, the method of the present embodiment includes the following steps:

[0033] 1. When...

Embodiment 2

[0041] This embodiment proposes a fixed device based on a virtual serial port COM port.

[0042] Specific as figure 2 As shown, the fixing device in this embodiment includes: a detection module, a matching module and a correction module.

[0043] in,

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 fixing method and device based on a COM port of a virtual serial port. The method comprises the following steps that 1, detecting whether a specified PID/VID device is connected to a system; 2, comparing the configured COM port parameters of the equipment with the COM port parameters of the equipment distributed by the system when the specified PID/VID equipment is detected to be connected with the system, and executing the step 3 when the parameters are not matched; and 3, modifying the equipment COM port parameters allocated by the system into the configured equipment COM port parameters. According to the method, the change of the COM port can be discovered and corrected in time, and the normal operation of the control program of the industrial control equipmentis ensured.

Description

technical field [0001] The invention relates to the technical field of serial port conversion, in particular to a method and device for fixing a COM port based on a virtual serial port. Background technique [0002] RS232, RS485, and parallel ports are the most widely used in the field of modern industrial control. They have a long history of development and are widely used in many fields. For example, some programming enthusiasts will use serial ports when using programmers. There are also some mechanical control systems and access control systems, which are inseparable from the use of RS232 and RS485 for communication. Traditional motherboards have this interface, but due to the different market positioning of motherboards, many new motherboards do not have serial ports. For example, notebooks rarely have these old-fashioned interfaces. Using the USB interface to replace most of the other communication interfaces makes it difficult for some motherboards to connect to 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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F13/38
CPCG06F13/385G06F2213/0002
Inventor 唐堃杨嘉兴赵福兰李法俊
Owner 北京博兴瑞通科技有限公司
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