Help needed using serial obj. to control my DMXUSB box

Georgina's icon

dmx_router.js
js 0.21 KB
dmx_router_4chan.js
js 0.24 KB

Hi all,

I've been a happy user of nullmedium's dmxusbpro external for many years and now that I changed computer (mac M5) and upgraded to Max9 I cannot use it anymore.

I am testing jam.dmxusbpro but I seem to have some lagging issues (discussed in another topic with the most kind Jan, the creator of the external).

I have come across a small patch another user has created to use the serial object to control the DMXUSBPRO box that I'm using. The only problem is that the example only had 4 channels using a pak object.

I got lost trying to create a 512 inlet pak object and decided to ask a friend to create a js file to use in the patch instead.

Here is where I start having issues: the js file works if the channels created are less than 256.

the patcher I stole formats the incoming js abut seems to truncate anything above 256 whereas I need 512 channels.

I'm attaching the patcher (and the two js files needed) with some comments that hopefully will be useful, how would you change the "p format" subpatcher so that. 512 is not truncated?

Thank you!!

Max Patch
Copy patch and select New From Clipboard in Max.

Georgina's icon

apologies the js files were not uploaded properly, they should be ok now

Source Audio's icon

that patch you mention is a copy of one of my old examples dealing with Entec which was

originally properly commented, to be limited to few DMX channels.

not in that copy that you use as you can see below.

that happens when people repost stuff not including original comments.

if you need more then 256 channels, then fix that as in my screenshot at this link:

it will also show you how to properly pack and send DMX data at set frame rate.

You can't move sliders and send all the time, that could overflood serial port.

DMX USB Pro is buffered device, means you need to send values to it only if

the list changed.

Device itself feeds buffered data to fixtures at DMX update interval.

Georgina's icon

thank you for your reply

Georgina's icon

Dear @SOURCE AUDIO

If I can abuse of your patience I need some more help..

I tried to reproduce the patch shown in the picture linked, the message fed to the serial object seems ok but I still cannot control lights with it.

To be clear your 4 channel example works as expected with my setup so there must be something stupid I'm doing..

Would you be so kind as to take a look at my version of your patch?

Thank you very much

Max Patch
Copy patch and select New From Clipboard in Max.

Source Audio's icon

Sure

I am away for few hours

but as soon as possible you will get the

answer

Source Audio's icon

there is nothing wrong with that last patch you uploaded.

maybe missing init length of zl.slice ?

having zl.change at the end prevents resending of same list.

one should initialise it when metro stops.

here is original patch, I found it in my patches archive.

Your ENTEC serial is set.

Max Patch
Copy patch and select New From Clipboard in Max.

it should work

Georgina's icon

Thank you very very much!

I will try the patch you kindly shared next time I'm in the theater (monday or tuesday) and report back, hopefully with success!

Thanks again

Source Audio's icon

Let's hope all goes ok.

If you need any help or explanations about channeling using listfunnel

or anything else, just post.