We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOther Libraries › sending string serial port size issue
Page Index Toggle Pages: 1
sending string serial port size issue (Read 992 times)
sending string serial port size issue
Jun 1st, 2010, 11:23am
 
hello all

im having a problem with a size limitation on a string which i compse in one processing applet, and send through my serial port to another applet.  

I can send the sting of ints and floats and recieve it fine, until the string size passes about 200 ints and floats.     anyone see an issue.  thanks

part of code which is sending:

 OscMessage sendData = new OscMessage("data");

if(frameCount%5 ==0){
 sendData.add(data.length);

 for(int n = 0; n < data.length; n += 2){

   float b = data[n];
   float c = data[n + 1];

   println("data.size"+data.length);
   sendData.add(b);
   sendData.add(c);
 }
 }
 oscP5.send(sendData, remoteLoc);
   counter = 0;
}



part of code which is recieving:

void oscEvent(OscMessage oscMsg){

 numPts = oscMsg.get(0).intValue();
 
 for(int i = 1; i < numPts + 1; i ++){

   ptList[i] = oscMsg.get(i).floatValue();

 }
}




could it be a serial port limitation?
appreciate any help     thanks
Page Index Toggle Pages: 1