Go to advanced search

by MeiOokami
Mon Mar 25, 2013 3:54 pm
Forum: C/C++
Topic: UART Recive Buffer?
Replies: 0
Views: 828

UART Recive Buffer?

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...
by MeiOokami
Sat Mar 16, 2013 12:48 am
Forum: C/C++
Topic: UART Issues
Replies: 15
Views: 2961

Re: UART Issues

Ah, Yup that worked well. even solved a segmentation fault.

Thanks for the help.
by MeiOokami
Thu Mar 14, 2013 6:30 pm
Forum: C/C++
Topic: UART Issues
Replies: 15
Views: 2961

well I did say "issues" in the title...

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...
by MeiOokami
Tue Mar 12, 2013 1:02 am
Forum: C/C++
Topic: UART Issues
Replies: 15
Views: 2961

Re: UART Issues

Yeah I was lucky I did not damage my UART RX pin :oops: . Well it works between minicom and teraterm so looks like it's alive still.

Now just to get the read function to read when I want it to.
by MeiOokami
Thu Mar 07, 2013 8:16 am
Forum: C/C++
Topic: UART Issues
Replies: 15
Views: 2961

Re: UART Issues

Ah good point. Even if the output is 0 to 3.3v from the nand... Well at least I know it works, and will aquire the proper chip soon.
by MeiOokami
Thu Mar 07, 2013 4:23 am
Forum: C/C++
Topic: UART Issues
Replies: 15
Views: 2961

Re: UART Issues

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.

Thanks for the support anyways.
by MeiOokami
Thu Mar 07, 2013 1:52 am
Forum: C/C++
Topic: UART Issues
Replies: 15
Views: 2961

Re: UART Issues

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...
by MeiOokami
Wed Mar 06, 2013 1:04 am
Forum: C/C++
Topic: UART Issues
Replies: 15
Views: 2961

Re: UART Issues

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.
by MeiOokami
Tue Mar 05, 2013 9:12 pm
Forum: C/C++
Topic: UART Issues
Replies: 15
Views: 2961

UART Issues

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...

Go to advanced search