-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trouble with I2C #121
Comments
Hi, did you add the linuxfs-ic2 plugin:
|
In my project i use the following dependencies:
|
This are the dependencies I use:
As you can see, the plugin for pigpio is commented out and this way it works fine. When I remove the comments to include the pigpio-support, then I get the error message I described above
To make the program work again, I have to do the following:
As I also need to access gpio-ports I am looking for a working solution. I don't understand why this is not working. Thanks for all help, Rudi |
Hi, so you can use both pigpio and linuxfs plugins, but i think there is something wrong with the module configuration of the packages. Are you using modules? Do you need to use modules? I'll have to test this and find out what the problems with the modules is, but i'm not yet very versed in this affair... |
Do you by any change have a larger stack trace? |
@rz259 I've found a problem, where the native libraries are in the same directory in the jars for both plugins. I have now changed the directory for the linuxfs native libraries. Can you try again with the latest snapshot version? |
Hello eitch, unfortunately I do not have a larger stack trace. How can I download the latest snapshot version? I deleted the files from the raspberry and from the local computer and thus maven downloaded the versions - but unfortunately I can't tell you if they are the newest snapshot. At any case the files that got downloaded by Maven do not solve the problems, so it would be nice if you could give me a hint how to download the latest snapshot. Kind regards, Rudi |
Hi Rudi. Can you check in your maven repository when
was built? Kind regards |
Hi Robert, the jar was built on 2021-07-29 18.35 h (European Summertime). Thanks for your help, Rudi |
Ok, the problem is resolved. I have downloaded the latest snapshot and now it works. Thanks for your help, Rudi |
Ahh, good to know! I was hoping to find some time this weekend to test it
out again. But now not necessarily.
…On Fri, Aug 6, 2021, 17:03 rz259 ***@***.***> wrote:
Closed #121 <#121>.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#121 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAB35BXUIF3LW5ZOO3ESI2TT3P2TBANCNFSM5BG3PMSA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>
.
|
Hi,
I try to get a stripped-down version of the example for I2C from the PI4J site (https://pi4j.com/documentation/io-examples/i2c/) running.
The main method starts with the following statements:
Unfortunately I get teh following exception when trying to get the I2CProvider:
So I added the dependency for linuxfs-i2c, but now I get a different problem with the program. Now I get an exception saying
If I remove the jar files concerning pigpio (library and plugin) manually everything works fine - at least I don't get any errors when I run the stripped-down version of the program.
What concerns me a bit - do I really have to choose between either pigpio and linuxfs-i2c? Or is there a workaround?
The text was updated successfully, but these errors were encountered: