Skip to content
This repository has been archived by the owner on Apr 24, 2021. It is now read-only.
/ serial-remote Public archive

module for controlling AV devices using the serial port

License

Notifications You must be signed in to change notification settings

davidmuzi/serial-remote

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

serial-remote

utility for controlling AV devices using the serial port

Purpose

Many home theater devices (tvs, projectors, receivers) can be controlled via their RS232 port. This module will evolve to control several devices from many brands via a spec file, which is a json representation of the control protocol (see the example for Sony TVs in the /spec folder).

Installation

npm install serial-remote

Example

var Device = require('device');

var deviceSpec = JSON.parse(fs.readFileSync(path.join(__dirname, '../specs/sony_tv.json'), 'utf8'));
var device = new Device(deviceSpec, "/dev/cu.usbserial");

device.on('ready', function() {
	
	device.powerOn(function(error, results) {
		
	});
});

Contributions

If you have a device that can be controlled via RS232, create a spec file containing the supported commands and issue a PR. If you find an issue, create a ticket on github

License

MIT

About

module for controlling AV devices using the serial port

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published