Giter VIP home page Giter VIP logo

Comments (1)

candlerb avatar candlerb commented on July 28, 2024

I found a simple workaround: disable DTR/DSR handshaking in the driver.

diff --git a/osx_pl2303.h b/osx_pl2303.h
index a92d6b2..78f5337 100644
--- a/osx_pl2303.h
+++ b/osx_pl2303.h
@@ -83,7 +83,7 @@
 #define CAN_NOTIFY                             ( PD_RS232_N_MASK )
 #define EXTERNAL_MASK                  ( PD_S_MASK | (PD_RS232_S_MASK & ~PD_RS2
 #define INTERNAL_DELAY                 ( PD_RS232_S_LOOP )
-#define DEFAULT_AUTO                   ( PD_RS232_A_DTR | PD_RS232_A_RFR | PD_RS232_A_CTS | PD_RS232_A_DSR )
+#define DEFAULT_AUTO                   ( PD_RS232_A_RFR | PD_RS232_A_CTS )
 #define DEFAULT_NOTIFY                 0x00
 #define DEFAULT_STATE                  ( PD_S_TX_ENABLE | PD_S_RX_ENABLE | PD_R

In my opinion, using DTR/DSR for handshaking is misguided. This is what RTS and CTS are for. If your incoming buffer fills and you drop DTR, then most modems will drop the call!!

However in any case it seems that it doesn't work properly, because DTR isn't raised in the first place.

from osx-pl2303.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.