Author Topic: Make serial port continuously ON-OFF  (Read 22878 times)

chavantushar

  • Member
  • ***
  • Posts: 12
Make serial port continuously ON-OFF
« 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?

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: Make serial port continuously ON-OFF
« Reply #1 on: November 11, 2011, 10:23:00 am »
What do you mean by "continuously ON-OFF"?

Jan

chavantushar

  • Member
  • ***
  • Posts: 12
Re: Make serial port continuously ON-OFF
« Reply #2 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"

Guido Koerber

  • Frequent Contributor
  • ****
  • Posts: 72
Re: Make serial port continuously ON-OFF
« Reply #3 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.

chavantushar

  • Member
  • ***
  • Posts: 12
Re: Make serial port continuously ON-OFF
« Reply #4 on: November 12, 2011, 09:41:19 am »
Sir,can you please explain in detail?
Thx for ur co-operation.

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: Make serial port continuously ON-OFF
« Reply #5 on: November 12, 2011, 10:37:34 am »
In .NET's SerialPort class, see the RtsEnable and DtsEnable properties.

Jan