Reply To: unpacking a packet of parsed data.
Thank you so much for your help so far. I’ve been playing around a bit more, and based on what you helped me with in this thread, as well as the other thread about filtering out all the 32′s coming through, I’ve built a somewhat modified patch that I think is getting closer, but maybe I’ve just complicated it and actually getting worse?
I looked more into the arduino side of it, because I’m actually using a library that does all the parsing built specifically for the brain reading device. It sends out the data as ascII… which then must get converted to come over serial. In the patch I updated, I use the ItoA object, and print this to the max window, and the figures that come up are exactly a match to what gets printed in the arduino serial monitor. You can see an image attached. Basically all of these 11 groups of numbers are variable. So for instance the first 200 that you see, this is the signal strength coming from the device, which varies from 200 to 0. The next two zeros that you see are variable between 0-100 and concentration and meditation levels of the person wearing the device – they are both 0 right now because the device is sitting on the table. The next 8 are 6-7 digit variables, that represent the various alpha, theta etc brainwave readings. So I’m looking for a way to break these 11 variable values, and patch them into their own number boxes, so I can use them individually to control parameters. For instance the first reading, signal strength, I just want going into a number box so I can see that its working, whereas the second reading, concentration I want to control a volume slider… etc
I think I’m getting closer to achieving this maybe, given that since you helped me in the other post, I’ve figured out that each space will return a 32, and each comma will return a 44, I’m just trying to work out how I tell the unpack object to combine all of the numbers together between each 44, i.e between each comma, seeing how the data is separated by commas?