Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C# serialport WinForm
i wrote program in C# winform. i want to when operation is successful, LED will be turn on . i know that i must use this code:;
. but before program is running, LED was turned on. i set ReceiveBuffer to low , in Device Maneger.but didn't work and led is turn on.
Posted 3-Dec-12 2:36am
lukeer at 3-Dec-12 8:13am
How about setting serialport1.DtrEnable = false;? That should turn the LED off.
Sergey Alexandrovich Kryukov at 3-Dec-12 14:28pm
It also depends on what pin triggers LED on/off. :-) Could be just data...
lukeer at 4-Dec-12 1:22am
You're absolutly right, I prematurely assumed that it would be attached to the DTR line.
Sergey Alexandrovich Kryukov at 4-Dec-12 11:15am
So, I don't see a big problem. From what I know, many used COM and LPT ports for "poor-man little automation"...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 645
1 Maciej Los 225
2 Abhinav S 171
3 Richard Deeming 160
4 Suvendu Shekhar Giri 159
0 Sergey Alexandrovich Kryukov 9,623
1 OriginalGriff 9,095
2 Peter Leow 5,044
3 Kornfeld Eliyahu Peter 3,373
4 Maciej Los 2,581

Advertise | Privacy | Mobile
Web03 | 2.8.150327.1 | Last Updated 3 Dec 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100