jobin-sun / raspberry-gpio-python

Automatically exported from code.google.com/p/raspberry-gpio-python
MIT License
0 stars 0 forks source link

RPi version 2 detection problems #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. sudo python
2. import RPi.GPIO as GPIO
3. print('RPi.GPIO Version',GPIO.VERSION)
        RPi.GPIO Version , '0.4.1a'
3. print('Board revision -', GPIO.RPI_REVISION)
        Board revision -,1

4. pi@raspberrypi $ uname -a
        Linux raspberrypi 3.2.27+......
5. pi@raspberrypi $ cat /proc/cpuinfo
        Processor:ARMv6-compatible processor rev 7 (v61)
        BogoMIPS:697.95
        Features: swp half thumb fastmult vfp edsp java tls
        CPU implementer: 0x41
        CPU variant:0x0
        CPU part:0xb76
        CPU revision:7

        Hardware:BCM2708
        Revision:0002
        serial:00000000b4a7e62b

What is the expected output? What do you see instead?
not detect the new version 2 
Board revision -,1 ->error
Board revision -,2 ->OK

What version of the product are you using? On what operating system?
Linux raspberrypi 3.2.27

Please provide any additional information below.
my problem is that if I use GPIO.setmode(GPIO.BOARD) GPIO27 pin 13 (V2) does 
not work because it does not detect that I have version 2 is OK if I use 
"GPIO.setmode(GPIO.BCM) GPIO.setup(27, GPIO.OUT)"

thanks

Original issue reported on code.google.com by radio...@gmail.com on 25 Oct 2012 at 4:07

GoogleCodeExporter commented 9 years ago
/proc/cpuinfo is reporting your RPi as a revision 1 board (0002). Do you know 
of anything else that will prove the revision of your board?

Original comment by btcros...@googlemail.com on 28 Oct 2012 at 5:39

GoogleCodeExporter commented 9 years ago
NO, for now no problem.

Original comment by radio...@gmail.com on 28 Oct 2012 at 6:15

GoogleCodeExporter commented 9 years ago
I have reports of this issue being resolved by upgrading your firmware. To do 
this on Raspbian:
sudo apt-get update
sudo apt-get dist-upgrade
sudo reboot

Original comment by btcros...@googlemail.com on 23 Nov 2012 at 10:52

GoogleCodeExporter commented 9 years ago
OK, thanks, now it's all right.

Original comment by radio...@gmail.com on 23 Nov 2012 at 4:02