Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Pfsense vs Huawei 1731 modeswitch

    Scheduled Pinned Locked Moved Hardware
    5 Posts 2 Posters 1.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      Shreeyashattal
      last edited by

      Hi I've been trying to use Huawei 1731 usb modem, but I get this

      I've been beating my head against the wall trying to modeswitch this.. via this command

      usb_modeswitch -c /huawei.conf
      

      where the contents of the file are

      
      DefaultVendor=  12d1
      DefaultProduct= 1446
      
      TargetVendor=   12d1
      TargetProduct=  140c
      
      MessageContent="55534243123456780000000000000011060000000000000000000000000000"
      

      With the output

      Look for target devices ...
         product ID matched
       Found devices in target mode or class (1)
      Look for default devices ...
       No devices in default mode found. Nothing to do. Bye!
      
      

      Can somebody please guide me how to make it work?

      My usbconfig output is

      ugen0.1: <ehci root="" hub="" intel="">at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
      ugen2.1: <ehci root="" hub="" intel="">at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
      ugen1.1: <xhci root="" hub="" 0x1912="">at usbus1, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA)
      ugen0.2: <product 0x0024="" vendor="" 0x8087="">at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
      ugen2.2: <product 0x0024="" vendor="" 0x8087="">at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
      ugen2.3: <huawei mobile="" huawei="" technology="">at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA)</huawei></product></product></xhci></ehci></ehci> 
      
      1 Reply Last reply Reply Quote 0
      • A
        AndrewZ
        last edited by

        How this related to usb_modeswitch ?! Please forget about it for a while and show a few lines of your log where modem and ports are initially detected. If you see a storage device there - disable it from any terminal by AT^U2DIAG=0
        From the screenshot provided I see only one issue - your modem is locked to another provider (or you have bad SIM installed indeed).

        1 Reply Last reply Reply Quote 0
        • S
          Shreeyashattal
          last edited by

          Ok, i found out that the particular 3g modem was locked to one carrier, so I bought myself another D-Link DWP 157, since that was the only one available close to the Known 3g modem working list…

          upon connecting this is the system log

          Jan 23 13:59:26	kernel: cd0: cd present [28672 x 512 byte records]
          Jan 23 13:59:26	kernel: cd0: 40.000MB/s transfers
          Jan 23 13:59:26	kernel: cd0: Serial Number 531399701373400
          Jan 23 13:59:26	kernel: cd0: <hspa 6225="" usb="" scsi="" cd-rom=""> Removable CD-ROM SCSI-0 device
          Jan 23 13:59:26	kernel: cd0 at umass-sim0 bus 0 scbus3 target 0 lun 0
          Jan 23 13:59:26	kernel: umass0: <mass storage=""> on usbus2
          Jan 23 13:59:26	kernel: ugen2.3: <d-link,inc> at usbus2</d-link,inc></mass></hspa>
          

          usbconfig

          
          ugen0.1: <ehci root="" hub="" intel=""> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
          ugen2.1: <ehci root="" hub="" intel=""> at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
          ugen1.1: <xhci root="" hub="" 0x1912=""> at usbus1, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA)
          ugen0.2: <product 0x0024="" vendor="" 0x8087=""> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
          ugen2.2: <product 0x0024="" vendor="" 0x8087=""> at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
          ugen2.3: <d-link dwp-157="" d-link,inc=""> at usbus2, cfg=1 md=HOST spd=HIGH (480Mbps) pwr=ON (98mA)</d-link></product></product></xhci></ehci></ehci>
          

          usbconfig dump_device_desc

          ugen2.3: <d-link dwp-157="" d-link,inc="">at usbus2, cfg=1 md=HOST spd=HIGH (480Mbps) pwr=ON (98mA)
          
            bLength = 0x0012
            bDescriptorType = 0x0001
            bcdUSB = 0x0200
            bDeviceClass = 0x0000
            bDeviceSubClass = 0x0000
            bDeviceProtocol = 0x0000
            bMaxPacketSize0 = 0x0040
            idVendor = 0x2001
            idProduct = 0xa407
            bcdDevice = 0x0300
            iManufacturer = 0x0002  <d-link,inc >iProduct = 0x0003  <d-link dwp-157="">iSerialNumber = 0x0004  <531399701373400>
            bNumConfigurations = 0x0003</d-link></d-link,inc ></d-link> 
          

          How to get this to recognize as a modem?

          1 Reply Last reply Reply Quote 0
          • A
            AndrewZ
            last edited by

            Better try to unlock your Huawei.

            1 Reply Last reply Reply Quote 0
            • S
              Shreeyashattal
              last edited by

              yeah, I'm having the same thoughts.. Ok I'll get an unlocked Huawei modem today and try my luck the third time

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.