Hey,
I was looking to find the right way to translate “a kind of” Free-D Protocol (http://docs.vizrt.com/tracking-hub-guide/1.0/description_of_the_freed_protocol.html)… hard way but with some helps we find it :
At the beginning I was looking to use some python’s code like this :
88 13 0 0 # Correspond to 4 bytes X value
REVERSE
001388 # Little endian
bin(int('001388',16))
0b1001110001000
int('0b1001110001000',2)
5000
But I got some dropping values that might come from conversion problem… (see following pictures)
So A friend told me that values in 1 byte (“octet” in french) goes from 1 to 256. So we can do something like that :
88 13 0 0
Convert in decimal:
136 19 0 0
Invert
0 0 19 136
Multiply by 256
0 256256*256 + 0 256256 + 19 *256 + 136
Equal to
5000
Be advise that you need to know the frame !
If anyone could explain me where I was wrong on the beginning…
Hope this will help someone