Hi,recently i'm working on a project that requires to disable reset on serial connection. I've done some googling and have had a basic understanding of this issue. I understand that the arduino board is reset by the DTR signal(send by pc),and I wish to disable it. I tried the methods of manipulation termios ,but it was of no use. since the board is reset when open() is called,and only after that can i get a filedescriper to work with various settings. Is there a way to disable DTR before opening a port? It seems under Windows this is possible because the COMs are always there, but in linux or Mac,the port appears only after the board is plugged. Does anybody know how to fix this? Thanks in advance
1 Like
What software are you using on your PC?
I've never tried it but in Python PySerial has an option "dsrdtr – Enable hardware (DSR/DTR) flow control". However the default setting is FALSE and it still causes the Arduino to reset.
I have made a stripboard 328 which I (occasionally) connect to with an FTDI cable. I made two connectors on the stripboard - one without a DTR connection for when I want to connect without causing a reset.
There are hardware work-arounds for the autoreset.
...R
The hardware way is a 120 Ohm resistor from Reset to +5V or a 1 to 10 uF capacitor from Reset (+) to Ground (-).