From owner-freebsd-stable@FreeBSD.ORG Fri May 2 17:19:11 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 13D8B1065677 for ; Fri, 2 May 2008 17:19:11 +0000 (UTC) (envelope-from stefan.lambrev@moneybookers.com) Received: from blah.sun-fish.com (blah.sun-fish.com [217.18.249.150]) by mx1.freebsd.org (Postfix) with ESMTP id 712928FC13 for ; Fri, 2 May 2008 17:19:10 +0000 (UTC) (envelope-from stefan.lambrev@moneybookers.com) Received: by blah.sun-fish.com (Postfix, from userid 1002) id DBDEC1B10EE7; Fri, 2 May 2008 19:19:08 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on blah.cmotd.com X-Spam-Level: X-Spam-Status: No, score=-10.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, J_CHICKENPOX_33 autolearn=no version=3.2.3 Received: from hater.haters.org (unknown [192.168.25.10]) by blah.sun-fish.com (Postfix) with ESMTP id 56A071B10EFF for ; Fri, 2 May 2008 19:19:05 +0200 (CEST) Message-ID: <481B4D08.7030507@moneybookers.com> Date: Fri, 02 May 2008 20:19:04 +0300 From: Stefan Lambrev User-Agent: Thunderbird 2.0.0.12 (X11/20080326) MIME-Version: 1.0 To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.91.2/7012/Fri May 2 16:53:34 2008 on blah.cmotd.com X-Virus-Status: Clean Subject: mpd5.1 and HUAWEI 3g card (ubsa) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 May 2008 17:19:11 -0000 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 (root@laptop.laptops.org 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