#!/bin/bash #=========================================================================== # Organization : Individual developer # Filename : reset_mcu.sh # Author : Feng Bohan # Create Time : 02:51:28 2024-07-14 # Last Modified: 00:17:44 2024-07-15 # Abstract : #-------------------------------------------------------------------------- # Description: # #-------------------------------------------------------------------------- # Modification History: #-------------------------------------------------------------------------- # Rev Date Who Description # --- ---- --- ----------- # 0.0.01 2024-07-14 Feng Bohan initial version #=========================================================================== stty -F /dev/ttyUSB0 speed 9600 cs8 -parenb -cstopb raw -echo -echoe -echok -echoctl -echoke echo -e "RESET!" > /dev/ttyUSB0 #说明: #speed 串口波特率 #cs8 数据位8位 #parenb 无校验 #cstopb 停止位1位 #查看串口设置: stty -a -F /dev/ttyUSB0