Editing the UA on a MOSC clone |
|
| When working with the MoscAS utilities, you might run into a problem when trying to edit the Unique Address (also called Card Serial) with the use of MatrixStudio. Don't worry, there is a simple way around that. What you'll need is a hex calculator (like the Windows calculator) and Notepad. First you need to read the UA from your original MOSC. For purpose of this sample, let's assume that the UA of my MOSC was 11 22 33 44. So that's the UA that I would like to appear on my clone too. Well then, let's do it. Start Notepad and open the MoscAS hex file you are going to use. Then search for the UA that's in the hex file. The default UA in MoscAS is 00 07 5B CD. Now all you have to know is how and where to find this UA, so you can change it. It is very simple really. In these hex files, the values are coded in byte pairs, so the value 0 is written as 00 00, and 7 is 00 07 and so on. Only the spaces are left out in the hex file. So what you need to look for is 00000007005B00CD. You can discard the 0000000 in you search and start a search for 7005B00CD.
As you will see, this code is found near the end of the file.
OK, now replace this by the UA as found on your MOSC. As said, we are doing this sample with a UA 11 22 33 44. In the screen down here, you can see how to place this UA correctly into the file.
Now there is one last thing we need to do. The Checksum for this line needs to be recalculated. Every line in such a hex file, ends with 1 byte which is the checksum. So, in this case, the old checksum was 7C (see above). To calculate the new checksum, start the Windows calculator. Select the options "Hex" and "Byte".
Now, start subtracting 1 byte at a time, starting at the beginning of the line. So you first subtract 10, then 20, then 00 etc. up until (but not including) the old checksum byte. You can of course leave out all the 00. This would make the formula look like this: 00 - 10 - 20 - 25 - 11 - 22 - 33 - 44 = 01 So, with this sample, the new checksum would then be 01 (see the screen below).
Well then, just edit the checksum in the hex file. When you now program this edited MOSCAS12.HEX to your card, the UA will show 11 22 33 44.
That's all. | |