Go to advanced search

by pinball
Tue Oct 21, 2014 3:24 am
Forum: C/C++
Topic: UART Bug? Can't set baud rate higher than 115200 in C?
Replies: 6
Views: 3176

Re: UART Bug? Can't set baud rate higher than 115200 in C?

Hi Brian, thanks for your help/patience you were 100% right... glad you corrected me on it

Adding the init_uart_clock=16000000 line opened up the higher baud rate, I am now successfully configured @ 500kbps.

Thanks so much!
by pinball
Mon Oct 20, 2014 1:41 am
Forum: C/C++
Topic: UART Bug? Can't set baud rate higher than 115200 in C?
Replies: 6
Views: 3176

Re: UART Bug? Can't set baud rate higher than 115200 in C?

Hi all thanks for the replies Today confirmed the program is happily chatting away with my target device at 115200, so all is right in this corner of the embedded world :) BTW it was a good idea to try to force the baud rate higher external to the program in config.txt, this will be a good work arou...
by pinball
Sun Oct 19, 2014 1:59 am
Forum: C/C++
Topic: UART Bug? Can't set baud rate higher than 115200 in C?
Replies: 6
Views: 3176

UART Bug? Can't set baud rate higher than 115200 in C?

Hi! Quick issue that's been giving me trouble all afternoon... From the tutorial, the baud rate can be configured as: //CONFIGURE THE UART //The flags (defined in /usr/include/termios.h - see http://pubs.opengroup.org/onlinepubs/007908799/xsh/termios.h.html): // Baud rate:- B1200, B2400, B4800, B960...
by pinball
Fri Oct 17, 2014 3:20 pm
Forum: C/C++
Topic: UART receive problem
Replies: 11
Views: 15799

Re: UART receive problem

Hi LiuLuan, I think I have found the answer here: http://stackoverflow.com/questions/17254923/raspberry-pi-uart-program-in-c-using-termios-receives-garbage-rx-and-tx-are-con I had the same problem, TX working ok, RX returning -1 for error, looked everywhere can't find any answer... I see in the SO p...

Go to advanced search