Giter Club home page Giter Club logo

Comments (5)

showtimecreator avatar showtimecreator commented on May 29, 2024

I also found this issue in MacOS(x86), set the baud rate 115200, but 9600 in effect.

from serialport-rs.

DanielJoyce avatar DanielJoyce commented on May 29, 2024

If you read the code the baud rate in new is effectively ignored.

from serialport-rs.

sirhcel avatar sirhcel commented on May 29, 2024

If you read the code the baud rate in new is effectively ignored.

Thank you for looking into and confirming it. The baud rate given there should definitely be actually used and I will look into it after Christmas.

from serialport-rs.

sirhcel avatar sirhcel commented on May 29, 2024

I also found this issue in MacOS(x86), set the baud rate 115200, but 9600 in effect.

I tried the code from the description with several different baud rates (19200, 750,000, and 115,200) and could always see the expected data at the expected baud rate on my oscilloscope. Tried this on v4.2.0 and the current head with my example issue-20-baudrate.rs invoked like for example:

$ cargo run --example issue-20-baudrate -- 750000 /dev/tty.usbserial-N

How are you ending up with the baud rate mismatch? Could you provide an example?

If you read the code the baud rate in new is effectively ignored.

My test above showed the baud rate passed to serialport::new on the wire. The code the path

looks good to me at a first glance. Where do you see the baud rate getting ignored?

from serialport-rs.

DanielJoyce avatar DanielJoyce commented on May 29, 2024

This may have been fixed since last I looked. The original ticket is older.

from serialport-rs.

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.