Hi Dag et. al.
On Sun, 7 May 2000, Dag Brattli wrote:
> On Sun, 7 May 2000 01:51:19 +0200 (CEST), you wrote:
> > Hi all,
> >
> > Some might remember, that I had some problems with my Ericsson SH888, the
> > RS232-cable and my new laptop (which came without an IR-port...). Being
> > busy with other things, I have been unable to play more with that. However
> > with the release of the Linux kernel 2.2.15, I decided to give it a
> > try. While the result may qualify as "better", it is still not useable,
> > and I hope that someone will be able to give me a hand.
>
> There are some problems with speed changing in 2.2.15 because somebody told
> me to insert capable(SYSADM) in the drivers. The problem is that the code is
> sometimes called from interrupt context, so it _may_ not work depening on which
> process that was running when the interrupt arrived!?
>
> Anyway, this is fixed in the 2.2.16pre2 code from Alan Cox, so you could try it. The
> bug was intruduced right before 2.2.15, so the fix didn't make it into this release
>:-(
Okie, I tried with 2.2.16pre2, same setup as the previous (IrDA compiled
into kernel, ir-utils 0.9.9 and the Ericsson SH888 on /dev/ttyS0). Ir
activated on the phone, and then:
byzantium:~# irattach /dev/ttyS0 -s1
1.1 Tue Nov 9 15:30:55 1999 Dag Brattli
byzantium:~# cat /proc/net/irda/discovery
IrLMP: Discovery log:
nickname: SH 888, hint: 0x9104, saddr: 0xc4de854b, daddr: 0x15552cf2
byzantium:~# tail /var/adm/messages
May 10 01:21:19 byzantium irattach: device=/dev/ttyS0
May 10 01:21:19 byzantium irattach: SIR device
May 10 01:21:19 byzantium kernel: IrDA: Registered device irda0
May 10 01:21:20 byzantium irattach: executing: 'echo 1 >
/proc/sys/net/irda/discovery'
May 10 01:21:20 byzantium irattach: SIR device (2)
May 10 01:21:20 byzantium irattach: Starting device irda0
May 10 01:21:20 byzantium irattach: executing: 'echo byzantium >
/proc/sys/net/irda/devname'
And ifconfig shows irda0 as "up"....
Then I fire up "minicom" and try to communicate with the modem. Nothing
happens (i.e. no response from the modem) while I get this in
/var/adm/messages:
May 10 01:21:52 byzantium kernel: IrLAP, no activity on link!
And this in /var/adm/debug:
May 10 01:27:51 byzantium kernel: ircomm_tty_attach_cable()
May 10 01:27:51 byzantium kernel: ircomm_tty_ias_register()
May 10 01:27:51 byzantium kernel: irlap_change_speed(), setting speed to
115200
May 10 01:27:56 byzantium kernel: irlmp_state_setup() WATCHDOG_TIMEOUT!
My discovery log is now empty.....for a while, while this shows up in
/var/adm/debug:
May 10 01:28:31 byzantium kernel: ircomm_tty_close()
May 10 01:28:31 byzantium kernel: ircomm_tty_shutdown()
May 10 01:28:31 byzantium kernel: ircomm_tty_detach_cable()
May 10 01:28:31 byzantium kernel: ircomm_close()
After a while (see timestamps) do I also get this:
May 10 01:28:51 byzantium kernel: irlap_change_speed(), setting speed to
9600
And then I can see the phone in the discovery log again (without
restarting the irattach).
While this seems better than 2.2.15 (it will "rediscover" the phone), I
still fail to be able to communicate with the modem.....
Do anyone have a clue - a hint or something? I'm kinda dry for ideas
myself. I can gladly provide additional debugging data (irdadump etc.) if
that helps...
>
> PS. Personally I don't have any problems with Linux-2.2.15 and the
> Ericsson-SH888, and use it almost every day.
>
Gee, I am jealous. Could it be my phone, which is screwed up? I do not
have other systems, which I can use for testing, so.....
--thomas
> -- Dag
>
> _______________________________________________
> Linux-IrDA mailing list - [EMAIL PROTECTED]
> http://www4.pasta.cs.UiT.No/mailman/listinfo/linux-irda
>
_______________________________________________
Linux-IrDA mailing list - [EMAIL PROTECTED]
http://www4.pasta.cs.UiT.No/mailman/listinfo/linux-irda