Resolve config issue of the Enttec Open Usb, part of issue #24
This commit is contained in:
parent
bb393fe30c
commit
c10bc18ed1
4 changed files with 11 additions and 11 deletions
|
@ -12,8 +12,8 @@ function DMX4ALL(device_id, options) {
|
||||||
|
|
||||||
this.dev = new SerialPort(device_id, {
|
this.dev = new SerialPort(device_id, {
|
||||||
'baudRate': 38400,
|
'baudRate': 38400,
|
||||||
'databits': 8,
|
'dataBits': 8,
|
||||||
'stopbits': 1,
|
'stopBits': 1,
|
||||||
'parity': 'none'
|
'parity': 'none'
|
||||||
}, function(err) {
|
}, function(err) {
|
||||||
if(!err) {
|
if(!err) {
|
||||||
|
|
|
@ -16,18 +16,18 @@ function DMXKingUltraDMXPro(device_id, options) {
|
||||||
this.options = options || {}
|
this.options = options || {}
|
||||||
this.universe = new Buffer(513)
|
this.universe = new Buffer(513)
|
||||||
this.universe.fill(0)
|
this.universe.fill(0)
|
||||||
|
|
||||||
this.sendDMXReq = DMXKING_ULTRA_DMX_PRO_SEND_DMX_RQ
|
this.sendDMXReq = DMXKING_ULTRA_DMX_PRO_SEND_DMX_RQ
|
||||||
if (this.options.port === "A") {
|
if (this.options.port === "A") {
|
||||||
this.sendDMXReq = DMXKING_ULTRA_DMX_PRO_SEND_DMX_A_RQ
|
this.sendDMXReq = DMXKING_ULTRA_DMX_PRO_SEND_DMX_A_RQ
|
||||||
} else if (this.options.port === "B") {
|
} else if (this.options.port === "B") {
|
||||||
this.sendDMXReq = DMXKING_ULTRA_DMX_PRO_SEND_DMX_B_RQ
|
this.sendDMXReq = DMXKING_ULTRA_DMX_PRO_SEND_DMX_B_RQ
|
||||||
}
|
}
|
||||||
|
|
||||||
this.dev = new SerialPort(device_id, {
|
this.dev = new SerialPort(device_id, {
|
||||||
'baudRate': 250000,
|
'baudRate': 250000,
|
||||||
'databits': 8,
|
'dataBits': 8,
|
||||||
'stopbits': 2,
|
'stopBits': 2,
|
||||||
'parity': 'none'
|
'parity': 'none'
|
||||||
}, function(err) {
|
}, function(err) {
|
||||||
if(!err) {
|
if(!err) {
|
||||||
|
|
|
@ -13,8 +13,8 @@ function EnttecOpenUsbDMX(device_id, options) {
|
||||||
|
|
||||||
this.dev = new SerialPort(device_id, {
|
this.dev = new SerialPort(device_id, {
|
||||||
'baudRate': 250000,
|
'baudRate': 250000,
|
||||||
'databits': 8,
|
'dataBits': 8,
|
||||||
'stopbits': 2,
|
'stopBits': 2,
|
||||||
'parity': 'none'
|
'parity': 'none'
|
||||||
}, function(err) {
|
}, function(err) {
|
||||||
if(err) {
|
if(err) {
|
||||||
|
|
|
@ -14,11 +14,11 @@ function EnttecUSBDMXPRO(device_id, options) {
|
||||||
options = options || {}
|
options = options || {}
|
||||||
this.universe = new Buffer(513)
|
this.universe = new Buffer(513)
|
||||||
this.universe.fill(0)
|
this.universe.fill(0)
|
||||||
|
|
||||||
this.dev = new SerialPort(device_id, {
|
this.dev = new SerialPort(device_id, {
|
||||||
'baudRate': 250000,
|
'baudRate': 250000,
|
||||||
'databits': 8,
|
'dataBits': 8,
|
||||||
'stopbits': 2,
|
'stopBits': 2,
|
||||||
'parity': 'none'
|
'parity': 'none'
|
||||||
}, function(err) {
|
}, function(err) {
|
||||||
if(!err) {
|
if(!err) {
|
||||||
|
|
Loading…
Reference in a new issue