Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restart arduino #19

Closed
facetime88 opened this issue Dec 28, 2017 · 4 comments
Closed

Restart arduino #19

facetime88 opened this issue Dec 28, 2017 · 4 comments

Comments

@facetime88
Copy link

When app start running, the app cannot communicate with arduino, cannot send message neither receive any message. But when the app still running and arduino is reset manually, the app start to receiving message.

In arduino IDE, when we start serial monitor, this will restart arduino. But this not happen in this case. How do I restart arduino everytime the app is running?

@facetime88
Copy link
Author

I am using arduino due anyway

@facetime88
Copy link
Author

facetime88 commented Dec 29, 2017

It seems the default value when app running for base.DtrEnable is set to false. I add base.DtrEnable = true; before base.Open(), and everytime app is starting, the arduino will also restarted.

I propose you also add DtrEnable as public property in EnhancedSerialConnection.
Thank you

@SolidSoils
Copy link
Owner

EnhancedSerialConnection is a subclass of SerialPort. Therefore there is no need to add property DtrEnable. You can use it like this:

var connection = new EnhancedSerialConnection("COM3", SerialBaudRate.Bps_57600);
connection.DtrEnable = true;
var session = new ArduinoSession(connection);

@facetime88
Copy link
Author

facetime88 commented Jan 3, 2018

It said 'DtrEnable' is not a member of ISerialConnection.

anyway...Merry Christmas & Happy New Year 2018....!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants