Giter Site home page Giter Site logo

Opposite DTR and RTS state. about comtool HOT 4 CLOSED

neutree avatar neutree commented on August 10, 2024
Opposite DTR and RTS state.

from comtool.

Comments (4)

Neutree avatar Neutree commented on August 10, 2024

maybe setDTR means set DTR to low level output or not
so setDTR(True) makes low level output
setDTR(False) makes high level output

doc here

from comtool.

dequn avatar dequn commented on August 10, 2024

Hello, I looked up some basic knowledge about serial communication, mostly is about RS-232 standard. DTE(Date Terminal Equipment, our computer reference) asserts DTR (Data Terminal Read) when it is ready to receive data, so RTS(Request to send) also. When these two box checked, it stand for we can receive data, but if has been set the opposite value background, We can't read data from serial conn anymore. I think we don't need think about the high/low level, just send a logic value and pySerial do it for us.

Actually, I tried to jump into pySerial source code, but as the first time to do hardware work, it's a little hard for me to understand absolutely. Hope for your explanation, Thank you!

RS-232

from comtool.

Neutree avatar Neutree commented on August 10, 2024

that's right, these two checkbox of this software(comtool) means set DTR/RTS to high level or not, but not set to valid or not.
And i didnt consider hadware flowcontrol in my early work, I can change the meaning of DTR/RTS checkbox to the same as pyserial do later.

from comtool.

Neutree avatar Neutree commented on August 10, 2024

I added hardware flow control, and it controlled by pyserial

and when you want to control it by hand, the RTS DTR item now turn on means enable, not mean pin level anymore

from comtool.

Related Issues (20)

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.