Enabling UART

Moderators: adafruit_support_bill, adafruit

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/
Locked
illwill
 
Posts: 22
Joined: Thu Aug 07, 2008 1:33 pm

Enabling UART

Post by illwill »

using 2012-12-16-wheezy-raspbian.zip
tried following the tutorial from : http://learn.adafruit.com/adafruit-nfc- ... -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?

User avatar
ktownsend
 
Posts: 1447
Joined: Thu Nov 05, 2009 2:18 am

Re: Enabling UART

Post by ktownsend »

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.

illwill
 
Posts: 22
Joined: Thu Aug 07, 2008 1:33 pm

Re: Enabling UART

Post by illwill »

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

User avatar
ktownsend
 
Posts: 1447
Joined: Thu Nov 05, 2009 2:18 am

Re: Enabling UART

Post by ktownsend »

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.

illwill
 
Posts: 22
Joined: Thu Aug 07, 2008 1:33 pm

Re: Enabling UART

Post by illwill »

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

User avatar
adafruit_support_bill
 
Posts: 88088
Joined: Sat Feb 07, 2009 10:11 am

Re: Enabling UART

Post by adafruit_support_bill »

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/

illwill
 
Posts: 22
Joined: Thu Aug 07, 2008 1:33 pm

Re: Enabling UART

Post by illwill »

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

User avatar
ktownsend
 
Posts: 1447
Joined: Thu Nov 05, 2009 2:18 am

Re: Enabling UART

Post by ktownsend »

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.BANNED.com/2012/04/ ... onnection/

illwill
 
Posts: 22
Joined: Thu Aug 07, 2008 1:33 pm

Re: Enabling UART

Post by illwill »

thanks for response i was able to get the pins working following a different tutorial, working on receiving RFID data now 8)

Locked
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/

Return to “Adafruit Raspberry Pi® accessories”