goto http://www.faqs.org I'm sure you'll find the protocol specs for Xmodem