- Notifications
You must be signed in to change notification settings - Fork5
A high-level Java API for interaction with Denon Audio Video receivers via TCP/IP
License
stheves/denon4j
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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 protocol 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 denon receiver model.
Contributions and feedback are very welcome!
- High level API and strong domain model
- Blocking and non-blocking request/response
- Auto-discovery of receivers found in LAN
- Lightweight and pure Java (no other dependencies needed)
- Works out-of-the-box with your denon receiver
- Available on Maven central
- Java 8
- Maven 3.2+ (only for building)
- You must be connected to the same network as your denon 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 23Enter a command ('?' for help, 'q' for quit):> ?The following options are available:?Prints this helpqQuits the program<cmd>Executes a generic command e.g. PW?PW?Returns the power statePWONTurns power onSee 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 somvn
needs to be on your$PATH
. To buildfrom 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 newIssue with a link to your branch, or just make a Pull Request.
- Enjoy a refreshing Diet Coke and wait
About
A high-level Java API for interaction with Denon Audio Video receivers via TCP/IP