[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Vodafone Mobile Internet modem



Many many thanks!

On 01/08/2012 01:59 AM, Scott Ferguson wrote:
On 08/01/12 08:06, Panayiotis wrote:
Thanks!

Well, sometimes the modem won't get recognized at all (nothing in dmesg
or lsusb), sometimes it will be connected for a while then suddenly
disconnect. Signal strength is weaker than in Windoze (generally no 3G
in Linux).

That makes no sense unless you have it configured so that it is *not*
forced to only use 3G. If you set it up using the Vodaphone software on
Windoof - that's what will have happened.

Yes, sorry, I am allergic to Windows, I could not stay long enough to find out... :-)

Install cmgt
# apt-get install cmgt

That should be comgt, right?

Find out what devices your modem uses..
eg.:-
$ dmesg | grep GSM | more
[   10.976642] USB Serial support registered for GSM modem (1-port)
[   10.978427] option 1-2.4:1.0: GSM modem (1-port) converter detected
[   10.985660] usb 1-2.4: GSM modem (1-port) converter now attached to
ttyUSB0
[   10.985877] option 1-2.4:1.1: GSM modem (1-port) converter detected
[   10.991062] usb 1-2.4: GSM modem (1-port) converter now attached to
ttyUSB1
[   10.991325] option 1-2.4:1.2: GSM modem (1-port) converter detected
[   10.997840] usb 1-2.4: GSM modem (1-port) converter now attached to
ttyUSB2
[   10.998051] option: v0.7.2:USB Driver for GSM modems

[ 1977.595465] option 1-2:1.0: GSM modem (1-port) converter detected
[ 1977.595934] usb 1-2: GSM modem (1-port) converter now attached to ttyUSB0
[ 1977.601047] option 1-2:1.3: GSM modem (1-port) converter detected
[ 1977.601430] usb 1-2: GSM modem (1-port) converter now attached to ttyUSB1

In this case /dev/USBtty0 - 2 are created. Now find out which one it
gets network data from:-
$ cat /dev/USBtty0 (nothing there so kill with Ctrl+C)
^C
$ cat /dev/USBtty1 (bingo!)
+ZPASR: "HSDPA"



+ZPASR: "3G"

<snipped>

Self explanatory.

Edit /usr/bin/sigmon to use that device. There's a backup in /etc/comgt

# nano /usr/bin/sigmon

find the line:-
comgt -d /dev/ttyUSBx sig

and change x to reflect the network port of your device
For this example it's USBtty1

comgt -d /dev/ttyUSB1 sig

Thanks, I followed your instructions, it's /dev/ttyUSB1.

save it, then, run sigmon
# sigmon
Use Ctrl/C to terminate monitoring
Signal Quality: 24,99
Signal Quality:R: "3G"
Signal Quality: 24,99
Signal Quality: 24,99
^C

"24" is the value of the relative signal strength.

Give us the information on your modem and I'll tell you how to boost
that signal, and force your modem to *only* use 3G.

I get some strange output (contains errors):

Signal Quality:: 1, 0, 0

comgt 11:05:44 -> -- Error Report --
comgt 11:05:44 -> ---->                       ^
comgt 11:05:44 -> Error @224, line 13, String is shorter than second argument. (7)

Signal Quality:OWRPT:0000003E,00000000,00000000,0000000000000000,0000000000000000,1FFC2000,00010000

Is the command you want to tell me about "comgt -d /dev/ttyUSB1 3G"? :-)

The worst is that when the disconnects happen (which is
often) I have to plug it out and back in, as NetworkManager can't
reconnect otherwise. I have also tried wvdial, but it's annoying to have
to use a different program, and the signal weakness still applies.

And I have had quite a lot of trouble to get it work at all, including
having to pull in usbmodeswitch from Wheezy.

That should not be necessary. dmesg will tell us.


I want a modem that will "just work"... :-)

The problem is often/usually NetworkManager.


On Σαβ, 2012-01-07 at 21:09 +0200, Andrei Popescu wrote:
On Sb, 07 ian 12, 20:07:29, Panayiotis Karabassis wrote:

To access the internet I have paid for a Vodafone Mobile Internet
Contract. However the provided Huawei usb modem has been nothing but
trouble.

Can you provide some more details? I've used two different Huawei modems
on squeeze without problems.

Kind regards,
Andrei



I've had the same experience as Andrei. With many USB modems.


The relevant lsusb would be nice. :-)

My kernel is 3.0.4-libre-lemote. The output of lsusb follows:

Bus 001 Device 007: ID 12d1:14c9 Huawei Technologies Co., Ltd.
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x12d1 Huawei Technologies Co., Ltd.
  idProduct          0x14c9
  bcdDevice            1.02
  iManufacturer           3 HUAWEI
  iProduct                2 Vodafone Mobile Broadband (Huawei)
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength          177
    bNumInterfaces          5
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      2
      bInterfaceProtocol     49
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x8f  EP 15 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               5
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x8e  EP 14 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x0f  EP 15 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      2
      bInterfaceProtocol     55
      iInterface              0
      ** UNRECOGNIZED:  05 24 00 10 01
      ** UNRECOGNIZED:  0d 24 0f 01 05 00 00 00 ea 05 03 00 01
      ** UNRECOGNIZED:  05 24 06 01 01
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x8d  EP 13 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               5
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       1
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      2
      bInterfaceProtocol     55
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x8d  EP 13 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               5
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x8c  EP 12 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x0e  EP 14 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      2
      bInterfaceProtocol     51
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x8b  EP 11 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x0d  EP 13 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        3
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      2
      bInterfaceProtocol     50
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x8a  EP 10 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x0c  EP 12 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        4
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk (Zip)
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x0b  EP 11 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x89  EP 9 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0000
  (Bus Powered)

Cheers


Many thanks again.

--
Best regards,
    Panayiotis Karabassis


Reply to: