simple udp/osc networking: "FullPacket" problem

lorenzo's icon

Hi,

I need to send integer messages into Max/MSP from Eyesweb (http://www.infomus.org/EywMain.html).

Eyesweb has UDP send or OSC send blocks.

At the moment I have a test patch in Max/MSP with a udpreceive object linked to a number box.

When I try to send an integer through eyesweb, I get one of two errors in Max/MSP:

net.recv.udp: OSC packet size (1) not a multiple of 4 bytes: dropping

or

error: flonum: doesn't understand "FullPacket"

Depending on whether I use the UDP send or OSC send block in eyesweb, respectively.

I accept that there is a lot to know about OSC etc. But at the moment I urgently need a fix to allow me to get this integer number into Max/MSP.

Any ideas?

Thanks to all who reply.

lorenzo's icon

I guess as far as the "FullPacket" error goes, my question is simply: how do I decode FullPcket messages to be able to use them in Max/MSP?

Ben Bracken's icon

Lorenzo,

First off, the second error would indicate that you are sending a "FullPacket" message to a floating number box. Perhaps you need to strip out the FullPacket bit? You can use [route FullPacket] or something...

-Ben

lorenzo's icon

Hi Ben, thanks for the reply.

I know I'm sending a FullPacket message to flonum, but I don't know enough about OSC and what 'FullPacket' means to actually extract the number I need in Max/MSP. How do I do it?

For the moment I've written a java external to handle the task and it seems to work fine.

Cheers.

Emmanuel Jourdan's icon

Have a look to the cnmat_compatibility subpatcher in udpreceive's help file.

mzed's icon

Emmanuel Jourdan wrote on Thu, 27 August 2009 14:33Have a look to the cnmat_compatibility subpatcher in udpreceive's help file.

What he said.

Or the OpenSoundControl object from CNMAT. "Fullpacket" is suggesting you are trying to move osc-formatted data, and not a Max message.

mz

vurma's icon

The quickest method for me to achieve this was to go at it logically and with a bit of a hack.

The OSC messages i sent contained a string "/identifier", a string "id" and some values that i threw into a string. Three strings total.

The unjoin Max object split that into three neat string from which i was able to extract the numerical data in the message by using the fromsymbol object.

No need for external libraries. Lots of coffee. All fun and games.

Ritwik Banerji's icon

Thanks MZED! Was trying this for a while and had no idea what I was doing wrong!