The denon4j project provides a higher level Java API for communicating with a Denon audio video receiver (currently only AVR1912 is tested) via TCP/IP. It hides the complexity of the network receiver and provides generic controls that can be used with every Denon receiver.
The project is intended to be easily extended for those who want to write an API for their own AVR model.
Contributions are welcome!
- Java 8
- Maven 3.2+ (only for building)
- You must be connected to the same network as your AV receiver
- Your receiver must be either turned on or you have to enable the network standby feature
Avr1912 avr = new Avr1912(192.168.0.102, 23);
avr.connect(1000);
Slider masterVolume = avr.masterVolume();
masterVolume.slideUp();
avr.disconnect();
Take a look at the class Demo.java in the test directory to view a complete example.
java -jar denon4j-[version]-cli.jar 192.168.0.12 23
Enter a command ('?' for help, 'q' for quit):
> ?
The following options are available:
? Prints this help
q Quits the program
<cmd> Executes a generic command e.g. PW?
PW? Returns the power state
PWON Turns power on
See the Denon AVR receiver for a full list of commands.
> MU?
OFF
- All packages which have 'internal' in their name are not intended to be used from outside
- Changes to internal packages are made without further notice
This is a maven style project so mvn
needs to be on your $PATH
. To build
from scratch just type:
mvn clean package
Apache License Version 2.0, January 2004 (see LICENSE file)
- Fork it.
- Create a branch (
git checkout -b my_plugin
) - Commit your changes (
git commit -am "Added feature"
) - Push to the branch (
git push origin my_plugin
) - Create a new Issue with a link to your branch, or just make a Pull Request.
- Enjoy a refreshing Diet Coke and wait