Closed
Description
TX pin must not be touched on serial port opening.
otherwise that lead to broken communication
example oscillogram may be viewed at :
http://www.raspberrypi.org/phpBB3/download/file.php?id=1529
unexpected signal on TX line marked by red circle. and it killed first character.
sample CODE:
include <stdio.h>
include <string.h>
include <unistd.h>
include <fcntl.h>
include <errno.h>
include <termios.h>
int main(int argc, char ** argv) {
int fd;
fd = open("/dev/ttyAMA0", O_RDWR | O_NOCTTY | O_NDELAY);
fcntl(fd, F_SETFL, FNDELAY);
int n = write(fd,"AAA",3);
close(fd);
return 0;
}
Metadata
Metadata
Assignees
Labels
No labels