Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
, it comes out at 9600 baud. What I wonder is if it's possible to change the baud rate, and is it safe to rely on the fact that it will be 9600 when you just pipe data into it like in the above example?
Howcome it says tha the baud rate is 115200, when it's actually 9600? I know for sure since I have a device connected to that serial port right now that's sending data at 9600 baud, and it's working.
It actually says that baud_base is 115200. I think that's upstream of whatever dividers are set locally, and there are dividers set.
I don't really understand, and how do I configure those?
Anyway, I have another problem: I have a microcontroller project that accepts commands and prints output through the serial port. The problem is that when I run:
Code:
cat /dev/ttyS0
to see the output, it automatically echoes it back to the microcontroller, which interprets it as commands. How do I stop this, and why doesn't it echo when I don't run the above "cat" command?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.