Greetings,

I'm trying to get my 3g card working under FreeBSD7.
So far using usb4bsd the card is recognized and do not panic the kernel when removed.
Unfortunately I'm stuck with mpd configuration.

Here is my config:

startup:
       # configure mpd users
       set user user pass admin
       # configure the console
       set console self 127.0.0.1 5005
       set console open
       # configure the web server
       set web self 127.0.0.1 5006
       set web open
       set web disable auth

default:
       load client1

client1:
       create bundle template B1

       create link static L1 modem
       set modem device /dev/cuaU0
       set modem speed 115200
       set modem script DialPeer
       set modem idle-script AnswerCall
       set modem var $DialPrefix "DT"
       set modem var $Telephone "*99***1#"
       set link no pap chap eap
       set link accept pap
       set auth authname "MyLogin"
       set auth password "MyPassword"
       set link max-redial 1
       set link action bundle B1
       open

To be able to dial I first have to sent the PIN code, which I do manually by connection to /dev/cuaU0
and typing AT+CPIN=XXXX

I know this is successful because the blinking led changes it's color from green to blue :)

Next when I start mpd it seems to connect, but immediately drops the connection.
Here is the log:

May  2 20:04:10 laptop mpd: Multi-link PPP daemon for FreeBSD
May  2 20:04:10 laptop mpd:
May 2 20:04:10 laptop mpd: process 2285 started, version 5.1 ([EMAIL PROTECTED] 13:31 2-May-2008)
May  2 20:04:10 laptop mpd: CONSOLE: listening on 127.0.0.1 5005
May  2 20:04:10 laptop mpd: web: listening on 0.0.0.0 5006
May  2 20:04:10 laptop mpd: [L1] Link: OPEN event
May  2 20:04:10 laptop mpd: [L1] LCP: Open event
May  2 20:04:10 laptop mpd: [L1] LCP: state change Initial --> Starting
May  2 20:04:10 laptop mpd: [L1] LCP: LayerStart
May 2 20:04:10 laptop kernel: ubsa_cfg_request: device request failed, err=USBD_ERR_STALLED (ignored)
May  2 20:04:10 laptop last message repeated 7 times
May  2 20:04:10 laptop mpd: [L1] chat: Detected Hayes compatible modem.
May  2 20:04:10 laptop mpd: [L1] chat: Dialing server at *99***1#...
May  2 20:04:10 laptop mpd: [L1] chat: Connected at an unknown speed.
May  2 20:04:10 laptop mpd: [L1] chat: Initiating auto-login...
May  2 20:04:15 laptop mpd: [L1] chat: Auto-login timeout.
May  2 20:04:15 laptop mpd: [L1] MODEM: chat script succeeded
May  2 20:04:15 laptop mpd: [L1] Link: UP event
May  2 20:04:15 laptop mpd: [L1] Link: origination is local
May  2 20:04:15 laptop mpd: [L1] LCP: Up event
May  2 20:04:15 laptop mpd: [L1] LCP: state change Starting --> Req-Sent
May  2 20:04:15 laptop mpd: [L1] LCP: SendConfigReq #1
May  2 20:04:15 laptop mpd: [L1]   ACFCOMP
May  2 20:04:15 laptop mpd: [L1]   PROTOCOMP
May  2 20:04:15 laptop mpd: [L1]   ACCMAP 0x000a0000
May  2 20:04:15 laptop mpd: [L1]   MRU 1500
May  2 20:04:15 laptop mpd: [L1]   MAGICNUM 597dcb60
May  2 20:04:15 laptop mpd: [L1] LCP: rec'd Configure Request #0 (Req-Sent)
May  2 20:04:15 laptop mpd: [L1]   ACCMAP 0x00000000
May  2 20:04:15 laptop mpd: [L1]   AUTHPROTO CHAP MD5
May  2 20:04:15 laptop mpd: [L1]   MAGICNUM 00b4d370
May  2 20:04:15 laptop mpd: [L1]   PROTOCOMP
May  2 20:04:15 laptop mpd: [L1]   ACFCOMP
May  2 20:04:15 laptop mpd: [L1] LCP: SendConfigNak #0
May  2 20:04:15 laptop mpd: [L1]   AUTHPROTO PAP
May  2 20:04:15 laptop mpd: [L1] LCP: rec'd Configure Ack #1 (Req-Sent)
May  2 20:04:15 laptop mpd: [L1]   ACFCOMP
May  2 20:04:15 laptop mpd: [L1]   PROTOCOMP
May  2 20:04:15 laptop mpd: [L1]   ACCMAP 0x000a0000
May  2 20:04:15 laptop mpd: [L1]   MRU 1500
May  2 20:04:15 laptop mpd: [L1]   MAGICNUM 597dcb60
May  2 20:04:15 laptop mpd: [L1] LCP: state change Req-Sent --> Ack-Rcvd
May  2 20:04:15 laptop mpd: [L1] LCP: rec'd Configure Request #1 (Ack-Rcvd)
May  2 20:04:15 laptop mpd: [L1]   ACCMAP 0x00000000
May  2 20:04:15 laptop mpd: [L1]   AUTHPROTO PAP
May  2 20:04:15 laptop mpd: [L1]   MAGICNUM 00b4d370
May  2 20:04:15 laptop mpd: [L1]   PROTOCOMP
May  2 20:04:15 laptop mpd: [L1]   ACFCOMP
May  2 20:04:15 laptop mpd: [L1] LCP: SendConfigAck #1
May  2 20:04:15 laptop mpd: [L1]   ACCMAP 0x00000000
May  2 20:04:15 laptop mpd: [L1]   AUTHPROTO PAP
May  2 20:04:15 laptop mpd: [L1]   MAGICNUM 00b4d370
May  2 20:04:15 laptop mpd: [L1]   PROTOCOMP
May  2 20:04:15 laptop mpd: [L1]   ACFCOMP
May  2 20:04:15 laptop mpd: [L1] LCP: state change Ack-Rcvd --> Opened
May  2 20:04:15 laptop mpd: [L1] LCP: auth: peer wants PAP, I want nothing
May  2 20:04:15 laptop mpd: [L1] PAP: using authname "MyLogin"
May  2 20:04:15 laptop mpd: [L1] PAP: sending REQUEST #1 len: 23
May  2 20:04:15 laptop mpd: [L1] LCP: LayerUp
May  2 20:04:15 laptop mpd: [L1] LCP: rec'd Discard Request #2 (Opened)
May  2 20:04:15 laptop mpd: [L1] PAP: rec'd ACK #1 len: 5
May  2 20:04:15 laptop mpd: [L1] LCP: authorization successful
May  2 20:04:15 laptop mpd: [L1] Link: Matched action 'bundle "B1" ""'
May  2 20:04:15 laptop mpd: [L1] Creating new bundle using template "B1".
May  2 20:04:15 laptop mpd: [B1-1] Bundle: Interface ng0 created
May  2 20:04:15 laptop mpd: [L1] Link: Join bundle "B1-1"
May 2 20:04:15 laptop mpd: [B1-1] Bundle: Status update: up 1 link, total bandwidth 28800 bps
May  2 20:04:15 laptop mpd: [B1-1] IPCP: Open event
May  2 20:04:15 laptop mpd: [B1-1] IPCP: state change Initial --> Starting
May  2 20:04:15 laptop mpd: [B1-1] IPCP: LayerStart
May  2 20:04:15 laptop mpd: [B1-1] IPCP: Up event
May  2 20:04:15 laptop mpd: [B1-1] IPCP: state change Starting --> Req-Sent
May  2 20:04:15 laptop mpd: [B1-1] IPCP: SendConfigReq #1
May  2 20:04:15 laptop mpd: [B1-1]   IPADDR 10.1.1.2
May 2 20:04:15 laptop mpd: [B1-1] COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
May  2 20:04:16 laptop mpd: [L1] MODEM: carrier detect (CD) signal lost
May  2 20:04:16 laptop mpd: [L1] Link: DOWN event
May  2 20:04:16 laptop mpd: [L1] LCP: Down event

Btw why I see 10.1.1.2 - this is the IP of my LAN card ?

Another issues is that after the first attempt to dial the modem freezes for few seconds and I see lot of those messages: May 2 20:04:10 laptop kernel: ubsa_cfg_request: device request failed, err=USBD_ERR_STALLED (ignored)
but this should go to -usb probably :)

--

Best Wishes,
Stefan Lambrev
ICQ# 24134177

_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to