Issues with GPIO connection Kura/Eclipse [message #1785534] |
Mon, 16 April 2018 08:23  |
Eclipse User |
|
|
|
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 11:40] by Moderator
|
|
|
|
|
|
|
|
|
|
|
|
Re: Issues with GPIO connection Kura/Eclipse [message #1786296 is a reply to message #1786128] |
Mon, 30 April 2018 04:43  |
Eclipse User |
|
|
|
Hi Nino,
I went through some problems too when I started with Kura due the outdated documentation of GPIOs.
Well, like you said you need to use the Kura.api to access the GPIO.
If you can manage using the GPIOs then you can started testing some sensors, at that point it's not so related to Kura, if you know embedded programming you will be able to manage it.
Kura support I2C communication too which will be essential for you since kura (basically the RPI) don't have an analog input to directly communicate with the sensors like DHT22, PIR ...
So you will have to go through I2C or serial communication maybe.
Regards
Ahmed Gharssellaoui
|
|
|
Powered by
FUDForum. Page generated in 0.09870 seconds