Hi,
I am trying to read data using Serial-over-USB with PyUSB. (I would also happily accept any other answer that gets me this data in Python).
For my tests, I'm using the AR demo, which gives output of the type "T2 x y", (i.e., "T2 432 -234"). I am trying to get this string into Python so I can manipulate it there.
Using screen and connecting directly to the Jevois, I do see output in that format.
However, when I connect using PyUSB, I get a long string of numbers.
Example: [0, 0, 110, 192, 0, 128, 43, 0, 117, 192, 15, 65, 64, 31, 48, 206, 64, 245, 66, 192, 103, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 117, 192, 15, 65, 0, 0, 0, 0, 164, 190, 66, 192, 112, 190, 66, 192, 136, 5, 7, 192, 88, 130, 36, 192, 0, 0, 0, 0, 248, 35, 5]
Specific questions:
- how many bytes should I read?
- how do I translate the bytes into a string that looks like "T2 432 -234"?
Thanks,
Miriam