View: 13608|Reply: 2

Pi4J on Orange PI PC

[Copy link]

1

threads

2

posts

13

credits

Novice

Rank: 1

credits
13
Published in 2016-10-9 15:10:17 | Show all floors |Read mode
Hi,

I have Orange PI PC with Armbian Debian Jessie on it.
Everything works except PI4J, It shows error on running java program:

<--Pi4J--> GPIO Control Example ... started.
Unable to determine hardware version. I see: Hardware        : sun8i
,
- expecting BCM2708 or BCM2709.
If this is a genuine Raspberry Pi then please report this
to projects@drogon.net. If this is not a Raspberry Pi then you
are on your own as wiringPi is designed to support the
Raspberry Pi ONLY.


================================================

Now I know this jar requires native library i.e WiringPI ( raspberry pi) & for our systems WiringOP, so I git cloned it, built it, installed it.
But still error. So any way to make Pi4J work here?

0

threads

1

posts

10

credits

Novice

Rank: 1

credits
10
Published in 2016-12-13 04:13:48 | Show all floors
I have added experimental support for OrangePi in the latest 1.2-SNAPSHOT builds.  
Please be aware that this is largely untested but I was able to get all the build process worked out to include the WiringPi port for OrangePi.  

I'm afraid that the WiringPi port for OrangePi may be slightly outdated and may not support the newer/latest OrangePi hardware models, but we need some testing before we know what is and is not fully supported.
My preliminary testing is on an OrangePi PC running Armbian.

You can follow the status here:
https://github.com/Pi4J/pi4j/issues/230

Thanks, Robert

1

threads

2

posts

13

credits

Novice

Rank: 1

credits
13
 Author| Published in 2017-1-29 02:04:40 | Show all floors
savageautomate replied at 2016-12-13 04:13
I have added experimental support for OrangePi in the latest 1.2-SNAPSHOT builds.  
Please be aware  ...

Thx Man,v1.2 build works with Orange PI PC.
I am using OpenJDK 8 with latest Armbian Ubuntu Xenial Build

Didnt tested all pins, just tested simple GPIO pins all working fine.
( Tested with 4x4 keyboard matrix buttons )

For All Java Buddies:
Just need to add
GpioFactory.setDefaultProvider(new OrangePiGpioProvider());
Before Getting instance
gpio = GpioFactory.getInstance();


You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list