打印
[AVR单片机]

Linux下使用smartCOM调试串口

[复制链接]
4774|16
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
nextkey|  楼主 | 2013-4-20 02:30 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
在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.

2013/1/12 Update: ver 2.4
1) Add RTCM v2.3/3.1 decoder, more info;
2) Support baudrate 230400/460800;
3) delete protocol ymodem, becase ymodem = xmodem-1k;

2012/12/26 Update: ver 2.2
1) Add Save Button;
2) Add auto save file when exit;

2012/12/17 Update:
Add GB2312 support;

2012/12/10 Update:
Fixed the rx data display in string mode;
FromUTF8->From8BitData, only support ISO-8859-1 encoding;
Add dynamic dll support, and the extSerialSample.dll is a demo; smartcom增加自定义插件支持
add side tree list;

下载链接: please open url: sourceforge.net;

    smartCOM-linux-v2.4.tar.gz
    smartCOM-windows-v2.4.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:

相关帖子

沙发
nextkey|  楼主 | 2013-4-20 02:33 | 只看该作者
支持xModem下载文件,参照下图:


http://gnssinfo.com/2012/12/03/s ... a-file-with-xmodem/

使用特权

评论回复
板凳
nextkey|  楼主 | 2013-4-20 02:34 | 只看该作者

使用特权

评论回复
地板
qin552011373| | 2013-4-20 09:19 | 只看该作者
谢谢分享  

使用特权

评论回复
5
huangxz| | 2013-4-21 07:51 | 只看该作者
这个做的也不错,谢谢楼主,最好RTS,DTR有可以控制的,

使用特权

评论回复
6
huangxz| | 2013-4-21 07:56 | 只看该作者
不过如果作为终端软件使用,我还是喜欢securecrt,小巧,功能强大的(支持python脚本等)让我还找不到另外一个跟他相比

使用特权

评论回复
7
nextkey|  楼主 | 2013-4-23 23:33 | 只看该作者
huangxz 发表于 2013-4-21 07:56
不过如果作为终端软件使用,我还是喜欢securecrt,小巧,功能强大的(支持python脚本等)让我还找不到另外一个 ...

securecrt是收费的吧? 另没有linux版。

使用特权

评论回复
8
hardfire| | 2013-4-24 09:34 | 只看该作者
securecrt 不收费啊。
支持下。

使用特权

评论回复
9
nextkey|  楼主 | 2013-4-25 12:25 | 只看该作者
hardfire 发表于 2013-4-24 09:34
securecrt 不收费啊。
支持下。

只能说明你用的盗版,其他啥也说明不了,嘿嘿;
看官网介绍:http://www.vandyke.com/products/securecrt/index.html

只有30天免费试用期;
另刚发现也有LINUX版、MAC版。

使用特权

评论回复
10
nextkey|  楼主 | 2013-4-25 12:30 | 只看该作者
nextkey 发表于 2013-4-25 12:25
只能说明你用的盗版,其他啥也说明不了,嘿嘿;
看官网介绍:http://www.vandyke.com/products/securecrt ...

secureCRT及相关组件的价格,还是蛮高的。
http://www.vandyke.com/purchase/direct/index.html

使用特权

评论回复
11
hardfire| | 2013-4-25 13:53 | 只看该作者

使用特权

评论回复
12
evilangell| | 2013-4-27 12:52 | 只看该作者
不错,挺漂亮的,能提供代码下载吗?

使用特权

评论回复
13
dong_abc| | 2013-5-9 05:52 | 只看该作者
一直用minicom

使用特权

评论回复
14
开发者_test| | 2013-5-9 07:37 | 只看该作者
非常好,不过又多了一份工作量,实际上,从现有的开源基础上做写贡献多好

使用特权

评论回复
15
dirtwillfly| | 2013-5-9 09:53 | 只看该作者
好工具啊,貌似很强大

使用特权

评论回复
16
baigame| | 2014-4-7 10:35 | 只看该作者
好工具啊,貌似很强大

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

6

主题

69

帖子

1

粉丝