-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
[Cross-posted]
Thanks to the incredibly informative (if slightly obscure :) documents
available from the USB and IRDA teams, I managed to get my MA620 IrDA
USB dongle working to an extent. Here's what works, followed by what
doesn't, and my mini-scripts for enabling and disabling the MA620.
This is running on an Intel BX440, PIII/550MHz.
Kernel: 2.6.7, no SMP
Irda utils: 0.9.17-pre3
Distribution: RH 9 (if it matters)
eSquirt: v3.1.25
What works
- ----------
- - The port comes up at 9600bps. Remote discovery works:
02:24:21.647672 xid:rsp 2083037b < 80f52be4 S=6 s=4 A760 hint=c120 [ PnP LAN Access
IrOBEX ] (21)
02:24:21.754663 xid:cmd 2083037b > ffffffff S=6 s=* mail hint=0400 [ Computer ] (20)
[The A760 is my new toy -- the Motorola A760 GSM phone-cum-PDA]
- - irdaping works fine:
IrDA ping (0x80f52be4 on irda0): 32 bytes
32 bytes from 0x80f52be4: irda_seq=1 time=101.11 ms.
- - File transfer sort of works -- I'm using the eSquirt test programs
and squirt_getfile does manage to receive a file from the phone; it
doesn't save it but that's either my problem in not reading the
eSquirt docs or some limitation in the test programs.
- - Modem connection works:
[EMAIL PROTECTED] ~]# cu -l /dev/ircomm0 -s 9600
Connected.
AT
OK
cu: Got hangup signal <-- When I press ``Disconnect'' on the phone
What doesn't work
- -----------------
- - Speeds above 9600bps cause some problem in the serial driver. If I
DON'T echo 9600 > /proc/sys/net/irda/max_baud_rate before loading the
MA620 drivers, this is the error I get when trying anything more
complex than a straight discovery on the phone link:
Jul 4 07:39:32 mail kernel: ma600_change_speed(): bad control byte read-back 42 != 04
Jul 4 07:39:32 mail kernel: irda_config_fsm - error: -1
Jul 4 07:39:35 mail kernel: IrLAP, no activity on link!
Jul 4 07:39:44 mail last message repeated 3 times
Jul 4 07:39:53 mail kernel: ma600_change_speed(): bad control byte read-back 00 != 04
Jul 4 07:39:53 mail kernel: irda_config_fsm - error: -1
Jul 4 07:39:56 mail kernel: IrLAP, no activity on link!
Jul 4 07:40:05 mail last message repeated 3 times
I do have:
options usb-serial debug=1
options pl2303 debug=1
in /etc/modprobe.conf so if anyone wants more information (and can
tell me what to look for) I'd be glad to provide it.
- - Phone sync doesn't work :( Of course, this is a userland problem,
but I'd appreciate any suggestions for a program which would be able
to sync the phone address books, etc with the computer. I've tried
the various Pilot utils (Kpilot, Gnome Pilot, Multisync) to no avail.
- - Unloading the PL2303 module (modprobe -r pl2303) results in a kernel
oops:
Unable to handle kernel NULL pointer dereference at virtual address 00000084
printing eip:
e2965f2d
*pde = 00000000
Oops: 0000 [#1]
PREEMPT
Modules linked in: ehci_hcd ohci_hcd pl2303 usbserial snd_pcm_oss snd_mixer_oss
snd_ens1371 snd_rawmidi snd_seq_device snd_pcm snd_page_alloc snd_timer snd_ac97_codec
snd gameport soundcore ipt_MARK ipt_TOS iptable_mangle parport_pc lp parport
iptable_filter ip_tables md5 ipv6 8139too mii crc32 quota_v1 loop vfat fat usblp
uhci_hcd usbmouse usbkbd usbcore
CPU: 0
EIP: 0060:[<e2965f2d>] Not tainted
EFLAGS: 00010246 (2.6.7)
EIP is at usb_serial_disconnect+0x1d/0x90 [usbserial]
eax: 00000000 ebx: 00000010 ecx: 00000003 edx: 00000000
esi: 00000000 edi: 00000000 ebp: 00000000 esp: d7871f20
ds: 007b es: 007b ss: 0068
Process modprobe (pid: 3811, threadinfo=d7870000 task=d8772250)
Stack: dff0e890 dff0e868 00000000 d7f4d3cc 00000000 e299fea0 e29662e2 00000000
dff0e858 e299e0bb c03ab360 e299ff80 00000080 e299dfdb e299fea0 c012c8f3
e299ff80 00000080 d7871f6c 00000000 33326c70 40003330 c01479af d86f8760
Call Trace:
[<e29662e2>] usb_serial_deregister+0x92/0xa0 [usbserial]
[<e299dfdb>] pl2303_exit+0x1b/0x1d [pl2303]
[<c012c8f3>] sys_delete_module+0x163/0x1a0
[<c01479af>] do_munmap+0x14f/0x190
[<c01051eb>] syscall_call+0x7/0xb
Code: 8b 73 74 75 4e c7 43 74 00 00 00 00 85 f6 74 0b 8d 46 38 89
This is reproducible, so I can send more details (ksymoops?) if
required.
Scripts
- -------
[Shamelessly ``adapted'' from Ward Vandewege's post to the irda-users
list]
Start:
#!/bin/sh
#
# Minimal stuff required to get the MA620 USB IRDA dongle recognised by
# the kernel.
modprobe uhci_hcd
modprobe pl2303
modprobe irda
echo 9600 > /proc/sys/net/irda/max_baud_rate
modprobe irtty-sir
modprobe ma600-sir
modprobe ircomm-tty
irattach /dev/usb/ttyUSB0 -d ma600 -s
exit 0
Stop:
#!/bin/sh
#
# Minimal stuff required to stop the MA620 USB IRDA dongle
killall irattach kIrDAd
modprobe -r ircomm-tty
modprobe -r ma600
modprobe -r ma600-sir
modprobe -r irtty-sir
# Not removing pl2303 since it causes a kernel oops
exit 0
Modules:
Module Size Used by
ircomm_tty 39972 0
ircomm 22912 1 ircomm_tty
ma600_sir 3776 1
irtty_sir 9120 2
sir_dev 19564 2 ma600_sir,irtty_sir
irda 202360 5 ircomm_tty,ircomm,ma600_sir,irtty_sir,sir_dev
pl2303 16516 1
usbserial 29712 3 pl2303
Thanks for the great software and documentation!
Regards,
- -- Raju
- --
Raj Mathur [EMAIL PROTECTED] http://kandalaya.org/
GPG: 78D4 FC67 367F 40E2 0DD5 0FEF C968 D0EF CC68 D17F
It is the mind that moves
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>
iD8DBQFA53MgyWjQ78xo0X8RAq0AAKCCv69vMkPsFruuvGWK1ZUbXN59UACcC9nc
OXMybMjT15KWJozORCD0+A4=
=KBPK
-----END PGP SIGNATURE-----
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users