Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: How to get Huawei EC1561 USB modem working under FreeBSD 8.2?

192 views
Skip to first unread message

Erich Dollansky

unread,
Jul 23, 2012, 6:37:42 AM7/23/12
to
Hi,

On Monday 23 July 2012 16:46:04 Manish Jain wrote:
> On 21-Jul-12 19:06, Matthias Apitz wrote:
> > El día Saturday, July 21, 2012 a las 06:01:11PM +0530, Manish Jain escribió:
> >

> I am still stuck because I can't know the syntax to run usbdump. usbdump

man usbdump

usbconfig gives you the device numbers.

> Can someone please send me the sources for this port (sysutils/usbutils)

All you need at this stage is in the base.

> (please remove freebsd-...@freebsd.org from addresses if sending),
> as I cannot currently connect my FreeBSD box to the internet.

If we do no other people will be able to help you.
>
> BTW, cuaU0[.*] are always there on my system, whether my EC1561 stick is

It might be your UPS.

Erich
_______________________________________________
freebsd-...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questi...@freebsd.org"

Manish Jain

unread,
Jul 24, 2012, 4:59:07 AM7/24/12
to
On 23-Jul-12 16:07, Erich Dollansky wrote:
> Hi,
>
> On Monday 23 July 2012 16:46:04 Manish Jain wrote:
>> On 21-Jul-12 19:06, Matthias Apitz wrote:
>>> El d�a Saturday, July 21, 2012 a las 06:01:11PM +0530, Manish Jain escribi�:
>>>
>
>> I am still stuck because I can't know the syntax to run usbdump. usbdump
>
> man usbdump
>
> usbconfig gives you the device numbers.
>
>> Can someone please send me the sources for this port (sysutils/usbutils)
>
> All you need at this stage is in the base.
>
>> (please remove freebsd-...@freebsd.org from addresses if sending),
>> as I cannot currently connect my FreeBSD box to the internet.
>
> If we do no other people will be able to help you.
>>
>> BTW, cuaU0[.*] are always there on my system, whether my EC1561 stick is
>
> It might be your UPS.
>
> Erich
>
>

Hi,

You are right. cuaU0.0 is my UPS. I checked the vendor id and the
product id : they are 12d1 (huawei) and 140b (the USB stick I have).
This is confirmed with usbconfig and what Windows Device Manager shows.
However, running 'usbdump -d 12d1:140b' produces no output. In fact
there is no entry 12d1:140b under /etc/usb_modeswitch.d/. Do I need to
reinstall usb_modeswitch ?

usbconfig dumps the following information for a1:u2 :

ugen1.2: <HUAWEI Mobile HUAWEI TECHNOLOGIES> at usbus1, cfg=0 md=HOST
spd=FULL (12Mbps) pwr=ON

bLength = 0x0012
bDescriptorType = 0x0001
bcdUSB = 0x0110
bDeviceClass = 0x0000
bDeviceSubClass = 0x0000
bDeviceProtocol = 0x0000
bMaxPacketSize0 = 0x0040
idVendor = 0x12d1
idProduct = 0x140b
bcdDevice = 0x0000
iManufacturer = 0x0001 <HUAWEI TECHNOLOGIES>
iProduct = 0x0002 <HUAWEI Mobile>
iSerialNumber = 0x0004 <>
bNumConfigurations = 0x0001

I tried setting the device in ppp.conf to cuaU0, cuaU0.1, cuaU0.2 and
ugen1.2, but had no success in getting the modem to speak to the internet.

Am pasting a few lines from ppp.log :

Jul 23 22:25:15 bourne ppp[1207]: Phase: Using interface: tun0
Jul 23 22:25:15 bourne ppp[1207]: Phase: deflink: Created in closed state
Jul 23 22:25:15 bourne ppp[1207]: tun0: Command: default: set device
/dev/cuaU0
Jul 23 22:25:15 bourne ppp[1207]: tun0: Command: default: set speed 115200
Jul 23 22:25:15 bourne ppp[1207]: tun0: Command: default: set dial ABORT
BUSY ABORT NO\sCARRIER TIMEOUT 5 "" AT OK-AT-OK AT&FE0V1X1&D2&C1S0=0 OK
\dATDT\T TIMEOUT 40 CONNECT
Jul 23 22:25:15 bourne ppp[1207]: tun0: Command: default: set timeout 180
Jul 23 22:25:15 bourne ppp[1207]: tun0: Command: default: enable dns
Jul 23 22:25:15 bourne ppp[1207]: tun0: Command: huawei: set phone #777
Jul 23 22:25:15 bourne ppp[1207]: tun0: Command: huawei: set device
/dev/cuaU0
Jul 23 22:25:15 bourne ppp[1207]: tun0: Command: huawei: set login
Jul 23 22:25:15 bourne ppp[1207]: tun0: Command: huawei: set authname
inte...@internet.mtsindia.in
Jul 23 22:25:15 bourne ppp[1207]: tun0: Command: huawei: set authkey
********
Jul 23 22:25:15 bourne ppp[1207]: tun0: Command: huawei: set timeout 0
Jul 23 22:25:15 bourne ppp[1207]: tun0: Command: huawei: disable ipv6cp
Jul 23 22:25:15 bourne ppp[1207]: tun0: Command: huawei: set ifaddr
10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
Jul 23 22:25:15 bourne ppp[1207]: tun0: Command: huawei: add default HISADDR
Jul 23 22:25:15 bourne ppp[1207]: tun0: Command: huawei: set dial AT+CRM=1
Jul 23 22:25:15 bourne ppp[1207]: tun0: Command: huawei: accept CHAP
Jul 23 22:25:15 bourne ppp[1224]: tun0: Phase: PPP Started (auto mode).
Jul 23 22:25:15 bourne ppp[1224]: tun0: Phase: bundle: Establish
Jul 23 22:25:15 bourne ppp[1224]: tun0: Phase: deflink: closed -> opening
Jul 23 22:25:15 bourne ppp[1224]: tun0: Warning: deflink: /dev/cuaU0:
Bad file descriptor
Jul 23 22:25:15 bourne ppp[1224]: tun0: Chat: Failed to open device
(attempt 1 of 1)
Jul 23 22:25:15 bourne ppp[1224]: tun0: Phase: deflink: opening -> closed
Jul 23 22:25:15 bourne ppp[1224]: tun0: Phase: bundle: Dead
Jul 23 22:36:19 bourne ppp[1207]: Phase: Using interface: tun0
Jul 23 22:36:19 bourne ppp[1207]: Phase: deflink: Created in closed state
Jul 23 22:36:19 bourne ppp[1207]: tun0: Command: default: set device
/dev/modem
Jul 23 22:36:19 bourne ppp[1207]: tun0: Command: default: set speed 115200
Jul 23 22:36:19 bourne ppp[1207]: tun0: Command: default: set dial ABORT
BUSY ABORT NO\sCARRIER TIMEOUT 5 "" AT OK-AT-OK AT&FE0V1X1&D2&C1S0=0 OK
\dATDT\T TIMEOUT 40 CONNECT
Jul 23 22:36:19 bourne ppp[1207]: tun0: Command: default: set timeout 180
Jul 23 22:36:19 bourne ppp[1207]: tun0: Command: default: enable dns
Jul 23 22:36:19 bourne ppp[1207]: tun0: Command: huawei: set phone #777
Jul 23 22:36:19 bourne ppp[1207]: tun0: Command: huawei: set device
/dev/modem
Jul 23 22:36:19 bourne ppp[1207]: tun0: Command: huawei: set login
Jul 23 22:36:19 bourne ppp[1207]: tun0: Command: huawei: set authname
inte...@internet.mtsindia.in
Jul 23 22:36:19 bourne ppp[1207]: tun0: Command: huawei: set authkey
********
Jul 23 22:36:19 bourne ppp[1207]: tun0: Command: huawei: set timeout 0
Jul 23 22:36:19 bourne ppp[1207]: tun0: Command: huawei: disable ipv6cp
Jul 23 22:36:19 bourne ppp[1207]: tun0: Command: huawei: set ifaddr
10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
Jul 23 22:36:19 bourne ppp[1207]: tun0: Command: huawei: add default HISADDR
Jul 23 22:36:19 bourne ppp[1207]: tun0: Command: huawei: set dial AT+CRM=1
Jul 23 22:36:19 bourne ppp[1207]: tun0: Command: huawei: accept CHAP
Jul 23 22:36:19 bourne ppp[1217]: tun0: Phase: PPP Started (auto mode).
Jul 23 22:36:19 bourne ppp[1217]: tun0: Phase: bundle: Establish
Jul 23 22:36:19 bourne ppp[1217]: tun0: Phase: deflink: closed -> opening
Jul 23 22:36:19 bourne ppp[1217]: tun0: Phase: deflink: Connected!
Jul 23 22:36:19 bourne ppp[1217]: tun0: Phase: deflink: opening -> dial
Jul 23 22:36:19 bourne ppp[1217]: tun0: Chat: Phone: #777
Jul 23 22:36:19 bourne ppp[1217]: tun0: Chat: deflink: Dial attempt 1 of 1
Jul 23 22:36:19 bourne ppp[1217]: tun0: Chat: Expect(30): AT+CRM=1
Jul 23 22:36:49 bourne ppp[1217]: tun0: Chat: Expect timeout
Jul 23 22:36:49 bourne ppp[1217]: tun0: Warning: Chat script failed
Jul 23 22:36:49 bourne ppp[1217]: tun0: Phase: deflink: dial -> hangup
Jul 23 22:36:49 bourne ppp[1217]: tun0: Phase: deflink: Disconnected!
Jul 23 22:36:49 bourne ppp[1217]: tun0: Phase: deflink: Connect time: 30
secs: 0 octets in, 0 octets out
Jul 23 22:36:49 bourne ppp[1217]: tun0: Phase: deflink: 0 packets in, 0
packets out
Jul 23 22:36:49 bourne ppp[1217]: tun0: Phase: total 0 bytes/sec, peak
0 bytes/sec on Mon Jul 23 22:36:19 2012
Jul 23 22:36:49 bourne ppp[1217]: tun0: Phase: deflink: hangup -> closed
Jul 23 22:36:49 bourne ppp[1217]: tun0: Phase: bundle: Dead
Jul 23 22:36:50 bourne ppp[1217]: tun0: Phase: bundle: Establish
Jul 23 22:36:50 bourne ppp[1217]: tun0: Phase: deflink: closed -> opening
Jul 23 22:36:50 bourne ppp[1217]: tun0: Phase: deflink: Connected!
Jul 23 22:36:50 bourne ppp[1217]: tun0: Phase: deflink: opening -> dial
Jul 23 22:36:50 bourne ppp[1217]: tun0: Chat: Phone: #777
Jul 23 22:36:50 bourne ppp[1217]: tun0: Chat: deflink: Dial attempt 1 of 1
Jul 23 22:36:50 bourne ppp[1217]: tun0: Chat: Expect(30): AT+CRM=1
Jul 23 22:37:20 bourne ppp[1217]: tun0: Chat: Expect timeout
Jul 23 22:37:20 bourne ppp[1217]: tun0: Warning: Chat script failed
Jul 23 22:37:20 bourne ppp[1217]: tun0: Phase: deflink: dial -> hangup
Jul 23 22:37:20 bourne ppp[1217]: tun0: Phase: deflink: Disconnected!
Jul 23 22:37:20 bourne ppp[1217]: tun0: Phase: deflink: Connect time: 30
secs: 0 octets in, 0 octets out
Jul 23 22:37:20 bourne ppp[1217]: tun0: Phase: deflink: 0 packets in, 0
packets out
Jul 23 22:37:20 bourne ppp[1217]: tun0: Phase: total 0 bytes/sec, peak
0 bytes/sec on Mon Jul 23 22:36:50 2012
Jul 23 22:37:20 bourne ppp[1217]: tun0: Phase: deflink: hangup -> closed
Jul 23 22:37:20 bourne ppp[1217]: tun0: Phase: bundle: Dead

