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

Manual control DTR or CDC or RTS #384

Closed
voodootikigod opened this issue Sep 22, 2014 · 13 comments

Comments

@voodootikigod
Copy link
Collaborator

commented Sep 22, 2014

Ability to control higher level flow controls independently and programmatically.

@kflu

This comment has been minimized.

Copy link

commented Sep 25, 2014

Is there an ETA on this? I saw a couple of people requesting this to be implemented. I'm also depending on setRTS high/low to wake up my serial port device.

Is it possible to borrow implementation from PySerial? It has these three methods:

setBreak(level=True)
Parameters: level – when true activate BREAK condition, else disable.
Set break: Controls TXD. When active, no transmitting is possible.

setRTS(level=True)
Parameters: level – Set control line to logic level.
Set RTS line to specified logic level.

setDTR(level=True)
Parameters: level – Set control line to logic level.
Set DTR line to specified logic level.
@NPellet

This comment has been minimized.

Copy link

commented Feb 6, 2015

Any news on the DTR and RTS ? I need them to control some specific instruments in my lab...

@jacobrosenthal

This comment has been minimized.

Copy link
Collaborator

commented Mar 2, 2015

Unix DTR and RTS landed in 1.5. Though my example was crappy.

I JUST fixed it up a bit and added Windows bindings tonight:
#470

@bcomnes

This comment has been minimized.

Copy link

commented Mar 2, 2015

🍻 Thanks @jacobrosenthal!

@Zysen

This comment has been minimized.

Copy link

commented Mar 9, 2015

@jacobrosenthal Thank you, very much.

@bhaveshgohel

This comment has been minimized.

Copy link

commented Mar 26, 2015

@jacobrosenthal Thanks.... 😃

@lynchmaniac

This comment has been minimized.

Copy link

commented Jul 9, 2016

Hi,
Thanks for this great library.
The doc say :"
.set (options, callback)
Sets flags on an open port. Uses SetCommMask for windows and ioctl for mac and linux.

options (optional)

All options are operating system default when the port is opened. Every flag is set on each call to the provided or default values. If options isn't provided default options will be used.

brk optional boolean, defaults to false
cts optional boolean, defaults to false
dsr optional boolean, defaults to false
dtr optional boolean, defaults to true
rts optional boolean, defaults to true"

Is it possible to provide some example on Windows to use this method. I don't understand what you mean by "use SetCommMask" ?

Sorry if it's the wrong place to ask this.

@reconbot

This comment has been minimized.

Copy link
Member

commented Jul 9, 2016

See #866 for an example on how to use set. I'd open a new issue if you still have issues. setCommMask is the c++ function used under the hood. The docs say uses setCommMask not use setCommMask.

@lynchmaniac

This comment has been minimized.

Copy link

commented Jul 10, 2016

Thanks for your answer.
i do
myPort.set({"dtr": false}, callback);
the code don't make error but i still have a reset on my Arduino Uno when i write into the serialPort.

I'll do a workaround by write in python with the librarry serial :-( without serialport.

@NPellet

This comment has been minimized.

Copy link

commented Jul 10, 2016

This has nothing to do with the serial communication:

http://playground.arduino.cc/Main/DisablingAutoResetOnSerialConnection

It's by design.

2016-07-10 9:54 GMT+02:00 lynchmaniac notifications@github.com:

Thanks for your answer.
i do
myPort.set({"dtr": false}, callback);
the code don't make error but i still have a reset on my Arduino Uno when
i write into the serialPort.

I'll do a workaround by write in python with the librarry serial :-(
without serialport.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#384 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ABal2wvw08SBWA3scwBzSOiNuyXVBTW0ks5qUKU2gaJpZM4ClMZ-
.

@lynchmaniac

This comment has been minimized.

Copy link

commented Jul 10, 2016

Yes i know this workaround. But in python it's possible to disable dtr, it's not for production, just for test.
For production the solution in the link you send is the good way.
So in production, i think i'll put a 10μF capacitor between the RESET and GND lines, remove my python script and then use serialport ;-)
thanks for all this answer.

@reconbot

This comment has been minimized.

Copy link
Member

commented Jul 10, 2016

Please open a new issue for this and share the code you wrote. I think
"disabling dtr on open" is something we can and should support.

On Sun, Jul 10, 2016, 4:52 AM lynchmaniac notifications@github.com wrote:

Yes i know this workaround. But in python it's possible to disable dtr,
it's not for production, just for test.
For production the solution in the link you send is the good way.
So in production, i think i'll put a 10μF capacitor between the RESET and
GND lines, remove my python script and then use serialport ;-)
thanks for all this answer.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#384 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AABlbm6WsadiU-rCxVRWCMEKy36ytGAwks5qULLkgaJpZM4ClMZ-
.

@lynchmaniac

This comment has been minimized.

Copy link

commented Jul 10, 2016

New issue done. #867

@lock lock bot locked as resolved and limited conversation to collaborators May 6, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
9 participants
You can’t perform that action at this time.