Take the 2-minute tour ×
Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino. It's 100% free, no registration required.

As you know, Arduino IDE resets Arduino when Serial Monitor is opened.I want also my program to do it. But I don't know how.

I examined the source code of Arduino IDE(Serial.java & SerialMonitor.java) but can't find where it sends reset command. Please help about this issue.

I use C# to communicate with serial.

share|improve this question

1 Answer 1

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;
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.