Read data from Serial Command
brianlong at cox.net
Fri Oct 10 23:03:08 CEST 2008
I am new to scripting. I am trying to read the settings from a serial
device using Python. I have been able to successfully connect to the
device and change baud rate settings, ect... with PySerial. I am
trying to send a command to the serial device and capture the returned
info, however, it is not working. Code is below:
s = serial.Serial(port=1, timeout=None, baudrate=9600)
print "Enter CFG"
print "Change baud"
print "New line"
print "Show Encryption Setting"
nw = s.write('sh nw enc')
More information about the Python-list