Re: How to debug USB hardware issues
On Wednesday 16 November 2011 01:52:18 Alberto Mijares wrote: USB_ERR Look for: USB_ERR_STALLED USB_ERR_TIMEOUT --HPS ___ freebsd-hardware@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hardware To unsubscribe, send any mail to freebsd-hardware-unsubscr...@freebsd.org
Re: How to debug USB hardware issues
On Sat, Nov 5, 2011 at 10:09 AM, Hans Petter Selasky hsela...@c2i.net wrote: On Saturday 05 November 2011 15:19:14 Alberto Mijares wrote: What does dmesg say when this failure occurs? Do you see the following sysctl: sysctl hw.usb.no_cs_fail 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, I already have USB_DEBUG option in kernel running and u3g debug. What info can I send you? I don't see anything relevant. Thanks Hi, Have you tried: sysctl hw.usb.u3g.debug=15 --HPS Hi, I have the problem rigth now... so: # sysctl hw.usb.u3g.debug hw.usb.u3g.debug: 15 and USB_DEBUG is in actual kernel config. bearerbox process (Kannel 1.5.0) hangs, since it cannot talk to the modem anymore. I killed it with signal -9 and tried to connect with cu: # cu -l /dev/cuaU0 -s 150200 connected but it doesn't response. At this very moment, how could I determine if there is a problem with the modem or with the USB port/bus? My only choice now is to reset the USB port with usbconfig -d 0.2 reset. Thanks in advance Regards Alberto Mijares ___ freebsd-hardware@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hardware To unsubscribe, send any mail to freebsd-hardware-unsubscr...@freebsd.org
Re: How to debug USB hardware issues
What does dmesg say when this failure occurs? Do you see the following sysctl: sysctl hw.usb.no_cs_fail 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, I already have USB_DEBUG option in kernel running and u3g debug. What info can I send you? I don't see anything relevant. Thanks Alberto Mijares ___ freebsd-hardware@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hardware To unsubscribe, send any mail to freebsd-hardware-unsubscr...@freebsd.org
Re: How to debug USB hardware issues
On Saturday 05 November 2011 15:19:14 Alberto Mijares wrote: What does dmesg say when this failure occurs? Do you see the following sysctl: sysctl hw.usb.no_cs_fail 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, I already have USB_DEBUG option in kernel running and u3g debug. What info can I send you? I don't see anything relevant. Thanks Hi, Have you tried: sysctl hw.usb.u3g.debug=15 --HPS ___ freebsd-hardware@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hardware To unsubscribe, send any mail to freebsd-hardware-unsubscr...@freebsd.org
Re: How to debug USB hardware issues
On Friday 04 November 2011 02:01:45 Alberto Mijares wrote: Hi, I have a SMS gateway with FreeBSD 8.2 RELEASE on old hardware (Pentium4). It has plugged a modem Enfora SA-EL, GSM-GPRS, via USB. The modem has been working fine for years. However, since it's plugged to this server, the application that manage the modem hangs every one or two days. I'd like to know if there is a way to know exactly if the problem is the USB ports or the modem failing (because has some years now). Some time I have to reset the USB port (using usbconfig) and it works again. Tha bad thing is that the application hangs and cannot reset the modem (using the %RESET AT command). Thanks in advance for your suggestions. Regards Alberto Mijares Hi, What does dmesg say when this failure occurs? Do you see the following sysctl: sysctl hw.usb.no_cs_fail 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. --HPS ___ freebsd-hardware@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hardware To unsubscribe, send any mail to freebsd-hardware-unsubscr...@freebsd.org
Re: How to debug USB hardware issues
Hi Hans, dmesg doesn't say anything when the failure occurs. # sysctl hw.usb.no_cs_fail sysctl: unknown oid 'hw.usb.no_cs_fail' I turned on debugging in the modem driver # sysctl hw.usb.u3g.debug=1 hw.usb.u3g.debug: 0 - 1 However, I cannot recompile the kernel rigth now for USB_DEBUG. I hope when the failure occurs again the driver be able to say what is going on. I'll be posting the results here. Thanks in advance. Regards Alberto Mijares On 11/4/11, Hans Petter Selasky hsela...@c2i.net wrote: On Friday 04 November 2011 02:01:45 Alberto Mijares wrote: Hi, I have a SMS gateway with FreeBSD 8.2 RELEASE on old hardware (Pentium4). It has plugged a modem Enfora SA-EL, GSM-GPRS, via USB. The modem has been working fine for years. However, since it's plugged to this server, the application that manage the modem hangs every one or two days. I'd like to know if there is a way to know exactly if the problem is the USB ports or the modem failing (because has some years now). Some time I have to reset the USB port (using usbconfig) and it works again. Tha bad thing is that the application hangs and cannot reset the modem (using the %RESET AT command). Thanks in advance for your suggestions. Regards Alberto Mijares Hi, What does dmesg say when this failure occurs? Do you see the following sysctl: sysctl hw.usb.no_cs_fail 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. --HPS ___ freebsd-hardware@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hardware To unsubscribe, send any mail to freebsd-hardware-unsubscr...@freebsd.org