checksum finds integer values of all bytes/packets and of the data stream and adds etc...if the bits change the binary would change and thus the checksum value ?JMelouney said:The same number of 0's and 1's swapped, so Checksum will not pick it up, as the number of 1's is still the same.
There is an odd parity being used, and the first and second bytes were corrupted.
In these two bytes there is an even number of ones, which will be picked up as an odd parity was chosen.
So, Parity will pick it up, Checksum won't
but checksum gets its sum by adding the unteger values of bytes and comparing it with the checmsum byte that was sent and if it doesnt match theres an error. Surely if bytes are changed then this wouldnt be the same number?Makro said:I was just thinking that checksum wouldn't change cos its still the same number of bits. and the parity stayed the same cos it was just swapped. :/
i read the whole question wrong ahaMakro said:nah, cos the parities stay the same. If they were already correct then making 1 a 0 and 0 a 1 keeps it the same.
Also, do note that a byte is a 8 bits, and you were looking at 3 bytes.
In this case there are 11 of these '1' bits which in binary is 1011. Therefore (A) is correct. Checksums are NEVER (apart from this strange question LOL) calculated like this."The checksum is calculated by adding up the number of ‘1’ bits in the data bytes."