|Issues with GPIO connection Kura/Eclipse [message #1785534]
||Mon, 16 April 2018 12:23
| Nino Klajnšek
Registered: April 2018
I'm using the newest kura release (3.1.1. i think) and been following a few tutorials. I've finished the getting started "hello osgi" "eclipse.github documentation" and successfully installed the bundle on my rpi. That means i get the message that the bundle started, so that is working fine, let's move on to the GPIO part.|
I've downloaded a configuration bundle demo from eclipse marketplace (https://marketplace.eclipse.org/content/gpio-example-eclipse-kura) entered the PIN that the LED is installed on and it works. I also used python to turn the led on which works fine. So the problem is with the Eclipse IDE or my understanding of it.
As said i've followed the tutorial multiple times for Eclipse installation configuration. A few problems I came about when I was "debugging" myself.
-The new version of user-workspace-archives doesn't containt the jdk.dio which is used in every single tutorial and seems easy enough. I've tried to add the jdk myself but couldn't get it to work. I tried most of the combinations, adding it to the manifest.mf build and to the target definition platform and so on. I came to the "import unresolved: jdk.dio etc.."
-After I gave up on jdk.dio, I found out Kura added their own library KuraGpio in gpio.emulator i think it is. Which gives me a nullpointer when trying to obtain gpioService to get aquire the pins.
I can't really find a new or working tutorial which i can understand and build upon. I'm getting kinda hopeless, so if anyone can help I would be greatful.
PS: I didn't paste any code or errors since most if it is following the tutorial and when debugging myself found that the basics work, but I can do so if needed.
Edit: I actually got it to publish with adding bundle-classpath to my manifest file. But now Kura just crashes when i try to retrieve a pin (either pi4j or dio), error something along: "dio/pi4j not found as a library. But the bundle is active it just doesn't work (it doesn't get past the gpio variables, so the logger doesn't "log")
[Updated on: Tue, 17 April 2018 15:40]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02372 seconds