0

BLE CRC calculation

Maciej Baster gravatar image

asked 2013-10-18 07:54:09 +0100

updated 2013-10-21 16:17:22 +0100

Hi,

I'm writing a little piece of software using direct access to the radio registers in NRF51822. Is NRF51822 capable of calculating BLE checksum in hardware? As far as I'm concerned BLE standard uses x^24 + x^10 + x^9 + x^6 + x^4 + x^3 + x + 1 poly to generate checksum which coresponds to 25-bit binary vector. But NRF_RADIO->CRCPOLY is only 24 bits wide and therefore cannot be used to calculate checksum correctly. Is there any mistake in my interpretation of your reference manual?

Best regards,

edit retag flag offensive close delete report spam

2 answers

Sort by ยป oldest newest most voted
0
Maciej Baster gravatar image

answered 2013-10-18 08:39:52 +0100

updated 2013-10-21 16:17:22 +0100

Apparently, it is. It was my mistake because I was calculating CRC over whole packet including access address field which according to the standard should be omitted.

edit flag offensive delete publish link more
0
volta77 gravatar image

answered 2014-05-29 04:26:05 +0100

Any body know how to calculate bluetooth low energy CRC ? I tried to calculate the Advertising packet CRC captured by TI LE sniffer and tried the possible bit ordering of PDU but still got the mismatch CRC. Can someone tell me the right bit ordering. Give me a example about bit ordering on the air and CRC calculation is better.

for example,

http://e2e.ti.com/cfs-file.ashx/__key...

how to get the CRC=0xA4E2C2 at above link in packet number=839 ?

Thanks a lot.

edit flag offensive delete publish link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer. Do not ask a new question or reply to an answer here.

[hide preview]

User menu

    or sign up

Recent questions

Question Tools

1 follower

Stats

Asked: 2013-10-18 07:54:09 +0100

Seen: 2,978 times

Last updated: okt. 21 '13