ok. I tried to get 512 bytes using string (STR command) and the following statements

Code:
MESS1 VAR BYTE[512]

HSERIN2 [STR MESS1\512]
The data seems to be getting corrupted as I believe some bytes arriving in HEX format don't add up in a sensible way in string format. Like $00 will be considered as null. Is there any idea as to how to get them in HEX format?