0
Not a bug
Alessandro Munari 6 months ago in Modules • updated by Aleksandr Romanov (CTO) 4 months ago 3

Hi, the Onkyo module does not work with my HT-R993 Onkyo amplifier. In order to let this AVR works, you need to change, part of the code in this way:


ORIGINAL Line 673: var len = cmd.length + 3;

MODIFIED Line 673: var len = cmd.length + 1;


ORIGINAL Line 673: that.device.Send(['ISCP', 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, len, 0x01, 0x00, 0x00, 0x00, cmd, 0x0D]);


MODIFIED Line 673: that.device.Send(['ISCP', 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, len, 0x01, 0x00, 0x00, 0x00, cmd, 0x0D, 0x0A, 0x1A]);


Just change the "len" calculation and add two more CR caracters (0x0A, 0x1A) This change allow also to work with latest Onkyo AVR,

Same change should be applied also to the Integra protocol.

If you have working and tested versions of ONKYO JS module for i3 pro - could you please upload it here for us?


Thank you!

Hi

What Alessandro has described is the difference between serial and IP commands.




Attached is a script that lets you flip between the serial and IP connections, and also has extras like the network functions control and some other bug fixes.


At the bottom of the script (same script for Onkyo & Integra) you will find this line to change the settings


This has been tested on Integra and used in many projects in V3


Integra-Onkyo V17.js