Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
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:
 
serialport1.open();
serialport1.EnableDtr=true;
serialport1.close();
 
. 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 1:36am
Comments
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... --SA
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"... --SA

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Shai Vashdi 1,398
1 OriginalGriff 508
2 Manas Bhardwaj 383
3 Damith Weerasinghe 330
4 Tadit Dash 310
0 Sergey Alexandrovich Kryukov 9,575
1 OriginalGriff 6,006
2 Peter Leow 4,500
3 Maciej Los 3,540
4 Abhinav S 3,513


Advertise | Privacy | Mobile
Web01 | 2.8.140415.2 | Last Updated 3 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid