Your Ad Here
首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 操作系统 > Linux > Serial Port Setting in Linux
【标  题】:Serial Port Setting in Linux
【关键字】:Serial,Port,Setting,in,Linux
【来  源】:http://www.cublog.cn/u/16358/showart.php?id=99425

Serial Port Setting in Linux

Your Ad Here
Serial Port Setting in Linux
 
Summary:
 
    In order to use more than one serial port in Linux needs some
 
setting, this article shows the contents.
 
Setps:
 
    The firest step is enable it in the BIOS setting.
 
Usually
 
com1,/dev/ttyS0,uses the io address 0x3f8,irq 4,
 
com2,/dev/ttyS1,uses the io address 0x2f8,irq 3,
 
com3,/dev/ttyS2,uses the io address 0x3e8,irq 4,
 
com4,/dev/ttyS3,uses the io address 0x2e8,irq 3,
 
for this setting, com3 and com4 does not work croectly,
 
so we should change the irq of com3 and com4.
 
Since Bios has its choice, we can only use BIOS's other setting.
 
here,com3 uses irq 9, com4 uses irq 10.
 
Be sure that there is no confilct irq in the setting,change other
 
setting ,take PCI irq A for example, change it from irq 9 to irq 7.
 
    And then , save the setting and restart.
 
ok, now use 'setserial' command to see what are the setting for coms:
 
[~@861]#setserial /dev/ttyS2
 
what we see is that com3 still uses irq 4.
 
begin testing com3, it does not work croectly, costing time.
 
ok,now use 'setserial' command to reset com3.
 
[~@861]#setserial /dev/ttyS2 uart 16550a port 0x3e8 irq 9
 
use 'setserial' command to see result:
 
[~@861]#setserial /dev/ttyS2
 
what we see is that com3 uses irq 2.
 
begin testing com3, it works croectly now, very good.
 
check what irq it use:
 
[~@861]#cat /proc/interrupts
 
ok, it uses irq 9, not irq 2.
 
is it a bug with 'setserial' command? maybe.
 
. 。o O
Installing Software in Ubuntu [ZT]:【上一篇】
syslog: service terminated for 10 min:【下一篇】
【相关文章】
  • Installing Software in Ubuntu [ZT]
  • Linux Intel For90 编译错误
  • Linux下解压*.rar文件
  • 如何让window服务进程中自动加载MYSQL服务
  • 深入Win XP引导文件NTLDR
  • .NET2.0--WinFX初体验
  • 《Windows Mobile平台应用与开发》写作工作顺利进行中
  • GDI Bitmaps and Device-Independent Bitmaps 操作(ZT)
  • CString详细讲解(ZT)
  • Windows API 技巧集(ZT)
  • 【随机文章】
  • Penteview2010C商务会议电视终端
  • 在服务定价中为客户创造价值
  • connect by 和 start with
  • 阻燃超5类4对双绞线(305米/箱)
  • C语言函数的作用域规则
  • 找回哭泣本能
  • 用ETKnowbot解决大量文档管理之困
  • 优先次序 优化Windows操作系统的程序运行
  • 电力线上网等待“准生证”专家质疑普及应用
  • Variant 子类型
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 bbb软讯网络 All Rigths Reserved.