User avatar
Posts: 225
Joined: Thu Aug 16, 2012 3:20 pm
Location: USA
Contact: Website

Pi4J Version 1.1 is Released!

Wed Jul 27, 2016 7:22 pm



The long overdue release of version 1.1 is finally here!

It's been just over a year since the 1.0 release and there have been about 415 new commits to the 1.1 release which include many enhancements, optimizations, bug fixes and additional platform support for BananaPi and Odroid boards.

Pi4J Version 1.1 is also available in Maven Central: ... A%221.1%22


  • Added support for Raspberry Pi 3 (Model B).
  • Added support for Raspberry Pi Zero.
  • Added support for BananaPi platform
  • Added support for BananaPro platform
  • Added support for Odroid XU4 (see known issues here:
  • Added support for Odroid C1/C1+ (see known issues here:
  • Added support for enabling non-privileged GPIO access via the Pi4J APIs
  • Added support for '/dev/gpiomem' to eliminate 'root' permissions requirement for basic GPIO.
  • Added non-privileged GPIO example code.
  • Added PWM examples
  • Added I2C examples
  • Added support for native Watchdog.
  • Added W1 (1 wire) support.
  • Added MCP3204 ADC implementation and example code.
  • Added MCP3208 ADC implementation and example code.
  • Added MCP3004 ADC implementation and example code.
  • Added optimizations for GPIO state change latency
  • Added Gpio.pinModeAlt() method to the WiringPi wrappers to set pins to any ALT mode.
  • Added cross-compiler support in Maven build
  • Added ADC change background monitoring thread and event notifications.
  • Added new Serial JNI implementation to support more advanced serial configuration/operations
  • Updated Serial interface to extend from AutoCloseable.
  • Updated MCP3008 ADC implementation and example code.
  • Updated MCP4725 DAC implementation and example code.
  • Fixed #135; Serial communication using 7 Data Bits not working.
  • Fixed #180; WiringPiISR() callback causing native crash (NPE)
  • Fixed SPI issue where internal buffer was limited to 2048 bytes. Dynamically allocated now.
  • Fixed the Pi4J Serial interface to use the new Serial JNI implementation
  • Fixed wiringPi serial JNI methods to better support raw data operations
  • Modified WiringPi native builds to use Pi4J hosted GitHub repos
  • Cleanup for Pi4J native builds
  • Now requires Java 7 runtime.
  • Updated documentation in preparation for 1.1 release
  • Enhancements Added: ... ASE+1.1%22+
  • Bugs/Defects Fixed: ... SE+1.1%22+

Thank You to all the Pi4J users, contributors, testers and tinkerers for all your help and support to continue making Pi4J the go-to library for Java access to the Raspberry Pi's hardware interfaces.

Thank You,
Robert Savage
Robert Savage | Follow me @savageautomate |

Posts: 85
Joined: Wed Aug 22, 2012 9:57 pm
Location: Ottawa Canada

Re: Pi4J Version 1.1 is Released!

Sun Aug 26, 2018 9:05 pm

This has been resolved. Thanks to all who helped.

I have a problem with the new version.

I was using pi4j-1.0-SNAPSHOT for years to read a USB/RS485 device. It's a Magnum Energy system that sends packets of bytes and the packets size is identified by a pause in the data stream. Using the older version, I was able to read a character at a time and the delay between packets was reliably measurable.

I have just upgraded to 1.1 and the old read() method to return a character is gone. I have attempted other routines but I'm not getting any measurable delay between characters. I suspect that the software is buffering everything nd the delays are being washed out.

The old, working, code is available here

I don't know of any other way to read this data as it's poorly structure and delay between packets, which provides message length, was the only reliable method to decipher the messages.

Or... i'm missing something obvious in the protocol or use of the Pi4j API.

Any suggestions anyone can offer would be appreciated.

This link will provide a description of the methodology used. ... 10-15).pdf

Last edited by CharlesGodwin on Wed Aug 29, 2018 12:05 pm, edited 1 time in total.

User avatar
Posts: 559
Joined: Wed Dec 31, 2014 8:21 am
Location: Netherlands

Re: Pi4J Version 1.1 is Released!

Sun Aug 26, 2018 9:11 pm

Other users here may have a solution, but it's probably best to contact the author directly via the Google group:

Posts: 29
Joined: Fri Nov 04, 2016 1:27 am

Re: Pi4J Version 1.1 is Released!

Sun Aug 26, 2018 9:14 pm

This is awesome!!! Thank you Robert! Cant wait to download and use this.

I did see from the website that 1.2 is now out. Anybody reading this should upgrade to 1.2.!topic ... HvHARC9FBQ

savageautomate wrote:
Wed Jul 27, 2016 7:22 pm


Thank You,
Robert Savage

Return to “Java”