Skip to content

Serial Port sending one byte during opening #12

Closed

Description

@expeyes

I tried the serial port on Rpi to run expEYES and everything is working fine. Whenever the '/dev/ttyAMA0' is opened , one byte (value = 0xF8) is send to the connected device. I just added a work around in the expEYES code on the uC. The code used for testing it is attached. The byte send is tracked on the uC end using a debugger.

Ajith
========================== code used =================================

include <fcntl.h>

include <termios.h>

include <stdio.h>

include <stdlib.h>

include <string.h>

include <unistd.h>

int fd;

int main()
{
char ss[10];
char c;

fd = open ("/dev/ttyAMA0", O_RDWR | O_NOCTTY);
if (fd < 0)
{
fprintf(stderr,"ERROR opening AMA0\n");
exit(0);
}
return 0;
}

Activity

  1. nomis commented on Jun 9, 2012

    @nomis
    Contributor

    nomis/linux@d5a48d1 fixes this issue

  2. alepez commented on Jun 13, 2013

    @alepez
  3. 242 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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