Pi4J / pi4j-v1

DEPRECATED Java I/O library for Raspberry Pi (GPIO, I2C, SPI, UART)
http://www.pi4j.com
Apache License 2.0
1.31k stars 447 forks source link

final GpioController gpio = GpioFactory.getInstance(); hangs on RPi4 #473

Closed izhidov closed 4 years ago

izhidov commented 4 years ago

EDIT: I see that RPi4 isnt supported in 1.2 and will have to wait for 2.0.

Is RPi4 supported in Pi4j? I dont see it mentioned anywhere in the docs and I have am issue where final GpioController gpio = GpioFactory.getInstance(); just hangs and never comes back.

EDIT: Correction, it doesnt hang, just exits without any error.

izhidov commented 4 years ago

Found the culprit but whats the resolution?: Unable to determine hardware version. I see: Hardware : BCM2835 ,

izhidov commented 4 years ago

WiringPi has been updated to 2.52, still same issue

gpio version: 2.52 Copyright (c) 2012-2018 Gordon Henderson This is free software with ABSOLUTELY NO WARRANTY. For details type: gpio -warranty

Raspberry Pi Details: Type: Pi 4B, Revision: 01, Memory: 4096MB, Maker: Sony

eitch commented 4 years ago

Hi @izhidov i've been running on a RPi4 with wiringPi 2.60 for quite a while without issues. Does gpio readall work? Are you running everything with a normal user or root? Are you using Java 11+?

izhidov commented 4 years ago

I decided to wait till 2.0 comes out.

On Mon, Aug 31, 2020, 2:51 AM Robert von Burg notifications@github.com wrote:

Hi @izhidov https://github.com/izhidov i've been running on a RPi4 with wiringPi 2.60 for quite a while without issues. Does gpio readall work? Are you running everything with a normal user or root? Are you using Java 11+?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Pi4J/pi4j/issues/473#issuecomment-683624957, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMBEULZIC6W5SO6S5LU3DTSDNJAZANCNFSM4JQHHX6Q .