Page 1 of 1

controlling the Uart DTR pins on a SB700EX

Posted: Wed Feb 22, 2012 2:53 pm
by BillC
Hi, I am updating an old project that was on a SB70 to now run on a SB700EX, I need to switch the DTR pins on both Uarts off/on at certain times without using these signals for flow control.

I originally asked on the forum how to do this for the SB70 and received good answers, it seems that approach dosent apply with the SB70, can anyone let me know how to do this on an SB700EX.

Thanks in adavance, Bill

Re: controlling the Uart DTR pins on a SB700EX

Posted: Wed Feb 22, 2012 4:46 pm
by lgitlitz
Hi,
Look at the header file for serial:
C:\nburn\include\serial.h

This contains functions for reading or setting on the various "extra" pins of the DB9:
BOOL GetCD( int port );
BOOL GetRI( int port );
BOOL GetDSR( int port );
void SetDTR( int port, BOOL val );

-Larry

Re: controlling the Uart DTR pins on a SB700EX

Posted: Wed Feb 22, 2012 5:20 pm
by BillC
Thanks Larry, thats exactly what i needed.

regards, Bill