On Thu, 2008-10-09 at 23:44 +0200, Nick Hibma wrote:
> Just now I have committed a driver for Option and Huawei cards previously
> supported by the ubsa driver. More information is in the commit message.
>
> I am looking for people who would be able to provide more information after
> testing with the 3G cards branded by:
>
> OEM:
> Merlin
> Huawei
> Option
> Sierra
> Novatel
> Qualcomm
>
> Rebranded:
> Dell
> Vodafone
>
> Note: The driver can be copied across to FreeBSD 7-STABLE if you copy the
> sys/modules/u3g directory and sys/dev/usb/u3g.c and sys/dev/usb/usbdevs
> files from HEAD and _move_ the ID from ubsa to u3g.
>
> More information can be found on
>
> http://people.freebsd.org/~n_hibma/u3g.html


Ehh, I have Huawei card, and it works ok before with ubsa driver:

Controller /dev/usb5:
addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), NEC(0x0000), rev 1.00
port 1 addr 2: full speed, power 500 mA, config 1, Huawei Mobile(0x1001), Huawei Technologies(0x12d1), rev 0.00

ucom0: on uhub5
ucom0: configured 3 serial ports (U0.%d)

Now (5-days old current), everything looks fine, chat finishes, but ppp
failed to handshake (same ppp config works before with ubsa):

