"revcom" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Does anyone know if the emulated Palm correctly performs RTS/CTS
handshaking
> on the emulated PC or Mac?

Just recently I wrote a program that uses the serial port to talk to a
proprietary device that
depends upon RTS/CTS handshaking. I used the emulator on my PC, directed
toward a
COM port, to debug the program and it worked just fine. At one point, while
eliminating
a bug possibility, I tried turning the handshaking off. Sure enough, all
communication stopped.
Must work... (It also worked fine when I actually sent it to the device.)

NOTE: To get it to work you may need to make calls to the API as follows in
your AppStart
or similar program location:

 Err err;
 SerSettingsType sst;

 err = SerGetSettings( gSerialRefNum, &sst );
 if(err !=0)
 {
  ErrNonFatalDisplayIf(err !=0, "Error getting serial settings");
  SerClose( gSerialRefNum );
  return err;
 }

 // Turn on CTS handshaking
 sst.flags |= serSettingsFlagCTSAutoM;

 err = SerSetSettings( gSerialRefNum, &sst );
 if(err !=0)
 {
  ErrNonFatalDisplayIf(err !=0, "Error enabling CTS handshake");
  SerClose( gSerialRefNum );
  return err;
 }


Hope this helps,

Noah Young (Metta4)





-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to