Need help deciphering hex values returned by blue tooth module

Hi everyone,

I'm currently using a microview (I believe this is arduino uno based) to communicate with a RN-52 bluetooth module.

I am able to successfully send commands through TX/RX and now I would like to read/parse data that is being returned.

I am a bit confused as to how the hex values returned correspond to events / status of the bluetooth module based on the explanation in the manual.

http://ww1.microchip.com/downloads/en/DeviceDoc/50002343A.pdf

If you scroll down to page 20 they provide an example. I'm just not sure how "070A" when converted to binary corresponds to what they say it does according to their tables. I can't seem to make sense of it.

Any explanation of these bytes and bits would be great!

Thank you!

I suspect the numbers received are just byte values. You can interpret them as binary, decimal, hex or whatever.

Just try receiving the values and looking at them.

The examples in serial input basics may be useful.

...R

Thanks Robin,

I figured it out.

I think where I was getting confused was that they said the module uses little endianess but the hex is displayed like this

00FF

Where, for example, 00 is BYTE '0' and FF is BYTE '1' (I was looking at it the other way around)

but then the binary should be read little endian.