This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

nRF51 scan crc

Looking at the nRF51 UART Example, i know that all packets transmitted over a BLE link will be protected by CRC on the link layer.

But how about when nRF51 scan the ibeacon, and the data is send over uart, will the data still protected by CRC??

Parents Reply Children
  • Hi Jørgen, Thanks a lot for the answer, i got a bit confused. Is that means every time the nrf51 detects any ibeacon, the ibeacon will undergo crc test. The package which is found error will be blocked. However, when the data pass over uart, there will be no crc to protect the data, and error could happen in this process, am i right? Regarding to first solution, is that any sample as reference??

  • Correct, the link layer of BLE ensures that all packages are received and checked against the CRC. If CRC check on a received package fails, a retransmission request is sent until the packet is received correctly. UART does not provide this reliable data link, and any CRC checking or retransmission request must be done in software. Unfortunately, I cannot provide you with an example of software CRC check for UART, but you should be able to find some information about calculating the CRC value, using your favorite search engine.

Related