@@ -0,0 +1,811 @@
+import serial%0Aimport binascii%0Aimport time%0A%0Acom_port = 'COM3'%0A%0Aserial_com = serial.Serial(com_port, 115200, timeout=0.5)%0Aif serial_com.isOpen():%0A    print(com_port+%22 is open success.%22)%0Aelse:%0A    exit(com_port+%22is open faild!%22)%0A#serial_com.write(%22root%5Cn%22.encode(%22gbk%22))%0A#time.sleep(2)%0Acount_rst = 0%0Awhile True:%0A    data = serial_com.readline()%0A    if data != b'':%0A        data_str = bytes(data).decode('ascii')%0A        print('*', end=%22%22)%0A        #print(data_str)%0A        if data_str%5B:16%5D == %22localhost login:%22:%0A            count_rst = count_rst + 1%0A            print(%22%5Cr%5Cnreset count : %25d%22%25(count_rst))%0A            time.sleep(1)%0A            serial_com.write(%22root%5Cn%22.encode(%22gbk%22))%0A        if data_str%5B:17%5D == %22root@localhost:/#%22:%0A            time.sleep(120)%0A            serial_com.write(%22reboot%5Cn%22.encode(%22gbk%22))

add 02_uart_evb.py used for evb overlight test.