2 years ago
#29193
priya91
How to send Control+C to UART serial port?
I am trying to automate my test process where I send some commands to Linux core on my TI board via putty terminal and as response, I see console print on putty from the core. I am automating this using python and pyserial. I have a problem where some of the output prints are very large and sometimes will not stop until control+c is pressed. I am currently doing it manually but How can I automate it?
I have tried :
serial.write(r'\x03' + '\n')
serial.write(b'\x03')
python-3.x
pyserial
0 Answers
Your Answer