Results 1 to 4 of 4

Thread: USB 3g modem

  1. #1
    Just burned his ISO
    Join Date
    Aug 2012
    Posts
    5

    Default USB 3g modem

    Hello, I have recently purchased a Huawei E3231 3g Modem.

    I run lsusb and get:
    Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 003 Device 008: ID 12d1:1f01 Huawei Technologies Co., Ltd.
    Bus 003 Device 007: ID 0bda:8187 Realtek Semiconductor Corp. RTL8187 Wireless Adapter
    Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
    Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 001 Device 004: ID 2232:1028
    Bus 001 Device 003: ID 0bda:0129 Realtek Semiconductor Corp.
    Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

    then I do:
    sudo modprobe usbserial vendor = 0x12d1 product=0x1f01

    this spits out the following error:

    FATAL: Error inserting usbserial (/lib/modules/3.2.6/kernel/drivers/usb/serial/usbserial.ko): Invalid argument

    Moving on, I do:
    wvdialconf

    it says:

    Editing `/etc/wvdial.conf'.

    Scanning your serial ports for a modem.

    Modem Port Scan<*1>: S0 S1 S2 S3 S4 S5 S6 S7
    Modem Port Scan<*1>: S8 S9 S10 S11 S12 S13 S14 S15
    Modem Port Scan<*1>: S16 S17 S18 S19 S20 S21 S22 S23
    Modem Port Scan<*1>: S24 S25 S26 S27 S28 S29 S30 S31


    Sorry, no modem was detected! Is it in use by another program?
    Did you configure it properly with setserial?

    Please read the FAQ at http://open.nit.ca/wiki/?WvDial

    If you still have problems, send mail to <wvdial-list@lists.nit.ca>.

    sudo gedit /etc/wvdial.conf

    in my conf file is:

    Init1 = ATZ
    Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    Modem Type = Analog Modem
    Phone = *99#
    ISDN = 0
    Password = pass (your modem password)
    New PPPD = yes
    Dial Command = ATDT
    Username = user (your modem username)
    Modem = /dev/ttyUSB0
    Baud = 9600
    Stupid Mode = 1

    Some of these parameters maybe incorrect, but nevertheless, I then do wvdial to start connecting and I get:

    --> WvDial: Internet dialer version 1.60
    --> Warning: section [Dialer Defaults] does not exist in wvdial.conf.
    --> Cannot open /dev/modem: No such file or directory
    --> Cannot open /dev/modem: No such file or directory
    --> Cannot open /dev/modem: No such file or directory

    I do believe the problem is the fact that /dev/ttyUSB0 does not exist.
    Can somebody please give me advice as to how I go about sorting this mess? Thanks.

  2. #2
    Very good friend of the forum maverik35's Avatar
    Join Date
    Sep 2009
    Location
    Debian land
    Posts
    734

    Default Re: USB 3g modem

    Please post the dmesg to see the kernel messages. After connecting device, you should see three /dev/ttyUSB*..Make sure they exist.

    When connected, post the lsmod | grep -i usbserial
    or lsmod ( to see how many usb modules were loaded). You might find the usb_storage but this is not important since is used to handle the USB storage in the USB 3g if it has any.
    Last edited by maverik35; 02-23-2013 at 05:37 PM.

  3. #3
    Just burned his ISO
    Join Date
    Aug 2012
    Posts
    5

    Default Re: USB 3g modem

    Quote Originally Posted by maverik35 View Post
    Please post the dmesg to see the kernel messages. After connecting device, you should see three /dev/ttyUSB*..Make sure they exist.

    When connected, post the lsmod | grep -i usbserial
    or lsmod ( to see how many usb modules were loaded). You might find the usb_storage but this is not important since is used to handle the USB storage in the USB 3g if it has any.
    Ok, I type dmesg | tail and get this (backtrack forums won't let me type the full dmesg):
    Code:
    [34540.441813] xhci_hcd 0000:00:14.0: WARN: Stalled endpoint
    [34540.554057] xhci_hcd 0000:00:14.0: WARN: Stalled endpoint
    [34540.559328] xhci_hcd 0000:00:14.0: WARN: Stalled endpoint
    [34540.565610] xhci_hcd 0000:00:14.0: WARN: Stalled endpoint
    [34540.591792] xhci_hcd 0000:00:14.0: WARN: Stalled endpoint
    [34540.595301] xhci_hcd 0000:00:14.0: WARN: Stalled endpoint
    [34540.605117] ISO 9660 Extensions: Microsoft Joliet Level 1
    [34540.608647] ISOFS: changing to secondary root
    [34540.614804] xhci_hcd 0000:00:14.0: WARN: Stalled endpoint
    [34540.617812] xhci_hcd 0000:00:14.0: WARN: Stalled endpoint
    I type lsmod grep -i usbserial
    Code:
    usbserial              35862  0
    Output of lsmod
    Code:
    Module                  Size  Used by
    usb_storage            42478  0 
    uas                    17476  0 
    usbserial              35862  0 
    dm_crypt               22236  0 
    snd_hda_codec_hdmi     31410  1 
    snd_hda_codec_realtek   172903  1 
    snd_hda_intel          32238  3 
    snd_hda_codec          93484  3 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel
    snd_hwdep              13232  1 snd_hda_codec
    snd_pcm                72878  4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
    snd_seq_midi           13132  0 
    snd_rawmidi            24215  1 snd_seq_midi
    snd_seq_midi_event     14076  1 snd_seq_midi
    snd_seq                50403  2 snd_seq_midi,snd_seq_midi_event
    arc4                   12473  2 
    snd_timer              23911  3 snd_pcm,snd_seq
    snd_seq_device         13817  3 snd_seq_midi,snd_rawmidi,snd_seq
    rtl8187                56060  0 
    mac80211              410313  1 rtl8187
    joydev                 17161  0 
    snd                    52787  14 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
    lp                     13321  0 
    cfg80211              160399  2 rtl8187,mac80211
    psmouse                72465  0 
    uvcvideo               66101  0 
    parport                34960  1 lp
    rts5139               269187  0 
    soundcore              12534  1 snd
    eeprom_93cx6           12560  1 rtl8187
    snd_page_alloc         13709  2 snd_hda_intel,snd_pcm
    mei                    35758  0 
    serio_raw              13027  0 
    videodev               82668  1 uvcvideo
    mac_hid                13037  0 
    squashfs               35835  1 
    nls_utf8               12493  1 
    isofs                  39187  1 
    dm_mirror              21585  0 
    dm_region_hash         15035  1 dm_mirror
    dm_log                 17871  2 dm_mirror,dm_region_hash
    aufs                  162169  143 
    r8169                  46895  0 
    video                  18434  0 
    wmi                    18273  0
    I have done more research and phone technical support and they told me about usb_modeswitch in case the modem was being picked up as a mass storage device rather than a modem. Here's what I did:
    lsusb
    Code:
    Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 003 Device 003: ID 12d1:1f01 Huawei Technologies Co., Ltd. 
    Bus 003 Device 002: ID 0bda:8187 Realtek Semiconductor Corp. RTL8187 Wireless Adapter
    Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
    Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 001 Device 004: ID 2232:1028  
    Bus 001 Device 003: ID 0bda:0129 Realtek Semiconductor Corp. 
    Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    usb_modeswitch -v 12d1 -p 1f01 -H 1 -W
    Code:
    Taking all parameters from the command line
    
    
     * usb-modeswitch: handle USB devices with multiple modes
     * Version 1.1.3 (C) Josua Dietze 2010
     * Based on libusb0 (0.1.12 and above)
    
     ! PLEASE REPORT NEW CONFIGURATIONS !
    
    DefaultVendor=  0x12d1
    DefaultProduct= 0x1f01
    TargetVendor=   not set
    TargetProduct=  not set
    TargetClass=    not set
    TargetProductList=""
    
    DetachStorageOnly=0
    HuaweiMode=1
    SierraMode=0
    SonyMode=0
    GCTMode=0
    MessageEndpoint=  not set
    MessageContent=""
    NeedResponse=0
    ResponseEndpoint= not set
    Interface=0x00
    
    InquireDevice enabled (default)
    Success check disabled
    System integration mode disabled
    
    usb_set_debug: Setting debugging level to 15 (on)
    usb_os_find_busses: Found 004
    usb_os_find_busses: Found 003
    usb_os_find_busses: Found 002
    usb_os_find_busses: Found 001
    usb_os_find_devices: Found 001 on 004
    skipping descriptor 0x30
    skipped 1 class/vendor specific endpoint descriptors
    usb_os_find_devices: Found 003 on 003
    usb_os_find_devices: Found 002 on 003
    usb_os_find_devices: Found 001 on 003
    error obtaining child information: Inappropriate ioctl for device
    error obtaining child information: Inappropriate ioctl for device
    usb_os_find_devices: Found 002 on 002
    usb_os_find_devices: Found 001 on 002
    usb_os_find_devices: Found 004 on 001
    skipping descriptor 0xB
    skipped 1 class/vendor specific endpoint descriptors
    skipped 5 class/vendor specific interface descriptors
    skipping descriptor 0x25
    skipped 1 class/vendor specific endpoint descriptors
    skipped 10 class/vendor specific interface descriptors
    usb_os_find_devices: Found 003 on 001
    usb_os_find_devices: Found 002 on 001
    usb_os_find_devices: Found 001 on 001
    error obtaining child information: Inappropriate ioctl for device
    error obtaining child information: Inappropriate ioctl for device
    
    Looking for default devices ...
      searching devices, found USB ID 1d6b:0003
      searching devices, found USB ID 12d1:1f01
       found matching vendor ID
       found matching product ID
       adding device
      searching devices, found USB ID 0bda:8187
      searching devices, found USB ID 1d6b:0002
      searching devices, found USB ID 8087:0024
      searching devices, found USB ID 1d6b:0002
      searching devices, found USB ID 2232:1028
      searching devices, found USB ID 0bda:0129
      searching devices, found USB ID 8087:0024
      searching devices, found USB ID 1d6b:0002
     Found devices in default mode or class (1)
    Accessing device 003 on bus 003 ...
    Using endpoints 0x01 (out) and 0x81 (in)
    Inquiring device details; driver will be detached ...
    Looking for active driver ...
    USB error: could not get bound driver: No data available
     No driver found. Either detached before or never attached
    
    SCSI inquiry data (for identification)
    -------------------------
      Vendor String: Huawei  
       Model String: Mass Storage    
    Revision String: 2.31
    -------------------------
    
    USB description data (for identification)
    -------------------------
    Manufacturer: HUAWEI Technology
         Product: HUAWEI Mobile
      Serial No.: not provided
    -------------------------
    Sending Huawei control message ...
    USB error: error sending control message: Broken pipe
    Error: sending Huawei control message failed (error -32). Aborting.
    Then obviously to sort everything out I would do:
    modprobe usbserial vendor=0x1199 product=0x68a3
    ls -l /dev/ttyUSB*

    and then tackle wvdial if it weren't for the error. Appreciate any help.

  4. #4
    Very good friend of the forum maverik35's Avatar
    Join Date
    Sep 2009
    Location
    Debian land
    Posts
    734

    Default Re: USB 3g modem

    Quote Originally Posted by djangofawkes View Post
    Ok, I type dmesg | tail and get this (backtrack forums won't let me type the full dmesg):
    Code:
    [34540.441813] xhci_hcd 0000:00:14.0: WARN: Stalled endpoint
    [34540.554057] xhci_hcd 0000:00:14.0: WARN: Stalled endpoint
    [34540.559328] xhci_hcd 0000:00:14.0: WARN: Stalled endpoint
    [34540.565610] xhci_hcd 0000:00:14.0: WARN: Stalled endpoint
    [34540.591792] xhci_hcd 0000:00:14.0: WARN: Stalled endpoint
    [34540.595301] xhci_hcd 0000:00:14.0: WARN: Stalled endpoint
    [34540.605117] ISO 9660 Extensions: Microsoft Joliet Level 1
    [34540.608647] ISOFS: changing to secondary root
    [34540.614804] xhci_hcd 0000:00:14.0: WARN: Stalled endpoint
    [34540.617812] xhci_hcd 0000:00:14.0: WARN: Stalled endpoint
    I type lsmod grep -i usbserial
    Code:
    usbserial              35862  0
    Output of lsmod
    Code:
    Module                  Size  Used by
    usb_storage            42478  0 
    uas                    17476  0 
    usbserial              35862  0 
    dm_crypt               22236  0 
    snd_hda_codec_hdmi     31410  1 
    snd_hda_codec_realtek   172903  1 
    snd_hda_intel          32238  3 
    snd_hda_codec          93484  3 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel
    snd_hwdep              13232  1 snd_hda_codec
    snd_pcm                72878  4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
    snd_seq_midi           13132  0 
    snd_rawmidi            24215  1 snd_seq_midi
    snd_seq_midi_event     14076  1 snd_seq_midi
    snd_seq                50403  2 snd_seq_midi,snd_seq_midi_event
    arc4                   12473  2 
    snd_timer              23911  3 snd_pcm,snd_seq
    snd_seq_device         13817  3 snd_seq_midi,snd_rawmidi,snd_seq
    rtl8187                56060  0 
    mac80211              410313  1 rtl8187
    joydev                 17161  0 
    snd                    52787  14 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
    lp                     13321  0 
    cfg80211              160399  2 rtl8187,mac80211
    psmouse                72465  0 
    uvcvideo               66101  0 
    parport                34960  1 lp
    rts5139               269187  0 
    soundcore              12534  1 snd
    eeprom_93cx6           12560  1 rtl8187
    snd_page_alloc         13709  2 snd_hda_intel,snd_pcm
    mei                    35758  0 
    serio_raw              13027  0 
    videodev               82668  1 uvcvideo
    mac_hid                13037  0 
    squashfs               35835  1 
    nls_utf8               12493  1 
    isofs                  39187  1 
    dm_mirror              21585  0 
    dm_region_hash         15035  1 dm_mirror
    dm_log                 17871  2 dm_mirror,dm_region_hash
    aufs                  162169  143 
    r8169                  46895  0 
    video                  18434  0 
    wmi                    18273  0
    I have done more research and phone technical support and they told me about usb_modeswitch in case the modem was being picked up as a mass storage device rather than a modem. Here's what I did:
    lsusb
    Code:
    Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 003 Device 003: ID 12d1:1f01 Huawei Technologies Co., Ltd. 
    Bus 003 Device 002: ID 0bda:8187 Realtek Semiconductor Corp. RTL8187 Wireless Adapter
    Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
    Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 001 Device 004: ID 2232:1028  
    Bus 001 Device 003: ID 0bda:0129 Realtek Semiconductor Corp. 
    Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    usb_modeswitch -v 12d1 -p 1f01 -H 1 -W
    Code:
    Taking all parameters from the command line
    
    
     * usb-modeswitch: handle USB devices with multiple modes
     * Version 1.1.3 (C) Josua Dietze 2010
     * Based on libusb0 (0.1.12 and above)
    
     ! PLEASE REPORT NEW CONFIGURATIONS !
    
    DefaultVendor=  0x12d1
    DefaultProduct= 0x1f01
    TargetVendor=   not set
    TargetProduct=  not set
    TargetClass=    not set
    TargetProductList=""
    
    DetachStorageOnly=0
    HuaweiMode=1
    SierraMode=0
    SonyMode=0
    GCTMode=0
    MessageEndpoint=  not set
    MessageContent=""
    NeedResponse=0
    ResponseEndpoint= not set
    Interface=0x00
    
    InquireDevice enabled (default)
    Success check disabled
    System integration mode disabled
    
    usb_set_debug: Setting debugging level to 15 (on)
    usb_os_find_busses: Found 004
    usb_os_find_busses: Found 003
    usb_os_find_busses: Found 002
    usb_os_find_busses: Found 001
    usb_os_find_devices: Found 001 on 004
    skipping descriptor 0x30
    skipped 1 class/vendor specific endpoint descriptors
    usb_os_find_devices: Found 003 on 003
    usb_os_find_devices: Found 002 on 003
    usb_os_find_devices: Found 001 on 003
    error obtaining child information: Inappropriate ioctl for device
    error obtaining child information: Inappropriate ioctl for device
    usb_os_find_devices: Found 002 on 002
    usb_os_find_devices: Found 001 on 002
    usb_os_find_devices: Found 004 on 001
    skipping descriptor 0xB
    skipped 1 class/vendor specific endpoint descriptors
    skipped 5 class/vendor specific interface descriptors
    skipping descriptor 0x25
    skipped 1 class/vendor specific endpoint descriptors
    skipped 10 class/vendor specific interface descriptors
    usb_os_find_devices: Found 003 on 001
    usb_os_find_devices: Found 002 on 001
    usb_os_find_devices: Found 001 on 001
    error obtaining child information: Inappropriate ioctl for device
    error obtaining child information: Inappropriate ioctl for device
    
    Looking for default devices ...
      searching devices, found USB ID 1d6b:0003
      searching devices, found USB ID 12d1:1f01
       found matching vendor ID
       found matching product ID
       adding device
      searching devices, found USB ID 0bda:8187
      searching devices, found USB ID 1d6b:0002
      searching devices, found USB ID 8087:0024
      searching devices, found USB ID 1d6b:0002
      searching devices, found USB ID 2232:1028
      searching devices, found USB ID 0bda:0129
      searching devices, found USB ID 8087:0024
      searching devices, found USB ID 1d6b:0002
     Found devices in default mode or class (1)
    Accessing device 003 on bus 003 ...
    Using endpoints 0x01 (out) and 0x81 (in)
    Inquiring device details; driver will be detached ...
    Looking for active driver ...
    USB error: could not get bound driver: No data available
     No driver found. Either detached before or never attached
    
    SCSI inquiry data (for identification)
    -------------------------
      Vendor String: Huawei  
       Model String: Mass Storage    
    Revision String: 2.31
    -------------------------
    
    USB description data (for identification)
    -------------------------
    Manufacturer: HUAWEI Technology
         Product: HUAWEI Mobile
      Serial No.: not provided
    -------------------------
    Sending Huawei control message ...
    USB error: error sending control message: Broken pipe
    Error: sending Huawei control message failed (error -32). Aborting.
    Then obviously to sort everything out I would do:
    modprobe usbserial vendor=0x1199 product=0x68a3
    ls -l /dev/ttyUSB*

    and then tackle wvdial if it weren't for the error. Appreciate any help.
    Well, in the post I wrote I never mentioned to use the usb_modeswitch, which indeed will try to use both features, but some people have found bugs using it with some kernels, that is why I did not mentioned it. I just wanted you to do as I posted.

    I see you are little desesperate and that is not good, since it will make aplly things that might make issue little more complex..

    I'm busy now but will post later.

    Luck.
    Last edited by maverik35; 02-26-2013 at 05:34 PM.

Similar Threads

  1. Replies: 4
    Last Post: 06-28-2009, 09:05 PM
  2. Replies: 0
    Last Post: 06-22-2009, 07:41 AM
  3. How to configure an evdo modem as a wireless modem
    By shashank1232 in forum OLD Newbie Area
    Replies: 5
    Last Post: 04-18-2008, 12:39 AM
  4. New and need some modem help.
    By wild13 in forum OLD Newbie Area
    Replies: 5
    Last Post: 12-07-2007, 09:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •