标题: 请教:手机红外线连接上网,系统检测不得猫?
bi611
新生入学
Rank: 1



UID 222217
精华 0
积分 10(积分有什么用?)
帖子 6
阅读权限 10
注册 2008-2-12
状态 离线
发表于 2008-2-27 22:05  资料  个人空间  短消息  加为好友 
请教:手机红外线连接上网,系统检测不得猫?

RedHat 9
/root/myirda:
#!/bin/sh
#Start up the IrDA process and load necessary modules
#
case "$1" in
  start)
    #Start IRDA
    echo -n "Starting up the IR modules"

    modprobe irda
    modprobe ircomm
    modprobe ircomm-tty
    irattach /dev/ttyS1 -s

    echo "Done."
    echo ""
    ;;

  stop)
    #KILL IRDA
    echo -n "Stopping IRDA and removing used modules"
    #Kill the irattach process and remove the modules
    killall -9 irattach
    rmmod ircomm-tty ircomm irda

    echo "Done."
    echo ""
    ;;
  *)
    echo "Usage:irdastart.sh{start|stop}"
    echo ""
    exit 1
    esac
    exit 0

[root@localhost root]# ./myirda start
Starting up the IR modulesDone.

[root@localhost root]# irdadump
05:26:49.340653 xid:cmd 8b6849a6 > ffffffff S=6 s=0 (14)
05:26:49.430638 xid:cmd 8b6849a6 > ffffffff S=6 s=1 (14)
05:26:49.520641 xid:cmd 8b6849a6 > ffffffff S=6 s=2 (14)
05:26:49.610648 xid:cmd 8b6849a6 > ffffffff S=6 s=3 (14)
05:26:49.700650 xid:cmd 8b6849a6 > ffffffff S=6 s=4 (14)
05:26:49.700627 xid:rsp 8b6849a6 < 00004767 S=6 s=3 Sony Ericss hint=9124 [ PnP
Modem IrCOMM IrOBEX ] (28)
05:26:49.790639 xid:cmd 8b6849a6 > ffffffff S=6 s=5 (14)
05:26:49.880640 xid:cmd 8b6849a6 > ffffffff S=6 s=* localhost hint=4400 [ Computer LAN Access ] (25)

[root@localhost root]# wvdialconf wvdial.conf
Scanning your serial ports for a modem.
                                                                                
ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 4800 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 4800 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 19200 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 19200 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Port Scan<*1>: S1   S2   S3   S4   S5   S6   S7   S8
Port Scan<*1>: S9   S10  S11  S12  S13  S14  S15  S16
...
   到这里没了反应.

顶部
 



当前时区 GMT+8, 现在时间是 2008-5-17 23:57

    Powered by Discuz! 5.5.0  © 2001-2007 Comsenz Inc.
Processed in 0.055000 second(s), 5 queries

清除 Cookies - 联系我们 - Linux伊甸园 - Archiver - WAP