Method and apparatus of virtual COM port
AssigneeENE Technology Inc.
InventorChi-Pei Wang
Life of this patent
Estimating the term…
Abstract
The invention adopts the virtual COM port instead of the traditional real COM port in a PC host for communicating with a micro-controller in target host. In the prior art, we need to communicate and transfer data between a host and the other one using real COM port and execute the program in the micro-controller. But the present invention uses the Virtual COM port in the PC host to replace the real one and connect to the real COM port of micro-controller in the other PC host. Then it achieves the purpose of programming in the same host including PC host and target host simultaneously.
Claims22
An apparatus of virtual COM port, which is connected between a control host and a micro-controller inside, that interface includes a real and a virtual COM port, and the device comprises:
- a COM port receive control flag, which is a bit status for indicating said micro-controller is receiving a set of data;
- a COM port transmit control flag, which is a bit status for indicating said control host receiving a set of data;
- a COM port data buffer, which is a data buffer made by a byte of register for transmitting and receiving a set of data and status information;
- a virtual COM port receive control flag, which is a bit status for indicating said control host receiving a set of data;
- a virtual COM port transmit control flag, which is a bit status for indicating said micro-controller receiving a set of data;
- and
- a virtual COM port data buffer, which is a data buffer made by a byte of register for transmitting and receiving a set of data and status information;
- Wherein, the present invention provides convenient and fast way via said control flag and said data buffer in a real COM port of micro-controller and said virtual COM port of control host to achieve the same purpose of communication between two hosts via traditional real COM port.
A method of virtual COM port, which is a control host transferring data into a micro-controller inside, said method comprising the steps of:
- writing a control host program and signal into a virtual COM port data buffer;
- transferring data and starting the communication between said control host and said micro-controller;
- loading a virtual COM port driver into said control host;
- setting COM port receive control flag to 1;
- setting an interrupt flag of said micro-controller to 1, and accessing said micro-controller;
- reading out register data from a real COM port;
- setting said COM port receive control flag to 0, the original status;
- setting a virtual COM port transmit control flag to 1;
- transferring data into said micro-controller;
- and
- reaching the end of steps.
A method of virtual COM port, which is a micro-controller transferring data into a control host, said method comprising the steps of:
- launching;
- transferring data and starting the communication between said micro-controller and said control host;
- writing a micro-controller program and signal into a COM port data buffer;
- setting virtual COM port receive control flag to 1;
- setting an interrupt flag of said control host to 1, and accessing said control host;
- loading a virtual COM port driver into said control host;
- reading out register data from a virtual COM port;
- setting said virtual COM port receive control flag to 0, the original status;
- setting a real COM port transmit control flag to 1;
- transferring data from said micro-controller into said control host;
- and
- reaching the end of steps.
Dependencies are inferred from the claim text.