2222 Boston, MA 02111-1307 USA
2323 */
2424
25+ /*
26+ * For documentation on jssc see http://java-simple-serial-connector.googlecode.com/svn/trunk/additional_content/javadoc/0.8/index.html
27+ */
28+
2529package it .baeyens .arduino .arduino ;
2630
2731import java .util .ArrayList ;
@@ -98,8 +102,10 @@ public static Vector<String> list() {
98102
99103 int stopbits ;
100104 boolean monitor = false ;
101-
102- // whether to pull DTR to GND during reset or not
105+
106+ // initial state of RTS&DTR line(ON/OFF)
107+ // This is needed as Some boards reset when the serial port is opened with
108+ // RTS and DTR low.
103109 boolean dtr = true ;
104110
105111 String PortName ;
@@ -109,9 +115,9 @@ public static Vector<String> list() {
109115 private List <MessageConsumer > fConsumers ;
110116
111117 public Serial (String iname , int irate ) {
112- this (iname , irate , 'N' , 8 , 1.0f , true );
113- }
114-
118+ this (iname , irate , 'N' , 8 , 1.0f , true );
119+ }
120+
115121 public Serial (String iname , int irate , boolean dtr ) {
116122 this (iname , irate , 'N' , 8 , 1.0f , dtr );
117123 }
@@ -244,7 +250,7 @@ public void registerService() {
244250 }
245251
246252 public void reset () {
247- setDTR (false );
253+ setDTR (false );
248254 setRTS (false );
249255
250256 try {
0 commit comments