user4430: As you know, the Arduino IDE resets the Arduino when the Serial Monitor is opened. I want also my program to do it. But I don't know how.
I examined the source code of the Arduino IDE (Serial.java & SerialMonitor.java), but I can't find where it sends the reset command. Where is it?
I use C# to communicate with serial.

user4430: OK, I have solved this by sending DSR pulse as seen on code below: 
mySerial.DtrEnable = true;
mySerial.Open();
Thread.Sleep(1000);
mySerial.DtrEnable = false;


4430: <p>As you know, the Arduino IDE resets the Arduino when the Serial Monitor is opened. I want also my program to do it. But I don't know how.</p>

<p>I examined the source code of the Arduino IDE (Serial.java &amp; SerialMonitor.java), but I can't find where it sends the reset command. Where is it?</p>

<p>I use C# to communicate with serial.</p>
 4430: <p>OK, I have solved this by sending DSR pulse as seen on code below: </p>

<pre><code>mySerial.DtrEnable = true;
mySerial.Open();
Thread.Sleep(1000);
mySerial.DtrEnable = false;
</code></pre>
