This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Is BLE data sends in LSB first and Little Endian byte order?

Hi,
I'm confused, according to Bluetooth 4.0 Specification bytes are send in Little Endian byte order, and with LSB first in every byte.
So when I receive raw data from characteristic in nRF52 device, I need to change bytes order from Little to Big Endain and reverse bits in every byte to receive "human readable" raw data but thats not true.
Data I received is in "human readable" order already.
where did I make a mistake?

Thanks :)

Parents Reply
  • ohhh thats make a lot of sense now! Thank you! :)

    But what about "6.2 BIT ORDERING" in Bluetooth 4.0 Specification:
    "The least significant bit (LSB) corresponds to b0 -- b0b1b2 = 110"

    So, it looks like I have to reverse bits in every byte, eg. If i receive 0xA which is 0b00001010, then to make it "human readable", I need to reverse it to 0b01010000 which is 0x50 but it is not the case here.
    Thanks :)

Children
Related