[solved] ESP32 resets when using python Serial library
Posted: Tue Aug 15, 2023 9:25 am
Hello,
I am trying to use python library to read/write to serial of ESP. The interface is initialized as below, however ESP32 resets when I run the code. How can I fix this? I am running the code on Windows PC. Many thanks!
ser = serial.Serial(
port = com_port,\
baudrate = baud_rate,\
parity=serial.PARITY_NONE,\
stopbits=serial.STOPBITS_ONE,\
bytesize=serial.EIGHTBITS,\
dsrdtr=0,\
rtscts=0,\
xonxoff =1,\
timeout=2)
I am trying to use python library to read/write to serial of ESP. The interface is initialized as below, however ESP32 resets when I run the code. How can I fix this? I am running the code on Windows PC. Many thanks!
ser = serial.Serial(
port = com_port,\
baudrate = baud_rate,\
parity=serial.PARITY_NONE,\
stopbits=serial.STOPBITS_ONE,\
bytesize=serial.EIGHTBITS,\
dsrdtr=0,\
rtscts=0,\
xonxoff =1,\
timeout=2)