Topic: ?How to write to a port (modem)


Author: rechtman@aol.com (Rechtman)
Date: 20 Mar 1995 10:03:59 -0500
Raw View
Hello all, being new to this forum I would like to ask:
I am interested in writing a short code that will dial my pager and then
enter a few digits using a code. I tried using outputb and the like but
with no sucess. My modem is on COM3:. What should I do to write such
outputb()? It just looks as if the port is never even accessed.
void pput( char value )
{

   outportb(port, value);
}

void main(void)
{
 char * atdt = "ATDT\n";
 for (int i=0; i<strlen(atdt); i++) {
  pput( (char)atdt[i] );
  }
 sleep(3);
}


Thanks a lot.
-Yigal
rechtman@aol.com
Yigal Rechtman   email: RECHTMAN@aol.com  fax: +1 212-983-2509
Researching: WYBRANCZYK (Poland), RECHTMAN (Austria/Germany),
MARCUSWEICZ / MARCUS (Lithuania), LEVINSON (Rigga,Russia),
TZIPKOWITZ (Poland), PERSON, SCHAFELL, GOETZ.