From owner-freebsd-wireless@FreeBSD.ORG Tue Sep 2 20:16:27 2014 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DA4B86D6; Tue, 2 Sep 2014 20:16:26 +0000 (UTC) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [IPv6:2607:f3e0:0:1::12]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "smarthost.sentex.ca", Issuer "smarthost.sentex.ca" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id A94DF1DC3; Tue, 2 Sep 2014 20:16:26 +0000 (UTC) Received: from [IPv6:2607:f3e0:0:4:f025:8813:7603:7e4a] (saphire3.sentex.ca [IPv6:2607:f3e0:0:4:f025:8813:7603:7e4a]) by smarthost1.sentex.ca (8.14.9/8.14.9) with ESMTP id s82KGLP8078753; Tue, 2 Sep 2014 16:16:22 -0400 (EDT) (envelope-from mike@sentex.net) Message-ID: <54062596.30801@sentex.net> Date: Tue, 02 Sep 2014 16:16:22 -0400 From: Mike Tancsa Organization: Sentex Communications User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: atar Subject: Re: Using a USB modem. References: <5405D76A.3060400@sentex.net> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.74 Cc: "freebsd-wireless@freebsd.org" , "freebsd-questions@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Sep 2014 20:16:27 -0000 On 9/2/2014 2:59 PM, atar wrote: >> Typically, they will show up as /dev/cuaUx or /dev/cuaUx.x (note the capital U). > > That's interesting since in the output of 'ls -lh /dev' in my PC it appears with no capital 'U'. Thats your onboard serial ports (uart0 and uart1). > > In addition, I've tried to initialize the both devices with 'ppp' but when I tried to enter the 'term' command, ppp hangs up and don't give me an option to send to the modem commands. Any idea what's the problem? Did you load the driver (kldload u3g) ? what is the output of usbconfig it should show something like # usbconfig ugen0.1: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE ugen1.1: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen1.2: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen1.3: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ugen0.2: at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON ugen1.4: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON note the #s for the device. On mine, it shows 1.4. So do the matching command for yours so it provides the following output usbconfig -d 1.4 dump_device_desc ugen1.4: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x19d2 idProduct = 0x0031 bcdDevice = 0x0000 iManufacturer = 0x0002 iProduct = 0x0001 iSerialNumber = 0x0003 <1234567890ABCDEF> bNumConfigurations = 0x0001 Then provide the output of # sysctl -a dev.u3g ---Mike > > Regards, > > Atar. > >> On 9/2/2014 10:29 AM, atar wrote: >>> >>> I've a ZTE USB modem and I want to use it with FreeBSD. I've attached it to one of the USB slots on my PC and run the "ls -lh /dev/" command to see what's going on. I've saw that two modem devices have been created in the 'dialup' group: cuau0 and cuau1. >>> >>> My question is why were two devices nodes created instead of one and how should I know which of them I need to use? >> >> Typically, they will show up as /dev/cuaUx or /dev/cuaUx.x (note the capital U). Make sure you have the u3g driver loaded as well. (kldload u3g). Also, some ZTE sticks need to be put in "modem mode". This can often be done by sending the eject command to its "cdrom" >> >> if its listed as pass0, try the command >> camcontrol eject pass0 >> >> ---Mike >> >> >> >> -- >> ------------------- >> Mike Tancsa, tel +1 519 651 3400 >> Sentex Communications, mike@sentex.net >> Providing Internet services since 1994 www.sentex.net >> Cambridge, Ontario Canada http://www.tancsa.com/ > > -- ------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/