Okay, I think I need some help here, setting up a Dell Latitude CPt C333  to use a Ericson SH888 GSM phone to communicate, using the infrared port. I must be doing something wrong, but cannot see what it is.

I hope that somebody on this mailinglist will be able to help me, or suggest further ways of exploration.

If so, please accept my warm gratitude, and if not, please don't read on because I think tales like the one below are commonplace.
 

  • I am using Red Hat 6.0.

  •  
  •  I was encouraged by http://rosebud.sps.queensu.ca/~edd/lcpt33.html which said that the IrDA port had been successfully used on this type of laptop.

  •  
  •  I checked that IrDA was enabled in the BIOS.

  •  
  • I obtained the sources of Linux Kernel 2.2.13, and patched it with sony-patch.2.2.13 for sound,  and patch-2.2.13-irda3 for IrCOMM. I also provided it with pcmcia-cs-3.0.14 sources for card services

  •   (with CardBus support, and using /etc/pcmcia/network from RedHat, not from distribution of pcmcia-cs)
     
  •  I installed irda-utils 0.9.4, most of which compiled correctly -- in fact, all of those which I think I need.

  •  
  •  In /etc/conf.modules I put
  •         alias tty-ldisc-11 irtty
            alias char-major-161 ircomm_tty
      I saw that in many items of documentation it says
            alias char-major-161 ircomm-tty
      with a dash instead of an underscore, but doing that justs results in a module not being found. I am curious about this, though, since the dash comes up again in some mails I found on the Linux-IrDA mailing list.
     
  • I made devices:
  • 
    
            crw-rw-rw-   1 root     root     161,   0 Dec  7 09:32 /dev/ircomm0
            crw-rw-rw-   1 root     root     161,   1 Dec  7 09:32 /dev/ircomm1
     
  •  In the menu of my SH888, I 'activate the IR port'.

  •  
  • I reboot and type
  •         # irmanager -s1 -d1
      The system log shows
            Dec 12 14:01:58 rennell irmanager: executing: '/sbin/modprobe irda'
            Dec 12 14:01:59 rennell kernel: IrDA (tm) Protocols for Linux-2.2 (Dag B
    rattli)
            Dec 12 14:01:59 rennell irmanager: executing: 'echo 1 > /proc/sys/net/ir
    da/discovery'
            Dec 12 14:01:59 rennell irmanager: executing: 'echo rennell > /proc/sys/
    net/irda/devname'
     
  • Now, according to the documentation I found, I should
  •         # irattach /dev/ircomm0
      Doing this shows
            0.1 Fri Jul 25 11:45:26 1997 Dag Brattli
      but the system log says:
            Dec 12 14:04:58 rennell kernel: Linux-IrDA: IrCOMM protocol ( revision:T
    ue May 18 03:11:39 1999 )
            Dec 12 14:04:58 rennell kernel: ircomm_tty: virtual tty driver for IrCOM
    M ( revision:Wed May 26 00:49:11 1999 )
            Dec 12 14:04:58 rennell irattach: Failed to open /dev/ircomm0: No such d
    evice
     
  • Trying do exercise /dev/ircomm0 with 'kermit', 'cu -l /dev/ircomm0',

  •   'dip -t' and 'minicom' all fail.
     
  • On the other hand, the URL quoted above says one should 'irattach' with /dev/ttyS2. I do not understand the logic of this, but I'll try.
  •          # irattach /dev/ttyS2
      It responds
            0.1 Fri Jul 25 11:45:26 1997 Dag Brattli
      and syslog says
            Dec 12 14:13:09 rennell irattach: Serial connection established.
            Dec 12 14:13:09 rennell kernel: IrDA: Registered device irda0
      Aha!
            # more /proc/net/irda/discovery
      says
            IrLMP: Discovery log:
    
    
    
            name: SH 888, hint: 0x9104, saddr: 0xc6ec6dd0, daddr: 0x21192e89
      and
            # irdaping 0x21192e89
      says
            32 bytes from 0x21192e89: irda_seq=0 time=110.39 ms.
            32 bytes from 0x21192e89: irda_seq=2 time=110.43 ms.
            32 bytes from 0x21192e89: irda_seq=3 time=110.44 ms.
            32 bytes from 0x21192e89: irda_seq=5 time=108.71 ms.
            32 bytes from 0x21192e89: irda_seq=6 time=108.32 ms.
            32 bytes from 0x21192e89: irda_seq=8 time=114.54 ms.
            32 bytes from 0x21192e89: irda_seq=9 time=114.26 ms.
            32 bytes from 0x21192e89: irda_seq=11 time=110.44 ms.
            32 bytes from 0x21192e89: irda_seq=12 time=110.43 ms.
            32 bytes from 0x21192e89: irda_seq=14 time=110.44 ms.
            32 bytes from 0x21192e89: irda_seq=15 time=110.44 ms.
       A few lost packets there, but oh well.
     
  • Let's check the other files in /proc/net/irda:
  •         # head *
       It says:
            ==> ircomm <==
            instance 0:
                    unused
            ==> irda_device <==
            irda0,  binding: irda0 <-> ttyS2
                    UP RUNNING SIR PIO
                    bps     maxtt   dsize   winsize addbofs mintt   ldisc
                    9600    50      2048    7       0       5000    40
            ==> irias <==
            LM-IAS Objects:
            name: Device, id=21314
             - Attribute name: "DeviceName", value[IAS_STRING]: "Linux"
           ==> irlap <==
            irlap0 <-> irda0 state: LAP_NDM
              caddr: 0x9c, saddr: 0xc6ec6dd0, daddr: 0x000000
              win size: 0, win: 0, win bytes: 0, bytes left: 0
              tx queue len: 0 win queue len: 0 rbusy: FALSE
              retrans: 0 vs: 0 vr: 0 va: 0
              qos   bps     maxtt   dsize   winsize addbofs mintt   ldisc   comp
              tx    9600    0       64      0       11      0       0       0
              rx    9600    0       0       0       0       0       0       0
            ==> irlmp <==
            Unconnected LSAPs:
            lsap state: LSAP_DISCONNECTED, slsap_sel: 0x0, dlsap_sel: 0xff, (IrIAS s
    rv)
    
    
    
            Registred Link Layers:
            lap state: LAP_STANDBY, saddr: 0xc6ec6dd0, daddr: 0xffffffff,
    
    
    
            Connected LSAPs:
            ==> irttp <==
    
    
    
  •  Why this should be so I do not know, but it looks OK:
  •         # ifconfig
      has an entry:
            irda0     Link encap:UNSPEC  HWaddr D0-6D-EC-C6-00-00-00-D9-00-00-00-00-
    00-00-00-00
                      UP RUNNING NOARP  MTU:2048  Metric:1
                      RX packets:167 errors:0 dropped:0 overruns:0 frame:0
                      TX packets:1109 errors:0 dropped:0 overruns:0 carrier:0
                      collisions:0 txqueuelen:8
  • Now:
  •         # dip -t
            ># dip -t
            DIP: Dialup IP Protocol Driver version 3.3.7o-uri (8 Feb 96)
            Written by Fred N. van Kempen, MicroWalt Corporation.
    
    
    
            DIP> port ttyS2
            #
      It exits, and the sys log shows.
            Dec 12 14:27:46 rennell dip[831]: DIP: tty: set_state: Invalid argument
    
    
    
  • Try:
  •         # cu -l /dev/ttyS2
            cu: Stale lock /var/lock/LCK..ttyS2 held by process 831 created 1999-12-
    12 14:27:46
            cu: open (/dev/ttyS2): Permission denied
            cu: /dev/ttyS2: Line in use
            #
       It also exits, there is nothing in sys log.
     
  • Try the venerable kermit:
  •         # kermit
            C-Kermit 5A(190), 4 Oct 94, for Linux
             Copyright (C) 1985, 1994,
              Trustees of Columbia University in the City of New York.
            Type ? or HELP for help.
            C-Kermit>set line /dev/ttyS2
            C-Kermit>connect
            Connecting to /dev/ttyS2, speed 9600.
            The escape character is Ctrl-\ (ASCII 28, FS)
            Type the escape character followed by C to get back,
            or followed by ? to see other options.
            Sorry, Can't condition communication line
            C-Kermit>quit
            #
       It also exits, there is nothing in sys log.
     
  • Minicom also fails.

  • Also funny is the output from

            # lsmod
      It says:
            Module                  Size  Used by
            irtty                   4636   2  (autoclean)
            ircomm_tty             17604   0  (autoclean) (unused)
            ircomm                 18040   0  (autoclean) [ircomm_tty]
            irda                  135713   2  [irtty ircomm_tty ircomm]
            nm256                  64456   0  (unused)
            sound                  57228   0  [nm256]
            soundcore               2372   6  [sound]
            vmnet                  11200   3
            vmppuser                5216   0  (unused)
            parport_pc              5620   0  [vmppuser]
            parport                 7124   0  [vmppuser parport_pc]
            vmmon                  15072   0  (unused)
            nfsd                  150496   8  (autoclean)
            3c575_cb               18792   2
            cb_enabler              2104   2  [3c575_cb]
            ds                      5740   2  [cb_enabler]
            i82365                 22640   2
            pcmcia_core            39912   0  [cb_enabler ds i82365]
      Why is ircomm_tty unused?

    If you have read up to here, maybe you can suggest what to do.

    With kind regards,

    -- 
    Kris Heyrman.                       
    Ottergemsesteenweg 337, B-9000 Gent.      Phone:  +32.9.221.79.69
    
    "L'an 0. On arrète tout, puis on réflechit. Et c'est pas triste."
     

    Reply via email to