DMX to serial object
I am trying to send DMX from Max from a USB to DMX converter using a patch that is widely circulating and is reported to work fine. Unfortunately I cannot seem to get any control over my lights with it. The patch is attached below. The problem is definitely in the patch, other software controls my lights just fine.
I don't really understand the inner workings of it. It seems to run the baud rate at 115200, where my understanding is that DMX runs at 250000, also it sends the frames 126 and 6 before every message and I am not sure what that is all about. But several people report that it works and none of the changes I've tried have fixed my issue. I can measure a serial output from my cable but the lights don't react at all. I don't have a DSO with a serial decoder to get to the bottom of it and do some debugging.
Can somebody give me an idea of what's going on in the patch so I can get this to work on my system?
How can one provide any help without knowing for what DMX device
it should work?
that code is meant for enttec dmx usb pro
but has mistakes inside.
It makes no sense to fix it if you use differnet kind of dmx device.
Ok, thanks for your answer. I didn't know the exact device was so critical. I was under the impression USB to DMX devices are basically serial converters that work all the same, just like USB to MIDI devices work all the same and are addressable in the same way. Apparently that is not the case.
I am using the "Eurolite USB DMX512" because it is relatively inexpensive and small, it is basically just a cable with a built in serial/DMX converter. It'll be hard to find any details about the technical specs. If it's too much hassle getting it to work I might just have to order the Enttech DMX USB Pro instead.
in that case the code you posted has no chance to work.
that interface looks similar to enttech usb dmx which is unbuffered
serial device.
You can try to send plain list with your channels,
needs no headers , but it must be sent without a pause.
250000 baud and 25ms rate
I initially went down the cheap USB-DMX route, and it involved quite a lot of hair pulling (not that I have a lot left anyway). In the end I gave up and bought the Enttec DMX USB Pro, and it worked straight away with code that Source Audio has previously posted. I believe it’s possible to get these cheap interfaces working, but it seems like a lot of hassle.
Thanks for your help, I ordered the Enttec DMX USB Pro and it works flawless with it.
Great! Have fun with it!
I went on a little adventure and developed a new external for the dmxusbpro:
More info here:
Download here:
https://github.com/janmech/jam/releases
In case someone would like to try it, I'd be very happy for feedback. It's my first external....
It should run on MacOS 10.15 and newer as well as on Intel and Apple Silicon Macs. As I don't have a M chip Mac I couldn't really test it on that platform yet.