Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

Enabling UART

by illwill on Fri Feb 01, 2013 5:11 pm

using 2012-12-16-wheezy-raspbian.zip
tried following the tutorial from : http://learn.adafruit.com/adafruit-nfc-rfid-on-raspberry-pi/freeing-uart-on-the-pi
and the pi wouldnt boot after i edited cmdline.txt and inittab
had to put sd card in another computer and copy the cmdline.txt back in order for it to boot up again


sudo cp /boot/cmdline.txt /boot/cmdline_backup.txt
sudo nano /boot/cmdline.txt
change:
Code: Select all
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 $

to:
Code: Select all
dwc_otg.lpm_enable=0 console=tty1 $



sudo nano /etc/inittab

change:
Code: Select all
#Spawn a getty on Raspberry Pi serial line
T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100


to (just add # to comment it out):
Code: Select all
#Spawn a getty on Raspberry Pi serial line
#T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100


sudo reboot


Did i miss something?
illwill
 
Posts: 13
Joined: Thu Aug 07, 2008 12:33 pm

Re: Enabling UART

by ktownsend on Sat Feb 02, 2013 4:04 pm

This has only been tested with Occidentalis v0.2 (http://learn.adafruit.com/adafruit-rasp ... s-v0-dot-2) ... there are probably some small differences in the init code or configuration, and I'd really suggest putting Occidentalis on a card and comparing files, etc.
User avatar
ktownsend
 
Posts: 281
Joined: Thu Nov 05, 2009 1:18 am

Re: Enabling UART

by illwill on Sun Feb 03, 2013 3:31 pm

based on a clean 2012-07-15-wheezy-raspbian install but should also work with Adafruit's Occidentalis

Not sure what would have changed from 7-15 to 12-16

What im trying to do is get an ID-20 RFID reader to work with the Pi,
https://www.sparkfun.com/products/8628
and Im guessing the first step is to get the UART working to receive the data from it on pin 10 (rx)

I have read that if i ground pin 7 , the ID-20 will use a serial output compatible with RS232 at 9600 baud
trying to figure out how to get the configure the Pi to work with this, by changing the baud rates and inittab and cmdline files
illwill
 
Posts: 13
Joined: Thu Aug 07, 2008 12:33 pm

Re: Enabling UART

by ktownsend on Mon Feb 04, 2013 5:23 am

You'll really have to get in touch with Sparkfun for support with their products. We don't stock these items and have no experience with them, so it's hard to say where the problem is or could be.
User avatar
ktownsend
 
Posts: 281
Joined: Thu Nov 05, 2009 1:18 am

Re: Enabling UART

by illwill on Mon Feb 04, 2013 9:47 pm

well most of the issue is getting the pi to talk to the rfid reader through uart
i got the pi from you guys and followed your adafruit learning nfc post, so you can at least help up to that point then i can try to figure out the rest
illwill
 
Posts: 13
Joined: Thu Aug 07, 2008 12:33 pm

Re: Enabling UART

by adafruit_support_bill on Tue Feb 05, 2013 5:52 am

got the pi from you guys and followed your adafruit learning nfc post

But you are running a different operating system and using different hardware.
Please refer to the forum rules:
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
User avatar
adafruit_support_bill
 
Posts: 25594
Joined: Sat Feb 07, 2009 9:11 am

Re: Enabling UART

by illwill on Tue Feb 05, 2013 1:27 pm

adafruit_support wrote:But you are running a different operating system and using different hardware.


your tutorial:
The following steps (based on a clean 2012-07-15-wheezy-raspbian install but should also work with Adafruit's Occidentalis) should free UART up for us:


ok lets forget i mentioned the RFID reader , I just want to get the Pi's UART pins working and how to verify they are working from your tutorial
illwill
 
Posts: 13
Joined: Thu Aug 07, 2008 12:33 pm

Re: Enabling UART

by ktownsend on Tue Feb 05, 2013 3:19 pm

You'll really have to install the Adafruit distro that all of our tutorials are based on. Unfortunately, we can't support other distros simply because there are so many variables involved (which is why we roll our own distro in the first place), and things are only tested on Occidentalis.

If you can spend the 30 minutes it takes to install Occidentalis, the tutorial should work as is. I've tested it myself with various boards and both the GPS and NFC breakouts, and it works out of the box with Occidentalis v0.2.

For a stock Debian installation, you might want to have a look at this:

http://www.andremiller.net/content/rasp ... -gpio-uart
or
http://benosteen.wordpress.com/2012/04/ ... onnection/
User avatar
ktownsend
 
Posts: 281
Joined: Thu Nov 05, 2009 1:18 am

Re: Enabling UART

by illwill on Tue Feb 05, 2013 5:32 pm

thanks for response i was able to get the pins working following a different tutorial, working on receiving RFID data now 8)
illwill
 
Posts: 13
Joined: Thu Aug 07, 2008 12:33 pm