Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Problem in configuring Serial terminal


    I am using linux centos and I am using termios.h to configure the serial terminal. I fixed the baudrate as 500000bps to communicate with the target by fixing the values as

    options.c_cflag = 18b5
    options.ispeed = 1005
    options.ospeed = 1005

    But the communication is not happening. But its working fine with the baudrate 230400bps. for that the configuration is 18b3 1003 and 1003 respectively...

  2. #2
    I think you should make settings by using a combination of flags provided in the include directory (like options.c_cflag = B500000 | CRTSCTS | CS8 | CLOCAL | CREAD).

    The options.ispeed and ospeed should be equal to 10005. You can check that by exploring the bits/termios.h file in the include directory.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts