TH> I am trying to send 'AT' commands to a modem. "fopen" doesn't seem to
TH> work. Can someone post a snippit of code demonstrating how to open a
TH> port to COM3: and sending AT commands to it. A com port library is
TH> fine. I don't have any on file.
Depends on your OS. For example, under Linux, OS/2, and likely Win32, fopen
would work. Under DOS, however, you need to either get a com port library,
learn how to use a FOSSIL, or learn how to deal with the serial port on a low
level (via outportb/inportb).
---
---------------
* Origin: Tanktalus' Tower BBS (1:250/102)
|