|
M0E-lnx
|
 |
« Reply #15 on: November 07, 2008, 09:15:50 am » |
|
Sorry... you want to tail /var/log/message
Typo on my part User the tab key for auto-completion
|
|
|
|
|
Logged
|
|
|
|
Headhunter
Member

Posts: 20
|
 |
« Reply #16 on: November 07, 2008, 03:08:57 pm » |
|
oot:# tail /var/log/messages Nov 7 23:43:34 lappis kernel: usb 1-2: configuration #1 chosen from 1 choice Nov 7 23:43:34 lappis kernel: scsi5 : SCSI emulation for USB Mass Storage devices Nov 7 23:43:39 lappis kernel: scsi 5:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2 Nov 7 23:43:39 lappis kernel: sr 5:0:0:0: Attached scsi generic sg0 type 5 Nov 7 23:43:39 lappis vl-hot_mount: Starting vl-hot_mount... Nov 7 23:43:39 lappis vl-hot_mount: devname: sr0 Nov 7 23:43:39 lappis vl-hot_mount: volname: vol0 Nov 7 23:43:39 lappis vl-hot_mount: Mounting /dev/vl-hot/sr0 on /mnt/vl-hot/sr/vol0 Nov 7 23:43:39 lappis vl-hot_mount: /dev/vl-hot/sr0 not mountable... Nov 7 23:43:39 lappis vl-hot_mount: Finishing vl-hot_mount...
Ive tryed this to:
root:# wvdialconf Editing `/etc/wvdial.conf'.
Scanning your serial ports for a modem.
ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up. Modem Port Scan<*1>: S1 S2 S3
Sorry, no modem was detected! Is it in use by another program? Did you configure it properly with setserial?
|
|
|
|
« Last Edit: November 07, 2008, 03:18:27 pm by Headhunter »
|
Logged
|
|
|
|
|
M0E-lnx
|
 |
« Reply #17 on: November 07, 2008, 03:30:13 pm » |
|
It is indeed not detecting a modem. All it's seeing is a USB Storage device
It is possible that you need to compile drivers for that thing
|
|
|
|
|
Logged
|
|
|
|
Headhunter
Member

Posts: 20
|
 |
« Reply #18 on: November 07, 2008, 04:09:42 pm » |
|
ok.
I could do that, but I don't know how.. :-)
Plz keep this thread alive so it could bee a good Howto someday..
Reg,,
Thord
|
|
|
|
|
Logged
|
|
|
|
Headhunter
Member

Posts: 20
|
 |
« Reply #19 on: November 07, 2008, 05:21:00 pm » |
|
Tryed my other modem with an other output:
root:# tail /var/log/messages Nov 8 01:49:20 lappis vl-hot_umount: /mnt/vl-hot/sr/vol0 Nov 8 01:49:20 lappis vl-hot_umount: /mnt/vl-hot/sr/vol0 not mounted, deleting /mnt/vl-hot/sr/vol0 and desktop icons Nov 8 01:49:20 lappis vl-hot_umount: Deleting desktop file vl-hot-sr-vol0.desktop Nov 8 01:49:20 lappis vl-hot_umount: No partitions remaining, rmdir /mnt/vl-hot/sr/ Nov 8 01:49:20 lappis vl-hot_umount: Finishing vl-umount... Nov 8 01:49:47 lappis kernel: usb 1-2: new full speed USB device using uhci_hcd and address 7 Nov 8 01:49:47 lappis kernel: usb 1-2: configuration #1 chosen from 1 choice Nov 8 01:49:47 lappis kernel: usb-storage: device ignored Nov 8 01:49:47 lappis kernel: option 1-2:1.0: GSM modem (1-port) converter detected Nov 8 01:49:47 lappis kernel: usb 1-2: GSM modem (1-port) converter now attached to ttyUSB0
|
|
|
|
|
Logged
|
|
|
|
wcs
Packager
Vectorian
   
Posts: 1144
|
 |
« Reply #20 on: November 07, 2008, 05:24:27 pm » |
|
It is indeed not detecting a modem. All it's seeing is a USB Storage device That's what I thought as well, but it might not be true. I just got hold of another model (a Huawei K3520, I think), and my /var/log/messages is almost the same as the Headhunter posted above. BUT, running wvdialconf detects it! I couldn't actually try a connection as I don't know the username and password, but I suspect it would work even though it doesn't seem to show up in /var/log/messages (or at least I didn't spot it).
|
|
|
|
|
Logged
|
|
|
|
|
M0E-lnx
|
 |
« Reply #21 on: November 07, 2008, 06:33:59 pm » |
|
You can see that on the second modem, it successfully links the device to /dev/ttyUSB0. So you whould be able to connect with that one.
|
|
|
|
|
Logged
|
|
|
|
wcs
Packager
Vectorian
   
