#however the response is in binary and welp
Explore tagged Tumblr posts
Text
my coworker lent me his super fancy oscilloscope for testing, so now i know:
sending a vector encodes the data weirdly
sending a long int DOES work, but the numbers arrive in reverse order (??)
iterating over the vector works great! i can see a response on the oscilloscope! now i just have to figure out how to actually receive it.
#tütensuppe#vector iteration is also good for assembling other commands#edit: i can receive responses now! was making it too complicated actually.#however the response is in binary and welp#when i read it out i get one (1) corrupted character. and a K#(the last chunk in hex is '4b' and 4b = 75 = ascii value of uppercase k)#edit 2: agh that was too easy. just cast the contents of the char buffer to int.....#now to parse that
0 notes