Huawei E3131/K4505 u3g not available?



  • Hello,

    I'm trying to persuade my pfSense 2.0.1 box to work with a Huawei E3131 or a K4505 (or both).
    After long hours of searching, I discovered usb_modeswitch, then learned how to use it to switch the USB sticks from storage to modem mode.

    But pfSense still doesn't see them as modems.
    Then I discovered that I don't have any u3g module or cuaU devices, so the tutorial from http://doc.pfsense.org/index.php/Configuring_3G_modems is not helpful.

    Now, is there something wrong with my installation? Do I need to reinstall with the 2 modems plugged-in?

    Here is the dmesg info regarding the 2 modems:

    K4505

    ugen4.2: <vodafone group="" (huawei)="">at usbus4
    umass0: <vodafone 0="" 2="" group="" (huawei)="" vodafone="" mobile="" broadband="" (huawei),="" class="" 0,="" rev="" 2.00="" 0.00,="" addr="">on usbus4
    umass0:  SCSI over Bulk-Only; quirks = 0x0000
    umass0:0:0👎 Attached to scbus0
    umass1: <vodafone 0="" 2="" group="" (huawei)="" vodafone="" mobile="" broadband="" (huawei),="" class="" 0,="" rev="" 2.00="" 0.00,="" addr="">on usbus4
    umass1:  SCSI over Bulk-Only; quirks = 0x0000
    (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
    (probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error
    (probe0:umass-sim0:0:0:0): SCSI status: Check Condition
    (probe0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:28,0 (Not ready to ready change, medium may have changed)
    umass1:1:1👎 Attached to scbus1
    (probe0:umass-sim1:1:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
    (probe0:umass-sim1:1:0:0): CAM status: SCSI Status Error
    (probe0:umass-sim1:1:0:0): SCSI status: Check Condition
    (probe0:umass-sim1:1:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present)

    E3131

    ugen4.3: <huawei>at usbus4
    umass2: <huawei 0="" 3="" huawei="" mobile,="" class="" 0,="" rev="" 2.00="" 1.02,="" addr="">on usbus4
    umass2:  SCSI over Bulk-Only; quirks = 0x0000
    umass2:2:2👎 Attached to scbus2
    umass3: <huawei 0="" 3="" huawei="" mobile,="" class="" 0,="" rev="" 2.00="" 1.02,="" addr="">on usbus4
    umass3:  SCSI over Bulk-Only; quirks = 0x0000
    umass3:3:3👎 Attached to scbus3
    (probe0:umass-sim3:3:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
    (probe0:umass-sim3:3:0:0): CAM status: SCSI Status Error
    (probe0:umass-sim3:3:0:0): SCSI status: Check Condition
    (probe0:umass-sim3:3:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present)

    da1 at umass-sim3 bus 3 scbus3 target 0 lun 0
    da1: <huawei sd="" storage="" 2.31="">Removable Direct Access SCSI-2 device
    da1: 40.000MB/s transfers
    da1: Attempt to query device size failed: NOT READY, Medium not present

    da0 at umass-sim1 bus 1 scbus1 target 0 lun 0
    da0: <vodafone storage="" (huawei)="" 2.31="">Removable Direct Access SCSI-2 device
    da0: 40.000MB/s transfers
    da0: Attempt to query device size failed: NOT READY, Medium not present

    cd0 at umass-sim0 bus 0 scbus0 target 0 lun 0
    cd0: <vodafone cd="" rom="" (huawei)="" 2.31="">Removable CD-ROM SCSI-2 device
    cd0: 40.000MB/s transfers
    cd0: cd present [37248 x 2048 byte records]

    cd1 at umass-sim2 bus 2 scbus2 target 0 lun 0
    cd1: <huawei mass="" storage="" 2.31="">Removable CD-ROM SCSI-2 device
    cd1: 40.000MB/s transfers
    cd1: cd present [65536 x 2048 byte records]

    pfSense: 2.0.1-RELEASE (i386) built on Mon Dec 12 17:53:52 EST 2011 FreeBSD 8.1-RELEASE-p6

    dmesg_c2.txt</huawei></vodafone></vodafone></huawei></huawei></huawei></huawei></vodafone></vodafone></vodafone>



  • That means the device has not switched to modem mode but is still on umass mode.
    Maybe u2g in 2.0.1 does not support it fully and you have to perform the mode swtich into pfSense itself.



  • I see now that kldstat -v shows a u3g module. But I still don't see any cuaU interfaces.
    And I tried to switch the E3131 to modem mode like this: http://forum.jdtech.pl/Watek-e3131-aero2-linux-to-dziala?page=2
    Basically, I used the (probably) correct TargetProduct id and MessageContent.

    Maybe u2g in 2.0.1 does not support it fully and you have to perform the mode swtich into pfSense itself.

    Is there a way to perform this switch into pfSense itself? I should get the sources and recompile pfSense?



  • Any news on this issue?


  • Netgate Administrator

    What happened when you tried usb_modeswitch? Did it report success? Did the list in /dev change?

    Steve


  • Rebel Alliance Developer Netgate

    We added patches for the K4505 into 2.0.2 and 2.1 by request of a customer.

    If you try a current image/snapshot it should work there.



  • Ok I plugged my E3131 into my pfSense 2.0.2 box and got a text message similar to the text above, (copied below);

    E3131

    ugen4.3: <huawei>at usbus4
    umass2: <huawei 0="" 3="" huawei="" mobile,="" class="" 0,="" rev="" 2.00="" 1.02,="" addr="">on usbus4
    umass2:  SCSI over Bulk-Only; quirks = 0x0000
    umass2:2:2👎 Attached to scbus2
    umass3: <huawei 0="" 3="" huawei="" mobile,="" class="" 0,="" rev="" 2.00="" 1.02,="" addr="">on usbus4
    umass3:  SCSI over Bulk-Only; quirks = 0x0000
    umass3:3:3👎 Attached to scbus3
    (probe0:umass-sim3:3:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
    (probe0:umass-sim3:3:0:0): CAM status: SCSI Status Error
    (probe0:umass-sim3:3:0:0): SCSI status: Check Condition
    (probe0:umass-sim3:3:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present)

    And yes it thinks it is mass storage

    Now what ???

    Should I enter usb_modeswitch at the prompt ???</huawei></huawei></huawei>



  • I'm back after so long..

    I'm running 2.1-RC0 from June 4th.
    With Huawei E3131, dmesg shows:

    umodem0: <huawei 0="" 2="" huawei="" mobile,="" class="" 0,="" rev="" 2.00="" 1.02,="" addr="">on usbus4
    umodem0: data interface 0, has no CM over data, has no break
    umodem1: <huawei 0="" 2="" huawei="" mobile,="" class="" 0,="" rev="" 2.00="" 1.02,="" addr="">on usbus4
    umodem1: data interface 1, has no CM over data, has no break
    umodem2: <huawei 0="" 2="" huawei="" mobile,="" class="" 0,="" rev="" 2.00="" 1.02,="" addr="">on usbus4
    umodem2: data interface 2, has no CM over data, has no break</huawei></huawei></huawei>

    umass0: <huawei 0="" 2="" huawei="" mobile,="" class="" 0,="" rev="" 2.00="" 1.02,="" addr="">on usbus4
    umass0:  SCSI over Bulk-Only; quirks = 0x0000
    umass0:0:0👎 Attached to scbus0
    umass1: <huawei 0="" 2="" huawei="" mobile,="" class="" 0,="" rev="" 2.00="" 1.02,="" addr="">on usbus4
    umass1:  SCSI over Bulk-Only; quirks = 0x0000
    umass1:1:1👎 Attached to scbus1
    (probe1:umass-sim1:1:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
    (probe1:umass-sim1:1:0:0): CAM status: SCSI Status Error
    (probe1:umass-sim1:1:0:0): SCSI status: Check Condition
    (probe1:umass-sim1:1:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present)
    cd0 at umass-sim0 bus 0 scbus0 target 0 lun 0
    cd0: <huawei mass="" storage="" 2.31="">Removable CD-ROM SCSI-2 device
    cd0: 40.000MB/s transfers
    cd0: cd present [65536 x 2048 byte records]
    da0 at umass-sim1 bus 1 scbus1 target 0 lun 0
    da0: <huawei sd="" storage="" 2.31="">Removable Direct Access SCSI-2 device
    da0: 40.000MB/s transfers
    da0: Attempt to query device size failed: NOT READY, Medium not present

    $ ls /dev/cu* =>
    /dev/cuaU0
    /dev/cuaU0.init
    /dev/cuaU0.lock
    /dev/cuaU1
    /dev/cuaU1.init
    /dev/cuaU1.lock
    /dev/cuaU2
    /dev/cuaU2.init
    /dev/cuaU2.lock
    /dev/cuau0
    /dev/cuau0.init
    /dev/cuau0.lock

    $ kldstat -v|grep -i u3g => 361 uhub/u3g

    But I still don't see any cuaU interfaces in the list of PPP interfaces and can't use the 3G modem.
    What should I do next?</huawei></huawei></huawei></huawei>



  • Hello, any news on this topic?


  • Netgate Administrator

    For some reason it's not able to see the modem on any of the 3 USB serial ports created by u3g. Also it's still seeing the virtual CD drive which isn't a good sign.
    Maybe try this:
    http://unix.derkeiler.com/Mailing-Lists/FreeBSD/questions/2013-03/msg00641.html

    Steve



  • From my experience:
    for this model AT string to switch to modem only mode is AT^SETPORT="A1,A2;1,3,2"
    AT^U2DIAG=0 does not work


Log in to reply