UDP via Arduino + Wishield

Sep 8, 2010 at 6:24pm

UDP via Arduino + Wishield

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?

#52233
Sep 8, 2010 at 8:01pm

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.

#187726
Sep 8, 2010 at 10:29pm

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

#187727
Aug 15, 2013 at 7:51am

up?

#258993

You must be logged in to reply to this topic.