Giter Club home page Giter Club logo

Comments (9)

hermanthegerman2 avatar hermanthegerman2 commented on July 22, 2024

Genau aus diesem Grund hab ich mir heute den Raspi 2 bei Pollin bestellt ;-)

from doorpi.

pmunz avatar pmunz commented on July 22, 2024

hihi ich auch :P

from doorpi.

hermanthegerman2 avatar hermanthegerman2 commented on July 22, 2024

Raspberry Pi 2 ist angekommen. Werde DoorPI mal drauf testen ...
@pmunz
ist Deiner auch schon da ?

from doorpi.

motom001 avatar motom001 commented on July 22, 2024

Kannst du bitte eventuell gleich ein paar Screenshots für das Wiki machen?

from doorpi.

pmunz avatar pmunz commented on July 22, 2024

Hallo , nein leider noch nicht , freu mich aber schon . aber denke morgen sollte er kommen :) bin eh krank und kann gerade nicht so .

from doorpi.

hermanthegerman2 avatar hermanthegerman2 commented on July 22, 2024

DoorPI.sh läuft ohne Probleme durch.

Nach Ausführen als App gibt´s Probleme mit Python-RPi.GPIO:

2015-02-04 19:33:38,001 [DEBUG] [main] loaded with arguments: ['/home/DoorPI/doorpi/main.py', '--configfile', '/home/DoorPI/conf/doorpi.cfg']
2015-02-04 19:33:38,002 [DEBUG] [doorpi] run
2015-02-04 19:33:38,003 [DEBUG] [doorpi] prepare
2015-02-04 19:33:38,003 [DEBUG] [doorpi] givven arguments argv: Namespace(configfile=<open file '/home/DoorPI/conf/doorpi.cfg', mode 'r' at 0x1ebd5a0>)
2015-02-04 19:33:38,004 [DEBUG] [conf.config_object] load_config (<open file '/home/DoorPI/conf/doorpi.cfg', mode 'r' at 0x1ebd5a0>)
2015-02-04 19:33:38,005 [DEBUG] [conf.config_object] use configfile: /home/DoorPI/conf/doorpi.cfg
2015-02-04 19:33:38,010 [DEBUG] [conf.config_object] init
2015-02-04 19:33:38,011 [TRACE] [conf.config_object] get_from_config
2015-02-04 19:33:38,014 [TRACE] [conf.config_object] get_string for key typ in section keyboard (default: autodetect) returns gpio
2015-02-04 19:33:38,015 [TRACE] [conf.config_object] get_integer for key bouncetime in section keyboard (default: 5000) returns 5000
2015-02-04 19:33:38,015 [TRACE] [conf.config_object] get_keys for section InputPins
2015-02-04 19:33:38,016 [TRACE] [conf.config_object] get_keys for section OutputPins
2015-02-04 19:33:38,017 [TRACE] [keyboard.KeyboardInterface] load_gpio
2015-02-04 19:33:38,018 [DEBUG] [keyboard.from_gpio] keyboard.from_gpio loaded
2015-02-04 19:33:38,021 [ERROR] [main] Exception NameError: This module can only be run on a Raspberry Pi!
Traceback (most recent call last):
File "/home/DoorPI/doorpi/main.py", line 145, in main_as_application
try: doorpi.DoorPi(parsed_arguments).run()
File "/home/DoorPI/doorpi/doorpi.py", line 188, in run
if not self.__prepared: self.prepare(self.__parsed_arguments)
File "/home/DoorPI/doorpi/doorpi.py", line 105, in prepare
self.__keyboard = load_keyboard()
File "/home/DoorPI/doorpi/keyboard/KeyboardInterface.py", line 35, in load_keyboard
bouncetime = bouncetime
File "/home/DoorPI/doorpi/keyboard/KeyboardInterface.py", line 59, in load_gpio
import keyboard.from_gpio
File "/home/DoorPI/doorpi/keyboard/from_gpio.py", line 8, in
import RPi.GPIO as RPiGPIO # basic for GPIO control

from doorpi.

hermanthegerman2 avatar hermanthegerman2 commented on July 22, 2024

Hab hierzu einen Thread im http://www.forum-raspberrypi.de/Thread-python-python-rpi-gpio-fuer-raspberry-pi-2 geöffnet.

from doorpi.

motom001 avatar motom001 commented on July 22, 2024

Klingt nach dem gleichen Problem wie hier:
http://sourceforge.net/p/raspberry-gpio-python/tickets/84/

Support für Raspberry 2 ist bereits ein Ticket:
http://sourceforge.net/p/raspberry-gpio-python/tickets/95/

Grundsätzlich, sofern sich an der Ansteuerung der GPIO nichts geändert hat, könnte man das Paket hier runterladen:
http://sourceforge.net/projects/raspberry-gpio-python/files/RPi.GPIO-0.5.9.tar.gz/download

Dann entpacken und in der Datei RPi.GPIO-0.5.9\source\cpuinfo.c bearbeiten (Zeile 40)

if (strcmp(hardware, "BCM2708") == 0 || strcmp(hardware, "BCM2835") == 0)

ändern in:

if (strcmp(hardware, "BCM2708") == 0 || strcmp(hardware, "BCM2835") == 0 || strcmp(hardware, "BCM2836") == 0)

Der BCM2836 sollte der Code für die neue CPU sein. Eventuell noch einmal prüfen in der Datei /proc/cpuinfo mittels cat /proc/cpuinfo

Danach das Paket gemäß den Anleitung aus der Install.txt installieren:

If you want to build your own version from this downloaded copy, make
sure that you have the Python development source installed first!

On Raspbian:
$ sudo apt-get install python-dev python3-dev

To install the module:

$ sudo python setup.py install
or
$ sudo python3 setup.py install

Sag Bescheid wenns doch Probleme gibt.

from doorpi.

hermanthegerman2 avatar hermanthegerman2 commented on July 22, 2024

Hut ab motom001,

läuft jetzt. Zur Info cat /proc/cpuinfo:

pi@raspberrypi ~/RPi.GPIO-0.5.9 $ cat /proc/cpuinfo
processor : 0
model name : ARMv7 Processor rev 5 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xc07
CPU revision : 5

processor : 1
model name : ARMv7 Processor rev 5 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xc07
CPU revision : 5

processor : 2
model name : ARMv7 Processor rev 5 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xc07
CPU revision : 5

processor : 3
model name : ARMv7 Processor rev 5 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xc07
CPU revision : 5

Hardware : BCM2709
Revision : a01041
Serial : 0000000066e9c374

from doorpi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.