首页 > linux, wxWidgets > Linux下使用smartCOM调试串口

Linux下使用smartCOM调试串口

在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;

同步更新上传地址: 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:

分类: linux, wxWidgets 标签: ,
  1. 2014年1月13日17:04 | #1

    Hi,
    I have a problem with xmodem-1k
    I have a stm32 device and have programmet xmodem upload – it works with terraterm and hyperterminal…
    but smartcom seem to start my protocol, but does not start to send the file.
    can you help me with your implementation?

    This is how it looks:
    TTY Boot> load app
    CCEnter serialProc: 1
    Exit serialProc

    ⊙1挃⊙1挃⊙1挃⊙1挃⊙1挃⊙1挃⊙1挃⊙1挃⊙1挃⊙1挃⊙1挃 ?
    TTY Boot>

  2. walnutcy
    2014年4月9日17:11 | #2

    @kissozdk
    Hello, where did you use? Windows or Linux? 请邮件联系: walnutcy#gmail.com

  1. 本文目前尚无任何 trackbacks 和 pingbacks.
Protected by WP Anti Spam