-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Serialport communication fails at 250000 baudrate on Raspberry Pi #1362
Comments
Just attempted the same code on Raspbian Stretch lite with the same failure mode of no reply. |
Linux has standard baud rates and custom baud rates. Standard baud rates are handled by serialport and can be seen here. serialport also has code for handling custom baud rates here. 250000 is a custom baud rate and for some reason it doesn't work. I tried out the code in your repo and attempting to set the baud rate to 250000 actually sets it to 38400. I'm not sure if this is a serialport issue, a Raspbian driver issue or something else. Ubuntu 14.04 also has the issue. What does work is if the baud rate is set to a standard baud rate like 230400 which is fairly close to 250000. |
@fivdi thanks for confirming the issue and for more background on where it's handled. I wish I could just set the baudrate to 250000 but I'm stuck working with 3rd party hardware that is set at 250000. @reconbot let me know if there is anything I can do to dig into the code and help with a solution. |
The c++ code needs to use the |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week no further activity occurs. Feel free continue the discussion or ask for a |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week no further activity occurs. Feel free continue the discussion or ask for a |
SerialPort Version: 6
NodeJS Version: 8.7
Operating System and Hardware Platform: Raspbian Jessie Lite on Raspberry pi
Have you checked the right version of the api docs?: Yes
Are you having trouble installing and you checked the Installation Special Cases docs? N/A
Are you using Electron and have you checked the Electron Docs?: N/A
Summary of Problem
Unable to communicate with Arduino at 250000 baudrate. Identical code runs great on 2014 Mac running OSX 10.12
Steps and Code to Reproduce the Issue
I've created a repo for reproducing this bug:
https://github.com/matthova/serialport-6-250000-test
The text was updated successfully, but these errors were encountered: