Xmodem code base on RS485 port