Raspberry PI GPIO Binding

1,002 views
Skip to first unread message

Carlos Cesario

unread,
Feb 25, 2015, 11:26:02 AM2/25/15
to ope...@googlegroups.com
Hello, 

According this documentation https://github.com/openhab/openhab/wiki/GPIO-Binding, I tried configure a GPIO bind on Raspberry Pi system, but without success.

It is follow my configs

#openhab.cfg

gpio:sysfs=/sys


#demo.items
Switch Light_C_Washing_Ceiling "Washing" (gC, Lights) { gpio="pin:25" }

# java args runing as root user

-Djna.boot.library.path=/usr/lib/jni


root      5823  9.8 48.3 231272 113464 ?       Sl   12:22   5:39 /usr/bin/java -Djna.boot.library.path=/usr/lib/jni -Dgnu.io.rxtx.SerialPorts=/dev/ttyAMA0 -Dosgi.clean=true -Declipse.ignoreApp=true -Dosgi.noShutdown=true -Djetty.port=81 -Djetty.port.ssl=8443 -Djetty.home=. -Dlogback.configurationFile=configurations/logback.xml -Dfelix.fileinstall.dir=addons -Djava.library.path=lib -Djava.security.auth.login.config=./etc/login.conf -Dorg.quartz.properties=./etc/quartz.properties -Dequinox.ds.block_timeout=240000 -Dequinox.scr.waitTimeOnBlock=60000 -Dfelix.fileinstall.active.level=4 -Djava.awt.headless=true -jar /opt/openhab/server/plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar start -console

# jna package installed

ii  libjna-java                      3.2.7-4               armhf                 Dynamic access of native libraries from Java without JNI


# no GPIO exported 

$ gpio exports


Openhab version:

distribution-1.6.2-runtime.zip

gpio addon : /opt/openhab/addons/org.openhab.binding.gpio-1.6.2.jar


Does someone have any idea about this problem ?


Thanks in advance

Carlos

Jens Viebig

unread,
Feb 25, 2015, 2:47:46 PM2/25/15
to ope...@googlegroups.com
Did you check your logfiles for errors ? Maybe you could post your openhab.log

Kirk Junker

unread,
Feb 26, 2015, 9:20:28 AM2/26/15
to ope...@googlegroups.com
Carlos,

I'm running OpenHab on a Raspberry Pi using GPIO without issue. The only difference for me is I did not specify sysfs in openhab.cfg.

Carlos Cesario

unread,
Feb 27, 2015, 11:52:20 AM2/27/15
to ope...@googlegroups.com
Hi Kirk,

Thanks by answer, I'll investigate it with more detail today.

Best regards


Carlos

Carlos Cesario

unread,
Feb 27, 2015, 8:17:31 PM2/27/15
to ope...@googlegroups.com
Hello Kirk and Jens, 

I removed all openhab and reinstall it, after this it works as expected. Maybe I did something wrong in previous install.

Thank you by attention and help!

I have another question regarding GPIO, but I will post in a new discussion.

Carlos
Reply all
Reply to author
Forward
0 new messages