Drivers for Serial Devices

There are two ways in which serial devices can be driven. One is by writing an installable device driver DLL to present high level information from the device to applications. The other is not to write an installable device driver at all, and to require applications which use the device to understand how to interpret data from it.

The reason for this is that serial devices are always accessed through built-in COM ports ("COM1:" through "COM3:", generally). You could implement your serial device driver to present a new device filename to applications, such as "COM4:" or something more specific to the function of the serial device. Internally, your device driver would use the services of a built-in COM port to access your peripheral. Alternately, you could simply let user applications use a built-in COM port to access the peripheral device directly.

The deciding factors between these two strategies are: