Date: Tue, 15 Nov 2011 20:22:18 -0430 From: Alberto Mijares <amijaresp@gmail.com> To: Hans Petter Selasky <hselasky@c2i.net> Cc: freebsd-hardware@freebsd.org Subject: Re: How to debug USB hardware issues Message-ID: <CAGZBXN86N=D-Vjz3fabKdayA-w3WL6FC-vZKarE1TFF%2Ba8FEMA@mail.gmail.com> In-Reply-To: <201111051539.49068.hselasky@c2i.net> References: <CAGZBXN8gAuGfxmWJr6JV4JYtZPbDXghXwwRVZXttc8p38Gr_TQ@mail.gmail.com> <201111040941.28413.hselasky@c2i.net> <CAGZBXN-3qc1y6ikrA%2BywOocwT1q7qZPArq7Pak2P8mEqwQNtZA@mail.gmail.com> <201111051539.49068.hselasky@c2i.net>
next in thread | previous in thread | raw e-mail | index | archive | help
>> > >> > I would start turn on debugging in the modem driver, compile kernel with >> > options USB_DEBUG, and then see what is printed at the time of failure. >> Hi list, I read usb_debug.c and found that I had to turn on debugging with # sysctl hw.usb.debug=1 So, I did it. Then, I started the application (the service is still down since my first post in this thread) and many messages showed in dmesg and /var/log/messages. Tha app didn't work, so I opened one terminal with tail -f /var/log/messages and from another terminal tried to connect to the modem with cu -l /dev/cuaU0 -s 115200. This was the output: Jan 6 10:19:59 kannel kernel: usbd_transfer_submit: xfer=0xc48bb968, endpoint=0xc4b5e800, nframes=1, dir=read Jan 6 10:19:59 kannel kernel: usb_dump_endpoint: endpoint=0xc4b5e800 edesc=0xc42f9032 isoc_next=0 toggle_next=1 bEndpointAddress=0x81 Jan 6 10:19:59 kannel kernel: usb_dump_queue: endpoint=0xc4b5e800 xfer: Jan 6 10:19:59 kannel kernel: usbd_transfer_submit: open Jan 6 10:19:59 kannel kernel: usbd_pipe_enter: enter Jan 6 10:19:59 kannel kernel: usbd_pipe_start: start Jan 6 10:20:00 kannel kernel: usbd_do_request_flags: Handle Request function is set Jan 6 10:20:32 kannel last message repeated 96 times Jan 6 10:22:33 kannel last message repeated 366 times Even so, the modem is still dead. No response. Finally, after a while, I killed the cu process and this message showed usbd_do_request_flags: Handle Request function is set usbd_transfer_stop: close usbd_transfer_done: err=USB_ERR_CANCELLED usbd_transfer_done: err=USB_ERR_NORMAL_COMPLETION usbd_callback_wrapper_sub: xfer=0xc48bb968 endpoint=0xc4b5e800 sts=5 alen=0, slen=2048, afrm=0, nfrm=1 usbd_do_request_flags: Handle Request function is set u3g debug is on and no message appears. Any hint about this? I'm about to buy a PCI->USB card, unless anyone can say there's no problem with USB hardware. So I have to bye another modem. Thank you very mucho in advance. Regards Alberto Mijares
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGZBXN86N=D-Vjz3fabKdayA-w3WL6FC-vZKarE1TFF%2Ba8FEMA>