Quote Originally Posted by richard View Post
to start with


probably does not work as you intend

input
41 05xC , mai[0]=$C or 12 or %00001100
41 05x2C , mai[0]=$2C or 44 or %00101100
41 05x42C , mai[0]=$2C or 44 or %00101100
41 05x552C , mai[0]=$2C or 44 or %00101100
41 05x3FED2C , mai[0]=$2C or 44 or %00101100
mai[1] takes no part in this

secondly
the data is always binary once "parsed" by the HEX modifier in hserin ,it just depends on how you display/interpret the data
Thanks Richard for answer, but still not clear for me. The serin input data is a string like:
41 05 2B The "41 05" part represent the identificator and the "2B" is the value in hex which is changing and this part I want store in variable in dec format.