DBX ZonePro

32 views
Skip to first unread message

Fiasco

unread,
Nov 8, 2023, 12:22:29 AM11/8/23
to CommandFusion Software

A few years ago I wrote a working module for DBX Zone pros.   Then the computer I wrote it on got ransomwared.    I had a backup that was an older version of the javascript on another PC.

I can not, for the life of me, figure out why I can't get it to work.  

I know the following command when sent to the ZonePro will mute zone 1.  It works correctly from the DBX provided string calculator but not from CommandFusion so I must be doing something wrong when writing it to the zonepro (via a moxa nport)

 F0,64,00,01,00,00,00,1B,00,33,01,05,00,14,00,8a,01,05,00,14,01,00,00,00,00,01,00,02,01,01,81

module.sendCommand = function (command, descrip) {
module.log("send command: " + descrip + " " + command);
command = module.hexify(command);
module.log("sent command: " + command);
CF.send("Moxa_ZonePro", command + "\n" );
};

module.hexify = function( array ) {
var string = "";
for ( var i = 0; i < array.length; i++) {
string = string + String.fromCharCode(parseInt(array[i],16));
}
return string;
};

I am getting feedback from the zonepro in commandfusion.
Reply all
Reply to author
Forward
0 new messages