jrsimeon
Posts: 9
Joined: Mon Jun 10, 2013 6:00 am

unable to read serial data from BCM 2835, GPIO14,15

Fri Jun 14, 2013 6:06 am

Hi,,

OS : Debian 6
1)

I follow instructions in below Url to read data from BCM 2835, GPIO14,15

https://sites.google.com/site/semillero ... rials/gpio

but unable to read the data from the BCM 2835, GPIO14,15 Serial port pins.

Used Code:
import serial
ser = serial.Serial("/dev/ttyAMA0")
ser.write("UART the Font")
read = ser.read()
print read
ser.close()

2) Unable to Install supporting software....

cmd: apt-get install minicom

Error:
The following packages have unmet dependencies:
gnome-rdp : Depends: libglade2.0-cil (>= 2.12.9) but it is not going to be installed
Depends: libmono-corlib2.0-cil (>= 1.2.2.1) but it is not going to be installed
Depends: libmono-posix2.0-cil (>= 2.4) but it is not going to be installed
Depends: libmono-sqlite2.0-cil (>= 1.2.6) but it is not going to be installed
Depends: libmono-system-data2.0-cil (>= 1.2.6) but it is not going to be installed
Depends: libmono-system2.0-cil (>= 2.4.3) but it is not going to be installed
Depends: libvte0.16-cil (>= 2.26.0) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).


Kindly advise us to solve these issues...
Last edited by jrsimeon on Fri Jun 14, 2013 7:32 am, edited 1 time in total.

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5645
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: unable to read serial data from BCM 2835, GPIO14,15

Fri Jun 14, 2013 7:30 am

W.r.t. issue 2): What O.S. (name, version) are you using? Did you perform a "sudo apt-get update" (and, possibly, "sudo apt-get upgrade") before trying to install? It's possible that your "package-list" is out of date and thus you're trying to install (out of date) versions that are no longer available.
Trev.
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

jrsimeon
Posts: 9
Joined: Mon Jun 10, 2013 6:00 am

Re: unable to read serial data from BCM 2835, GPIO14,15

Fri Jun 14, 2013 7:35 am

Thanks...
we are using Debian 6... Even though update & upgrade command are executed.. the same error comes..

jrsimeon
Posts: 9
Joined: Mon Jun 10, 2013 6:00 am

Re: unable to read serial data from BCM 2835, GPIO14,15

Fri Jun 14, 2013 7:36 am

FTrevorGowen wrote:W.r.t. issue 2): What O.S. (name, version) are you using? Did you perform a "sudo apt-get update" (and, possibly, "sudo apt-get upgrade") before trying to install? It's possible that your "package-list" is out of date and thus you're trying to install (out of date) versions that are no longer available.
Trev.
Thanks...
we are using Debian 6... Even though update & upgrade command are executed.. the same error comes..

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5645
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: unable to read serial data from BCM 2835, GPIO14,15

Fri Jun 14, 2013 8:27 pm

jrsimeon wrote:
FTrevorGowen wrote:W.r.t. issue 2): What O.S. (name, version) are you using? Did you perform a "sudo apt-get update" (and, possibly, "sudo apt-get upgrade") before trying to install? It's possible that your "package-list" is out of date and thus you're trying to install (out of date) versions that are no longer available.
Trev.
Thanks...
we are using Debian 6... Even though update & upgrade command are executed.. the same error comes..
Sorry, I've just spotted that you said that in your O.P. (Obviously I wasn't "quite with it" this morning :) ). Is that equivalent to "soft-float" "Wheezy-armel" (as found at http://www.raspberrypi.org/downloads) or an earlier version, or "something completely different"? "minicom" is definitely available for "Raspbian" (I've just checked via "synaptic's" search option). Unfortunately I've only performed basic checks of a USB-serial cable/adapter with "GtkTerm" a while ago and haven't needed or tried minicom.
Trev.
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

User avatar
rpdom
Posts: 17275
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: unable to read serial data from BCM 2835, GPIO14,15

Fri Jun 14, 2013 8:57 pm

FTrevorGowen wrote:
jrsimeon wrote:[we are using Debian 6
Is that equivalent to "soft-float" "Wheezy-armel" (as found at http://www.raspberrypi.org/downloads) or an earlier version, or "something completely different"? "minicom" is definitely available for "Raspbian" (I've just checked via "synaptic's" search option). Unfortunately I've only performed basic checks of a USB-serial cable/adapter with "GtkTerm" a while ago and haven't needed or tried minicom.
Trev.
Debian 6 is Squeeze. Debian 7 is Wheezy. Minicom is available for both.

I would like to see the contents of the OP's /etc/apt/sources.list and the output from (as you suggested) "sudo apt-get update" and "sudo apt-get upgrade".

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5645
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: unable to read serial data from BCM 2835, GPIO14,15

Fri Jun 14, 2013 9:24 pm

rpdom wrote: ...
Debian 6 is Squeeze. Debian 7 is Wheezy. Minicom is available for both.
...
Thanks for that. Historically I originally went the Red Hat --- Fedora route on my (often dual-booted) "big-boxes, migrating to Ubuntu (esp. on my netbook). Although I did install Debian (Lenny?) on a NSLU2 (Slug) I've not kept track of the "distro. names".
Trev.
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

Return to “Interfacing (DSI, CSI, I2C, etc.)”