Huawei E180 Stick



  • The thread a http://forum.pfsense.org/index.php/topic,41976.msg217186.html#msg217186 shows a description where the OP was able to successfully use the huawei E180 with pfsense. Unfortunately I can't reply to that thread somehow (I am totally new here, maybe it's related to this fact).

    What exactly to do? As far as I understand you put the SIM into an ordinary phone and disable PIN-security? The SIM in my stick (A1 Telekom Austria) does not ask for a SIM when I boot the phone.

    I spent a day already and would be happy to get some tips on this issue :-)

    As far as I see I am able to communicate to the modem:

    cu -l /dev/cuaU0.0

    Connected
    ATI
    Manufacturer: huawei
    Model: E180
    Revision: 11.104.16.00.47
    IMEI: 354241026446924
    +GCAP: +CGSM,+DS,+ES

    OK

    AT+csq
    +CSQ: 10,99

    But I don't get it to connect via an pfsense-PPP-interface somehow … I will post logs if needed.

    Maybe related to the fact that I run it on an ALIX-board?
    I run pfsense-2.1 beta as I need/want IPv6. I also tested 2.0.2 with that stick .. no success so far.

    Thanks in advance, Stefan!

    EDIT:

    log from GUI

    Mar 12 20:01:45 ppp: [opt3] Bundle: Interface ng1 created
    Mar 12 20:01:45 ppp: [opt3_link0] Link: OPEN event
    Mar 12 20:01:45 ppp: [opt3_link0] LCP: Open event
    Mar 12 20:01:45 ppp: [opt3_link0] LCP: state change Initial –> Starting
    Mar 12 20:01:45 ppp: [opt3_link0] LCP: LayerStart
    Mar 12 20:01:59 ppp: [opt3_link0] CHAT: The modem is not responding to "AT" at ModemCmd: label.
    Mar 12 20:01:59 ppp: [opt3_link0] MODEM: chat script failed
    Mar 12 20:01:59 ppp: [opt3_link0] Link: DOWN event
    Mar 12 20:01:59 ppp: [opt3_link0] LCP: Down event
    Mar 12 20:01:59 ppp: [opt3_link0] Link: reconnection attempt 1 in 1 seconds
    Mar 12 20:02:00 ppp: [opt3_link0] Link: reconnection attempt 1
    Mar 12 20:02:15 ppp: [opt3_link0] CHAT: The modem is not responding to "AT" at ModemCmd: label.
    Mar 12 20:02:15 ppp: [opt3_link0] MODEM: chat script failed
    Mar 12 20:02:15 ppp: [opt3_link0] Link: DOWN event
    Mar 12 20:02:15 ppp: [opt3_link0] LCP: Down event
    Mar 12 20:02:15 ppp: [opt3_link0] Link: reconnection attempt 2 in 3 seconds
    Mar 12 20:02:18 ppp: [opt3_link0] Link: reconnection attempt 2
    Mar 12 20:02:31 ppp: [opt3_link0] CHAT: The modem is not responding to "AT" at ModemCmd: label.
    Mar 12 20:02:31 ppp: [opt3_link0] MODEM: chat script failed
    Mar 12 20:02:31 ppp: [opt3_link0] Link: DOWN event
    Mar 12 20:02:31 ppp: [opt3_link0] LCP: Down event
    Mar 12 20:02:31 ppp: [opt3_link0] Link: reconnection attempt 3 in 3 seconds

    –-

    cat /var/etc/mpd_opt3.conf
    startup:

    configure the console

    set console close

    configure the web server

    set web close

    default:
    pppclient:
    create bundle static opt3
    set bundle enable ipv6cp
    set iface name ppp1
    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.1/0
    set ipcp enable req-pri-dns
    set ipcp enable req-sec-dns
    #log -bund -ccp -chat -iface -ipcp -lcp -link

    create link static opt3_link0 modem
    set link action bundle opt3
    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 "MASKED"
    set auth password MASKED
    set modem device /dev/cuau0
    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 $APN "a1.net"
    set modem var $APNum "1"
    open

    oh, I see .... it uses wrong device here ... I will try to fix that.

    EDIT 2:

    Now I get:

    Mar 12 20:05:42 ppp: [opt3_link0] MODEM: Fail to open serial port /dev/cuaU0.0 on speed 115200
    Mar 12 20:05:42 ppp: [opt3_link0] Link: DOWN event
    Mar 12 20:05:42 ppp: [opt3_link0] LCP: Down event
    Mar 12 20:05:42 ppp: [opt3_link0] Link: reconnection attempt 7 in 3 seconds
    Mar 12 20:05:45 ppp: [opt3_link0] Link: reconnection attempt 7
    Mar 12 20:05:45 ppp: [opt3_link0] can't lock device cuaU0.0
    Mar 12 20:05:45 ppp: [opt3_link0] MODEM: Fail to open serial port /dev/cuaU0.0 on speed 115200
    Mar 12 20:05:45 ppp: [opt3_link0] Link: DOWN event
    Mar 12 20:05:45 ppp: [opt3_link0] LCP: Down event
    Mar 12 20:05:45 ppp: [opt3_link0] Link: reconnection attempt 8 in 1 seconds
    Mar 12 20:05:46 ppp: [opt3_link0] Link: reconnection attempt 8
    Mar 12 20:05:48 ppp: [opt3_link0] can't lock device cuaU0.0
    Mar 12 20:05:48 ppp: [opt3_link0] MODEM: Fail to open serial port /dev/cuaU0.0 on speed 115200
    Mar 12 20:05:48 ppp: [opt3_link0] Link: DOWN event
    Mar 12 20:05:48 ppp: [opt3_link0] LCP: Down event


  • Netgate Administrator

    What change did you make?

    Steve


Log in to reply