And a few lines from Windows' ppp log (Windows connects smoothly) :

07-23-2012 23:56:23.203 - Modem type: HUAWEI Mobile Connect - Modem
07-23-2012 23:56:23.203 - Modem inf path: oem10.inf
07-23-2012 23:56:23.203 - Modem inf section: Modem1
07-23-2012 23:56:23.203 - Matching hardware ID: usb\vid_12d1&pid_140b&mi_00
07-23-2012 23:56:23.234 - 460800,8,N,1, ctsfl=0, rtsctl=1
07-23-2012 23:56:23.234 - Initializing modem.
07-23-2012 23:56:23.250 - Send: AT<cr>
07-23-2012 23:56:23.250 - Recv: <cr><lf>OK<cr><lf>
07-23-2012 23:56:23.250 - Interpreted response: OK
07-23-2012 23:56:23.265 - Send: AT&FE0V1X1&D2&C1S0=0<cr>
07-23-2012 23:56:23.296 - Recv: <cr><lf>OK<cr><lf>
07-23-2012 23:56:23.296 - Interpreted response: OK
07-23-2012 23:56:23.296 - Send: AT<cr>
07-23-2012 23:56:23.296 - Recv: <cr><lf>OK<cr><lf>
07-23-2012 23:56:23.296 - Interpreted response: OK
07-23-2012 23:56:23.296 - Waiting for a call.
07-23-2012 23:56:23.312 - Send: ATS0=0<cr>
07-23-2012 23:56:23.312 - Recv: <cr><lf>OK<cr><lf>
07-23-2012 23:56:23.312 - Interpreted response: OK
07-23-2012 23:56:23.312 - 921600,8,N,1, ctsfl=1, rtsctl=2
07-23-2012 23:56:23.328 - Initializing modem.
07-23-2012 23:56:23.343 - Send: AT<cr>
07-23-2012 23:56:23.343 - Recv: <cr><lf>OK<cr><lf>
07-23-2012 23:56:23.343 - Interpreted response: OK
07-23-2012 23:56:23.343 - Send: AT&FE0V1X1&D2&C1S0=0<cr>
07-23-2012 23:56:23.375 - Recv: <cr><lf>OK<cr><lf>
07-23-2012 23:56:23.375 - Interpreted response: OK
07-23-2012 23:56:23.390 - Send: AT<cr>
07-23-2012 23:56:23.390 - Recv: <cr><lf>OK<cr><lf>
07-23-2012 23:56:23.390 - Interpreted response: OK
07-23-2012 23:56:23.390 - Passthrough On
07-23-2012 23:56:31.281 - Passthrough Off
07-23-2012 23:56:31.281 - 460800,8,N,1, ctsfl=0, rtsctl=1
07-23-2012 23:56:31.296 - Initializing modem.
07-23-2012 23:56:31.296 - Send: AT<cr>
07-23-2012 23:56:31.312 - Recv: AT<cr>
07-23-2012 23:56:31.312 - Command Echo
07-23-2012 23:56:31.312 - Recv: <cr><lf>OK<cr><lf>
07-23-2012 23:56:31.312 - Interpreted response: OK
07-23-2012 23:56:31.312 - Send: AT&FE0V1X1&D2&C1S0=0<cr>
07-23-2012 23:56:31.312 - Recv: AT&FE0V1X1&D2&C1S0=0<cr>
07-23-2012 23:56:31.312 - Command Echo
07-23-2012 23:56:31.359 - Recv: <cr><lf>OK<cr><lf>
07-23-2012 23:56:31.359 - Interpreted response: OK
07-23-2012 23:56:31.375 - Send: AT<cr>
07-23-2012 23:56:31.375 - Recv: <cr><lf>OK<cr><lf>
07-23-2012 23:56:31.375 - Interpreted response: OK
07-23-2012 23:56:31.375 - Dialing.
07-23-2012 23:56:31.375 - Send: ATDT####<cr>
07-23-2012 23:56:33.000 - Recv: <cr><lf>CONNECT 153600<cr><lf>
07-23-2012 23:56:33.000 - Interpreted response: Connect
07-23-2012 23:56:33.000 - Receive Connect but CD was low, Waiting for
signal to go high
07-23-2012 23:56:33.015 - After waiting 20ms CD is still low.
07-23-2012 23:56:33.046 - CD has been raised
07-23-2012 23:56:33.046 - Connection established at 153600bps.
07-23-2012 23:56:33.046 - Error-control off or unknown.
07-23-2012 23:56:33.046 - Data compression off or unknown.
07-23-2012 23:57:03.046 - Read: Total: 7732, Per/Sec: 255, Written:
Total: 4478, Per/Sec: 148

