Find the answer to your Linux question:
Results 1 to 5 of 5
Hi, I've been trying for some time to get the Huawei E398 to work with RHEL 6.4 on my laptop. But without success! Would be really grateful for anything that ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2013
    Location
    Sweden
    Posts
    8

    Huawei E398 on RHEL 6.4 - (usb_modeswitch + wvdial)


    Hi,

    I've been trying for some time to get the Huawei E398 to work with RHEL 6.4 on my laptop. But without success!

    Would be really grateful for anything that helps me out here!

    OK, so i connect the device.

    Code:
    [root-RXJ robin]# dmesg
    usb 2-1.3: new high speed USB device number 5 using ehci_hcd
    usb 2-1.3: New USB device found, idVendor=12d1, idProduct=1505
    usb 2-1.3: New USB device strings: Mfr=3, Product=2, SerialNumber=0
    usb 2-1.3: Product: HUAWEI Mobile
    usb 2-1.3: Manufacturer: Huawei Technologies
    usb 2-1.3: configuration #1 chosen from 1 choice
    scsi6 : SCSI emulation for USB Mass Storage devices
    usb-storage: device found at 5
    usb-storage: waiting for device to settle before scanning
    usb-storage: device scan complete
    scsi 6:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 0
    scsi 6:0:0:0: Attached scsi generic sg2 type 5
    sr0: scsi-1 drive
    Uniform CD-ROM driver Revision: 3.20
    sr 6:0:0:0: Attached scsi CD-ROM sr0
    As expected the device is seen as a storage device.

    Code:
    [root-RXJ robin]# lsusb
    Bus 002 Device 005: ID 12d1:1505 Huawei Technologies Co., Ltd. E398 LTE/UMTS/GSM Modem/Networkcard
    So I decided to use usb_modeswitch to change the device to "modem mode".

    I installed this by downloading and installing the specified RPMs

    Code:
    [root-RXJ robin]# yum localinstall usb_modeswitch-1.1.5-1.el6.rf.x86_64.rpm usb_modeswitch-1.1.5-1.el6.rf.x86_64.rpm
    Then I executed usb_modeswitch the following parameters:
    Code:
    [root-RXJ robin]# usb_modeswitch -v 12d1 -p 1505 -M '55534243123456780000000000000011062000000100000000000000000000'
    
    Looking for default devices ...
     Found devices in default mode or class (1)
    Accessing device 005 on bus 002 ...
    Getting the current device configuration ...
     OK, got current device configuration (1)
    Using endpoints 0x01 (out) and 0x81 (in)
    Using endpoints 0x01 (out) and 0x81 (in)
    Inquiring device details; driver will be detached ...
    Looking for active driver ...
     OK, driver found ("usb-storage")
     OK, driver "usb-storage" detached
    
    SCSI inquiry data (for identification)
    -------------------------
      Vendor String: HUAWEI  
       Model String: Mass Storage    
    Revision String: 2.31
    -------------------------
    
    USB description data (for identification)
    -------------------------
    Manufacturer: Huawei Technologies
         Product: HUAWEI Mobile
      Serial No.: not provided
    -------------------------
    Setting up communication with interface 0 ...
    Using endpoint 0x01 for message sending ...
    Trying to send message 1 to endpoint 0x01 ...
     OK, message successfully sent
    Resetting response endpoint 0x81
    Resetting message endpoint 0x01
    -> Run lsusb to note any changes. Bye.
    ... and this resulted in...
    Code:
    [root-RXJ robin]# dmesg
    usbcore: registered new interface driver usbserial
    USB Serial support registered for generic
    usbcore: registered new interface driver usbserial_generic
    usbserial: USB Serial Driver core
    USB Serial support registered for GSM modem (1-port)
    usbcore: registered new interface driver option
    option: v0.7.2:USB Driver for GSM modems
    usb-storage: device scan complete
    usb-storage: device scan complete
    scsi 7:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 0
    scsi 8:0:0:0: Direct-Access     HUAWEI   SD Storage       2.31 PQ: 0 ANSI: 2
    sr0: scsi-1 drive
    .. and a change of Product ID.
    Code:
    [root-RXJ robin]# lsusb
    Bus 002 Device 006: ID 12d1:1506 Huawei Technologies Co., Ltd. E398 LTE/UMTS/GSM Modem/Networkcard
    On the users desktop I can see the "MobilePartner" (automounted) disappear for about five seconds and then come back. What am I doing wrong here?

    Thanks in regard!

  2. #2
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,630
    Wow, been years since I used wvdial but always enjoyed working it. Mine was an Actiontec external serial modem. I never tried a USB model. Just looking around, I found this:
    https://bbs.archlinux.org/viewtopic.php?id=162433
    Perhaps it may shed some insight. Sorry I couldn't do more.
    Linux Mint + IceWM Registered: #371367 New Members: click here

  3. #3
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,758
    Few years back - these steps worked for me. I'm not sure whether it works or not now.

    http://www.linuxforums.org/forum/red...tml#post752613
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

  4. #4
    Just Joined!
    Join Date
    Jul 2013
    Location
    Sweden
    Posts
    8
    Thank you Dapper Dan and Lakshmipathi for your replies! Unfortunately I forgot the modem in the office today, but I will make sure to try this out tomorrow morning and then get back to you!

  5. #5
    Just Joined!
    Join Date
    Nov 2012
    Posts
    12
    I have a ZTE AC682 and Huawei modem should be similar to that.

    On the users desktop I can see the "MobilePartner" (automounted) disappear for about five seconds and then come back. What am I doing wrong here?
    I have had the same kind of problem with mine too. Actually usb-modeswitch is poor at handling the switching to modem mode. Mine used to work fine on Ubuntu 10.10 and before. But from 12.04 I noticed that the modem never gets switched to modem mode. I have checked with dmesg that it has been switched to modem mode but cannot be detected. I have searched and searched for 3 years, then found the solution. I have disabled the usb_modeswitch executable:
    Code:
    sudo chmod -x /usr/sbin/usb_modeswitch
    Then everytime I insert it I mount the modem:
    Code:
    udisks --mount /dev/sr1
    (sr0 on notebook)

    Then eject:
    Code:
    eject /dev/sr1
    It worked like a charm!

    Try removing your modem from USB port, then disable usb modeswitch and try again. It may help.

Posting Permissions

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