22
22
Boston, MA 02111-1307 USA
23
23
*/
24
24
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
+
25
29
package it .baeyens .arduino .arduino ;
26
30
27
31
import java .util .ArrayList ;
@@ -98,8 +102,10 @@ public static Vector<String> list() {
98
102
99
103
int stopbits ;
100
104
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.
103
109
boolean dtr = true ;
104
110
105
111
String PortName ;
@@ -109,9 +115,9 @@ public static Vector<String> list() {
109
115
private List <MessageConsumer > fConsumers ;
110
116
111
117
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
+
115
121
public Serial (String iname , int irate , boolean dtr ) {
116
122
this (iname , irate , 'N' , 8 , 1.0f , dtr );
117
123
}
@@ -244,7 +250,7 @@ public void registerService() {
244
250
}
245
251
246
252
public void reset () {
247
- setDTR (false );
253
+ setDTR (false );
248
254
setRTS (false );
249
255
250
256
try {
0 commit comments