SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 55 | Next

Jan Axelson

"Serial Port Complete: COM Ports, USB Virtual COM Ports, and Ports for Embedded Systems"

The pnpports
example demonstrates a class installer and property page provider for the Ports
class. The devcon example shows how to obtain information about installed
devices and how to perform functions such as enabling, disabling, restarting,
updating drivers for, and removing devices.
COM Ports on PCs
39
  35  
Windows uses several methods to detect COM ports:
For internal Plug-and-Play ports, the serenum.sys driver retrieves a PnP ID from
the port. The PnP ID contains manufacturer and product identifiers and other
optional information. Microsoft??™s Plug and Play External COM Device Specification
defines the protocol for retrieving the PnP ID.
For legacy (non Plug-and-Play) ports, the serial.sys driver reads port settings
from the system registry. The settings are in a COM port subkey under ..\Services\
Serial\Parameters.
For USB virtual COM-port devices, a USB driver requests a series of data structures
called descriptors from the device. The descriptors contain information
that identifies an INF file. The INF file names the device??™s driver, which determines
how application access the device.
For COM ports on serial servers, COM-port redirector software creates and
installs virtual COM ports on the PC.
,.$3 
 
COM-port software can use two Globally Unique Identifiers (GUIDs) to find
and gain access to devices. A GUID is a 16-byte value that can identify devices
that behave in similar ways.


Pages:
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67