Nov 5 00:57:35 vbook ppp[4644]: tun0: Phase: PPP Started (background mode)..
Nov 5 00:57:35 vbook ppp[4644]: tun0: Phase: bundle: Establish
Nov 5 00:57:35 vbook ppp[4644]: tun0: Phase: deflink: closed -> opening
Nov 5 00:57:35 vbook ppp[4644]: tun0: Phase: deflink: Connected!
Nov 5 00:57:35 vbook ppp[4644]: tun0: Phase: deflink: opening -> dial
Nov 5 00:57:35 vbook ppp[4644]: tun0: Chat: Phone: #777
Nov 5 00:57:35 vbook ppp[4644]: tun0: Chat: deflink: Dial attempt 1 of 1
Nov 5 00:57:35 vbook ppp[4644]: tun0: Chat: Send: AT^M
Nov 5 00:57:35 vbook ppp[4644]: tun0: Chat: Expect(15): OK
Nov 5 00:57:35 vbook ppp[4644]: tun0: Chat: Received: ^M
Nov 5 00:57:35 vbook ppp[4644]: tun0: Chat: Received: OK^M
Nov 5 00:57:35 vbook ppp[4644]: tun0: Chat: Send: ATE1Q0^M
Nov 5 00:57:35 vbook ppp[4644]: tun0: Chat: Expect(15): OK
Nov 5 00:57:35 vbook ppp[4644]: tun0: Chat: Received:
Nov 5 00:57:35 vbook ppp[4644]: tun0: Chat: Received: OK^M
Nov 5 00:57:35 vbook ppp[4644]: tun0: Chat: Send: ATDT#777^M
Nov 5 00:57:37 vbook ppp[4644]: tun0: Chat: Expect(40): CONNECT
Nov 5 00:57:37 vbook ppp[4644]: tun0: Chat: Received: ^M
Nov 5 00:57:37 vbook ppp[4644]: tun0: Chat: Received: CONNECT^M
Nov 5 00:57:37 vbook ppp[4644]: tun0: Phase: deflink: dial -> carrier
Nov 5 00:57:38 vbook ppp[4644]: tun0: Phase: deflink: /dev/ttyU0.0 doesn'tsupport CD
Nov 5 00:57:38 vbook ppp[4644]: tun0: Phase: deflink: carrier -> login
Nov 5 00:57:38 vbook ppp[4644]: tun0: Phase: deflink: login -> lcp
Nov 5 00:57:38 vbook ppp[4644]: tun0: LCP: FSM: Using "deflink" as a transport
Nov 5 00:57:38 vbook ppp[4644]: tun0: LCP: deflink: State change Initial --> Closed
Nov 5 00:57:38 vbook ppp[4644]: tun0: LCP: deflink: State change Closed --> Stopped
Nov 5 00:57:39 vbook ppp[4644]: tun0: LCP: deflink: LayerStart
Nov 5 00:57:39 vbook ppp[4644]: tun0: LCP: deflink: SendConfigReq(1) state= Stopped
Nov 5 00:57:39 vbook ppp[4644]: tun0: LCP: ACCMAP[6] 0x00000000
Nov 5 00:57:39 vbook ppp[4644]: tun0: LCP: MRU[4] 1500
Nov 5 00:57:39 vbook ppp[4644]: tun0: LCP: MAGICNUM[6] 0xb88169a8
Nov 5 00:57:39 vbook ppp[4644]: tun0: LCP: QUALPROTO[8] proto c025, interval 10000ms
Nov 5 00:57:39 vbook ppp[4644]: tun0: LCP: deflink: State change Stopped --> Req-Sent
Nov 5 00:57:40 vbook ppp[4644]: tun0: LCP: deflink: RecvConfigAck(1) state= Req-Sent
Nov 5 00:57:40 vbook ppp[4644]: tun0: LCP: ACCMAP[6] 0x00000000
Nov 5 00:57:40 vbook ppp[4644]: tun0: LCP: MRU[4] 1500
Nov 5 00:57:40 vbook ppp[4644]: tun0: LCP: MAGICNUM[6] 0xb88169a8
Nov 5 00:57:40 vbook ppp[4644]: tun0: LCP: QUALPROTO[8] proto c025, interval 10000ms
Nov 5 00:57:40 vbook ppp[4644]: tun0: LCP: deflink: State change Req-Sent --> Ack-Rcvd
Nov 5 00:57:42 vbook ppp[4644]: tun0: LCP: deflink: RecvConfigReq(3) state= Ack-Rcvd
Nov 5 00:57:42 vbook ppp[4644]: tun0: LCP: ACCMAP[6] 0x00000000
Nov 5 00:57:42 vbook ppp[4644]: tun0: LCP: AUTHPROTO[5] 0xc223 (CHAP 0x05)
Nov 5 00:57:42 vbook ppp[4644]: tun0: LCP: MAGICNUM[6] 0x2e7ad2d8
Nov 5 00:57:42 vbook ppp[4644]: tun0: LCP: deflink: SendConfigAck(3) state= Ack-Rcvd
Nov 5 00:57:42 vbook ppp[4644]: tun0: LCP: ACCMAP[6] 0x00000000
Nov 5 00:57:42 vbook ppp[4644]: tun0: LCP: AUTHPROTO[5] 0xc223 (CHAP 0x05)
Nov 5 00:57:42 vbook ppp[4644]: tun0: LCP: MAGICNUM[6] 0x2e7ad2d8
Nov 5 00:57:42 vbook ppp[4644]: tun0: LCP: deflink: State change Ack-Rcvd --> Opened
Nov 5 00:57:42 vbook ppp[4644]: tun0: LCP: deflink: LayerUp
Nov 5 00:57:42 vbook ppp[4644]: tun0: LCP: deflink: SendIdent(0) state =Opened
Nov 5 00:57:42 vbook ppp[4644]: tun0: LCP: MAGICNUM b88169a8
Nov 5 00:57:42 vbook ppp[4644]: tun0: LCP: TEXT user-ppp 3.4.2 (built COMPILATIONDATE)
Nov 5 00:57:42 vbook ppp[4644]: tun0: Phase: bundle: Authenticate
Nov 5 00:57:42 vbook ppp[4644]: tun0: Phase: deflink: his = CHAP 0x05, mine = none
Nov 5 00:57:52 vbook ppp[4644]: tun0: Phase: Chap Input: CHALLENGE (16 bytes from pdsn-m22-7cm2)
Nov 5 00:57:52 vbook ppp[4644]: tun0: Phase: Chap Output: RESPONSE (mobile)
Nov 5 00:57:53 vbook ppp[4644]: tun0: LCP: deflink: RecvEchoRequest(1) state = Opened
Nov 5 00:57:53 vbook ppp[4644]: tun0: LCP: deflink: SendEchoReply(1) state= Opened
Nov 5 00:57:53 vbook ppp[4644]: tun0: CCP: deflink: Error: Unexpected CCP in phase Authenticate (ignored)
Nov 5 00:58:03 vbook last message repeated 3 times
Nov 5 00:58:07 vbook ppp[4644]: tun0: IPCP: deflink: Error: Unexpected IPCP in phase Authenticate (ignored)
Nov 5 00:58:07 vbook ppp[4644]: tun0: CCP: deflink: Error: Unexpected CCP in phase Authenticate (ignored)
Nov 5 00:58:11 vbook ppp[4644]: tun0: CCP: deflink: Error: Unexpected CCP in phase Authenticate (ignored)
Nov 5 00:58:42 vbook ppp[4644]: tun0: Phase: deflink: HDLC errors -> FCS: 26, ADDR: 0, COMD: 0, PROTO: 0
Nov 5 00:58:52 vbook ppp[4644]: tun0: Phase: deflink: ** Too many LQR packets lost **
Nov 5 00:58:52 vbook ppp[4644]: tun0: LCP: deflink: LayerDown
Nov 5 00:58:52 vbook ppp[4644]: tun0: LCP: deflink: State change Opened --> Starting
Nov 5 00:58:52 vbook ppp[4644]: tun0: LCP: deflink: LayerFinish
Nov 5 00:58:52 vbook ppp[4644]: tun0: LCP: deflink: State change Starting --> Initial
Nov 5 00:58:52 vbook ppp[4644]: tun0: Phase: deflink: Disconnected!


It looks like that characters are delivered not reliable way through ucom port:
Same on U0.2 port:

Below output, just after entring AT\n three times:

# cu -l /dev/cuaU0.2
can't open log file /var/log/aculog.
Connected

^RSSILVL: 20
8
OK
It

OK
I
^RSSILVL: 20
8em0X�6T

OK
I
--------------------

Any hints will be very appriciated.

> Thanks,
>
> Nick


P.S.
I have also two other problems with same card, (they was with ubsa
also):

- after disconnecting ppp from port card is not reset, so no more any
chat if start ppp again (you just need skip chat phase). - How to reset
card before start ?

- Disconnecting card crashes kernel, it is possible to catch that crash
with DDB, but dump can't be written. Modem is on cardbus device.
(probbaly will be fixed by new usb stack ?)

--
Vladimir B. Grebenschikov
vova@fbsd.ru
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/lis...reebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"