python serial port test RS485.py works - JohnHau/mis GitHub Wiki

#!/usr/bin/python import shutil import sys

import serial import subprocess

def finish_func(): print("hello finish func\n")

print("this test\n") finish_func() ser = serial.Serial() ser.baudrate = 115200 #ser.port = 'COM8' ser.port = '/dev/ttyS7' ser.open()

out = ser.read(5)

print(out)