Click here to Skip to main content
15,867,686 members
Home / Discussions / C#
   

C#

 
Questionled to rs232 [modified] Pin
_Q12_1-Nov-09 12:35
_Q12_1-Nov-09 12:35 
AnswerRe: led to rs232 Pin
Christian Graus1-Nov-09 12:42
protectorChristian Graus1-Nov-09 12:42 
GeneralRe: led to rs232 Pin
_Q12_1-Nov-09 12:56
_Q12_1-Nov-09 12:56 
GeneralRe: led to rs232 Pin
Christian Graus1-Nov-09 13:02
protectorChristian Graus1-Nov-09 13:02 
GeneralRe: led to rs232 Pin
_Q12_1-Nov-09 13:10
_Q12_1-Nov-09 13:10 
GeneralRe: led to rs232 Pin
Christian Graus1-Nov-09 13:33
protectorChristian Graus1-Nov-09 13:33 
AnswerRe: led to rs232 Pin
Alan N1-Nov-09 13:25
Alan N1-Nov-09 13:25 
AnswerRe: led to rs232 Pin
Luc Pattyn1-Nov-09 13:28
sitebuilderLuc Pattyn1-Nov-09 13:28 
Hi,

you're taking a bad approach here. The data lines (TD and RD) carry a serial data stream, which consists of start bits, data bits, parity bit, and stop bits; and by definition are not constant.

What you want can be achieved by using one of the control lines (that would be DTR or RTS, and it requires a hardware change to your current LED connection).

You can use SerialPort class, open the port, keep Handshake at None, then set DtrEnable or RtsEnable to the desired value. No need to read or write any data though.

BTW: don't forget to include a series resistor, 1K is a good first estimate.

Smile | :)

Luc Pattyn

I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages


GeneralRe: led to rs232 Pin
_Q12_1-Nov-09 13:53
_Q12_1-Nov-09 13:53 
GeneralRe: led to rs232 Pin
Luc Pattyn1-Nov-09 14:15
sitebuilderLuc Pattyn1-Nov-09 14:15 
GeneralRe: led to rs232 Pin
_Q12_1-Nov-09 14:43
_Q12_1-Nov-09 14:43 
GeneralRe: led to rs232 Pin
_Q12_1-Nov-09 16:18
_Q12_1-Nov-09 16:18 
Questionmain form is not activated Pin
Maddie from Dartford1-Nov-09 12:05
Maddie from Dartford1-Nov-09 12:05 
AnswerRe: main form is not activated Pin
Christian Graus1-Nov-09 12:07
protectorChristian Graus1-Nov-09 12:07 
QuestionMaking custom control subscribe to external event ? Need Approach advise... Pin
idan_bismut1-Nov-09 9:30
idan_bismut1-Nov-09 9:30 
AnswerRe: Making custom control subscribe to external event ? Need Approach advise... Pin
Christian Graus1-Nov-09 9:42
protectorChristian Graus1-Nov-09 9:42 
AnswerRe: Making custom control subscribe to external event ? Need Approach advise... Pin
DaveyM691-Nov-09 10:52
professionalDaveyM691-Nov-09 10:52 
Questionhow to create a chart Pin
h.pordel1-Nov-09 9:20
h.pordel1-Nov-09 9:20 
AnswerRe: how to create a chart Pin
Christian Graus1-Nov-09 9:24
protectorChristian Graus1-Nov-09 9:24 
GeneralRe: how to create a chart Pin
h.pordel1-Nov-09 9:39
h.pordel1-Nov-09 9:39 
GeneralRe: how to create a chart Pin
Christian Graus1-Nov-09 9:40
protectorChristian Graus1-Nov-09 9:40 
GeneralRe: how to create a chart Pin
h.pordel1-Nov-09 9:49
h.pordel1-Nov-09 9:49 
GeneralRe: how to create a chart Pin
Christian Graus1-Nov-09 9:51
protectorChristian Graus1-Nov-09 9:51 
GeneralRe: how to create a chart Pin
h.pordel1-Nov-09 9:59
h.pordel1-Nov-09 9:59 
GeneralRe: how to create a chart Pin
Christian Graus1-Nov-09 10:10
protectorChristian Graus1-Nov-09 10:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.