linux下安装串口调试助手

参考博文:http://blog.163.com/brave_smile_heart/blog/static/187238171201221474640314/


本机系统:ubuntu 11.10 64bit

ubuntu自带了usb_to_serial_port的驱动,经测试。PL2303插上即可用,可以使用如下命令察看串口信息

luosuo@ubuntu:~$ dmesg | grep usb
[    0.406126] usbcore: registered new interface driver usbfs
[    0.406135] usbcore: registered new interface driver hub
[    0.406159] usbcore: registered new device driver usb
[    1.472072] usb 1-6: new high speed USB device number 5 using ehci_hcd
[    1.904077] usb 3-1: new low speed USB device number 2 using uhci_hcd
[    2.093478] input:  USB OPTICAL MOUSE as /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.0/input/input5
[    2.093613] generic-usb 0003:0000:0538.0001: input,hidraw0: USB HID v1.11 Mouse [ USB OPTICAL MOUSE] on usb-0000:00:1a.0-1/input0
[    2.093726] usbcore: registered new interface driver usbhid
[    2.093728] usbhid: USB HID core driver
[    2.316063] usb 4-1: new full speed USB device number 2 using uhci_hcd
[    2.724042] usb 4-2: new full speed USB device number 3 using uhci_hcd
[   22.485966] usbcore: registered new interface driver btusb
[   22.801001] input: HP Webcam-50 as /devices/pci0000:00/0000:00:1a.7/usb1/1-6/1-6:1.0/input/input6
[   22.801459] usbcore: registered new interface driver uvcvideo
[ 1721.944106] usb 2-2: new high speed USB device number 2 using ehci_hcd
[ 1722.408917] scsi4 : usb-storage 2-2:1.0
[ 1722.409230] usbcore: registered new interface driver usb-storage
[ 1864.940121] usb 6-1: new full speed USB device number 2 using uhci_hcd
[ 1865.361759] usbcore: registered new interface driver usbserial
[ 1865.361999] usbcore: registered new interface driver usbserial_generic
[ 1865.362005] usbserial: USB Serial Driver core
[ 1865.381341] usb 6-1: pl2303 converter now attached to ttyUSB0//这个就是(usb to serial)串口的挂接点
[ 1865.381376] usbcore: registered new interface driver pl2303
luosuo@ubuntu:~$ xgcom&//打开后面安装的串口调试软件(已经安装了)



xgcom串口调试软件安装记录


软件来源:http://code.google.com/p/xgcom/

软件说明:

=========================================================================================================

1、Intro:

Linux下的图形化串口调试工具.
A gui tools to help guys debug programs remotely by series port, like minicom. part code is form gtkterm-0.99.5. 

Some lib and tools are needed:
编译必须安装的库:
make, automake,libglib2.0-dev,libvte-dev,libgtk2.0-dev   //必须安装的支持包。使用sudo apt-get install xxx 命令即可安装

zlbgps has put this software into AUR pakeage library 
zlbgps已经把该软件放入了AUR的软件包库,使用Archlinux的用户使用下面的命令即可完成安装:
so arch users can install this program with this command :

yaourt -S xgcom

========================================================================================================

我的操作步骤:

1,到 http://code.google.com/p/xgcom/下载源代码---》解压
2,分别安装各支持包(make命令已经安装了)
sudo apt-get install libglib2.0-dev
sudo apt-get install libgtk2.0-dev
sudo apt-get install libvte-dev
sudo apt-get install automake
3,进入源代码根目录,按照如下顺序执行命令
# ./autogen.sh   //部署编译环境
# make   //编译
# sudo make install      //安装,sudo必须有
# xgcom  //启动软件

该图片是在终端中执行xgcom命令后启动的软件主界面
linux下安装串口调试助手_第1张图片

ubuntu下添加linux源代码
apt-get install linux-source
然后/usr/src里面就有linux的源代码了





你可能感兴趣的:(linux,工具)