Hi Folks,
I've got something which is really confusing me and I'm lost.
I'm talking to a camera via a serial connection. To get the serial number from the camera, I send a command and it replies with the serial number.
From the camera's documentation:
Two’s-complement numbering is used for all signed values. Big-endian ordering is employed
For the serial number it says I will get back a 4 byte array which is the equivalent of this:
byte[] buff = new byte[8] { 0x00, 0x01, 0x36, 0xeb, 0x00, 0x0c, 0x45, 0xe3};
The number I am looking for is 79595 (real serial number of the camera)
I am lost as to how to get this. I've tried bitconvertor but it returns 13825 and 235, flipped it simply negates them and adds 1 (expected)
'elp please - I'm lost. How do I convert byte arrays back to meaningful numbers?
Thanks
Crispin