Help! Need to send lists via UDP asap!

seejayjames's icon

Hi all, I need to ASAP be able to format a list of numbers to go thru the mxj.udp.send object. The patch is ready, it will send a list of about 400 RGB values in DMX format to a set of boards that will run LED's. Everything is fine with the lists and all but the format comes through as ASCII instead of the desired BYTES as numbers from 0 - 255. I have great washes of colors from a cool jit.bfg and some other manipulations, the only problem is the formatting of the lists!!

It *has* to be the udp.send, so that it's wireless over Ethernet, otherwise I'd use jit.net.send which works great.

So-----HOW do you tell mxj.net.send to send a list of numbers (a 1 as a start code, followed by a bunch of RGB triplet bytes, one triplet for each LED) to go out AS IS without coming out as ASCII -- the values, plus spaces, etc..? What am I missing?

We can go below 256 and use atoi or iota or whatever if need be, but I'm sure there is a different fix...

This is for (what could be) a really nice LED installation in a wedding coming up this weekend... it will be gorgeous if we can get past this damn formatting hurdle!!

THANK YOU -- Can you tell I'm desperate??

--CJ

(karrrlo)'s icon

list>tosymbol>udpsend

udpreceive>fromsymbol>list

?

seejayjames's icon

ach... but it's not going to a udpreceive, it's going to a circuit board. I don't know if the board will interpret the symbol correctly, we tried it with a string message and it still saw ASCII. so I don't know what's happening.

I remember similar problems with the Arduino, where I had to tell it "BYTE" for the kind of value to send to Max, then that worked. Any way to change a list into "char"? Would that do it?

I don't understand why the udp.send would send a list of ints as ASCII, I must be missing something....?

--CJ

Scott Fitzgerald's icon

Hi cj.

Take a look at the email I sent you and Jesse for an example of how
to do this with aka.datagram and udpsend.

The max objects package messages for other apps, not hardware.
Aka.datagram will send out the raw bytes, not a max/java/pd prepared
message.

On Fri, Feb 15, 2008 at 11:24 AM, Seejay James wrote:
>
> ach... but it's not going to a udpreceive, it's going to a circuit board. I don't know if the board will interpret the symbol correctly, we tried it with a string message and it still saw ASCII. so I don't know what's happening.
>
> I remember similar problems with the Arduino, where I had to tell it "BYTE" for the kind of value to send to Max, then that worked. Any way to change a list into "char"? Would that do it?
>
> I don't understand why the udp.send would send a list of ints as ASCII, I must be missing something....?
>
> --CJ
>
>
>

seejayjames's icon

(Cross-posting from Java forum)

Hi guys,

Thank you so much for your time and help. On this end we simply ran out of time, so the project won't go up as planned (tomorrow!). On the plus side, we are a LOT closer, we just keep running into strange Java networking stuff that is tough to debug.

We started getting "java.net.socket Exception: max connections reached, buffer size reached" errors. Restarting the patch works for awhile... just when things started to work, too...

The upside is that the pressure is off, I learned a ton, and I realized I should learn some more Java since there's so much it can do with lists etc.

Any thoughts on the Exception thing? I've hunted around but don't really know what's happening.

We will get this thing working eventually, most likely with the help of your files. The project WILL be a success, once we iron out everything. It's starting to look really cool, and the patch for setting the colors has a lot of potential.

Best wishes, and thank you both very much again. It's not a lost cause, we just have to bail for this particular event. Now, Burning Man is another story... ;)

CJ

st.scholl's icon

i need every information about the mcgill-mailing-list... (the first mail-list for max-user)> Date: Fri, 15 Feb 2008 12:05:15 +0100> From: droolcup@gmail.com> To: maxmsp@cycling74.com> Subject: Re: [maxmsp] Re: Help! Need to send lists via UDP asap!> > Hi cj.> > Take a look at the email I sent you and Jesse for an example of how> to do this with aka.datagram and udpsend.> > The max objects package messages for other apps, not hardware.> Aka.datagram will send out the raw bytes, not a max/java/pd prepared> message.> > s> > On Fri, Feb 15, 2008 at 11:24 AM, Seejay James wrote:> >> > ach... but it's not going to a udpreceive, it's going to a circuit board. I don't know if the board will interpret the symbol correctly, we tried it with a string message and it still saw ASCII. so I don't know what's happening.> >> > I remember similar problems with the Arduino, where I had to tell it "BYTE" for the kind of value to send to Max, then that worked. Any way to change a list into "char"? Would that do it?> >> > I don't understand why the udp.send would send a list of ints as ASCII, I must be missing something....?> >> > --CJ> >> >> > _______________________________________________> > maxmsp mailing list> > maxmsp@cycling74.com> > https://cycling74.com/mailman/listinfo/maxmsp> >> _______________________________________________> maxmsp mailing list> maxmsp@cycling74.com> https://cycling74.com/mailman/listinfo/maxmsp
Importieren Sie ganz einfach Ihre E-Mail Adressen in den Messenger!
http://messenger.live.de/community/neuekontakte_adressimport.html

roger.carruthers's icon

--- steffen scholl wrote:

>
> i need every information about the
> mcgill-mailing-list... (the first mail-list for

nick rothwell | project cassiel's icon

On 5 Mar 2008, at 14:19, steffen scholl wrote:

> i need every information about the mcgill-mailing-list... (the first
> mail-list for max-user)

Actually, no: I set up the first mailing list, at Edinburgh
University, early in 1991. I passed the membership list on to McGill
some years later since I couldn't host it anymore and they could.

    -- N.

Nick Rothwell - nick@cassiel.com - www.cassiel.com
--- open-source goodies for MaxMSP: Python, Groovy, Nixie Tubes,
--- rotatable text bricks, databases: all at www.loadbang.net