PORTS Forum

Ports and Interfaces => Serial Ports => Topic started by: chavantushar on November 11, 2011, 10:12:07 am

Title: Make serial port continuously ON-OFF
Post by: chavantushar on November 11, 2011, 10:12:07 am
I want to make serial port continuously ON-OFF using C or C++ or .NET.Can anyone please suggest me code required for it?
Title: Re: Make serial port continuously ON-OFF
Post by: Jan Axelson on November 11, 2011, 10:23:00 am
What do you mean by "continuously ON-OFF"?

Jan
Title: Re: Make serial port continuously ON-OFF
Post by: chavantushar on November 12, 2011, 04:28:01 am
In other words you can say "to get 1 and 0(high and low signals) or getting suare wavw at the output of serial port"
Title: Re: Make serial port continuously ON-OFF
Post by: Guido Koerber on November 12, 2011, 06:00:53 am
You can do that only with the handshake signals, the data signal can not be controlled direct, it is driven by the data shift register.
Title: Re: Make serial port continuously ON-OFF
Post by: chavantushar on November 12, 2011, 09:41:19 am
Sir,can you please explain in detail?
Thx for ur co-operation.
Title: Re: Make serial port continuously ON-OFF
Post by: Jan Axelson on November 12, 2011, 10:37:34 am
In .NET's SerialPort class, see the RtsEnable and DtsEnable properties.

Jan