Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8026

Compute Module • Re: Need help, ttyAMA0 does not work?

$
0
0
UARTs only work when both ends agree on the clock speed/baud rate, and there's no way of communicating that over the UART until that speed is correct - you have to fix it by other means, e.g. by putting it in the datasheet and expecting people to read and heed it.

According to the datasheet, the required baud rate for the module depends on the values of two configuration pins, and will be one of 4800, 9600, 38400 or 57600. Using commands such as "sudo stty -F /dev/ttyAMA0 9600", try all four speeds until you find one that works.

Also, remember that the naming conventions are such that you wire the TX of the device to the RX of the host, and vice-versa.

Statistics: Posted by PhilE — Tue Oct 15, 2024 8:59 am



Viewing all articles
Browse latest Browse all 8026

Trending Articles