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

APU1D with LTE Huawei ME909u-521

Hardware
14
167
75.2k
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.
  • ?
    Guest
    last edited by Jul 30, 2015, 9:18 AM

    Also to correct myself, the MC7700 does indeed work with T_Mobile. Problem is that it was not LTE as B2 and B4 LTE for T_mobile frequencies are in the 1900mhz range and MC7700 uses 700mhz/B17. I thought at the time I was getting LTE… Live and learn.
    It worked so fast I had assumed it it was 4G.

    I have bought an MC7710 to test as I have many nearby T-mobile towers i discovered. Of course now T_mobile is adding LTE/B12 and no modem has it yet...

    1 Reply Last reply Reply Quote 0
    • B
      beeloo
      last edited by Aug 1, 2015, 9:18 AM Aug 1, 2015, 8:32 AM

      I just booted my APU1D4 with Ubuntu:

      @ubuntu:~$ dmesg | grep -i "usb 1-2"
      [    3.029495] usb 1-2: new high-speed USB device number 2 using ehci-pci
      [    3.189951] usb 1-2: New USB device found, idVendor=12d1, idProduct=1573
      [    3.196715] usb 1-2: New USB device strings: Mfr=2, Product=3, SerialNumber=4
      [    3.203884] usb 1-2: Product: HUAWEI Mobile
      [    3.208093] usb 1-2: Manufacturer: HUAWEI Technology
      [    3.213084] usb 1-2: SerialNumber: 0123456789ABCDEF
      [   10.286304] usb 1-2: GSM modem (1-port) converter now attached to ttyUSB0
      [   10.286800] usb 1-2: GSM modem (1-port) converter now attached to ttyUSB1
      [   10.290253] usb 1-2: GSM modem (1-port) converter now attached to ttyUSB2
      [   10.290622] usb 1-2: GSM modem (1-port) converter now attached to ttyUSB3
      @ubuntu:~$ 
      

      Can this be helpful ?

      I'm located in France and just need the appropriate bands. (2500/2600 for LTE, 1900/2100 for UMTS I guess)
      This module should be European and is supposed to be working here.

      I also ordered a Sierra MC7710. It should be there in a few weeks.
      I know that Sierra MC7304 is working for Orange network.

      In pfSense, right after rebooting from Ubuntu, I can find the following in dmesg:

      ugen1.2: <huawei technology=""> at usbus1
      cdce0: <cdc ethernet="" control="" model="" ecm=""> on usbus1
      ue0: <usb ethernet=""> on cdce0
      ue0: Ethernet address: 00:xx:xx:xx:xx:xx</usb></cdc></huawei>
      

      I can add a new interface based on the ue0 port.
      However, nothing more than cuau0 and cuau1 which are the internal serial ports.

      Here is the usbconfig result:

      root: usbconfig -u 1 -a 2 dump_device_desc
      ugen1.2: <huawei mobile="" huawei="" technology="">at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA)
      
        bLength = 0x0012 
        bDescriptorType = 0x0001 
        bcdUSB = 0x0200 
        bDeviceClass = 0x00fe 
        bDeviceSubClass = 0x0000 
        bDeviceProtocol = 0x0000 
        bMaxPacketSize0 = 0x0040 
        idVendor = 0x12d1 
        idProduct = 0x1573 
        bcdDevice = 0x0228 
        iManufacturer = 0x0002  <huawei technology="">iProduct = 0x0003  <huawei mobile="">iSerialNumber = 0x0004  <0123456789ABCDEF>
        bNumConfigurations = 0x0002</huawei></huawei></huawei> 
      

      You will also find the lsusb -v result as attachement.

      How can we try to make this Huawei working ?

      lsusb.txt

      1 Reply Last reply Reply Quote 0
      • ?
        Guest
        last edited by Aug 1, 2015, 10:06 AM

        I see that you have a CDC ethernet connection with ue0. There is nowhere to enter APN and you cannot connect without it from my experience.

        1 Reply Last reply Reply Quote 0
        • ?
          Guest
          last edited by Aug 1, 2015, 10:08 AM

          I am no developer but to make it work would probably require you to add the VID/PID to USBDEVS/U3G–(ie. build your own kernel). It appears there is an USB interface there and you would have to coax the AT command interface out for PPP connection.

          1 Reply Last reply Reply Quote 0
          • ?
            Guest
            last edited by Aug 1, 2015, 10:17 AM

            Do you own a MC7304? There maybe something in the future for that module… Support for MC7354 was just added and next the MC7355 hopefully. The MC7304 module shares the same firmware.

            1 Reply Last reply Reply Quote 0
            • B
              beeloo
              last edited by Aug 1, 2015, 4:31 PM Aug 1, 2015, 3:43 PM

              I only have this Huawei ME909u-521 module at the moment.

              As described here, I must be supported:
              http://www.freedesktop.org/wiki/Software/ModemManager/SupportedDevices/#index6h1

              usb_modeswitch with following configuration:

              [2.2.4-RELEASE][admin@pfSense]/root: cat 12d1:1573 
              DefaultVendor=  0x12d1 
              DefaultProduct= 0x1573 
              
              TargetVendor=      0x12d1
              TargetProductList= "1001,1406,140b,140c,1412,141b,1433,14ac"
              
              CheckSuccess=20
              
              HuaweiNewMode=1
              NeedResponse=0
              MessageEndpoint = 0x05 
              MessageContent = "55534243123456780000000000000011062000000100000000000000000000"
              [2.2.4-RELEASE][admin@pfSense]/root:
              

              returns:

              [2.2.4-RELEASE][admin@pfSense]/root: usb_modeswitch -c 12d1:1573
              Look for target devices ...
               No devices in target mode or class found
              Look for default devices ...
                 product ID matched
               Found devices in default mode (1)
              Access device 002 on bus 001
              Current configuration number is 1
              Use interface number 0
              Error: response endpoint not given or found. Abort
              
              [2.2.4-RELEASE][admin@pfSense]/root: 
              
              

              Any idea ?

              Thanks in advance

              1 Reply Last reply Reply Quote 0
              • ?
                Guest
                last edited by Aug 2, 2015, 1:29 AM Aug 2, 2015, 1:21 AM

                Your showing me a Linux forum saying it should work. This system is based on FreeBSD and compatibility depends on the underlying components. You need to check out here for supported devices.

                http://www.leidinger.net/FreeBSD/dox/dev_usb/html/d2/d62/u3g_8c_source.html

                Also Mini-PCIe modules have no need for usb-modeswitch. That is ONLY for ejecting the Mass Storage device presented by some USB Modems. Not internal modems.

                Have you tried it with Ubuntu or something that supports it.

                My modem fallback is OpenWRT. They support it all and keep it fresh.

                1 Reply Last reply Reply Quote 0
                • ?
                  Guest
                  last edited by Aug 2, 2015, 3:41 AM

                  Ubuntu and Mint since version 16 have worked with the MC7700 modem. Version 17 worked out of the box. But something goes on behind your back. It switches your DirectIP module to QMI mode without warning. So any back and forth between DIP and QMI environments like that could cause havoc for you troubleshooting in pfSense..Windows you have some control via drivers.

                  USB/3G/Mass Storage Devices. Mode switching has morphed into switching firmware from DIP to QMI mode on Ubuntu. Handled by usb-modeswitcher. (My best guess)
                  With Sierra naming their software -Mode Switcher- as well i can see where it gets confusing. That and I ramble ON alot!!!

                  What a bunch of crap. I was all wrong. Ubuntu and Mint "Modeswitch" nothing on those modules. Either Dip firmware or QMI firmware.. Multiple interfaces available(ie AT port/NEMA-GPS port/Data Port). That is what all the USB ports are about(6 ports found) There may be multiple data interfaces available to different operating systems..

                  There may be a way to switch from DIP to QMI with "AT commands" on these MC77xx modules it appears. Probably need newest firmware.

                  Surprisingly they have still been releasing new firmwares for these modules. And they add new features common to their newer MC73xx devices. Not all features but some. You can tell from the AT commands. Some that didn't' work on older firmware now work.

                  Sorry for the incorrect guess.

                  1 Reply Last reply Reply Quote 0
                  • ?
                    Guest
                    last edited by Aug 2, 2015, 3:49 AM

                    In the older MC77xx modules firmware the AT!UDUSBCOMP= setting showed nothing. With newer firmware we get this.

                    So notice how this module has QMI only.

                    Newer MC73xx modules support both MBIM and QMI. They will work with either pfSense/MBIM or Ubuntu/QMI.

                    So both are supported differently depending on the OS.

                    MC7750-QMI.jpg
                    MC7750-QMI.jpg_thumb

                    1 Reply Last reply Reply Quote 0
                    • ?
                      Guest
                      last edited by Aug 2, 2015, 4:20 AM

                      So the procedure for modeswitching via AT commands goes like this example for the above module.

                      Notice only 6,7,8 say supported. Well you can pick from any of these 3 modes.

                      6)= DM(Managment Port)___ NEMA(GPS)___AT(AT Command Port)___QMI(Data Channel)
                      7)=Same except data channels are RMNET1,2,3. In reality there are two data chanels and RMNET3 is ???UNK.
                      8>=WIN8STD Net

                      Now to switch simply issue AT!UDUSBCOMP=6 Or whatever mode you want.

                      The RMNETS interfaces are for the Sierra Gobi API programming kit.

                      I have no clue as to the -Win8STD Net-. But there is no "AT command" port there and no switching back unless MS has a tool.

                      1 Reply Last reply Reply Quote 0
                      • ?
                        Guest
                        last edited by Aug 2, 2015, 6:21 AM Aug 2, 2015, 4:58 AM

                        Here are the details on the MC7700 in DIP mode.
                        See we have a QMI mode there in #6 but "Not Supported"

                        MC7700-DIP_USBCOMP.jpg_thumb
                        MC7700-DIP_USBCOMP.jpg

                        1 Reply Last reply Reply Quote 0
                        • ?
                          Guest
                          last edited by Aug 2, 2015, 7:50 AM

                          Here is the same module switched to QMI with the Sierra Windows utility Modeswitcher. Looks like the PID changes from 68A3 to 68A2…

                          MC7700-QMI_USBCOMP.jpg
                          MC7700-QMI_USBCOMP.jpg_thumb

                          1 Reply Last reply Reply Quote 0
                          • B
                            beeloo
                            last edited by Aug 2, 2015, 10:31 AM Aug 2, 2015, 9:53 AM

                            Alright.
                            I cannot find any other serial port than the APU1D's mother board ports:

                            [2.2.4-RELEASE][root@pfSense]/root: ls /dev/
                            acpi       ada0s1     bpf        cuau0.init devctl     gpioapu    label      null       pts        stdout     ttyu1.init ugen0.1    ugen5.1    xpt0
                            ad4        ada0s1a    bpf0       cuau0.lock devstat    io         md0        pass0      random     sysmouse   ttyu1.lock ugen1.1    ugen6.1    zero
                            ad4s1      ada0s1b    console    cuau1      dumpdev    kbd0       mdctl      pass1      sndstat    ttyu0      tun1       ugen1.2    ugen6.2
                            ad4s1a     apm        crypto     cuau1.init fd         kbdmux0    mem        pci        speaker    ttyu0.init tun2       ugen2.1    urandom
                            ad4s1b     apmctl     ctty       cuau1.lock fido       klog       midistat   pf         stderr     ttyu0.lock ufsid      ugen3.1    usb
                            ada0       audit      cuau0      da0        geom.ctl   kmem       nfslock    ptmx       stdin      ttyu1      ufssuspend ugen4.1    usbctl
                            [2.2.4-RELEASE][root@pfSense]/root::
                            

                            Do you have any idea on how to switch between configurations ?

                            Thank you

                            1 Reply Last reply Reply Quote 0
                            • B
                              beeloo
                              last edited by Aug 2, 2015, 2:04 PM

                              We can change the device's configuration with:

                              usbconfig -d 1.2 set_config 0
                              

                              or

                              usbconfig -d 1.2 set_config 1
                              

                              I can see ue0 disappearing after switching to mode 1 (2 actually)

                              No serial port are discovered in any mode.

                              Maybe a serial port driver issue ?

                              Any help will be much appreciated.

                              1 Reply Last reply Reply Quote 0
                              • ?
                                Guest
                                last edited by Aug 3, 2015, 1:50 AM Aug 2, 2015, 7:46 PM

                                After some more reading i see that usb-modeswitch does do more than -CD eject-. I think with a CDC interface you have gone as far as you can -without USB port recognition. You really need the USB interface to send  AT commands for APN and to connect.  CDC ethernet devices work with an AT channel. The Ericsson H5321 is such an example of working in pfSense with an CDC data interface. It uses the AT port to connect, CDC for data.

                                To get that -you would need your VID/PID in FreeBSD "USBDEVS" file and then device details in "U3G" file to be recognized . Even then I don't know what goes on with modem scripting(mpd5) It might require something there as well. Seeing how there are other Huawei on the list it might work. I see they uses CDC-NCM.

                                1 Reply Last reply Reply Quote 0
                                • ?
                                  Guest
                                  last edited by Aug 3, 2015, 2:01 AM

                                  So what are the two configurations you are switching? We know that one is an CDC Ethernet interface. What is the other? Does the module PID change with Configuration?

                                  Is usb-modeswitch actually switching the VID/PID on the physical module or software aliasing it?? I dunno…

                                  1 Reply Last reply Reply Quote 0
                                  • ?
                                    Guest
                                    last edited by Aug 3, 2015, 2:19 AM

                                    If usb-modeswitch is just an software alias then consider switching the PID to a Huawei module on the support list like EM820 or similar. You need to watch this stuff because you can lock yourself out of the module(BRICK) if the stuff writes to hardware…

                                    I am not familar with how usb-modeswitch works.

                                    1 Reply Last reply Reply Quote 0
                                    • B
                                      beeloo
                                      last edited by Aug 3, 2015, 8:16 AM

                                      I tried the following:

                                      [2.2.4-RELEASE][root@pfSense]/root: usb_modeswitch -v 12d1 -p 1573 -V 12d1 -P 0x1506
                                      Look for target devices ...
                                       No devices in target mode or class found
                                      Look for default devices ...
                                         product ID matched
                                       Found devices in default mode (1)
                                      Access device 002 on bus 001
                                      Current configuration number is 1
                                      Use interface number 0
                                      
                                      USB description data (for identification)
                                      -------------------------
                                      Manufacturer: HUAWEI Technology
                                           Product: HUAWEI Mobile
                                        Serial No.: 0123456789ABCDEF
                                      -------------------------
                                      Warning: no switching method given. See documentation
                                      -> Run lsusb to note any changes. Bye!
                                      
                                      [2.2.4-RELEASE][root@pfSense/root:[/code]
                                      
                                      The result is not as expected:
                                      [code][2.2.4-RELEASE][root@pfSense]/root: usbconfig -u 1 -a 2 dump_device_desc
                                      ugen1.2: <huawei mobile="" huawei="" technology=""> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA)
                                      
                                        bLength = 0x0012 
                                        bDescriptorType = 0x0001 
                                        bcdUSB = 0x0200 
                                        bDeviceClass = 0x00fe 
                                        bDeviceSubClass = 0x0000 
                                        bDeviceProtocol = 0x0000 
                                        bMaxPacketSize0 = 0x0040 
                                        idVendor = 0x12d1 
                                        idProduct = 0x1573 
                                        bcdDevice = 0x0228 
                                        iManufacturer = 0x0002  <huawei technology="">
                                        iProduct = 0x0003  <huawei mobile="">
                                        iSerialNumber = 0x0004  <0123456789ABCDEF>
                                        bNumConfigurations = 0x0002 
                                      
                                      [2.2.4-RELEASE][root@pfSense]/root:[/code]
                                      
                                      Otherwise, I found this:
                                      [url]http://technotation.com/2012/08/15/freebsd-and-mobile-broadband/[/url]
                                      
                                      So, I'm trying to recompile a kernel with usbdevs and u3g.c updates. This takes a quite long time.</huawei></huawei></huawei>
                                      
                                      1 Reply Last reply Reply Quote 0
                                      • B
                                        beeloo
                                        last edited by Aug 3, 2015, 11:24 AM Aug 3, 2015, 11:11 AM

                                        Got it: I now have 4 more serial ports in pfSense :)

                                        Follow these steps for compiling pfSense 2.2.4's kernel:
                                        https://forum.pfsense.org/index.php?topic=83062.msg454667#msg454667

                                        Use these tips to create and activate the patch:
                                        http://technotation.com/2012/09/08/pfsense-and-mobile-broadband/

                                        Compile the kernel and install it into your pfSense.

                                        You're in.

                                        I will try to push my updates to pfsense-tools.

                                        1 Reply Last reply Reply Quote 0
                                        • ?
                                          Guest
                                          last edited by Aug 3, 2015, 11:26 AM Aug 3, 2015, 11:20 AM

                                          I am working on an unsuported module as well. I am choosing to do my mods on FreeBSD usbdevs/u3g  first then maybe push them upstream. Compiling here as well! My laptop fan is a whirling loudly.. I wonder if the compiler is multithreaded on FreeBSD11(I upgraded tonight).

                                          I thought i had "MODULES_OVERRIDE = u3g" set for compiling but it is still compiling everything.

                                          I am using the same website instructions as you. They have been invaluable as I have no BSD background and sometimes struggle with Linux to BSD equivalents..

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