1、下載socat brew install socat 2、虛擬串口 socat -d -d pty,raw,echo=0 pty,raw,echo=0 3、使用串口 根據步驟2創建的串口名稱鏈接串口、2步驟進程需一直開啟