Hello all, and A Happy New Year to you all.
I am reading a device and receive a string of 10 hex characters something like: 0,F,0,2,0,2,A,9,B,1 These are then grouped into 5 2 byte ASCII numbers: 0F,02,02,A9,B1
So far, so good. This is a serial number of a device.
My problem is that I need (would like) to convert that to a Decimal unique number.
Quite obviously, the ascii characters are not necessarily numbers, or even letters for that matter.
I have tried(and am still trying) to come up with some universal formula which could be applied to any such string that comes in, to convert, but I keep getting What! What! What! What! and that only makes 4 watts, not very bright, huh? apologies to Neddy Seagoon.
The data is always 10 bytes, converted to 5 characters.
Any ideas folks??
Regards, and thanks, as always,
Peter Moritz,
Up the bush, By the Sea, South Australia.