BLE decode advertising header packet incorrect

I have been decoding a BLE advertising packet, I am getting correct preamble and access address but once I try to decode the PDU starting with the header it is incorrect. The preamble and access address are simply decoded through GFSK , with the endian swapped on the access address. Is there typically some form of encoding used in the PDU header that could explain why I cannot decode the correct header? 

for example I am decoding the header to be 0x6F5B but using a BLE sig tester I can confirm the header is 0x201F, I know my decoding is working well before the header so I do not expect such drastic differences,

Thanks for your help in advance.

Parents Reply Children
  • Hi,

    Thanks for your help, i dont think I'm having any buffer problems, I am consistently receiving the same value for the advertising packet header 0x6F5B, using another device I know it is really 0x201F. The preamble and access address are all correct, I think I may be missing some step in decoding the header of the advertising packet PDU, do you know if there is some encoding in place in the header?

    Regards,

    William

Related