8-bit XOR checksum using Javascript
问题 I'm trying to mimic a windows application that formats a message and sends it over UART via USB to a device that shows that message. The application calculates a checksum and pastes that after the message, otherwise the device will not accept the command. The checksum is NOT a crc8 checksum, but what is it, then? Using a USB monitor, I've seen the following test cases: ASCII: <L1><PA><IB><MA><WC><OM>Test! HEX: 3c4c313e3c50413e3c49423e3c4d413e3c57433e3c4f4d3e5465737421 Checksum: 6A ASCII: <L1>