
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
So far, this library has been tested with
http://rotel.com/en-gb/manuals-resources/rs232-protocols lists several other Rotel components with a RS232 interface, so if you find that it works with, or you want to add support for, any of these devices, please let me know.
var RotelCtl = require('rotelctl').RotelCtl;
var rctl = new RotelCtl('/dev/ttyUSB0');
rctl.open(function(err) {
if (err) {
return console.error(err);
}
rctl.getDisplay(function(err, response) {
if (err) {
return console.error(err);
}
console.log(response);
rctl.close(function(err) {
if (err) {
return console.error(err);
}
});
});
});
var RotelCtl = require('rotelctl').RotelCtl;
var rctl = new RotelCtl('/dev/ttyUSB0');
rctl.on('open', function() {
console.log('open');
rctl.getDisplay();
});
rctl.on('close', function() {
console.log('close');
});
rctl.on('error', function(err) {
console.log('error', err);
});
rctl.on('data', function(data) {
console.log('data', data);
});
rctl.open();
open: when the serial connection has been opened
close: when the serial connection has been closed
error: on error
data: when receiving data. The format of data is always
{
"name": "<name of data item>"
"value": "<value of event>"
}
The name of the different data items is described below.
Create a new RotelCtl.
Open the serial connection.
Close the serial connection.
Returns true when the serial port has been opened.
All commands below take an optional callback(err, data). data is always the same value as the value part of event triggered by the command.
Also see the Rotal documentation PDF in the docs directory.
Power on.
{name:"power", value: power value}Power off.
{name:"power", value: power value}Toggle power.
{name:"power", value: power value}Increase volume a bit.
{name:"volume", value: volume value}Decrease volume a bit.
{name:"volume", value: volume value}Set volume to maximum.
{name:"volume", value: volume value}Set volume to minimum.
{name:"volume", value: volume value}Set volume to amount.
{name:"volume", value: volume value}Toggle mute state.
{name:"mute", value: mute value}Mute.
{name:"mute", value: mute value}Unmute.
{name:"mute", value: mute value}Set source to Rotel CD.
{name:"source", value: source value}Set source to CD.
{name:"source", value: source value}Set source to coax 1.
{name:"source", value: source value}Set source to coax 2.
{name:"source", value: source value}Set source to optical 1.
{name:"source", value: source value}Set source to optical 2.
{name:"source", value: source value}Set source to auxiliary 1.
{name:"source", value: source value}Set source to auxiliary 2.
{name:"source", value: source value}Set source to tuner.
{name:"source", value: source value}Set source to phono.
{name:"source", value: source value}Set source to usb (or bluetooth if dongle is installed).
{name:"source", value: source value}Switch tone controls on.
{name:"tone", value: tone value}Switch tone controls off.
{name:"tone", value: tone value}Increase bass a bit.
{name:"bass", value: bass value}Decrease bass a bit.
{name:"bass", value: bass value}Set bass to minimum.
{name:"bass", value: bass value}Set bass to neutral.
{name:"bass", value: bass value}Set bass to maximum.
{name:"bass", value: bass value}Increase treble a bit.
{name:"treble", value: treble value}Decrease treble a bit.
{name:"treble", value: treble value}Set treble to minimum.
{name:"treble", value: treble value}Set treble to neutral.
{name:"treble", value: treble value}Set treble to maximum.
{name:"treble", value: treble value}Set balance a bit more to the right.
{name:"balance", value: balance value}Set balance a bit more to the left.
{name:"balance", value: balance value}Set balance fully left.
{name:"balance", value: balance value}Set balance in the middle.
{name:"balance", value: balance value}Set balance fully right.
{name:"balance", value: balance value}Set display update to auto.
{name:"display_update", value: display_update value}Set display update to manual.
{name:"display_update", value: display_update value}Get what the display is currently showing.
{name:"display", value: display value}Get line 1 of display.
{name:"display1", value: display1 value}Get line 2 of the display.
{name:"display2", value: display2 value}Get the product type.
{name:"product_type", value: product_type value}Get the product version.
{name:"product_version", value: product_version value}Get the TC version.
{name:"tc_version", value: tc_version value}Get the display size.
{name:"display_size", value: display_size value}Get the display update strategy.
{name:"display_update", value: display_update value}Get the power status.
{name:"power", value: power value}Get the selected source.
{name:"source", value: source value}Get the tone control status.
{name:"tone", value: tone value}Get the bass value.
{name:"bass", value: bass value}Get the treble value.
{name:"treble", value: treble value}Get the balance.
{name:"balance", value: balance value}Get the sampling frequency.
{name:"freq", value: freq value}Get the play status.
{name:"play_status", value: play_status value}Get the maximum volume.
{name:"volume_max", value: volume_max value}Get the minimum volume.
{name:"volume_min", value: volume_min value}Get the volume.
{name:"volume", value: volume value}Get the maximum tone value.
{name:"tone_max", value: tone_max value}FAQs
Control Rotel amplifiers with RS232 connection
We found that rotelctl demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.