2

I need to connect raspberry pi 4 to a microprocessor, and I am using uart5 (dtoverlay=uart5 at the end of config.txt). What I need is to change the baudrate to 4800, because this is the baudrate I use in the microprocessor. What is the command I need to use in the Raspberry and how this change could be permanent? Thanks a lot

2

You will be using a software driver or software library to talk to the UART.

When you "open" the UART with that software you will specify the baud rate. The method used depends on the driver/library you choose to use.

3
  • 1
    Thanks for your answer. I have Cutecom installed in the Raspberry. Is that what you mean?
    – jose
    Sep 12 '20 at 12:14
  • 1
    I have never heard of cutecom. If it talks to serial links it will have the ability to set the baud rate.
    – joan
    Sep 12 '20 at 16:24
  • 1
    In cutecom, you can open ttyAMA1, for example, and choose any bps from a list, but I dont think this app changes anything in the usart, just takes and gives data at the choosen speed. Have you heard about minicom? is that one ok. Thanks
    – jose
    Sep 12 '20 at 17:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.