Sharing is, Lanbox in Max 8 - lcudp-pack hack

Luke Woodbury's icon

Max 8 being 64Bit means the Lanbox DMX controller externals don't work anymore :(

I did email them, but I don't know if they are going to update them and I can't wait so I cooked up a replacement for lcudp-pack and unpack. You will need Adam Siska's UDP objects from the sadam library:
http://www.sadam.hu/hu/node/1

I haven't tested it extensively, but it seems to work just fine for my purposes, if you are still rocking a Lanbox then maybe they will help you.

lcudp-packHACK.maxpat
Max Patch

Luke Woodbury's icon

... and this is the real me!

Riccardo Brunetti's icon

EDIT: I figured it out and it looks awesome! I can even do things I was not able to do with lcudp-pack! Thanks Luke for the generosity of sharing this!

Hello Luke and thank you for this life-saver!
I have the same problem and I have downloaded your patch: unfortunately, I do not get where I should feed the long DMX channel list I usually fed into lcudp-pack. In other words, with lcudp-pack, I simply fed a very long list of changing numbers to manage several DMX channels at once. The list was simply organized as [value for the first DMX channel] [ value for the second DMX channel] [value for the third DMX channel], and so on. Could you tell me if I can use such a strategy also with your hack and, in case I can, where exactly should I put it?

Moreover, with lcudp-pack, I used a qmetro object to pace the sendings - do I need that as well?

Thank you in advance for your kind help.

Sincerely,
Riccardo

mr.l's icon

Hi,

having problems with my lanbox I just found this hack!
How can I connect to the Lanbox? I can see incoming messages from the lanbox within the @lcudp/unpack hack@ sub patcher, but sending values doesn't work.
Any help appreciated (kind of urgent :))

thanx, rene

Luke Woodbury's icon

Thing is with the Lanbox, once you set it up you can kind of ignore it so I am finding it hard to remember what I did...

The sender is using 'localhost' so I guess the Lanbox will need to be connected to your machine or you can swap localhost for the actual IP address? Sorry, not much help.

Have you tried the Lanbox setup software to see if you can communicate with it there?

Nassav's icon

thanks for this, it worked for me just fine. I was lucky that the lanbox still had default ip and receive port (192.168.1.77 4777)
I tried replacing the [sadam.udpsender] with the regular [updsend] , using same host ip and port but that dosen't work. Dose anybody know why? I thought it would be nice if it could work with no extra externals, it would be more future proof...

Luke Woodbury's icon

Its been a while, but I seem to remember that standard [udpsend] is really all about OSC and formats it thusly. [sadam.udpsender] I think is raw udp

Nassav's icon

ah yes, that's it

philippegladieux's icon

Hi, i do not succeed in making it working with my LCX lanbox... I'm using max8 installed on a 10.13.6 high Sierra OSX. Does someone uses lcudp-packHACK ?
Thanks.

Nassav's icon

demo.zip
application/zip 10.89 KB

attached a patch i had which worked with the lan box, no externals. You can see i things were done there, maybe that helps. In my case i was lucky because the lanbox was still setup up with default ip and port.

philippegladieux's icon

Thank you, it seems perfect, but it didn't worked... it works with LCedit / same ip address 192.168.1.77 but not with max... strange...

mizu's icon

i remember the Lanbox needs a password, possible to configure and avoid only with LCedit.
Here a thing i made in 2019, based on lcudp-packHACK, worked (sorry spag proto in a poly~...)

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

here without the Lanbox, "sadam.udpSender: Host is down" in Max console
Philippe: you write 192.168.7.77 , not 192.168.1.77 ?
hth
michel z