Re: Samsung I330 not supported?
- From: Adam C Powell IV <hazelsct mit edu>
- To: gnome-pilot-list gnome org
- Subject: Re: Samsung I330 not supported?
- Date: Tue, 11 Feb 2003 18:09:40 -0500
David A. Desrosiers wrote:
hub.c: new USB device 00:07.2-1, assigned address 2
usb.c: USB device 2 (vend/prod 0x4e8/0x8001) is not claimed by any active driver.
^ vendor_id
^ product_id
Cool, that's what I figured. Made the attached micropatch...
Does this mean this device is not supported by the kernel?
Correct. You're the first one so far to have come forward with this
device on the Linux side of things.
Kewl. :-)
The documentation only mentions Handspring, Palm and Clie. Hmm, the
visor.c and visor.h source don't look that hard to patch...
Exactly, march on! We await your results.
Okay, here's the results.
A TON of kernel messages come flooding out, even without debug. I've
put up the debug=1 output at
http://lyre.mit.edu/~powell/debs/visor.plugin.txt , and about as much
comes out without debug=1. So far, so good!
But it doesn't sync with gnome-pilot as the old phone used to (Kyocera
6035, serial cradle), on ttyUSB1 or ttyUSB0. :-( Let's try something
else, with the gpilotd paused by the applet:
% pilot-xfer -p /dev/ttyUSB1 -l
ERROR: No such device (19)
Press the HotSync button first and relaunch this conduit..
Unable to bind to port: /dev/ttyUSB1
Please use --help for more information
Meanwhile on kern.log:
Feb 11 17:36:27 vaio kernel: visor.c: visor_open - port 1
Feb 11 17:36:27 vaio kernel: visor.c: Device lied about number of ports,
please use a lower one.
This is whether or not the device is trying to hot sync. So let's try:
% pilot-xfer -p /dev/ttyUSB0 -l
Listening to port: /dev/ttyUSB0
Please press the HotSync button now...
And kern.log gets:
Feb 11 17:46:19 vaio kernel: visor.c: visor_open - port 0
Feb 11 17:46:19 vaio kernel: visor.c: visor_ioctl - port 0, cmd 0x5401
Feb 11 17:46:19 vaio kernel: visor.c: visor_ioctl - port 0, cmd 0x5401
Feb 11 17:46:19 vaio kernel: visor.c: visor_ioctl - port 0, cmd 0x5402
Feb 11 17:46:19 vaio kernel: visor.c: visor_set_termios - port 0
Feb 11 17:46:19 vaio kernel: visor.c: visor_set_termios - nothing to
change...
Feb 11 17:46:19 vaio kernel: visor.c: visor_ioctl - port 0, cmd 0x5401
Feb 11 17:46:19 vaio kernel: visor.c: visor_ioctl - port 0, cmd 0x5401
Feb 11 17:46:19 vaio kernel: visor.c: visor_ioctl - port 0, cmd 0x5403
Feb 11 17:46:19 vaio kernel: visor.c: visor_chars_in_buffer - port 0
Feb 11 17:46:19 vaio kernel: visor.c: visor_chars_in_buffer - returns 0
Feb 11 17:46:19 vaio kernel: visor.c: visor_set_termios - port 0
Feb 11 17:46:19 vaio kernel: visor.c: visor_set_termios - nothing to
change...
Feb 11 17:46:19 vaio kernel: visor.c: visor_chars_in_buffer - port 0
Feb 11 17:46:19 vaio kernel: visor.c: visor_chars_in_buffer - returns 0
Feb 11 17:49:55 vaio kernel: visor.c: visor_chars_in_buffer - port 0
Feb 11 17:49:55 vaio kernel: visor.c: visor_chars_in_buffer - returns 0
Feb 11 17:49:55 vaio kernel: visor.c: visor_close - port 0
Feb 11 17:49:55 vaio kernel: usb-uhci.c: interrupt, status 2, frame# 55
Feb 11 17:49:55 vaio kernel: visor.c: visor_read_bulk_callback - port 0
Feb 11 17:49:55 vaio kernel: visor.c: visor_read_bulk_callback - nonzero
read bulk status received: -2
But clicking HotSync results in no output, whether or not pilot-xfer is
running. (The 17:49:55 stuff is what happens when I ^C out of pilot-xfer.)
Any ideas?
--
-Adam P.
GPG fingerprint: D54D 1AEE B11C CE9B A02B C5DD 526F 01E8 564E E4B6
Welcome to the best software in the world today cafe!
<http://lyre.mit.edu/%7Epowell/The_Best_Stuff_In_The_World_Today_Cafe.ogg>
--- drivers/usb/serial/visor.c~ Thu Nov 28 18:53:15 2002
+++ drivers/usb/serial/visor.c Tue Feb 11 15:08:46 2003
@@ -12,6 +12,9 @@
*
* See Documentation/usb/usb-serial.txt for more information on using this driver
*
+ * (2/11/2003) Adam Powell <hazelsct debian org>
+ * Added support for the Samsung I330 phone.
+ *
* (04/03/2002) gkh
* Added support for the Sony OS 4.1 devices. Thanks to Hiroyuki ARAKI
* <hiro zob ne jp> for the information.
@@ -179,6 +182,7 @@
{ USB_DEVICE(SONY_VENDOR_ID, SONY_CLIE_4_0_ID) },
{ USB_DEVICE(SONY_VENDOR_ID, SONY_CLIE_S360_ID) },
{ USB_DEVICE(SONY_VENDOR_ID, SONY_CLIE_4_1_ID) },
+ { USB_DEVICE(SAMSUNG_VENDOR_ID, SAMSUNG_I330_ID) },
{ } /* Terminating entry */
};
@@ -200,6 +204,7 @@
{ USB_DEVICE(SONY_VENDOR_ID, SONY_CLIE_4_0_ID) },
{ USB_DEVICE(SONY_VENDOR_ID, SONY_CLIE_S360_ID) },
{ USB_DEVICE(SONY_VENDOR_ID, SONY_CLIE_4_1_ID) },
+ { USB_DEVICE(SAMSUNG_VENDOR_ID, SAMSUNG_I330_ID) },
{ } /* Terminating entry */
};
--- drivers/usb/serial/visor.h Tue Feb 11 16:35:29 2003
+++ drivers/usb/serial/visor.h.orig Tue Feb 11 16:35:00 2003
@@ -35,6 +35,9 @@
#define SONY_CLIE_S360_ID 0x0095
#define SONY_CLIE_4_1_ID 0x009A
+#define SAMSUNG_VENDOR_ID 0x04E8
+#define SAMSUNG_I330_ID 0x8001
+
/****************************************************************************
* Handspring Visor Vendor specific request codes (bRequest values)
* A big thank you to Handspring for providing the following information.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]