mac下minicom的安装和使用

android项目需要接入串口的设备,mac下面需要设备模拟数据调试,选用轻量级的minicom调试工具,具体的安装方法。 安装minicom 我用brew来安装所以就需要brew的安装方法跳转至http://itsayer.com/?p=723 的文章前半部分。

安装

brew install minicom

进入终端

minicom -s
┌─────[configuration]──────┐
             Filenames and paths      
             File transfer protocols  
             Serial port setup        
             Modem and dialing        
             Screen and keyboard      
             Save setup as dfl        
             Save setup as..          
             Exit                     
             Exit from Minicom        
            └─────────────────────────

选择 Serial port setup

 A -    Serial Device      : /dev/modem                                
     B - Lockfile Location     : /usr/local/Cellar/minicom/2.7.1/var       
     C -   Callin Program      :                                           
     D -  Callout Program      :                                           
     E -    Bps/Par/Bits       : 115200 8N1                                
     F - Hardware Flow Control : Yes                                       
     G - Software Flow Control : No                                        
                                                                           
        Change which setting?       

1)输入A 跳转到 Serial Device 串口驱动位置:

cd /dev/tty.usb**** 回车

2)输入F 跳转到Hardware Flow Control 改为NO 回车

在输入Y 回车回到配置界面,键盘上下 选择 Exit 退出连接到驱动了。

┌─────[configuration]──────┐
             Filenames and paths      
             File transfer protocols  
             Serial port setup        
             Modem and dialing        
             Screen and keyboard      
             Save setup as dfl        
             Save setup as..          
             Exit                     
             Exit from Minicom        
            └─────────────────────────

进入数据接收发送界面: welcome to minicom*************

就可以收发数据了。。。。