Posts: 1144
|
 |
« Reply #22 on: November 08, 2008, 05:24:16 am » |
|
Try doing "wvdialconf" as root with this second modem attached. As for the first modem you tried, Headunter, it seems in my case the device is indeed linked in /var/log/messages, but *before* the vl-mount messages. If I just do tail, I only see the vl-mount messages, and nothing about the modem. So, instead of doing "tail /var/log/messages", do "tail -f /var/log/messages" (with that first modem). Then, and only then, attach the modem and see everything new in the output. If you just do tail, you might be missing important info that comes before. In my case: Nov 8 13:57:37 zequinha kernel: usb 2-1: new full speed USB device using uhci_hcd and address 4 Nov 8 13:57:37 zequinha kernel: usb 2-1: configuration #1 chosen from 1 choice Nov 8 13:57:37 zequinha kernel: option 2-1:1.0: GSM modem (1-port) converter detected Nov 8 13:57:37 zequinha kernel: usb 2-1: GSM modem (1-port) converter now attached to ttyUSB0 Nov 8 13:57:37 zequinha kernel: option 2-1:1.1: GSM modem (1-port) converter detected Nov 8 13:57:37 zequinha kernel: usb 2-1: GSM modem (1-port) converter now attached to ttyUSB1 Nov 8 13:57:37 zequinha kernel: option 2-1:1.2: GSM modem (1-port) converter detected Nov 8 13:57:37 zequinha kernel: usb 2-1: GSM modem (1-port) converter now attached to ttyUSB2 Nov 8 13:57:37 zequinha kernel: scsi10 : SCSI emulation for USB Mass Storage devices Nov 8 13:57:42 zequinha kernel: scsi 10:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2 Nov 8 13:57:42 zequinha kernel: sr 10:0:0:0: Attached scsi generic sg0 type 5 Nov 8 13:57:42 zequinha kernel: scsi 10:0:0:1: Direct-Access HUAWEI SD Storage 2.31 PQ: 0 ANSI: 2 Nov 8 13:57:42 zequinha kernel: sd 10:0:0:1: [sda] Attached SCSI removable disk Nov 8 13:57:42 zequinha kernel: sd 10:0:0:1: Attached scsi generic sg1 type 0 Nov 8 13:57:42 zequinha vl-hot_mount: Starting vl-hot_mount... Nov 8 13:57:42 zequinha vl-hot_mount: devname: sr0 Nov 8 13:57:42 zequinha vl-hot_mount: volname: vol0 Nov 8 13:57:42 zequinha vl-hot_mount: Mounting /dev/vl-hot/sr0 on /mnt/vl-hot/sr/vol0 Nov 8 13:57:42 zequinha vl-hot_mount: Starting vl-hot_mount... Nov 8 13:57:43 zequinha vl-hot_mount: devname: sda Nov 8 13:57:43 zequinha vl-hot_mount: volname: vol Nov 8 13:57:43 zequinha vl-hot_mount: Mounting /dev/vl-hot/sda on /mnt/vl-hot/sda/vol Nov 8 13:57:43 zequinha vl-hot_mount: /dev/vl-hot/sr0 not mountable... Nov 8 13:57:43 zequinha vl-hot_mount: Finishing vl-hot_mount... Nov 8 13:57:43 zequinha vl-hot_mount: /dev/vl-hot/sda not mountable... Nov 8 13:57:43 zequinha vl-hot_mount: Finishing vl-hot_mount...
As you see, the last part is almost identical to yours, but before it displays the crucial bits that say the modem is attached to ttyUSB0, etc..
|
|
|
|
|
Logged
|
|
|
|
Headhunter
Member

Posts: 20
|
 |
