Huawei e180 3G on Pf2.0/alix2d [SOLVED]



  • Hi,

    I recently bought - for one of our offices - a Pfsence appliance.

    • Appliance: OPNsense HDWL with Alix2D MB
    • Pfsense 2.0
    • Incl. atheros wireless B/G mini-pci and HDD

    On the Pfsense support list there is mentioned that Huawei e180 3G USB-stick work.. Well my e180 does not…

    PPP.log:

    Oct 13 09:35:12 	ppp: [opt1_link0] Link: reconnection attempt 280
    Oct 13 09:35:13 	ppp: [opt1_link0] chat: Detected Hayes compatible modem.
    Oct 13 09:35:13 	ppp: [opt1_link0] chat: +CPIN=?
    Oct 13 09:35:16 	ppp: [opt1_link0] chat: The modem did not respond with "OK".
    Oct 13 09:35:16 	ppp: [opt1_link0] MODEM: chat script failed
    Oct 13 09:35:16 	ppp: [opt1_link0] Link: DOWN event
    Oct 13 09:35:16 	ppp: [opt1_link0] LCP: Down event
    Oct 13 09:35:16 	ppp: [opt1_link0] Link: reconnection attempt 281 in 4 seconds
    Oct 13 09:35:20 	ppp: [opt1_link0] Link: reconnection attempt 281
    
    

    # dmesg | grep usbus1

    usbus1: EHCI version 1.0
    usbus1: <amd cs5536="" (geode)="" usb="" 2.0="" controller=""> on ehci0
    usbus1: 480Mbps High Speed USB v2.0
    ugen1.1: <amd> at usbus1
    uhub1: <amd 1="" 9="" ehci="" root="" hub,="" class="" 0,="" rev="" 2.00="" 1.00,="" addr=""> on usbus1
    Root mount waiting for: usbus1
    Root mount waiting for: usbus1
    ugen1.2: <huawei technology=""> at usbus1
    ugen1.2: <huawei technology=""> at usbus1 (disconnected)
    ugen1.2: <huawei technology=""> at usbus1
    u3g0: <huawei 0="" 2="" technology="" huawei="" mobile,="" class="" 0,="" rev="" 2.00="" 0.00,="" addr=""> on usb                                                      us1
    umass0: <huawei 0="" 2="" technology="" huawei="" mobile,="" class="" 0,="" rev="" 2.00="" 0.00,="" addr=""> on u                                                      sbus1
    umass1: <huawei 0="" 2="" technology="" huawei="" mobile,="" class="" 0,="" rev="" 2.00="" 0.00,="" addr=""> on u                                                      sbus1
    ugen1.2: <huawei technology=""> at usbus1 (disconnected)
    ugen1.2: <huawei technology=""> at usbus1
    ugen1.2: <huawei technology=""> at usbus1 (disconnected)
    ugen1.2: <huawei technology=""> at usbus1
    u3g0: <huawei 0="" 2="" technology="" huawei="" mobile,="" class="" 0,="" rev="" 2.00="" 0.00,="" addr=""> on usb                                                      us1
    umass0: <huawei 0="" 2="" technology="" huawei="" mobile,="" class="" 0,="" rev="" 2.00="" 0.00,="" addr=""> on u                                                      sbus1
    umass1: <huawei 0="" 2="" technology="" huawei="" mobile,="" class="" 0,="" rev="" 2.00="" 0.00,="" addr=""> on u                                                      sbus1</huawei></huawei></huawei></huawei></huawei></huawei></huawei></huawei></huawei></huawei></huawei></huawei></huawei></amd></amd></amd>
    

    usbconfig -d ugen1.2 dump_device_desc

    ugen1.2: <huawei mobile="" huawei="" technology=""> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON
    
      bLength = 0x0012
      bDescriptorType = 0x0001
      bcdUSB = 0x0200
      bDeviceClass = 0x0000
      bDeviceSubClass = 0x0000
      bDeviceProtocol = 0x0000
      bMaxPacketSize0 = 0x0040
      idVendor = 0x12d1
      idProduct = 0x1003
      bcdDevice = 0x0000
      iManufacturer = 0x0002   <huawei technology="">iProduct = 0x0001   <huawei mobile="">iSerialNumber = 0x0000   <no string="">bNumConfigurations = 0x0001</no></huawei></huawei></huawei>
    

    /var/etc/mpd_opt1.conf

    startup:
    	# configure the console
    	set console close
    	# configure the web server
    	set web close
    
    default:
    pppclient:
    	create bundle static opt1
    	set iface name ppp0
    	set iface disable on-demand
    	set iface idle 0
    	set iface enable tcpmssfix
    	set iface up-script /usr/local/sbin/ppp-linkup
    	set iface down-script /usr/local/sbin/ppp-linkdown
    	set ipcp ranges 0.0.0.0/0 10.64.64.0/0
    	set ipcp enable req-pri-dns
    	set ipcp enable req-sec-dns
    	#log -bund -ccp -chat -iface -ipcp -lcp -link
    
    	create link static opt1_link0 modem
    	set link action bundle opt1
    	set link disable multilink
    	set link keep-alive 10 60
    	set link max-redial 0
    	set link disable chap pap
    	set link accept chap pap eap
    	set link disable incoming
    	set link mtu 1492
    	set auth authname "MyUserName"
    	set auth password Mypassword         # (Mmm, without "" ???)
    	set modem device /dev/cuaU0.1
    	set modem script DialPeer
    	set modem idle-script Ringback
    	set modem watch -cd
    	set modem var $DialPrefix "DT"
    	set modem var $Telephone "*99#"
    	set modem var $SimPin "0000"
    	set modem var $PinWait "10"
    	set modem var $APN "umts.xs4all.nl"
    	set modem var $APNum "1"
    	open
    

    devinfo -rv | grep u3g

    u3g0 pnpinfo vendor=0x12d1 product=0x1003 devclass=0x00 devsubclass=0x00 sernum="" release=0x0000 intclass=0xff intsubclass=0xff at bus=1 hubaddr=1 port=1 devaddr=2 interface=0
    

    # cu -l /dev/cuaU0.0

    all ports busy
    

    # cu -l /dev/cuaU0.1

    Connected
    
    ^BOOT:25595234,0,0,0,21
    
    ^BOOT:25595234,0,0,0,21
    
    ^BOOT:25595234,0,0,0,21
    
    etc.
    
    • It seems not to matter if ppp0 = /dev/cuaU0.0 or /dev/cuaU0.1  (with ppp.log output)
    • It doesn't matter if I enter the pincode, NOR if SIM is sticked into the USB-stick at all.
    • Firmware updated of Huawei e180 to the latest version. E180-WINMACB300D00SP05C03 (UTPS11.030.01.13.03_MAC11.202.08.00.03) (Normal).exe
    • Tried to add to loader.conf.local:   u3g_load="YES"

    Questions:

    • How to get this to work?
    • If not possible, which 3G USB stick is guaranteed to work with PfSense 2.0 on Alix2D?
      (So not just mentioned on the "list"..)
    • Alternatively, which 3G mini-pci card can I use instead of the wireless card?

    Just moved in to our new office. In december they will connect ftth-fiber… (and ADSL would take a month) So we need something temporarily... soon. (+ later a working 3G backup-line)

    All help is appreciated.



  • SOLUTION:
    In SIM-card, set PIN (/-request) to OFF, using an ordinary mobile phone… thats it. This took 15 hours......... Working like a charm now.


Log in to reply