Hi,
I only took a quick a look at this but it seems to me that code expects to receive three bytes where the first one is 254. However, when you type in 254,1,1 in Hyperterminal it sends 7 bytes (50-53-52-44-49-44-49) which is the ASCII representation for the text you typed - it does not send the "raw" binary values you type.
There is a way to send what you want with the serial terminal in MCS. Make sure that the option Parse Control Characters are activated then Type #254#1#1 and press send. Look in the Help for more info on that option.
/Henrik.
Bookmarks