Home AMX User Forum NetLinx Studio

nec checksum xor

Hi
How do I code an XOR function ?
The string send to the projector or display has a check code.
Example:
Check code (BCC) = 30h xor 41h xor 30h xor 45h xor 30h xor 41h
xor 02h xor 30h xor 30h xor 31h xor 30h xor 30h
xor 30h xor 36h xor 34h xor 03h
= 77h
Tx!

Comments

  • NZRobNZRob Posts: 70
    Here is how I do my checksum code in NEC displays
        //Checksum Code
        nBCC = 0;
        FOR(nLength_Counter = 2; nLength_Counter <= LENGTH_ARRAY(sTemp_Message); nLength_Counter++)
        {
             nBCC = nBCC BXOR sTemp_Message[nLength_Counter];
        }
    
  • MC2MC2 Posts: 11
    works ! many tx
Sign In or Register to comment.