Implement Bit Error rate or Packet Error Rate

I am sending digital data from one module to another successfully. Anyone has ideas on how to measure the bit error rate of the data transferred?

‘Bit Error Rate’ usually is a measure of bit-error in the async serial wave-form. So if I say the signal is 9600 baud (9600 hertz), it might actually be 9598 hertz.

Do you really want ‘latency’ and lost-update counts?