Forums > MaxMSP

UDP via Arduino + Wishield

September 8, 2010 | 6:24 pm

hey maxers

I’m cooking up a project (on a tight deadline, of course) and here is what is up. We are using an Arduino Mega + Async_Labs WiShield to transmit analog sensor data wirelessly to a variety of sources. I’m using Max to implement whatever noise control and data scaling in real time so we are not constantly booting new code to the Arduino.

However (of course), Max isn’t happy with the UDP info coming from the WiShield, mostly b/c [udpreceive]+[udpsend] so strongly prefer OSC-style strings. SO, what I’m looking for is if anyone has experience with the WiShield and/or getting unfriendly formats of UDP data to cooperate with Max (or vice versa).

Here are the errors I’m getting:

udpreceive: OSC packet size (3) not a multiple of 4 bytes: dropping

and here’s the raw print of what’s actually coming in:

FullPacket 3 475154480

and the 1st int after "FullPacket" shuffles b/w 1, 2, and 3 unrelated to our sensor articulation.

any advice out there?


September 8, 2010 | 8:01 pm

The answer is about ten posts under yours!

http://cycling74.com/forums/topic.php?id=27904

Siska Adams has released a beta version of objects for handling raw UDP data that work really well for me and I was getting the same message.

I think the fullpacket mode on udpreceive is still using an OSC format so that won’t supply the data you want.


September 8, 2010 | 10:29 pm

ha awesome. thanks scatalogic. will report back with success/failure.


August 15, 2013 | 7:51 am

up?


Viewing 4 posts - 1 through 4 (of 4 total)