Hi, I'm trying to interface the pi's to the xbee using uart and api codes. I can send the commands, but when it comes to reading back responses for the analog sampling I ran into a bit of an issue with needing to hit enter to what seems to be the only way to fill the uart buffer. As you can see by m...
Hi, Even after following the steps to free up the UART found here: http://www.irrational.net/2012/04/19/using-the-raspberry-pis-serial-port/ , when I try to run my program I get this error: open_port: Unable to open /dev/ttyAMA0 - : Permission denied Now I know a quick "sudo chmod a+rwx /dev/ttyAMA0...
Yeah got it now. just needed a CMOS NOT Gate in between the two... well NAND with inputs tied but still.
Guess it was dumb to think it would connect so easily, just my first run in with UART worked better without the interfacing chip.
Minicom is just the Linux equivalent of teraterm. Get those 2 talking to verify the link is working fine, then move to programs. -Gordon[/quote] Minicom doesn't seem to work either: it gets a character, just the wrong one. tried different settings on teraterm and minicom with no luck... still not se...
I've been messing around with the teraterm options to match the expected output of the pi. With most options off. But I will have to try minicom tomorrow. Was hoping it would work without it.
So I've been working off some examples on here and was trying to send out a simple repeating line on the uart of the pi. My code so far: #include <stdio.h> #include <string.h> #include <unistd.h> #include <fcntl.h> #include <errno.h> #include <termios.h> int main(int argc, char ** argv) { char buf[2...