Hey guys, I got a question about unpacking serial data from a 6-degree-of-freedom sensor using the 'comport' object.
The receiving data from the sensor should be in a XML format (<data> float float float float float float </data> \n), which would need a further extraction. But it seems like that I cannot get any string from 'comport', but only ascii values (It is not converted into ascii when sending out from arduino). Is it possible to get the data in the way of how it is sent (the XML format)? Or how to make the ascii values back into that format? Would be very thankful for all kind of help and advices
cheers!
-
Question about 'comport' object and serial data from arduino
-
covert.ascii2pd will probably work
-
@metamonster The comport will send out ASCII but you need to then group/parse it a certain way so you can acquire all of the messages properly. I just finished fixing a bunch of PD patches that handles ASCII in and ASCII out in a very smooth fashion. Try this out, I'm gonna be making videos in the coming days. Let me know if you have any questions.
https://github.com/cskonopka/arduivis
cskonopka.github.io/arduivis/- ck
@cskonopka
cskonopka.tumblr.com -
- ck
@cskonopka
cskonopka.tumblr.com