#!/usr/bin/env pythonimportosimportsysimportserialimportbase64fromtimeimportsleepiflen(sys.argv)<2:print"firt argument is device."raiseSystemExitser=serial.Serial(sys.argv[1],38400,timeout=0.5,rtscts=0)count=8*8foriinrange(count):ser.write('\0')#sleep(0.1)