Programming Questions: DOS/Windows External Devices

  • Thread starter Thread starter FulhamFan3
  • Start date Start date
  • Tags Tags
    Programming
Click For Summary
SUMMARY

This discussion focuses on how applications in DOS and Windows access external devices such as printers and modems. It establishes that communication occurs through device drivers, which are specialized software components that facilitate interaction between the application and hardware. The drivers operate by reading and writing to specific hardware addresses, which correspond to various chips within the computer that handle different types of communication, including serial, parallel, and USB. Understanding this process is crucial for anyone developing applications that require hardware interaction.

PREREQUISITES
  • Understanding of device drivers and their role in hardware communication
  • Familiarity with hardware addressing and communication protocols
  • Basic knowledge of DOS and Windows operating systems
  • Concept of serial, parallel, and USB communication methods
NEXT STEPS
  • Research how to develop and implement device drivers in Windows
  • Learn about hardware addressing and memory mapping in DOS
  • Explore serial and parallel communication protocols
  • Investigate USB communication standards and programming
USEFUL FOR

This discussion is beneficial for beginner programmers, software developers working with hardware interfaces, and anyone interested in understanding the interaction between applications and external devices in DOS and Windows environments.

FulhamFan3
Messages
134
Reaction score
0
I'm taking my first programming class and I have some questions. How does your program access external devices like a printer or modem? I know in linux everything has a corresponding file but I have no idea how it works in dos/windows.
 
Computer science news on Phys.org
In general, your application program communicates with a driver, which is a piece of software that knows how to talk directly to the hardware. The driver generally communicates with hardware by reading and writing to various addresses. These addresses are not associated with memory, but instead with some of the various chips inside the computer. Some of the chips do serial communication; others do parallel, others do USB, and so on. When you read and write to those addresses, you are moving data between the processor and those chips, which then communicate with the printer or modem.

- Warren
 

Similar threads

Replies
4
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 51 ·
2
Replies
51
Views
7K
  • · Replies 31 ·
2
Replies
31
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 19 ·
Replies
19
Views
4K
  • · Replies 1 ·
Replies
1
Views
6K