个人工具
104.160.18.24
该IP地址的讨论
登录
查看“UbuntuHelp:Cutecom”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:Cutecom”的源代码
来自Ubuntu中文
←
UbuntuHelp:Cutecom
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/Cutecom}} {{Languages|UbuntuHelp:Cutecom}} == What is Cutecom ? == Cutecom is a graphical serial port communications program, similar to Minicom. The Windows equivalent is Hyperterminal. It's available for all versions of the Ubuntu family. == Installation == Cutecom is in the Universe Repository. Go to Applications - Accessories - Terminal update the apt cache with <pre><nowiki> sudo apt-get update </nowiki></pre> Install the program with <pre><nowiki> sudo apt-get install cutecom lrzsz </nowiki></pre> The lrzsz package contains tools for zmodem/xmodem/ymodem file transfer. Alternatively you can get Cutecom (and Lrzsz) via Synaptic. Now you may or may not have a Cutecom menu item under Applications-Accessories depending on whether Xubuntu or Ubuntu is running. To create a new menu item right-click on Applications in the task bar and select 'Edit Menus'. Click on 'System Tools' in the new window that opens and then 'New Item'. Enter the following information * Type - Application * Name - Cutecom * Command - cutecom * Comment - Serial port terminal To change the icon just click on it and you'll be shown a number of options to choose from. Now click on 'Close', 'Close'. == Running from start-up == Go to System-Preferences-Sessions. Click on the Add button. Enter the following * Name - Cutecom * Command - cutecom * Comment - Serial port terminal This will start up Cutecom every time you log into Ubuntu. == Finding Ports == Select Applications-Accessories-Terminal. In order to find the name of your port(s) enter this command in terminal: <pre><nowiki> dmesg | grep tty </nowiki></pre> The output will be something like this: <pre><nowiki> [ 22.587279] console [tty0] enabled [ 24.186230] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A [ 24.186860] 00:08: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A [ 51.598012] audit(1243322582.732:2): type=1503 operation="inode_permission" requested_mask="a::" denied_mask="a::" name="/dev/tty" pid=5705 profile="/usr/sbin/cupsd" namespace="default" </nowiki></pre> What we are interested in is the name of the serial port, in this case ttyS0, which we will need in order to use Cutecom. == Using Cutecom == Run the program by going to Applications-System Tools-Cutecom. From the pull-down menus set your Device to <pre><nowiki> /dev/ttyS0 </nowiki></pre> (or whatever port has been found above) as well as all other settings as detailed in the user manual of the external devices that you wish to connect to. Now click on 'Open device' to connect (all settings will be greyed out until you select Close device (disconnect)). Now you can enter commands to the external device. === Command Examples === With a phone connected to the serial port ttyS0 and port settings already set for the device, in the Input box, enter <code><nowiki>at</nowiki></code> The reply should be "OK" suggesting that there is communication with the phone. Now enter <code><nowiki>at+cbst?</nowiki></code> this will display the current communication setting of the phone (in this case "+CBST: 0,0,1" - the phone is set to auto-detect the incoming data speed). Now enter <code><nowiki>at+cgmr</nowiki></code> The response will be something like "R5C 001 CXC123456EMEA1" (only works on SonyEricsson phones). This is the software revision of the phone. == Useful Links == * [http://cutecom.sourceforge.net/ Cutecom home page] * [http://en.wikipedia.org/wiki/Hayes_command_set Basic modem command set] There is also a manpage which can be accessed via terminal with <code><nowiki>man cutecom</nowiki></code> ---- [[category:CategoryUtilities]] [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:Cutecom
。