« Reply #23 on: November 08, 2008, 11:08:20 am » |
|
Nov 8 19:34:36 lappis kernel: usb 1-2: new full speed USB device using uhci_hcd and address 3 Nov 8 19:34:36 lappis kernel: usb 1-2: configuration #1 chosen from 1 choice Nov 8 19:34:36 lappis kernel: scsi2 : SCSI emulation for USB Mass Storage devices Nov 8 19:34:36 lappis kernel: usbcore: registered new interface driver usbserial Nov 8 19:34:36 lappis kernel: drivers/usb/serial/usb-serial.c: USB Serial support registered for generic Nov 8 19:34:36 lappis kernel: usbcore: registered new interface driver usbserial_generic Nov 8 19:34:36 lappis kernel: drivers/usb/serial/usb-serial.c: USB Serial Driver core Nov 8 19:34:36 lappis kernel: drivers/usb/serial/usb-serial.c: USB Serial support registered for GSM modem (1-port) Nov 8 19:34:36 lappis kernel: usbcore: registered new interface driver option Nov 8 19:34:36 lappis kernel: drivers/usb/serial/option.c: USB Driver for GSM modems: v0.7.1 Nov 8 19:34:36 lappis kernel: drivers/usb/serial/usb-serial.c: USB Serial support registered for pl2303 Nov 8 19:34:36 lappis kernel: usbcore: registered new interface driver pl2303 Nov 8 19:34:36 lappis kernel: drivers/usb/serial/pl2303.c: Prolific PL2303 USB to serial adaptor driver Nov 8 19:34:41 lappis kernel: scsi 2:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2 Nov 8 19:34:41 lappis kernel: sr 2:0:0:0: Attached scsi generic sg0 type 5 Nov 8 19:34:41 lappis vl-hot_mount: Starting vl-hot_mount... Nov 8 19:34:41 lappis vl-hot_mount: devname: sr0 Nov 8 19:34:41 lappis vl-hot_mount: volname: vol0 Nov 8 19:34:41 lappis vl-hot_mount: Mounting /dev/vl-hot/sr0 on /mnt/vl-hot/sr/vol0 Nov 8 19:34:41 lappis vl-hot_mount: /dev/vl-hot/sr0 not mountable... Nov 8 19:34:41 lappis vl-hot_mount: Finishing vl-hot_mount...
|
|
|
|
|
Logged
|
|
|
|
wcs
Packager
Vectorian
   
Posts: 1144
|
 |
« Reply #24 on: November 08, 2008, 09:22:03 pm » |
|
Something's definitely there. Judging by this bit at least: Nov 8 19:34:36 lappis kernel: drivers/usb/serial/usb-serial.c: USB Serial support registered for GSM modem (1-port) Nov 8 19:34:36 lappis kernel: usbcore: registered new interface driver option Nov 8 19:34:36 lappis kernel: drivers/usb/serial/option.c: USB Driver for GSM modems: v0.7.1 But it's not attached to /dev/tty, so I don't know how this could be solved.... Have you tried "wvdialconf" with your second modem (the one that shows the line "Nov 8 01:49:47 lappis kernel: usb 1-2: GSM modem (1-port) converter now attached to ttyUSB0")? That should work just fine, I would think...
|
|
|
|
|
Logged
|
|
|
|
rbistolfi
Packager
Vectorian
   
Posts: 2198
|
 |
« Reply #25 on: November 08, 2008, 09:51:09 pm » |
|
I found this istructions here: http://ubuntuforums.org/archive/index.php/t-858032.htmlLogin as root to try it. Untar the Linux driver that comes on CD into a local directory Locate a file named rules/10-Huawei-Datacard.rules and open it with an editor Change first line from SUBSYSTEM=="usb", SYSFS{idProduct}=="1001", SYSFS{idVendor}=="12d1", RUN+="/sbin/rmmod pl2303" to SUBSYSTEM=="usb", SYSFS{idProduct}=="1001", SYSFS{idVendor}=="12d1", RUN+="/sbin/modprobe usbserial vendor=0x12d1 product=0x1001" Save and copy it to /etc/udev/rules.d Run in a terminal: $ chown root:root /etc/udev/rules.d/10-Huawei-Datacard.rules $ chmod 644 /etc/udev/rules.d/10-Huawei-Datacard.rules Run install script in driver directory (consent to reboot) After reboot, open a terminal and run: $ tail -f /var/log/messages ONLY NOW you can insert your dongle Look in terminal that something like this shows up: Jul 13 09:17:24 kernel: [ 340.739133] usbserial_generic 2-1:1.0: GSM modem (1-port) converter detected Jul 13 09:17:24 kernel: [ 340.739367] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB0 Jul 13 09:17:24 kernel: [ 340.742277] usbserial_generic 2-1:1.1: GSM modem (1-port) converter detected Jul 13 09:17:24 kernel: [ 340.742420] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB1 Jul 13 09:17:24 kernel: [ 340.744227] usbserial_generic 2-1:1.2: GSM modem (1-port) converter detected Jul 13 09:17:24 kernel: [ 340.744356] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB2 Jul 13 09:17:24 kernel: [ 340.746216] usbserial_generic 2-1:1.3: GSM modem (1-port) converter detected The method looks fine to me, but if you don't have the CD with the "linux drivers" try modprobe usbserial vendor=0x12d1 product=0x1001 Then you can diagnose again by running tail -f /var/log/messages and plugging the device. HTH
|
|
|
|
|
Logged
|
"There is a concept which corrupts and upsets all others. I refer not to Evil, whose limited realm is that of ethics; I refer to the infinite." Jorge Luis Borges, Avatars of the Tortoise. -- Jumalauta!!
|
|
|
Headhunter
Member

Posts: 20
|
 |
