Comments (5)
I also found this issue in MacOS(x86), set the baud rate 115200, but 9600 in effect.
from serialport-rs.
If you read the code the baud rate in new is effectively ignored.
from serialport-rs.
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.
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
- From
serialport::new
- Over
SerialPortBuilder
- Via
SerialPortBuilder::open()
- To
TTYPort
- And finally applied via
termios::set_termios
looks good to me at a first glance. Where do you see the baud rate getting ignored?
from serialport-rs.
This may have been fixed since last I looked. The original ticket is older.
from serialport-rs.
Related Issues (20)
- Missing serial_number HOT 4
- Encountered a problem during the process of making this library into a Flutter plugin HOT 8
- Bootstrap (or resurrect) a cross-platform port-to-port serial transmit/receive test application HOT 4
- UsbPorts are detected as PciPorts on Raspberry Pi 4b HOT 9
- 'list_ports.rs' example doesn't work HOT 2
- separate read and write timeout settings
- On the USB device running Windows, the product name of the non-UTF-8 device is garbled HOT 4
- BufRead::read_line() doesn't work when timeout is set to 0 HOT 2
- Enumate the serialport not correct in raspberry CM4 HOT 7
- New release? HOT 2
- Re-activate more build targets for CI jobs HOT 1
- bufReader read_until not handled correctly on Windows HOT 6
- Missing COM ports in Windows HOT 1
- What is the correct way to make sure a pipe isn't broken?
- Dead links in platforms.md HOT 3
- After dropping lock serialport is still locked HOT 5
- New release? HOT 8
- Hardware flow control permanently asserts RTS HOT 2
- how to open a COM port with serialport::new in Windows HOT 1
- Read not reading all the data off a TTY port HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serialport-rs.