Reply To: unpacking a packet of parsed data.

Hi, sorry I’ve been busy with work and other projects, and haven’t had time to sit down with this in a while.

Thank you both for your help again. Seejay, the message boxes where not modified, it is exactly as the serial data comes into max. Unfortunatly most of the arduino code is comming from an external library, so removing the spaces and commas requires modifying the library, which is again beyond my ability in programming.

I tried instead adding a 27 and a colon at the beginning of each packet. Like I said the 200 is a variable, and will begin to change once the headset is being worn, so having 200 as the route selector wont work once its being used.

I modified my patch according to Karrrlo’s help. It seems to be almost there, I’ve been tweeking and trying different approaches for a few days now, but for some reason the unpack just doesn’t work if I have the serial data comming in. If I have the exact some data put through the patch by the message boxes, it unpacks, but if I run it through the serial instead it doesn’t want to unpack?

I’ve attached some screen shots and my patch below so you can get more of an idea of what I’m talking about.

Thank you both again very much for your help!

Attachments:
  1. screen3
  2. screen2
  3. Screen1
  1. brainjam5.maxpat
Jun 27, 2013 at 12:07am #254215