« Reply #26 on: November 09, 2008, 02:56:37 am » |
|
No Ive don't have the CD. All the drivers are on the dongle.. Still ive tryed to do the stuff that you told me to do with the same responce.
root:# modprobe usbserial vendor=0x12d1 product=0x1001 lappis://home/thord root:# tail -f /var/log/messages Nov 9 11:28:59 lappis kernel: usb 1-2: USB disconnect, address 4 Nov 9 11:28:59 lappis vl-hot_umount: Starting vl-hot_umount... Nov 9 11:28:59 lappis vl-hot_umount: devname: sr0 Nov 9 11:28:59 lappis vl-hot_umount: mountbase: sr Nov 9 11:28:59 lappis vl-hot_umount: volname: vol0 Nov 9 11:28:59 lappis vl-hot_umount: /mnt/vl-hot/sr/vol0 Nov 9 11:28:59 lappis vl-hot_umount: /mnt/vl-hot/sr/vol0 not mounted, deleting /mnt/vl-hot/sr/vol0 and desktop icons Nov 9 11:28:59 lappis vl-hot_umount: Deleting desktop file vl-hot-sr-vol0.desktop Nov 9 11:28:59 lappis vl-hot_umount: No partitions remaining, rmdir /mnt/vl-hot/sr/ Nov 9 11:28:59 lappis vl-hot_umount: Finishing vl-umount... Nov 9 11:29:35 lappis kernel: usb 1-2: new full speed USB device using uhci_hcd and address 5 Nov 9 11:29:36 lappis kernel: usb 1-2: configuration #1 chosen from 1 choice Nov 9 11:29:36 lappis kernel: scsi4 : SCSI emulation for USB Mass Storage devices Nov 9 11:29:41 lappis kernel: scsi 4:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2 Nov 9 11:29:41 lappis kernel: sr 4:0:0:0: Attached scsi generic sg0 type 5 Nov 9 11:29:41 lappis vl-hot_mount: Starting vl-hot_mount... Nov 9 11:29:41 lappis vl-hot_mount: devname: sr0
Reg. Headhunter...
|
|
|
|
|
Logged
|
|
|
|
rbistolfi
Packager
Vectorian
   
Posts: 2198
|
 |
« Reply #27 on: November 09, 2008, 05:33:06 am » |
|
ok I found this now: ## # # udev rule for HUAWEI E220 3G HSDPA Modem # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # (c)opyleft OOZIE < oozie@poczta.fm > # # This file prevents the pseudo scsi cdrom device from enabling, # thus providing a workaround for kernel versions < 2.6.20 # ## SUBSYSTEM=="block", \ ACTION=="add", \ SYSFS{idVendor}=="12d1", \ SYSFS{idProduct}=="1003", \ OPTIONS="ignore_device" Put this in a file /etc/udev/rules.d/ Reboot, if I understand correctly this should prevent the system to recognize the dongle as storage device. I note that this one uses another value as idProduct for the device, lets try that. After reboot as root run: modprobe usbserial vendor=0x12d1 product=0x1003
|
|
|
|
|
Logged
|
"There is a concept which corrupts and upsets all others. I refer not to Evil, whose limited realm is that of ethics; I refer to the infinite." Jorge Luis Borges, Avatars of the Tortoise. -- Jumalauta!!
|
|
|
Headhunter
Member

Posts: 20
|
 |
« Reply #28 on: November 09, 2008, 10:19:50 am » |
|
ok I found this now: ## # # udev rule for HUAWEI E220 3G HSDPA Modem # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # (c)opyleft OOZIE < oozie@poczta.fm > # # This file prevents the pseudo scsi cdrom device from enabling, # thus providing a workaround for kernel versions < 2.6.20 # ## SUBSYSTEM=="block", \ ACTION=="add", \ SYSFS{idVendor}=="12d1", \ SYSFS{idProduct}=="1003", \ OPTIONS="ignore_device" Put this in a file /etc/udev/rules.d/ Reboot, if I understand correctly this should prevent the system to recognize the dongle as storage device. I note that this one uses another value as idProduct for the device, lets try that. After reboot as root run: modprobe usbserial vendor=0x12d1 product=0x1003 what shall I name the file in /etc/udev/rules.d/ ? ?
|
|
|
|
« Last Edit: November 09, 2008, 01:07:57 pm by Headhunter »
|
Logged
|
|
|
|
rbistolfi
Packager
Vectorian
   
Posts: 2198
|
 |
« Reply #29 on: November 09, 2008, 06:13:08 pm » |
|
Oh, sorry, the name should be something like huawei.rules
|
|
|
|
|
Logged
|
"There is a concept which corrupts and upsets all others. I refer not to Evil, whose limited realm is that of ethics; I refer to the infinite." Jorge Luis Borges, Avatars of the Tortoise. -- Jumalauta!!
|
|
|
|