isuru_dhana
Posts: 10
Joined: Wed May 30, 2018 7:36 am

How to change the baud rate of UART in raspberry pi zero

Wed Jun 13, 2018 6:38 am

Hello ,
I enabled uart port of rpi using the below link and it was working fine in 9600 baud rate.
https://community.particle.io/t/tutoria ... pi-3/30194

I used the below line to initialize the uart port in 9600 baud rate

int fd = serialOpen("/dev/ttyS0",9600);

I am using Uart to get GPS data from the GPS sensor. This is working fine.
I need to increase the baud rate to 921600. I set the baud rate of the GPS to 921600 and I cant figure out a way to increase the baud rate in Raspberry pi end. can you tell me how to increase the baud rate of uart in RPI??

Return to “Beginners”