10

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.

asked Oct 23, 2014 at 15:04

1 Answer 1

10

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;
answered Oct 23, 2014 at 15:21
1
  • 3
    FYI: The Leonardo's reset is triggered when the Leonardo's virtual (CDC) serial / COM port is opened at 1200 baud and then closed Commented Oct 24, 2014 at 14:19

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.