node-dmx / dmx

DMX controller library for node.js
MIT License
297 stars 95 forks source link

enttec-open-usb-dmx fails #11

Closed deejbee closed 7 years ago

deejbee commented 8 years ago

Hi, I'm really struggling to get this working on the enttec open usb box.

The first error I get is:

TypeError: open() expects three agrguments

I've been able to connect to the enttec open usb box by inserting another callback in the open() function in enttec-open-usb-dmx.js:

self.dev = new FTDI.FtdiDevice(device_id)
self.dev.open({
    'baudrate': 57600,
    'databits': 8,
    'stopbits': 2,
    'parity': 'none'
}
, function(err) {
    // new callback 
}
, function(err) {
    cb(err, device_id)
    if(!err) {
        self.start()
    }
})

Now it seems to connect without error. My main problem is the light connected to the enttec device doesn't respond to any values.

I have a Stairville LED PAR56 connected and it works correctly when used with Q Light Controller

The DMX Channels for the light are:

Channel   DMX   Name
1         1     Mode
2         2     Red
3         3     Green
4         4     Blue
5         5     Speed control

I edited the dmx-web-example.config so I have a preset which I would expect produce white light:

    {
        label: "White",
        values: {
            'office': { 1:255,  2:255,  3:255  }
        }
    }

The light doesn't go on though. I don't get what's wrong. Can anyone help?

wiedi commented 8 years ago

Hi, the "enttec-open-usb-dmx" seems to be problematic for a few reasons.

The first is that I don't have such a device to test, so I'm always dependant on the community for this driver. The bigger issue is that it requires very stable timing as the computer generates the DMX messages.

I've just made some changes to the driver that could help with syncing the bus (hopefully) and would be happy if you could test with the current git version. Thanks

wiedi commented 7 years ago

the enttec-open-usb-dmx driver should finally be fixed with e105013d1ced34f5439edcc41189dd25524fcf1e