![]() ![]() Sleep(0. As far as I know, RLE encoding is supported in. Python sources) or any files which can be RLE encoded with good enough compression ratio the speed can be at least double of the UART speed. Port.write("command that initiates xmodem send from device\r\n") zmodem protocol can use RLE encoding which means the transfer of the files can be faster than the UART speed. use virtual serial port tool to generate COM1 and COM2 that can communicate run the FileReceiver.py and FileSender.py on the command line. Port = serial.Serial(port='COM5',parity=serial.PARITY_NONE,bytesize=serial.EIGHTBITS,stopbits=serial.STOPBITS_ONE,timeout=0,xonxoff=0,rtscts=0,dsrdtr=0,baudrate=115200) Sleep(0.001) # give device time to prepare new buffer and start sending it Below is sample of its usage: import serial ![]() It handles both sending and receiving of data with XModem. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |