Setting modem properties
-
I am developing an app, which creates a DUN entry programmatically. The issue I am facing is that, how do I set-up the modem properties like baud rate, h/w flow control, etc. for the modem device I have specified for the entry. Also, how do I change the default settings for a modem like init strings, etc.? Thanks, Krishnan
-
I am developing an app, which creates a DUN entry programmatically. The issue I am facing is that, how do I set-up the modem properties like baud rate, h/w flow control, etc. for the modem device I have specified for the entry. Also, how do I change the default settings for a modem like init strings, etc.? Thanks, Krishnan
- Call
GetCommState( handle, &dcb );
to get the existing port settings intoDCB
. 2) Modify theDCb
structure accordingly to set new values. 3) CallSetCommState
to set the new values back to port. rgds...mil10.
- Call
-
- Call
GetCommState( handle, &dcb );
to get the existing port settings intoDCB
. 2) Modify theDCb
structure accordingly to set new values. 3) CallSetCommState
to set the new values back to port. rgds...mil10.
What I need is to set the modem properties for the dial-up connection I create programmatically. The GetCommState fn works if I have handle to the serial port. I just need to set-up the connection so that whenever the user dials the connection, the correct settings are used to connect with the modem.
- Call