controlling the Uart DTR pins on a SB700EX

Discussion to talk about software related topics only.
Post Reply
BillC
Posts: 72
Joined: Tue Oct 13, 2009 6:22 am
Location: Buckinghamshire, UK

controlling the Uart DTR pins on a SB700EX

Post 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
User avatar
lgitlitz
Posts: 331
Joined: Wed Apr 23, 2008 11:43 am
Location: San Diego, CA
Contact:

Re: controlling the Uart DTR pins on a SB700EX

Post 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
BillC
Posts: 72
Joined: Tue Oct 13, 2009 6:22 am
Location: Buckinghamshire, UK

Re: controlling the Uart DTR pins on a SB700EX

Post by BillC »

Thanks Larry, thats exactly what i needed.

regards, Bill
Post Reply