Chinaunix首页 | 论坛 | 博客
  • 博客访问: 669079
  • 博文数量: 183
  • 博客积分: 9166
  • 博客等级: 中将
  • 技术积分: 1920
  • 用 户 组: 普通用户
  • 注册时间: 2009-01-31 16:17
文章分类

全部博文(183)

文章存档

2010年(159)

2009年(24)

分类:

2010-04-28 16:27:19

Configuring minicom to connect to the  TQ2440



Configuring minicom to connect to the TQ2440

As root open minicom in setup mode as follows:
# minicom -s


You will get the main configuration menu, looking something
like this:


------[configuration]-------
| Filenames and paths |
| File transfer protocols |
| Serial port setup |
| Modem and dialing |
| Screen and keyboard |
| Save setup as minilbox |
| Save setup as.. |
| Exit |
| Exit from Minicom |
----------------------------

First choose "Serial Port Setup". In the resulting submenu,
modify settings (probably items A, E and G) so that the
submenu matches this one:


------------------------------------------
| A - Serial Device : /dev/ttyS0 |
| B - Lockfile Location : /var/lock |
| C - Callin Program : |
| D - Callout Program : |
| E - Bps/Par/Bits : 19200 8N1 |
| F - Hardware Flow Control : No |
| G - Software Flow Control : Yes |
| |
| Change which setting? |
------------------------------------------

Of course the "/dev/ttyS0" entry should be changed if your serial port is
different e.g. "/dev/ttyS1" etc. Then return to the main menu by responding to
question at the bottom of the submenu with just a .


Next, choose "Modem and dialing" from the main menu. In the
resulting submenu, remove the "Init string" and "Reset
string" sequences so the submenu looks like this:


---------------------[Modem and dialing parameter setup]----------------------
| |
| A - Init string ......... |
| B - Reset string ........ |
| C - Dialing prefix #1.... ATDT |
| D - Dialing suffix #1.... ^M |
| E - Dialing prefix #2.... ATDP |
| F - Dialing suffix #2.... ^M |
| G - Dialing prefix #3.... ATX1DT |
| H - Dialing suffix #3.... ;X4D^M |
| I - Connect string ...... CONNECT |
| J - No connect strings .. NO CARRIER BUSY |
| NO DIALTONE VOICE |
| K - Hang-up string ...... ~~+++~~ATH^M |
| L - Dial cancel string .. ^M |
| |
| M - Dial time ........... 45 Q - Auto bps detect ..... No |
| N - Delay before redial . 2 R - Modem has DCD line .. Yes |
| O - Number of tries ..... 10 S - Status line shows ... DTE speed |
| P - DTR drop time (0=no). 1 T - Multi-line untag .... No |
| |
| Change which setting? (Return or Esc to exit) |
------------------------------------------------------------------------------

Then return to the main menu and choose "Save setup as ..". You will then be
prompted for a name. Let's say you choose "minilbox". After making that choice,
you'll be back at the main menu.


Finally, from the main menu, choose "Exit from Minicom".


If you need to redo the configuration, then as root, enter

# minicom -s miniTQ2440
and go through the steps above as appropriate.


Once you're happy with your configuration, you can start minicom as a non root
user via:

$ minicom miniTQ2440


If you get a complaint that /dev/ttyS0 doesn't exist, you may need to change
the permissions on /dev/ttyS0 e.g. as root:

chmod 666 /dev/ttyS0/


If you get a message that the device is locked, remove the lock file from

/var/lock/.
阅读(1254) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~