Grasshopper

algorithmic modeling for Rhino

Hi Luis, thanks for sharing such great tool. I've got an issue with sending data from processing through osc. Its a huge string that its sopouse to be sent in real time and i'm already been successful in sending the data, but there is a maximum size of the amount that it been send, after that it simply stop. I could now configure the datagram size of the message in processing, but nothing change, so there is a way of edit the size of the data that i can receive in ghowl?
Only i've noticed that depend on the quality of wireless network,
Thanks a lot

Views: 653

Replies to This Discussion

Hello Javier,

Yes, I've noticed the size limit as well.  Let me see if I can find a nice way to bypass it.  Can you check how many bytes you are sending?

Hello Luis
I' think i can get de maximum size of the bytes that i'm sending for now, but i'm not sure if i can get to now the exact number of how many i really need to send, i think a lot. I´m working with the kinect in processing and sending the x,y and z coordinates of, not all, but a bunch of vectors.

Thanks again, you rock!

One quick thing I am thinking about is that you could send two messages to two different ports.  this is a bit of a hack, but might work as long as you know how to reconstruct it on the gh end.

I think the limit is setup by the osc lib I am using, or the UDP packet setup.  Have little time to investigate, but it's on my mind...

Luis

Thanks Luis, but i already tried, unfortunately it's the same as if i send only one message. Apparently  there is a size limit for all messages that you can send at the same time. I've been tried sending the messages with a little delay but in gh the data tend to arrive out of phase so the geometry just collapses. So i'm still working on it.

I did a test with udp test tool to find how many bytes i can send  and i think it's around 6500.

Javier

Hi Luis/Javier,

I'm having the same problem. Trying to send an array of points (x,y,z) from processing to GH. Any array bigger than 5x5 (25 points) does not get sent and an error comes up saying

"ERROR @ UdpClient.send ioexception while sending packet. java.net.socketException: The message is larger than the maximum supported by the underlying transport: Datagaram send failed"


Any solution for this?

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service