Skip to content

UART at initialisation send unexpected signalling on TX line #148

Closed
@DaLiV

Description

@DaLiV

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions