Linux下使用smartCOM调试串口

来源:互联网 发布:java编写计算器教程 编辑:程序博客网 时间:2024/05/22 15:07

在Windows下的串口调试一直使用sscom,在Linux下只找到一个cutecom,用了几次,很不喜欢,就着手开发了一款自己的串口调试工具,smartCOM。
smartCOM介绍:http://gnssinfo.com/2012/11/21/wiki-smartcom/

smartCOM is a graphical serial device terminal, it’s an alternative to minicom. It is aimed mainly at hardware developers who need a gui test tools to talk to their custom hardware. The GUI is written using the wxWidgets library, and using the tinyxml to save or load config.

下载链接:

  • smartCOM-linux-v1.5.tar.gz
  • smartCOM-windows-v1.5.rar

同步更新上传地址: http://sourceforge.net/projects/smartcoms/
2012/12/05 Update:
1) Up File transfer UI;
2) Add Cortex M3 IAP Protocol(for a project);
3) Add input support in output window;
4) Add File Protocol Selection remember;
5) Fix “Cancel” function bug in ver1.3;

2012/12/03 Update:
1) Add file transfer ui;
2) Add simple file transfer: protocol(NONE);
3) Add XModem protocol: TX Modem(1K), RX Modem(1K)

2012/11/22 Update:
1) Add Hex display for the received data;
2) Add Rx/Tx Statistic;

2012/11/21 目前已支持如下功能(Support Feature List):
1) 自动枚举串口(Auto List Serial);
2) 支持侧边栏命令框(Support Side Command Bar);
3) 支持回车、换行符勾选(Support Enter/NewLine Code);
4) 支持定时发送(You can Ontimer Send one command);
5) 支持读取文本显示(Display the ASCII that read from serial);
6) 支持多窗口,可以创建多个串口界面(You Can Create Multi-Serial Ctrl UI);
7) 支持当前窗口保存(You can save the Commands to file, and load back);
8) 支持读取文件记录(You can save the received data to file);
9) 提供WINDOWS、LINUX版本;

与cutecom相比,增加了自动枚举串口功能,支持USB串口;
BUG: 在LINUX下,暂未强制锁定串口(该问题CuteCOM同样存在);

ToDO:
1) 增加HEX显示;
2) 增加xmodem的文件发送协议支持;
3) 增加读写统计;

注: LINUX下串口使用需要管理员权限,用管理员登录打开,或是修改权限,如下:
查看串口设备属性后如下:
[root@zynq7k ~]# cd /dev
[root@zynq7k dev]# ls -l ttyS*
crw-rw—-. 1 root dialout 4, 64 Nov 9 08:30 ttyS0
crw-rw—-. 1 root dialout 4, 65 Nov 8 09:43 ttyS1
crw-rw—-. 1 root dialout 4, 66 Nov 8 09:43 ttyS2
crw-rw—-. 1 root dialout 4, 67 Nov 8 09:43 ttyS3

普通用户无读写权限,对其修改,操作如下:
[root@zynq7k dev]# chmod 666 ttyS*
[root@zynq7k dev]# ls -l ttyS*
crw-rw-rw-. 1 root dialout 4, 64 Nov 9 08:30 ttyS0
crw-rw-rw-. 1 root dialout 4, 65 Nov 8 09:43 ttyS1
crw-rw-rw-. 1 root dialout 4, 66 Nov 8 09:43 ttyS2
crw-rw-rw-. 1 root dialout 4, 67 Nov 8 09:43 ttyS3
[root@zynq7k dev]#

ScreenShot:


原创粉丝点击