From e449ced3316bd14e4dba8c46f3bdb12548a9bf19 Mon Sep 17 00:00:00 2001 From: Marco Fagiolini Date: Sun, 20 Jan 2019 14:47:45 +0100 Subject: [PATCH] Add a fix for the lack of a direct RTS line control under windows When using the stock USB ACM driver (USBSER.SYS), IOCTLs that set/reset the state of the RTS line are silently ignored. A known workaround is to set the desired RTS state and then set DTR's state. https://answers.microsoft.com/en-us/windows/forum/all/virtual-serial-port-usbsersys-is-not-sending/a086cbf6-2d0a-4c46-88fd-73865bc185f5 --- .../81-rtsdtr-order-windows-acm.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 avrdude-6.3-patches/81-rtsdtr-order-windows-acm.patch diff --git a/avrdude-6.3-patches/81-rtsdtr-order-windows-acm.patch b/avrdude-6.3-patches/81-rtsdtr-order-windows-acm.patch new file mode 100644 index 0000000..90badef --- /dev/null +++ b/avrdude-6.3-patches/81-rtsdtr-order-windows-acm.patch @@ -0,0 +1,16 @@ +--- ser_win32.c.orig 2019-01-18 23:15:50.355141672 +0100 ++++ ser_win32.c 2019-01-18 23:16:00.271207164 +0100 +@@ -328,11 +328,11 @@ + HANDLE hComPort=(HANDLE)fd->pfd; + + if (is_on) { +- EscapeCommFunction(hComPort, SETDTR); + EscapeCommFunction(hComPort, SETRTS); ++ EscapeCommFunction(hComPort, SETDTR); + } else { +- EscapeCommFunction(hComPort, CLRDTR); + EscapeCommFunction(hComPort, CLRRTS); ++ EscapeCommFunction(hComPort, CLRDTR); + } + return 0; + }