epson-projector-ctrl

0.0.3 • Public • Published

Epson projector control

Installation

npm i epson-projector-ctrl

Using Serial Protocol

Quick start - Serial Protocol

const epsonSerial = require('epson-projector-ctrl').serial
const projector = new epsonSerial("COM3") // The COM port connected to projector
// Get the power state
projector.power().then((power) => {
    console.log(power)
})
// Set the power state
projector.power("ON").then((power) => {
    console.log(power) // Should be undefined
})
projector.close() // Close serial connection

Supported methods - Serial Protocol

Method EPSON CMD Type Argument
power PWR Get/Set "ON", "OFF"
source SOURCE Get/Set "00"~"FF"
luminance LUMINANCE Get/Set "00", "01"
mute MUTE Get/Set "ON", "OFF"
freeze FREEZE Get/Set "ON", "OFF"
hreverse HREVERSE Get/Set "ON", "OFF"
vreverse VREVERSE Get/Set "ON", "OFF"
lamp LAMP Get N/A
error ERR Get N/A

Using HTTP Protocol

Quick start - HTTP Protocol

const epsonSerial = require('epson-projector-ctrl').http
const projector = new epsonSerial("10.0.1.101") // The IP address of the projector
// Set the power state
projector.power("ON").then((power) => {
    console.log(power) // Should be undefined
})

Supported methods - HTTP Protocol

Method EPSON CMD Type Argument
power PWR Set "ON", "OFF"
source SOURCE Set "00"~"FF"
luminance LUMINANCE Get/Set "00", "01"
mute MUTE Set "ON", "OFF"
freeze FREEZE Set "ON", "OFF"
hreverse HREVERSE Get/Set "ON", "OFF"
vreverse VREVERSE Get/Set "ON", "OFF"

Using TCP Protocol

Quick start - TCP Protocol

const epsonSerial = require('epson-projector-ctrl').tcp
const projector = new epsonSerial("10.0.1.101") // The COM port connected to projector
// Get the power state
projector.power().then((power) => {
    console.log(power)
})
// Set the power state
projector.power("ON").then((power) => {
    console.log(power) // Should be undefined
})
projector.close() // Close serial connection

Supported methods - TCP Protocol

Method EPSON CMD Type Argument
power PWR Get/Set "ON", "OFF"
source SOURCE Get/Set "00"~"FF"
luminance LUMINANCE Get/Set "00", "01"
mute MUTE Get/Set "ON", "OFF"
freeze FREEZE Get/Set "ON", "OFF"
hreverse HREVERSE Get/Set "ON", "OFF"
vreverse VREVERSE Get/Set "ON", "OFF"
lamp LAMP Get N/A
error ERR Get N/A

Progress

  • [x] Serial protocol
  • [x] HTTP protocol
  • [ ] TCP protocol

Readme

Keywords

Package Sidebar

Install

npm i epson-projector-ctrl

Weekly Downloads

1

Version

0.0.3

License

MIT

Unpacked Size

23.9 kB

Total Files

7

Last publish

Collaborators

  • unics