I have been looking around the internet for a way to create a CRC from a String.
I have found many solutions, but the result I get out doesn't match what I know to be correct ( I am hardcoding the value at the moment, and the response I get back is correct ).
For example, If I send the following string to a device (- quotes),
"A 273 SPA Reception 2 1 03 058"
I get an "ACK" response back.
All the code I have found and run gives me a different value to 058.
The value is created by XORing the Chars with the preceding one.
Can someone please advise me on how I can, in C#, get the required answer?