node-dmx / dmx

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

Enttec Open USB fixed. #7

Closed FabianBach closed 9 years ago

FabianBach commented 9 years ago

Now all channels are working, not first channel only.

wiedi commented 9 years ago

Hi, thanks for doing this. But I am not sure adding a dependency on .NET is a good idea. I also don't see how that .net code is doing something that can't be done with the ftdi bindings from node.js. If there are actual issues with the ftdi driver I think it might be better to fix those.

wiedi commented 9 years ago

I've reworked the enttec open usb driver a bit and have one user reporting that timings are a bit better now. As I don't have such a device I can't really test it. So feedback is appreciated. Maybe this also resolves your issue. If not feel free to reopen.

FabianBach commented 9 years ago

I just tried to get it to work, but it still does the same as it did before: Channel 1 is set to 255, no matter which channel and which value I try to set. So it still does not work at all for me.

It is very interresting it seems to work for some other user. Could you ask that user to contact me or tell me how to contact him? I would like to find out what the difference is.

Thanks in advance! Fabian

wiedi commented 9 years ago

Thanks for testing again.

I now understand the device a bit better and see how the current code can't be correct. What is missing is sending a serial break (which your code does). Sadly the node-ftdi module is indeed missing that functionality. I'll see if i can get that supported.

Apparently the other user only tested on the first few channels and it worked there by chance.