# Controlling Digi One SP RTS and DTR lines

**URL:** <https://forums.digi.com/t/controlling-digi-one-sp-rts-and-dtr-lines/6584>\
**Category:** Portserver TS\
**Created:** [October 19, 2008, 6:41pm UTC](https://forums.digi.com/t/controlling-digi-one-sp-rts-and-dtr-lines/6584 "2008-10-19T18:41:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DuaneKaufman](https://avatars.discourse-cdn.com/v4/letter/d/7ba0ec/32.png) [@DuaneKaufman](https://forums.digi.com/u/DuaneKaufman)\
**Post date:** [October 19, 2008, 6:41pm UTC](https://forums.digi.com/t/controlling-digi-one-sp-rts-and-dtr-lines/6584/1 "2008-10-19T18:41:46Z")

</div>

Hi,

I am trying to use a Digi One SP to connect some software that is written to access a serial port to communicate with a Lacrosse 2300 Weather station over Ethernet.

The WeatherStation needs to be initialized to communicate with it, and thus it needs DTR set low, and RTS set high before serial data can be sent.

In C, through a serial port, this is effected with:  
ioctl(ws2300, TIOCMGET, &portstatus); // get current port status  
portstatus &= ~TIOCM\_DTR;  
portstatus |= TIOCM\_RTS;  
ioctl(ws2300, TIOCMSET, &portstatus); // set current port status

How do I configure the Digi (and RealPort, under Linux) to pass these signals?

Thanks,  
Duane (duanek (at) Chorus (dot) net
