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

    3g modem stops working after upgrade

    Scheduled Pinned Locked Moved 2.1 Snapshot Feedback and Problems - RETIRED
    10 Posts 3 Posters 3.7k 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.
    • J
      jly2680
      last edited by

      I have alix board using my 3.5g modem as my wan..But after upgrading from 2.0 and install latest snapshots,my modem was not detected by pfsense..

      heres my log

       usb_modeswitch -v 1a8d -p 2000 -M "5553424312345678000000000000061e000000000000000000000000000000" -2 "5553424312345679000000000000061b000000020000000000000000000000" -n 1 -W
      Taking all parameters from the command line
      
       * usb_modeswitch: handle USB devices with multiple modes
       * Version 1.2.1 (C) Josua Dietze 2011
       * Based on libusb0 (0.1.12 and above)
      
       ! PLEASE REPORT NEW CONFIGURATIONS !
      
      DefaultVendor=  0x1a8d
      DefaultProduct= 0x2000
      TargetVendor=   not set
      TargetProduct=  not set
      TargetClass=    not set
      TargetProductList=""
      
      DetachStorageOnly=0
      HuaweiMode=0
      SierraMode=0
      SonyMode=0
      QisdaMode=0
      GCTMode=0
      KobilMode=0
      SequansMode=0
      MobileActionMode=0
      CiscoMode=0
      MessageEndpoint=  not set
      MessageContent="5553424312345678000000000000061e000000000000000000000000000000"
      MessageContent2="5553424312345679000000000000061b000000020000000000000000000000"
      NeedResponse=1
      ResponseEndpoint= not set
      
      InquireDevice enabled (default)
      Success check disabled
      System integration mode disabled
      
      Looking for default devices ...
        searching devices, found USB ID 1a8d:2000
         found matching vendor ID
         found matching product ID
         adding device
        searching devices, found USB ID 0000:0000
        searching devices, found USB ID 0000:0000
       Found device in default mode, class or configuration (1)
      Accessing device 003 on bus 000 ...
      Getting the current device configuration ...
       OK, got current device configuration (1)
      Using first interface: 0x00
      Using endpoints 0x01 (out) and 0x81 (in)
      Inquiring device details; driver will be detached ...
       Cant't do driver detection and detaching on this platform.
       Could not get INQUIRY response (error -6)
      
      USB description data (for identification)
      -------------------------
      Manufacturer: BandRich
           Product: BandLuxe  3.5G HSPA Adapter
        Serial No.: 8BBDC31CD898EAFC6FB8B853DFF94A5D1E76A436
      -------------------------
       Cant't do driver detection and detaching on this platform.
      Setting up communication with interface 0
      Using endpoint 0x01 for message sending ...
      Trying to send message 1 to endpoint 0x01 ...
       Sending the message returned error -60\. Trying to continue
      Reading the response to message 1 (CSW) ...
       Response reading got error -6
       Device is gone, skipping any further commands
      -> Run lsusb to note any changes. Bye.
      
      
      1 Reply Last reply Reply Quote 0
      • J
        jly2680
        last edited by

        noone has this issue??

        1 Reply Last reply Reply Quote 0
        • stephenw10S
          stephenw10 Netgate Administrator
          last edited by

          It could be that your modem is already supported by u3g under 2.1 so there is no need to use usb_modeswitch.
          Or that you're using the wrong version?

          Steve

          1 Reply Last reply Reply Quote 0
          • J
            jly2680
            last edited by

            here's my log at 2.0

            [2.0.1-RELEASE][root@pfSense.localdomain]/root(5): usb_modeswitch -v 1a8d -p 2000 -M "5553424312345678000000000000061e000000000000000000000000000000" -2 "5553424312345679000000000000061b000000020000000000000000000000" -n 1 -W
            Taking all parameters from the command line
            
             * usb_modeswitch: handle USB devices with multiple modes
             * Version 1.2.1 (C) Josua Dietze 2011
             * Based on libusb0 (0.1.12 and above)
            
             ! PLEASE REPORT NEW CONFIGURATIONS !
            
            DefaultVendor=  0x1a8d
            DefaultProduct= 0x2000
            TargetVendor=   not set
            TargetProduct=  not set
            TargetClass=    not set
            TargetProductList=""
            
            DetachStorageOnly=0
            HuaweiMode=0
            SierraMode=0
            SonyMode=0
            QisdaMode=0
            GCTMode=0
            KobilMode=0
            SequansMode=0
            MobileActionMode=0
            CiscoMode=0
            MessageEndpoint=  not set
            MessageContent="5553424312345678000000000000061e000000000000000000000000000000"
            MessageContent2="5553424312345679000000000000061b000000020000000000000000000000"
            NeedResponse=1
            ResponseEndpoint= not set
            
            InquireDevice enabled (default)
            Success check disabled
            System integration mode disabled
            
            Looking for default devices ...
              searching devices, found USB ID 1a8d:2000
               found matching vendor ID
               found matching product ID
               adding device
              searching devices, found USB ID 0000:0000
              searching devices, found USB ID 0000:0000
             Found device in default mode, class or configuration (1)
            Accessing device 003 on bus 000 ...
            Getting the current device configuration ...
             OK, got current device configuration (1)
            Using first interface: 0x00
            Using endpoints 0x01 (out) and 0x81 (in)
            Inquiring device details; driver will be detached ...
             Cant't do driver detection and detaching on this platform.
            
            SCSI inquiry data (for identification)
            -------------------------
              Vendor String: BandRich
               Model String: CDROM
            Revision String: 0001
            -------------------------
            
            USB description data (for identification)
            -------------------------
            Manufacturer: BandRich
                 Product: BandLuxe  3.5G HSPA Adapter
              Serial No.: 8BBDC31CD898EAFC6FB8B853DFF94A5D1E76A436
            -------------------------
            Setting up communication with interface 0
            Using endpoint 0x01 for message sending ...
            Trying to send message 1 to endpoint 0x01 ...
             OK, message successfully sent
            Reading the response to message 1 (CSW) ...
             OK, response successfully read ugen1.2: <bandrich>at usbus1 (disconnected)
            umass0: at uhub1, port 1, addr 2 (disconnected)
            (13 bytes).
            Trying to send mess(cd0:umass-sim0:0:0:0): lost device
            (cd0:umass-sim0:0:0:0): removing device entry
            (da0:umass-sim0:0:0:1): lost device
            (da0:umass-sim0:0:0:1): removing device entry
            age 2 to endpoint 0x01 ...
             OK, message successfully sent
            Reading the response to message 2 (CSW) ...
             OK, response successfully read (13 bytes).
            Resetting response endpoint 0x81
            Resetting message endpoint 0x01
            -> Run lsusb to note any changes. Bye.</bandrich> 
            

            in 2.1 if it is supported,, will my modem wll be attached as /dev/cuaU0??

            1 Reply Last reply Reply Quote 0
            • stephenw10S
              stephenw10 Netgate Administrator
              last edited by

              Probably, though many modems present several serial ports only one of which will work.

              Your usb_modeswitch log from 2.1 shows it is unable to send the message to the device. You will need a version of usb_modeswitch compiled for freebsd 8.3. How did you install it?

              Steve

              1 Reply Last reply Reply Quote 0
              • J
                jly2680
                last edited by

                SOLVED..by simply issuing cd eject command.,
                #cdcontrol -f /dev/cd0 eject

                ugen1.2: <bandrich>at usbus1 (disconnected)
                umass0: at uhub1, port 2, addr 2 (disconnected)
                (cd0:umass-sim0:0:0:0): lost device
                (cd0:umass-sim0:0:0:0): removing device entry
                (da0:umass-sim0:0:0:1): lost device - 0 outstanding, 0 refs
                (da0:umass-sim0:0:0:1): removing device entry
                ugen1.2: <bandrich>at usbus1
                umodem0: <bandrich 2="" bandluxe=""  3.5g="" hspa="" adapter,="" class="" 0,="" rev="" 2.00="" 0.01,="" addr="">on usbus1
                umodem0: data interface 2, has CM over data, has break
                umodem1: <bandrich 2="" bandluxe=""  3.5g="" hspa="" adapter,="" class="" 0,="" rev="" 2.00="" 0.01,="" addr="">on usbus1
                umodem1: data interface 4, has CM over data, has break
                cdce0: <bandrich 2="" bandluxe=""  3.5g="" hspa="" adapter,="" class="" 0,="" rev="" 2.00="" 0.01,="" addr="">on usbus1
                umass0: <bandrich 2="" bandluxe=""  3.5g="" hspa="" adapter,="" class="" 0,="" rev="" 2.00="" 0.01,="" addr="">on usbus1</bandrich></bandrich></bandrich></bandrich></bandrich></bandrich> 
                

                now how to eject it at boot ??and how can i restart the ppp interface when it is disconnected??pfsense doesnt reconnect it..

                1 Reply Last reply Reply Quote 0
                • stephenw10S
                  stephenw10 Netgate Administrator
                  last edited by

                  You can use shellcmd to run it at boot:
                  http://doc.pfsense.org/index.php/Executing_commands_at_boot_time

                  Steve

                  1 Reply Last reply Reply Quote 0
                  • J
                    jly2680
                    last edited by

                    thanks..i did try to put script on /usr/local/etc/rc.d/usb.sh and it did connect on startup..but how will the script will exit after excute??

                    
                    #!/bin/sh
                    cdcontrol -f /dev/cd0 eject
                    sleep 7
                    /etc/rc.reload_interfaces
                    
                    

                    can i add && to the end of the script ??

                    1 Reply Last reply Reply Quote 0
                    • D
                      databeestje
                      last edited by

                      Check the /etc/rc boot script. We already eject for ZTE and HUAWEI devices. What brand is this?

                      1 Reply Last reply Reply Quote 0
                      • J
                        jly2680
                        last edited by

                        bandrich c331 3g modem..
                        http://www.bandrich.com/Data-Card_C330.html

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