[PATCH] Support for various CDMA-2000 USB-modems (Please, consider to commit)

cvs-src cvs-src at yandex.ru
Sun Mar 11 20:16:16 UTC 2007


Good day.
Some time ago i had post this as PR 109838

(http://www.freebsd.org/cgi/query-pr.cgi?pr=usb/109838)

but there is some problem: when i try to see it, i getting "No PRs
Matched Query" response all of the time, so i decide to post it here.

When we connecting any of this USB-modems/mobile phones (all of them
uses USB-to-COM interface cable):

- Pantech-Curitel HX-550C
- Pantech-Curitel HX-570B
- Pantech-Curitel HX-575B
- C-MOTECH CNU-550
- Ubiquam U-100
- Ubiquam U-105
- Ubiquam U-200
- RWT FCT-CDMA

and load all the needed modules (ucom/umodem/uplcom), we don't get nor
/dev/ttyU0, nor /dev/cuaU0. So, we can't dialing and get to internet.
All that we have it's a messages from kernel like this:

kernel: ucom0: data interface 1, has CM over data, has break

So, i've add quirks [UQ_ASSUME_CM_OVER_DATA] for all of this
phones/modems and it works well.

How to test:

1. Apply the patch attached

# cp usb_modems.patch /sys/dev/usb/
# cd /sys/dev/usb/
# patch < usb_modems.patch

2. Then rebuild kernel

# cd /usr/src
# make buildkernel && make installkernel && shutdown -r now

3. After reboot, plug in one of those modems.
4. Load needed kernel modules according table located on
http://happy-nation.by.ru/freebsd/cdma2000_modems_eng.pdf (ucom and
umodem are most common) - at this stage you will see that ttyU0 and
cuaU0 appeared in /dev.
5. Create /etc/ppp/ppp.conf like this (it was taken from
http://www.lissyara.su/?id=1311):

# cat /etc/ppp/ppp.conf
default:
        set log Phase Chat LCP IPCP CCP tun command
        disable pred1 deflate deflate24 protocomp acfcomp shortseq vj
        deny pred1 deflate deflate24 protocomp acfcomp shortseq vj
        set speed 115200
        set timeout 160
        enable dns

skylink:
        set device /dev/ttyU0
        set phone \#777
        set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
        \"\" AT OK-AT-OK ATE1Q0 OK \
        \\dATDT\\T TIMEOUT 40 CONNECT"
        set login
        set authname mobile
        set authkey internet
        set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
        add default HISADDR

6. Try to dial

# ppp -ddial skylink

That is all.

Please cc me in the response, because i don't subscribed on freebsd-usb@
-------------- next part --------------
A non-text attachment was scrubbed...
Name: usb_modems.patch
Type: text/x-patch
Size: 2769 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-usb/attachments/20070311/1c99c564/usb_modems.bin


More information about the freebsd-usb mailing list