-
Notifications
You must be signed in to change notification settings - Fork 33
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
Sending command via Arduino USB port causes reset (DTR) #9
Comments
Sorry for the delay -- been busy doing my real job! Can I get a quick clarification? Does the reset occur on connection or on sending the message? In other words, does it reset when you create the arudino object:
or when you actually send the message? |
Just poked around a bit on this. I'm not sure how you implemented I just added a https://github.com/harmsm/PyCmdMessenger/tree/add-dtr-flag |
Thanks - I'm pretty sure it was on the port open rather than on sending a command.
I'll have a go at fixing this at the weekend as this might even be within the remit of my limited python skill-set! |
Thanks for debug info. I can poke around with it this weekend as well. I don't have any windows boxes, though, so having your work on a windows Best, Mike On Sep 23, 2016 8:30 AM, "bluespider42" notifications@github.com wrote:
|
Just a note that setDTR() is deprecated now. |
Line 155 |
I worked on it this weekend with an arudino. The current version of the add-dtr-flag branch now runs and uses the correct method to set the DTR flag before opening, according the the pyserial API. Unfortunately, this still always resets the arduino when using my linux machine as a host. This may be a linux-specific issue, so it will hopefully work on your windows machine. If it works, please let me know. If it doesn't work, this problem might not be fixable without modding pyserial or switching serial libraries -- both of which are outside of my current bandwidth. Thanks for your interest in the library and help troubleshooting this issue. |
Hello, just tested this and it works fine on a Mega2560 and a FeatherM0 on windows 10 x64. Also spotted a typo in |
This is not much help, but, the pyserial PlatFormSpecific code looks short enough that it might not be too hard. Anyway, just thought I'd throw that ball in the air. I'll code my own serial-lib, because I decided to use my own lang for interfacing with the arduino, so I can't be of help here, sorry. |
Continued from: thijse/Arduino-CmdMessenger#11
I suspect it is due to the DTR line being toggled on opening the connection.
I did try adding in a
self.comm.setDTR(value)
into thearduino.py
of PyCmdMessenger but I think that was only having an affect after the port was opened (and after the reset had occurred).The text was updated successfully, but these errors were encountered: