From owner-freebsd-usb@FreeBSD.ORG Thu Apr 30 10:32:35 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3D43E106566B for ; Thu, 30 Apr 2009 10:32:35 +0000 (UTC) (envelope-from freebsd-usb@dino.sk) Received: from loki.netlab.sk (loki.netlab.sk [84.245.65.11]) by mx1.freebsd.org (Postfix) with ESMTP id AB43B8FC1A for ; Thu, 30 Apr 2009 10:32:34 +0000 (UTC) (envelope-from freebsd-usb@dino.sk) Received: from via.dino.sk (home.dino.sk [84.245.95.252]) (AUTH: PLAIN milan, TLS: TLSv1/SSLv3,256bits,AES256-SHA) by loki.netlab.sk with esmtp; Thu, 30 Apr 2009 12:19:30 +0200 id 0002E010.49F97B32.00000A0B From: Milan Obuch To: freebsd-usb@freebsd.org Date: Thu, 30 Apr 2009 12:21:43 +0200 User-Agent: KMail/1.9.10 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200904301221.44674.freebsd-usb@dino.sk> Subject: u3g serial device name query X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Apr 2009 10:32:35 -0000 Hi, I have HUAWEI 3g usb modem. It works with u3g from current. There is however one thing I did not get working yet. When device attaches, it is added into tree as u3gN, devd event is sent. It is easily matched with 'device-name "u3g[0-9]"' clause in devd.conf. I can start ppp automatically and it works well, given no other USB serial device is present. If another USB serial device such as uplcom is present, u3g serial ports does not have the same name. I found no way to relate serial device name to this event and looking in source I see no place where it is created. I would like to put a devctl notify call there. This way I could start ppp with correct device name even if there is some other USB serial device. Could someone point me in the right direction? Regards, Milan