Closed
Description
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;
}
Metadata
Metadata
Assignees
Labels
No labels