Huawei E1752 on FreeBSD

You need FreeBSD 8.1 or later.

Apr 19 18:34:36 suliban kernel: ugen4.2: <HUAWEI Technology> at usbus4
Apr 19 18:34:36 suliban kernel: ugen4.2: <HUAWEI Technology> at usbus4 (disconnected)
Apr 19 18:34:40 suliban kernel: ugen4.2: <HUAWEI Technology> at usbus4
Apr 19 18:34:40 suliban kernel: u3g0: <HUAWEI Technology HUAWEI Mobile, class 0/0, rev 2.00/0.00, addr 2> on usbus4
Apr 19 18:34:40 suliban kernel: u3g0: Found 3 ports.
Apr 19 18:34:40 suliban kernel: umass0: <HUAWEI Technology HUAWEI Mobile, class 0/0, rev 2.00/0.00, addr 2> on usbus4
Apr 19 18:34:40 suliban kernel: umass0:  SCSI over Bulk-Only; quirks = 0x0000
Apr 19 18:34:40 suliban root: Unknown USB device: vendor 0x12d1 product 0x1001 bus uhub4
Apr 19 18:34:41 suliban root: Unknown USB device: vendor 0x12d1 product 0x1001 bus uhub4
Apr 19 18:34:41 suliban kernel: umass0:0:0:-1: Attached to scbus0
Apr 19 18:34:41 suliban kernel: umass1: <HUAWEI Technology HUAWEI Mobile, class 0/0, rev 2.00/0.00, addr 2> on usbus4
Apr 19 18:34:41 suliban kernel: umass1:  SCSI over Bulk-Only; quirks = 0x0000
Apr 19 18:34:41 suliban kernel: (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 
Apr 19 18:34:41 suliban kernel: (probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error
Apr 19 18:34:41 suliban kernel: (probe0:umass-sim0:0:0:0): SCSI status: Check Condition
Apr 19 18:34:41 suliban kernel: (probe0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present)
Apr 19 18:34:41 suliban kernel: cd0 at umass-sim0 bus 0 scbus0 target 0 lun 0
Apr 19 18:34:41 suliban kernel: cd0: <HUAWEI Mass Storage 2.31> Removable CD-ROM SCSI-2 device 
Apr 19 18:34:41 suliban kernel: cd0: 40.000MB/s transfers
Apr 19 18:34:41 suliban kernel: cd0: Attempt to query device size failed: NOT READY, Medium not present
Apr 19 18:34:42 suliban kernel: umass1:1:1:-1: Attached to scbus1
Apr 19 18:34:43 suliban kernel: (probe0:umass-sim1:1:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 
Apr 19 18:34:43 suliban kernel: (probe0:umass-sim1:1:0:0): CAM status: SCSI Status Error
Apr 19 18:34:43 suliban kernel: (probe0:umass-sim1:1:0:0): SCSI status: Check Condition
Apr 19 18:34:43 suliban kernel: (probe0:umass-sim1:1:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present)
Apr 19 18:34:43 suliban kernel: da0 at umass-sim1 bus 1 scbus1 target 0 lun 0
Apr 19 18:34:43 suliban kernel: da0: <HUAWEI SD Storage 2.31> Removable Direct Access SCSI-2 device 
Apr 19 18:34:43 suliban kernel: da0: 40.000MB/s transfers
Apr 19 18:34:43 suliban kernel: da0: Attempt to query device size failed: NOT READY, Medium not present

Try to connect to the modem:

cu -l /dev/cuaU0.0
Connected
ATI
Manufacturer: huawei
Model: E1752
Revision: 11.126.00.00.00
IMEI: 999999999999999
+GCAP: +CGSM,+FCLASS,+DS
AT+CPIN=9999
OK

Add stuff to ppp.conf

3g-dialup:
        set log Chat
        set device /dev/cuaU0.0
        set speed 460800
        set redial 10 2
        set phone *99\#
        set authname
        set authkey

        set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
         \"\" \
         AT OK-AT-OK \
         AT+CFUN=1 OK-AT-OK \
         AT+CSQ OK \
         AT+CGDCONT=1,\\\"IP\\\",\\\"internet\\\" OK \
         AT+CGACT? OK-AT-OK \
         AT+CGATT? OK \
         AT+COPS? OK \
         ATD*99\# CONNECT"

        set timeout 1800
        enable dns
        resolv rewrite
        set vj slotcomp off
        set crtscts on
        disable lqr
        disable echo
        disable ipv6cp

        set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
        add default HISADDR

And then start ppp:

ppp -foreground 3g-dialup

E-mail Valid XHTML 1.1 Valid CSS!