And finally some lines from /var/log/messages :

Jul 23 22:36:15 bourne syslogd: kernel boot file is /boot/kernel/kernel
Jul 23 22:36:15 bourne kernel: Copyright (c) 1992-2011 The FreeBSD Project.
Jul 23 22:36:15 bourne kernel: Copyright (c) 1979, 1980, 1983, 1986,
1988, 1989, 1991, 1992, 1993, 1994
Jul 23 22:36:15 bourne kernel: The Regents of the University of
California. All rights reserved.
Jul 23 22:36:15 bourne kernel: FreeBSD is a registered trademark of The
FreeBSD Foundation.
Jul 23 22:36:15 bourne kernel: FreeBSD 8.2-RELEASE #0: Thu Feb 17
02:41:51 UTC 2011
Jul 23 22:36:15 bourne kernel:
ro...@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
Jul 23 22:36:15 bourne kernel: Timecounter "i8254" frequency 1193182 Hz
quality 0
Jul 23 22:36:15 bourne kernel: CPU: AMD Phenom(tm) 9650 Quad-Core
Processor (2304.92-MHz K8-class CPU)
Jul 23 22:36:15 bourne kernel: Origin = "AuthenticAMD" Id = 0x100f23
Family = 10 Model = 2 Stepping = 3
Jul 23 22:36:15 bourne kernel:
Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
Jul 23 22:36:15 bourne kernel: Features2=0x802009<SSE3,MON,CX16,POPCNT>
Jul 23 22:36:15 bourne kernel: AMD
Features=0xee500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM,3DNow!+,3DNow!>
Jul 23 22:36:15 bourne kernel: AMD
Features2=0x7ff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS>
Jul 23 22:36:15 bourne kernel: TSC: P-state invariant
Jul 23 22:36:15 bourne kernel: real memory = 4294967296 (4096 MB)
Jul 23 22:36:15 bourne kernel: avail memory = 3833356288 (3655 MB)
Jul 23 22:36:15 bourne kernel: ACPI APIC Table: <GBT GBTUACPI>
Jul 23 22:36:15 bourne kernel: FreeBSD/SMP: Multiprocessor System
Detected: 4 CPUs
Jul 23 22:36:15 bourne kernel: FreeBSD/SMP: 1 package(s) x 4 core(s)
Jul 23 22:36:15 bourne kernel: cpu0 (BSP): APIC ID: 0
Jul 23 22:36:15 bourne kernel: cpu1 (AP): APIC ID: 1
Jul 23 22:36:15 bourne kernel: cpu2 (AP): APIC ID: 2
Jul 23 22:36:15 bourne kernel: cpu3 (AP): APIC ID: 3
Jul 23 22:36:15 bourne kernel: ioapic0: Changing APIC ID to 2
Jul 23 22:36:15 bourne kernel: ioapic0 <Version 2.1> irqs 0-23 on
motherboard
Jul 23 22:36:15 bourne kernel: kbd1 at kbdmux0
Jul 23 22:36:15 bourne kernel: acpi0: <GBT GBTUACPI> on motherboard
Jul 23 22:36:15 bourne kernel: acpi0: [ITHREAD]
Jul 23 22:36:15 bourne kernel: acpi0: Power Button (fixed)
Jul 23 22:36:15 bourne kernel: acpi0: reservation of 0, a0000 (3) failed
Jul 23 22:36:15 bourne kernel: acpi0: reservation of 100000, bfde0000
(3) failed
Jul 23 22:36:15 bourne kernel: Timecounter "ACPI-fast" frequency 3579545
Hz quality 1000
Jul 23 22:36:15 bourne kernel: acpi_timer0: <32-bit timer at
3.579545MHz> port 0x4008-0x400b on acpi0
Jul 23 22:36:15 bourne kernel: cpu0: <ACPI CPU> on acpi0
Jul 23 22:36:15 bourne kernel: cpu1: <ACPI CPU> on acpi0
Jul 23 22:36:15 bourne kernel: cpu2: <ACPI CPU> on acpi0
Jul 23 22:36:15 bourne kernel: cpu3: <ACPI CPU> on acpi0
Jul 23 22:36:15 bourne kernel: acpi_button0: <Power Button> on acpi0
Jul 23 22:36:15 bourne kernel: pcib0: <ACPI Host-PCI bridge> port
0xcf8-0xcff on acpi0
Jul 23 22:36:15 bourne kernel: pci0: <ACPI PCI bus> on pcib0
Jul 23 22:36:15 bourne kernel: pcib1: <ACPI PCI-PCI bridge> at device
1.0 on pci0
Jul 23 22:36:15 bourne kernel: pci1: <ACPI PCI bus> on pcib1
Jul 23 22:36:15 bourne kernel: vgapci0: <VGA-compatible display> port
0xee00-0xeeff mem
0xd0000000-0xdfffffff,0xfdfe0000-0xfdfeffff,0xfde00000-0xfdefffff irq 18
at device 5.0 on pci1
Jul 23 22:36:15 bourne kernel: hdac0: <ATI RS780 High Definition Audio
Controller> mem 0xfdffc000-0xfdffffff irq 19 at device 5.1 on pci1
Jul 23 22:36:15 bourne kernel: hdac0: HDA Driver Revision: 20100226_0142
Jul 23 22:36:15 bourne kernel: hdac0: [ITHREAD]
Jul 23 22:36:15 bourne kernel: pcib2: <ACPI PCI-PCI bridge> irq 18 at
device 10.0 on pci0
Jul 23 22:36:15 bourne kernel: pci2: <ACPI PCI bus> on pcib2
Jul 23 22:36:15 bourne kernel: re0: <RealTek 8168/8111 B/C/CP/D/DP/E
PCIe Gigabit Ethernet> port 0xde00-0xdeff mem
0xfdaff000-0xfdafffff,0xfdae0000-0xfdaeffff irq 18 at device 0.0 on pci2
Jul 23 22:36:15 bourne kernel: re0: Using 1 MSI messages
Jul 23 22:36:15 bourne kernel: re0: Chip rev. 0x3c000000
Jul 23 22:36:15 bourne kernel: re0: MAC rev. 0x00400000
Jul 23 22:36:15 bourne kernel: miibus0: <MII bus> on re0
Jul 23 22:36:15 bourne kernel: rgephy0: <RTL8169S/8110S/8211B media
interface> PHY 1 on miibus0
Jul 23 22:36:15 bourne kernel: rgephy0: 10baseT, 10baseT-FDX,
10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow,
1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master,
1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow
Jul 23 22:36:15 bourne kernel: re0: Ethernet address: 00:24:1d:22:5c:27
Jul 23 22:36:15 bourne kernel: re0: [FILTER]
Jul 23 22:36:15 bourne kernel: atapci0: <ATI IXP700/800 SATA300
controller> port
0xff00-0xff07,0xfe00-0xfe03,0xfd00-0xfd07,0xfc00-0xfc03,0xfb00-0xfb0f
mem 0xfe02f000-0xfe02f3ff irq 22 at device 17.0 on pci0
Jul 23 22:36:15 bourne kernel: atapci0: [ITHREAD]
Jul 23 22:36:15 bourne kernel: atapci0: AHCI v1.10 controller with 4
3Gbps ports, PM supported
Jul 23 22:36:15 bourne kernel: ata2: <ATA channel 0> on atapci0
Jul 23 22:36:15 bourne kernel: ata2: port is not ready (timeout 0ms) tfd
= 00000180
Jul 23 22:36:15 bourne kernel: ata2: software reset clear timeout
Jul 23 22:36:15 bourne kernel: ata2: [ITHREAD]
Jul 23 22:36:15 bourne kernel: ata3: <ATA channel 1> on atapci0
Jul 23 22:36:15 bourne kernel: ata3: [ITHREAD]
Jul 23 22:36:15 bourne kernel: ata4: <ATA channel 2> on atapci0
Jul 23 22:36:15 bourne kernel: ata4: port is not ready (timeout 0ms) tfd
= 000001d0
Jul 23 22:36:15 bourne kernel: ata4: software reset clear timeout
Jul 23 22:36:15 bourne kernel: ata4: [ITHREAD]
Jul 23 22:36:15 bourne kernel: ata5: <ATA channel 3> on atapci0
Jul 23 22:36:15 bourne kernel: ata5: [ITHREAD]
Jul 23 22:36:15 bourne kernel: ohci0: <OHCI (generic) USB controller>
mem 0xfe02e000-0xfe02efff irq 16 at device 18.0 on pci0
Jul 23 22:36:15 bourne kernel: ohci0: [ITHREAD]
Jul 23 22:36:15 bourne kernel: usbus0: <OHCI (generic) USB controller>
on ohci0
Jul 23 22:36:15 bourne kernel: ohci1: <OHCI (generic) USB controller>
mem 0xfe02d000-0xfe02dfff irq 16 at device 18.1 on pci0
Jul 23 22:36:15 bourne kernel: ohci1: [ITHREAD]
Jul 23 22:36:15 bourne kernel: usbus1: <OHCI (generic) USB controller>
on ohci1
Jul 23 22:36:15 bourne kernel: ehci0: <EHCI (generic) USB 2.0
controller> mem 0xfe02c000-0xfe02c0ff irq 17 at device 18.2 on pci0
Jul 23 22:36:15 bourne kernel: ehci0: [ITHREAD]
Jul 23 22:36:15 bourne kernel: ehci0: AMD SB600/700 quirk applied
Jul 23 22:36:15 bourne kernel: usbus2: EHCI version 1.0
Jul 23 22:36:15 bourne kernel: usbus2: <EHCI (generic) USB 2.0
controller> on ehci0
Jul 23 22:36:15 bourne kernel: ohci2: <OHCI (generic) USB controller>
mem 0xfe02b000-0xfe02bfff irq 18 at device 19.0 on pci0
Jul 23 22:36:15 bourne kernel: ohci2: [ITHREAD]
Jul 23 22:36:15 bourne kernel: usbus3: <OHCI (generic) USB controller>
on ohci2
Jul 23 22:36:15 bourne kernel: ohci3: <OHCI (generic) USB controller>
mem 0xfe02a000-0xfe02afff irq 18 at device 19.1 on pci0
Jul 23 22:36:15 bourne kernel: ohci3: [ITHREAD]
Jul 23 22:36:15 bourne kernel: usbus4: <OHCI (generic) USB controller>
on ohci3
Jul 23 22:36:15 bourne kernel: ehci1: <EHCI (generic) USB 2.0
controller> mem 0xfe029000-0xfe0290ff irq 19 at device 19.2 on pci0
Jul 23 22:36:15 bourne kernel: ehci1: [ITHREAD]
Jul 23 22:36:15 bourne kernel: ehci1: AMD SB600/700 quirk applied
Jul 23 22:36:15 bourne kernel: usbus5: EHCI version 1.0
Jul 23 22:36:15 bourne kernel: usbus5: <EHCI (generic) USB 2.0
controller> on ehci1
Jul 23 22:36:15 bourne kernel: pci0: <serial bus, SMBus> at device 20.0
(no driver attached)
Jul 23 22:36:15 bourne kernel: atapci1: <ATI IXP700/800 UDMA133
controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfa00-0xfa0f at
device 20.1 on pci0
Jul 23 22:36:15 bourne kernel: ata0: <ATA channel 0> on atapci1
Jul 23 22:36:15 bourne kernel: ata0: [ITHREAD]
Jul 23 22:36:15 bourne kernel: ata1: <ATA channel 1> on atapci1
Jul 23 22:36:15 bourne kernel: ata1: [ITHREAD]
Jul 23 22:36:15 bourne kernel: hdac1: <ATI SB600 High Definition Audio
Controller> mem 0xfe024000-0xfe027fff irq 16 at device 20.2 on pci0
Jul 23 22:36:15 bourne kernel: hdac1: HDA Driver Revision: 20100226_0142
Jul 23 22:36:15 bourne kernel: hdac1: [ITHREAD]
Jul 23 22:36:15 bourne kernel: isab0: <PCI-ISA bridge> at device 20.3 on
pci0
Jul 23 22:36:15 bourne kernel: isa0: <ISA bus> on isab0
Jul 23 22:36:15 bourne kernel: pcib3: <ACPI PCI-PCI bridge> at device
20.4 on pci0
Jul 23 22:36:15 bourne kernel: pci3: <ACPI PCI bus> on pcib3
Jul 23 22:36:15 bourne kernel: fwohci0: <Texas Instruments TSB43AB23>
mem 0xfdcff000-0xfdcff7ff,0xfdcf8000-0xfdcfbfff irq 22 at device 14.0 on
pci3
Jul 23 22:36:15 bourne kernel: fwohci0: [ITHREAD]
Jul 23 22:36:15 bourne kernel: fwohci0: OHCI version 1.10 (ROM=0)
Jul 23 22:36:15 bourne kernel: fwohci0: No. of Isochronous channels is 4.
Jul 23 22:36:15 bourne kernel: fwohci0: EUI64 00:ed:04:7d:00:00:1f:d0
Jul 23 22:36:15 bourne kernel: fwohci0: Phy 1394a available S400, 3 ports.
Jul 23 22:36:15 bourne kernel: fwohci0: Link S400, max_rec 2048 bytes.
Jul 23 22:36:15 bourne kernel: firewire0: <IEEE1394(FireWire) bus> on
fwohci0
Jul 23 22:36:15 bourne kernel: fwe0: <Ethernet over FireWire> on firewire0
Jul 23 22:36:15 bourne kernel: if_fwe0: Fake Ethernet address:
02:ed:04:00:1f:d0
Jul 23 22:36:15 bourne kernel: fwe0: Ethernet address: 02:ed:04:00:1f:d0
Jul 23 22:36:15 bourne kernel: fwip0: <IP over FireWire> on firewire0
Jul 23 22:36:15 bourne kernel: fwip0: Firewire address:
00:ed:04:7d:00:00:1f:d0 @ 0xfffe00000000, S400, maxrec 2048
Jul 23 22:36:15 bourne kernel: dcons_crom0: <dcons configuration ROM> on
firewire0
Jul 23 22:36:15 bourne kernel: dcons_crom0: bus_addr 0x1b3c000
Jul 23 22:36:15 bourne kernel: fwohci0: Initiate bus reset
Jul 23 22:36:15 bourne kernel: fwohci0: fwohci_intr_core: BUS reset
Jul 23 22:36:15 bourne kernel: fwohci0: fwohci_intr_core:
node_id=0x00000000, SelfID Count=1, CYCLEMASTER mode
Jul 23 22:36:15 bourne kernel: ohci4: <OHCI (generic) USB controller>
mem 0xfe028000-0xfe028fff irq 18 at device 20.5 on pci0
Jul 23 22:36:15 bourne kernel: ohci4: [ITHREAD]
Jul 23 22:36:15 bourne kernel: usbus6: <OHCI (generic) USB controller>
on ohci4
Jul 23 22:36:15 bourne kernel: uart0: <16550 or compatible> port
0x3f8-0x3ff irq 4 flags 0x10 on acpi0
Jul 23 22:36:15 bourne kernel: uart0: [FILTER]
Jul 23 22:36:15 bourne kernel: ppc0: <Parallel port> port
0x378-0x37f,0x778-0x77b irq 7 drq 3 on acpi0
Jul 23 22:36:15 bourne kernel: ppc0: SMC-like chipset
(ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
Jul 23 22:36:15 bourne kernel: ppc0: FIFO with 16/16/16 bytes threshold
Jul 23 22:36:15 bourne kernel: ppc0: [ITHREAD]
Jul 23 22:36:15 bourne kernel: ppbus0: <Parallel port bus> on ppc0
Jul 23 22:36:15 bourne kernel: plip0: <PLIP network interface> on ppbus0
Jul 23 22:36:15 bourne kernel: plip0: [ITHREAD]
Jul 23 22:36:15 bourne kernel: lpt0: <Printer> on ppbus0
Jul 23 22:36:15 bourne kernel: lpt0: [ITHREAD]
Jul 23 22:36:15 bourne kernel: lpt0: Interrupt-driven port
Jul 23 22:36:15 bourne kernel: ppi0: <Parallel I/O> on ppbus0
Jul 23 22:36:15 bourne kernel: atkbdc0: <Keyboard controller (i8042)>
port 0x60,0x64 irq 1 on acpi0
Jul 23 22:36:15 bourne kernel: atkbd0: <AT Keyboard> irq 1 on atkbdc0
Jul 23 22:36:15 bourne kernel: kbd0 at atkbd0
Jul 23 22:36:15 bourne kernel: atkbd0: [GIANT-LOCKED]
Jul 23 22:36:15 bourne kernel: atkbd0: [ITHREAD]
Jul 23 22:36:15 bourne kernel: psm0: <PS/2 Mouse> irq 12 on atkbdc0
Jul 23 22:36:15 bourne kernel: psm0: [GIANT-LOCKED]
Jul 23 22:36:15 bourne kernel: psm0: [ITHREAD]
Jul 23 22:36:15 bourne kernel: psm0: model IntelliMouse Explorer, device
ID 4
Jul 23 22:36:15 bourne kernel: atrtc0: <AT realtime clock> port
0x70-0x73 irq 8 on acpi0
Jul 23 22:36:15 bourne kernel: sc0: <System console> at flags 0x100 on isa0
Jul 23 22:36:15 bourne kernel: sc0: VGA <16 virtual consoles, flags=0x300>
Jul 23 22:36:15 bourne kernel: vga0: <Generic ISA VGA> at port
0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Jul 23 22:36:15 bourne kernel: hwpstate0: <Cool`n'Quiet 2.0> on cpu0
Jul 23 22:36:15 bourne kernel: Timecounters tick every 1.000 msec
Jul 23 22:36:15 bourne kernel: firewire0: 1 nodes, maxhop <= 0 cable IRM
irm(0) (me)
Jul 23 22:36:15 bourne kernel: firewire0: bus manager 0
Jul 23 22:36:15 bourne kernel: usbus0: 12Mbps Full Speed USB v1.0
Jul 23 22:36:15 bourne kernel: usbus1: 12Mbps Full Speed USB v1.0
Jul 23 22:36:15 bourne kernel: usbus2: 480Mbps High Speed USB v2.0
Jul 23 22:36:15 bourne kernel: usbus3: 12Mbps Full Speed USB v1.0
Jul 23 22:36:15 bourne kernel: usbus4: 12Mbps Full Speed USB v1.0
Jul 23 22:36:15 bourne kernel: usbus5: 480Mbps High Speed USB v2.0
Jul 23 22:36:15 bourne kernel: usbus6: 12Mbps Full Speed USB v1.0
Jul 23 22:36:15 bourne kernel: ugen0.1: <ATI> at usbus0
Jul 23 22:36:15 bourne kernel: uhub0: <ATI OHCI root HUB, class 9/0, rev
1.00/1.00, addr 1> on usbus0
Jul 23 22:36:15 bourne kernel: ugen1.1: <ATI> at usbus1
Jul 23 22:36:15 bourne kernel: uhub1: <ATI OHCI root HUB, class 9/0, rev
1.00/1.00, addr 1> on usbus1
Jul 23 22:36:15 bourne kernel: ugen2.1: <ATI> at usbus2
Jul 23 22:36:15 bourne kernel: uhub2: <ATI EHCI root HUB, class 9/0, rev
2.00/1.00, addr 1> on usbus2
Jul 23 22:36:15 bourne kernel: ugen3.1: <ATI> at usbus3
Jul 23 22:36:15 bourne kernel: uhub3: <ATI OHCI root HUB, class 9/0, rev
1.00/1.00, addr 1> on usbus3
Jul 23 22:36:15 bourne kernel: ugen4.1: <ATI> at usbus4
Jul 23 22:36:15 bourne kernel: uhub4: <ATI OHCI root HUB, class 9/0, rev
1.00/1.00, addr 1> on usbus4
Jul 23 22:36:15 bourne kernel: ugen5.1: <ATI> at usbus5
Jul 23 22:36:15 bourne kernel: uhub5: <ATI EHCI root HUB, class 9/0, rev
2.00/1.00, addr 1> on usbus5
Jul 23 22:36:15 bourne kernel: ugen6.1: <ATI> at usbus6
Jul 23 22:36:15 bourne kernel: uhub6: <ATI OHCI root HUB, class 9/0, rev
1.00/1.00, addr 1> on usbus6
Jul 23 22:36:15 bourne kernel: acd0: DVDROM <HL-DT-STDVD-ROM
GDR8163B/0L23> at ata0-master UDMA33
Jul 23 22:36:15 bourne kernel: acd1: DVDR <Optiarc DVD RW AD-7240S/1.02>
at ata2-master UDMA100 SATA 1.5Gb/s
Jul 23 22:36:15 bourne kernel: ad8: 305244MB <WDC WD3200AAJS-00L7A0
01.03E01> at ata4-master UDMA100 SATA 3Gb/s
Jul 23 22:36:15 bourne kernel: hdac0: HDA Codec #0: ATI RS690/780 HDMI
Jul 23 22:36:15 bourne kernel: pcm0: <HDA ATI RS690/780 HDMI PCM #0
HDMI> at cad 0 nid 1 on hdac0
Jul 23 22:36:15 bourne kernel: hdac1: HDA Codec #0: Realtek ALC885
Jul 23 22:36:15 bourne kernel: pcm1: <HDA Realtek ALC885 PCM #0 Analog>
at cad 0 nid 1 on hdac1
Jul 23 22:36:15 bourne kernel: pcm2: <HDA Realtek ALC885 PCM #1 Analog>
at cad 0 nid 1 on hdac1
Jul 23 22:36:15 bourne kernel: pcm3: <HDA Realtek ALC885 PCM #2 Digital>
at cad 0 nid 1 on hdac1
Jul 23 22:36:15 bourne kernel: SMP: AP CPU #1 Launched!
Jul 23 22:36:15 bourne kernel: SMP: AP CPU #3 Launched!
Jul 23 22:36:15 bourne kernel: SMP: AP CPU #2 Launched!
Jul 23 22:36:15 bourne kernel: uhub6: 2 ports with 2 removable, self powered
Jul 23 22:36:15 bourne kernel: uhub0: 3 ports with 3 removable, self powered
Jul 23 22:36:15 bourne kernel: uhub1: 3 ports with 3 removable, self powered
Jul 23 22:36:15 bourne kernel: uhub3: 3 ports with 3 removable, self powered
Jul 23 22:36:15 bourne kernel: uhub4: 3 ports with 3 removable, self powered
Jul 23 22:36:15 bourne kernel: Root mount waiting for: usbus5 usbus2
Jul 23 22:36:15 bourne kernel: Root mount waiting for: usbus5 usbus2
Jul 23 22:36:15 bourne kernel: uhub2: 6 ports with 6 removable, self powered
Jul 23 22:36:15 bourne kernel: uhub5: 6 ports with 6 removable, self powered
Jul 23 22:36:15 bourne kernel: Root mount waiting for: usbus2
Jul 23 22:36:15 bourne kernel: ugen0.2: <American Power Conversion> at
usbus0
Jul 23 22:36:15 bourne kernel: ugen1.2: <HUAWEI TECHNOLOGIES> at usbus1
Jul 23 22:36:15 bourne kernel: umass0: <HUAWEI TECHNOLOGIES HUAWEI
Mobile, class 0/0, rev 1.10/0.00, addr 2> on usbus1
Jul 23 22:36:15 bourne kernel: umass0: SCSI over Bulk-Only; quirks = 0x0000
Jul 23 22:36:15 bourne kernel: ugen2.2: <vendor 0x05e3> at usbus2
Jul 23 22:36:15 bourne kernel: uhub7: <vendor 0x05e3 USB2.0 Hub, class
9/0, rev 2.00/77.60, addr 2> on usbus2
Jul 23 22:36:15 bourne kernel: Root mount waiting for: usbus2
Jul 23 22:36:15 bourne kernel: uhub7: 4 ports with 4 removable, self powered
Jul 23 22:36:15 bourne kernel: Trying to mount root from ufs:/dev/ad8s2a
Jul 23 22:36:15 bourne kernel: umass0:0:0:-1: Attached to scbus0
Jul 23 22:36:15 bourne kernel: cd0 at umass-sim0 bus 0 scbus0 target 0 lun 0
Jul 23 22:36:15 bourne kernel: cd0: <HUAWEI Mass Storage 2.31> Removable
CD-ROM SCSI-0 device
Jul 23 22:36:15 bourne kernel: cd0: 1.000MB/s transfers
Jul 23 22:36:15 bourne kernel: cd0: cd present [52352 x 2048 byte records]
Jul 23 22:36:15 bourne kernel: (probe0:umass-sim0:0:0:1): TEST UNIT
READY. CDB: 0 20 0 0 0 0
Jul 23 22:36:15 bourne kernel: (probe0:umass-sim0:0:0:1): CAM status:
SCSI Status Error
Jul 23 22:36:15 bourne kernel: (probe0:umass-sim0:0:0:1): SCSI status:
Check Condition
Jul 23 22:36:15 bourne kernel: (probe0:umass-sim0:0:0:1): SCSI sense:
NOT READY asc:3a,0 (Medium not present)
Jul 23 22:36:15 bourne kernel: da0 at umass-sim0 bus 0 scbus0 target 0 lun 1
Jul 23 22:36:15 bourne kernel: da0: <HUAWEI SD Storage 2.31> Removable
Direct Access SCSI-2 device
Jul 23 22:36:15 bourne kernel: da0: 1.000MB/s transfers
Jul 23 22:36:15 bourne kernel: da0: Attempt to query device size failed:
NOT READY, Medium not present
Jul 23 22:36:16 bourne kernel: u3g0: <Data Interface> on usbus1
Jul 23 22:36:16 bourne kernel: u3g0: Found 3 ports.
Jul 23 22:36:16 bourne root: Unknown USB device: vendor 0x051d product
0x0002 bus uhub0
Jul 23 22:36:17 bourne root: Unknown USB device: vendor 0x051d product
0x0002 bus uhub0
Jul 23 22:36:19 bourne apcupsd[1165]: apcupsd 3.14.8 (16 January 2010)
freebsd startup succeeded
Jul 23 22:36:19 bourne kernel: tun0: link state changed to UP
Jul 23 22:36:19 bourne lpd[1227]: lpd startup: logging=0
Jul 23 22:36:19 bourne kernel: fuse4bsd: version 0.3.9-pre1, FUSE ABI 7.8
Jul 23 22:36:20 bourne apcupsd[1165]: Power failure.
Jul 23 22:36:21 bourne avahi-daemon[1471]: WARNING: No NSS support for
mDNS detected, consider installing nss-mdns!
Jul 23 22:36:25 bourne apcupsd[1165]: Running on UPS batteries.
Jul 23 22:36:27 bourne apcupsd[1165]: Mains returned. No longer on UPS
batteries.
Jul 23 22:36:27 bourne apcupsd[1165]: Power is back. UPS running on mains.
Jul 23 22:36:37 bourne login: ROOT LOGIN (root) ON ttyv0
Jul 23 22:36:49 bourne ppp[1217]: tun0: Warning: Chat script failed
Jul 23 22:37:20 bourne ppp[1217]: tun0: Warning: Chat script failed

Any help in pointing out what error I am making will be greatly
appreciated. Remember, I cannot install any new port since my FreeBSD
box does not yet connect to the internet.


Thanks &

--
Regards,

Manish Jain
+91-99620-10329

Erich Dollansky

unread,
Jul 25, 2012, 9:23:57 AM7/25/12
to
Hi,

On Tue, 24 Jul 2012 14:29:07 +0530
Manish Jain <bourne....@hotmail.com> wrote:

> On 23-Jul-12 16:07, Erich Dollansky wrote:
> > Hi,
> >
> > On Monday 23 July 2012 16:46:04 Manish Jain wrote:
> >> On 21-Jul-12 19:06, Matthias Apitz wrote:
> >>> El día Saturday, July 21, 2012 a las 06:01:11PM +0530, Manish
> >>> Jain escribió:
> >>>
> >
> >> I am still stuck because I can't know the syntax to run usbdump.
> >> usbdump
> >
> > man usbdump
> >
> > usbconfig gives you the device numbers.

I got something wrong.

It is all done by usbconfig

usbconfig without any parameters gives you a list of devices. One entry
should look like this:

ugen0.4: <Huawei CDMA Technologies MSM Huawei, Incorporated> at usbus0,
cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON

You enter then

usbconfig -u 0 -a 4 dump_device_desc

and you should get something like this:

ugen0.4: <Huawei CDMA Technologies MSM Huawei, Incorporated> at usbus0,
cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON

bLength = 0x0012
bDescriptorType = 0x0001
bcdUSB = 0x0200
bDeviceClass = 0x0000
bDeviceSubClass = 0x0000
bDeviceProtocol = 0x0000
bMaxPacketSize0 = 0x0040
idVendor = 0x12d1
idProduct = 0x1803
bcdDevice = 0x0000
iManufacturer = 0x0003 <Huawei, Incorporated>
iProduct = 0x0002 <Huawei CDMA Technologies MSM>
iSerialNumber = 0x0000 <no string>
bNumConfigurations = 0x0001

You try to find a solution from the other side of the rope. I think we
better start here first.

Erich

Matthias Apitz

unread,
Jul 25, 2012, 10:42:45 AM7/25/12
to
El d�a Wednesday, July 25, 2012 a las 08:23:57PM +0700, Erich Dollansky escribi�:

> You enter then
>
> usbconfig -u 0 -a 4 dump_device_desc
>
> and you should get something like this:
>
> ugen0.4: <Huawei CDMA Technologies MSM Huawei, Incorporated> at usbus0,
> cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON
>
> bLength = 0x0012
> bDescriptorType = 0x0001
> bcdUSB = 0x0200
> bDeviceClass = 0x0000
> bDeviceSubClass = 0x0000
> bDeviceProtocol = 0x0000
> bMaxPacketSize0 = 0x0040
> idVendor = 0x12d1
> idProduct = 0x1803
> bcdDevice = 0x0000
> iManufacturer = 0x0003 <Huawei, Incorporated>
> iProduct = 0x0002 <Huawei CDMA Technologies MSM>
> iSerialNumber = 0x0000 <no string>
> bNumConfigurations = 0x0001
>
> You try to find a solution from the other side of the rope. I think we
> better start here first.

Yep, I said this already: before there is no modem /dev/.... device
which belongs to the Huawei device and produced by u3g, and before one
can not talk with AT cmds (for example with kermit), it makes no
real sense to think in ppp and fire up ppp;

matthias
--
Matthias Apitz
e <gu...@unixarea.de> - w http://www.unixarea.de/
UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370)
UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5

Manish Jain

unread,
Jul 25, 2012, 10:51:04 AM7/25/12
to
On 25-Jul-12 18:53, Erich Dollansky wrote:
> Hi,
>
> On Tue, 24 Jul 2012 14:29:07 +0530
> Manish Jain<bourne....@hotmail.com> wrote:
>
>> On 23-Jul-12 16:07, Erich Dollansky wrote:
>>> Hi,
>>>
>>> On Monday 23 July 2012 16:46:04 Manish Jain wrote:
>>>> On 21-Jul-12 19:06, Matthias Apitz wrote:
>>>>> El d�a Saturday, July 21, 2012 a las 06:01:11PM +0530, Manish
>>>>> Jain escribi�:
>>>>>
>>>
>>>> I am still stuck because I can't know the syntax to run usbdump.
>>>> usbdump
>>>
>>> man usbdump
>>>
>>> usbconfig gives you the device numbers.
>
> I got something wrong.
>
> It is all done by usbconfig
>
> usbconfig without any parameters gives you a list of devices. One entry
> should look like this:
>
> ugen0.4:<Huawei CDMA Technologies MSM Huawei, Incorporated> at usbus0,
> cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON
>
> You enter then
>
> usbconfig -u 0 -a 4 dump_device_desc
>
> and you should get something like this:
>
> ugen0.4:<Huawei CDMA Technologies MSM Huawei, Incorporated> at usbus0,
> cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON
>
> bLength = 0x0012
> bDescriptorType = 0x0001
> bcdUSB = 0x0200
> bDeviceClass = 0x0000
> bDeviceSubClass = 0x0000
> bDeviceProtocol = 0x0000
> bMaxPacketSize0 = 0x0040
> idVendor = 0x12d1
> idProduct = 0x1803
> bcdDevice = 0x0000
> iManufacturer = 0x0003<Huawei, Incorporated>
> iProduct = 0x0002<Huawei CDMA Technologies MSM>
> iSerialNumber = 0x0000<no string>
> bNumConfigurations = 0x0001
>
> You try to find a solution from the other side of the rope. I think we
> better start here first.
>
> Erich
>
>

Hi,

Thanks for your reply.

I tried switching the USB ports and have some information which could
help you to help me :

usbconfig -u 0 -a 2 dump_device_desc :
ugen0.2: <HUAWEI Mobile HUAWEI TECHNOLOGIES> at usbus0, cfg=0 md=HOST
spd=FULL (12Mbps) pwr=ON

bLength = 0x0012
bDescriptorType = 0x0001
bcdUSB = 0x0110
bDeviceClass = 0x0000
bDeviceSubClass = 0x0000
bDeviceProtocol = 0x0000
bMaxPacketSize0 = 0x0040
idVendor = 0x12d1
idProduct = 0x140b
bcdDevice = 0x0000
iManufacturer = 0x0001 <HUAWEI TECHNOLOGIES>
iProduct = 0x0002 <HUAWEI Mobile>
iSerialNumber = 0x0004 <>
bNumConfigurations = 0x0001

usbconfig -u 0 -a 3 dump_device_desc :
ugen0.3: <Back-UPS ES 650Y-IN FW:853.m4.I USB FW:m4 American Power
Conversion> at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON

bLength = 0x0012
bDescriptorType = 0x0001
bcdUSB = 0x0110
bDeviceClass = 0x0000
bDeviceSubClass = 0x0000
bDeviceProtocol = 0x0000
bMaxPacketSize0 = 0x0008
idVendor = 0x051d
idProduct = 0x0002
bcdDevice = 0x0006
iManufacturer = 0x0003 <American Power Conversion>
iProduct = 0x0001 <Back-UPS ES 650Y-IN FW:853.m4.I USB FW:m4>
iSerialNumber = 0x0002 <BB0926005982 >
bNumConfigurations = 0x0001

Now what should my devfs.conf contain ? Currently it contains the
following :

link cuaU0.0 modem
own modem root:operator
perm modem 666

link ugen0.3 usv
own usv root:operator
perm usv 666

link cuaU0.1 apcups
own apcups root:operator
perm apcups 666

Obviously, these entries are incorrect since neither my modem speaks to
the internet nor is any signal from the APC UPS recognized. I believe
once I have the correct devfs entries, the whole system should work
smoothly. But please correct me if I am wrong.

Surprisingly, /etc/usb_modeswitch.d contains no entries for 12d1:140b or
051d:*. Do I need to reinstall usb_modeswitch.d ? Or can usbconfig
configure the devices correctly ? I am no expert here, so if yes, I
would need the complete commands.

Thanks for any help. I am greatly indebted to FreeBSD and its philosophy
making things 'as simple as possible, but not any simpler' - which has
helped me learn a great deal about computers in general and managing my
own computer in particular. But the USB related stuff still beats the
hell out of me, so I need help here.

BTW, my system now has the usbdump command (installed from sources
downloaded from http://biot.com/usbdump/) but no manpage.


Thanks again &
--
Regards,

Manish Jain
+91-99620-10329

Erich Dollansky

unread,
Jul 25, 2012, 11:36:28 AM7/25/12
to
Hi

On Wed, 25 Jul 2012 20:21:04 +0530
Manish Jain <bourne....@hotmail.com> wrote:
> On 25-Jul-12 18:53, Erich Dollansky wrote:
> > On Tue, 24 Jul 2012 14:29:07 +0530
> > Manish Jain<bourne....@hotmail.com> wrote:
> >> On 23-Jul-12 16:07, Erich Dollansky wrote:
> >>> On Monday 23 July 2012 16:46:04 Manish Jain wrote:
> >>>> On 21-Jul-12 19:06, Matthias Apitz wrote:
> >>>>> El día Saturday, July 21, 2012 a las 06:01:11PM +0530, Manish
> >>>>> Jain escribió:
>
> I tried switching the USB ports and have some information which could
> help you to help me :
>
> usbconfig -u 0 -a 2 dump_device_desc :
> ugen0.2: <HUAWEI Mobile HUAWEI TECHNOLOGIES> at usbus0, cfg=0 md=HOST
> spd=FULL (12Mbps) pwr=ON
>
> bLength = 0x0012
> bDescriptorType = 0x0001
> bcdUSB = 0x0110
> bDeviceClass = 0x0000
> bDeviceSubClass = 0x0000
> bDeviceProtocol = 0x0000
> bMaxPacketSize0 = 0x0040
> idVendor = 0x12d1
> idProduct = 0x140b

This is strange. src/sys/dev/usb/usbdevs says this:

product HUAWEI E140B 0x140b 3G modem

This means that your product is supported

Is this line in your usbdevs?

> Now what should my devfs.conf contain ? Currently it contains the
> following :

Mine is empty. Comment all entries out. This might be the problem.
>
> link cuaU0.0 modem
> own modem root:operator
> perm modem 666
>
> link ugen0.3 usv
> own usv root:operator
> perm usv 666
>
> link cuaU0.1 apcups
> own apcups root:operator
> perm apcups 666
>
> Obviously, these entries are incorrect since neither my modem speaks
> to the internet nor is any signal from the APC UPS recognized. I
> believe once I have the correct devfs entries, the whole system
> should work smoothly. But please correct me if I am wrong.
>
> Surprisingly, /etc/usb_modeswitch.d contains no entries for 12d1:140b
> or 051d:*. Do I need to reinstall usb_modeswitch.d ? Or can usbconfig
> configure the devices correctly ? I am no expert here, so if yes, I
> would need the complete commands.
>
What version of FreeBSD are you using?

> Thanks for any help. I am greatly indebted to FreeBSD and its
> philosophy making things 'as simple as possible, but not any simpler'
> - which has helped me learn a great deal about computers in general
> and managing my own computer in particular. But the USB related stuff
> still beats the hell out of me, so I need help here.

There is something very, very simple wrong. I just do not see now what
it is.

I have the feeling that your modem is not recognised while it should be
as it is known to FreeBSD.
>
> BTW, my system now has the usbdump command (installed from sources
> downloaded from http://biot.com/usbdump/) but no manpage.
>
You got then a Linux version which might causes more problems that you
need.

Erich

Maciej Milewski

unread,
Jul 26, 2012, 5:21:46 AM7/26/12
to
cd0 is containing windows drivers on pseudo-CD interface. On my Merlin
device simple ejecting cd0 is enabling 3 data interfaces from which one
can be used to connect to the mobile network. However some devices have
builtin quirk in u3g to make that automagicaly. You can try issuing
cdcontrol -f /dev/cd0 eject and observe what new is showing in
/var/log/messages or dmesg.
da0 is probably microSD card reader.
Pozdrawiam,
Maciej Milewski

Manish Jain

unread,
Jul 26, 2012, 6:07:23 AM7/26/12
to
On 25-Jul-12 21:06, Erich Dollansky wrote:
> Hi
>
> On Wed, 25 Jul 2012 20:21:04 +0530
> Manish Jain<bourne....@hotmail.com> wrote:
>> On 25-Jul-12 18:53, Erich Dollansky wrote:
>>> On Tue, 24 Jul 2012 14:29:07 +0530
>>> Manish Jain<bourne....@hotmail.com> wrote:
>>>> On 23-Jul-12 16:07, Erich Dollansky wrote:
>>>>> On Monday 23 July 2012 16:46:04 Manish Jain wrote:
>>>>>> On 21-Jul-12 19:06, Matthias Apitz wrote:
>>>>>>> El d�a Saturday, July 21, 2012 a las 06:01:11PM +0530, Manish
>>>>>>> Jain escribi�:
Hi Erich/Matthias,

I did some tinkering to make _some_ progress. My APC UPS is working fine
now under FreeBSD (8.2-RELEASE, amd64). I think I also now have the
correct device setting in ppp.conf (/dev/cuaU0.0, also symlink'ed as
/dev/modem via devfs.conf). But the modem still does not speak to
internet. Here is the latest log :

Jul 26 15:16:15 bourne ppp[1199]: Phase: Using interface: tun0
Jul 26 15:16:15 bourne ppp[1199]: Phase: deflink: Created in closed state
Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: default: set device
/dev/modem
Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: default: set speed 115200
Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: default: set dial ABORT
BUSY ABORT NO\sCARRIER TIMEOUT 5 "" AT OK-AT-OK AT&FE0V1X1&D2&C1S0=0 OK
\dATDT\T TIMEOUT 40 CONNECT
Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: default: set timeout 180
Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: default: enable dns
Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: huawei: set phone #777
Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: huawei: set device
/dev/cuaU0.0
Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: huawei: set login
Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: huawei: set authname
inte...@internet.mtsindia.in
Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: huawei: set authkey
********
Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: huawei: set timeout 0
Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: huawei: disable ipv6cp
Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: huawei: set ifaddr
10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: huawei: add default HISADDR
Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: huawei: set dial AT+CRM=1
Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: huawei: accept PAP CHAP
Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: huawei: enable dns
Jul 26 15:16:15 bourne ppp[1217]: tun0: Phase: PPP Started (auto mode).
Jul 26 15:16:15 bourne ppp[1217]: tun0: Phase: bundle: Establish
Jul 26 15:16:15 bourne ppp[1217]: tun0: Phase: deflink: closed -> opening
Jul 26 15:16:15 bourne ppp[1217]: tun0: Phase: deflink: Connected!
Jul 26 15:16:15 bourne ppp[1217]: tun0: Phase: deflink: opening -> dial
Jul 26 15:16:15 bourne ppp[1217]: tun0: Chat: Phone: #777
Jul 26 15:16:15 bourne ppp[1217]: tun0: Chat: deflink: Dial attempt 1 of 1
Jul 26 15:16:15 bourne ppp[1217]: tun0: Chat: Expect(30): AT+CRM=1
Jul 26 15:16:45 bourne ppp[1217]: tun0: Chat: Expect timeout
Jul 26 15:16:45 bourne ppp[1217]: tun0: Warning: Chat script failed
Jul 26 15:16:45 bourne ppp[1217]: tun0: Phase: deflink: dial -> hangup
Jul 26 15:16:45 bourne ppp[1217]: tun0: Phase: deflink: Disconnected!
Jul 26 15:16:45 bourne ppp[1217]: tun0: Phase: deflink: Connect time: 30
secs: 0 octets in, 0 octets out
Jul 26 15:16:45 bourne ppp[1217]: tun0: Phase: deflink: 0 packets in, 0
packets out
Jul 26 15:16:45 bourne ppp[1217]: tun0: Phase: total 0 bytes/sec, peak
0 bytes/sec on Thu Jul 26 15:16:15 2012
Jul 26 15:16:45 bourne ppp[1217]: tun0: Phase: deflink: hangup -> closed
Jul 26 15:16:45 bourne ppp[1217]: tun0: Phase: bundle: Dead

I uninstalled usb-modeswitch since I presume u3g.ko would suffice. This
line is present in /usr/src/sys/dev/usb/serial/u3g.c (as part of the
struct usb_device_id u3g_devs[]) :

U3G_DEV(HUAWEI, E140B, U3GINIT_HUAWEI), //line 232

Could it be that I am using the wrong AT commands ? Win XP commands are
underneath :
Thanks for any help.

--
Regards,

Manish Jain
+91-99620-10329

Robert Bonomi

unread,
Jul 26, 2012, 8:10:00 AM7/26/12
to

> From: Manish Jain <bourne....@hotmail.com>
> Date: Thu, 26 Jul 2012 15:37:23 +0530
> Subject: Re: How to get Huawei EC1561 USB modem working under FreeBSD 8.2?
>
> On 25-Jul-12 21:06, Erich Dollansky wrote:
>
> I did some tinkering to make _some_ progress. My APC UPS is working fine
> now under FreeBSD (8.2-RELEASE, amd64). I think I also now have the
> correct device setting in ppp.conf (/dev/cuaU0.0, also symlink'ed as
> /dev/modem via devfs.conf). But the modem still does not speak to
> internet.

[[ sneck logfile entries ]]

> Could it be that I am using the wrong AT commands ? C

"Best guess" possibilities --
1) wrong serial port
2) wrong speed.

Recommend using a simple teminal program, like 'cu' or 'kermit', try
connecting to each serial port, in succession, and see what happens
when you type the following two lines:
ATE1V1
ATI0 { that is 'AT', then a capital i, followed by a zero }


The idea is to _first_ get 'basic communications' with the modem working,
_then_ try the chat scipt, then get ppp woking.

Trying to debug -everything- at the same time is a guaanteed recipie for
frustation -- as you're finding out.

One of your prior boot logs showed that _at_that_point_ the O/S was *NOT*
recognizing the modem. Log lines showed "unknown device 0x140b". I
presume you have -that- resolved.

Matthias Apitz

unread,
Jul 26, 2012, 8:52:41 AM7/26/12
to
El día Thursday, July 26, 2012 a las 07:10:00AM -0500, Robert Bonomi escribió:

> [[ sneck logfile entries ]]
>
> > Could it be that I am using the wrong AT commands ? C
>
> "Best guess" possibilities --
> 1) wrong serial port
> 2) wrong speed.
>
> Recommend using a simple teminal program, like 'cu' or 'kermit', try
> connecting to each serial port, in succession, and see what happens
> when you type the following two lines:
> ATE1V1
> ATI0 { that is 'AT', then a capital i, followed by a zero }
>
>
> The idea is to _first_ get 'basic communications' with the modem working,
> _then_ try the chat scipt, then get ppp woking.

100% ACK; that's what I have told a numerous of times in this thread,
but it seems that the OP is hint-resistant :-)

HIH

matthias
--
Matthias Apitz
e <gu...@unixarea.de> - w http://www.unixarea.de/
UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370)
UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5
0 new messages