gnupic: Re: [gnupic] Follow-up question to the thread about Ben's port of Brad's Lab2 to gpasm


Previous by date: 4 Jan 2006 00:14:37 +0000 Re: [gnupic] Follow-up question to the thread about Ben's port of Brad's Lab2 to gpasm, Nicholas Robinson
Next by date: 4 Jan 2006 00:14:37 +0000 Re: [gnupic] gpsim installation problem, Scott Dattalo
Previous in thread: 4 Jan 2006 00:14:37 +0000 Re: [gnupic] Follow-up question to the thread about Ben's port of Brad's Lab2 to gpasm, Nicholas Robinson
Next in thread: 4 Jan 2006 00:14:37 +0000 Re: [gnupic] Follow-up question to the thread about Ben's port of Brad's Lab2 to gpasm, Chen Xiao Fan

Subject: Re: [gnupic] Follow-up question to the thread about Ben's port of Brad's Lab2 to gpasm
From: Nicholas Robinson ####@####.####
Date: 4 Jan 2006 00:14:37 +0000
Message-Id: <200601040016.47178.npr@bottlehall.co.uk>

On Tuesday 03 January 2006 09:01, Wojtek Zabolotny wrote:
> Nicholas Robinson napisaƂ(a):
> >lsusb has never shown anything; occasionally I get some dmesg messages but
> > not every time. I've once had a dmesg report that a high speed device had
> > been connected but usually it's something along the lines of:
> >
> >Jan  2 15:41:30 paulo kernel: usb 2-1: new low speed USB device using
> > uhci_hcd and address 11
> >Jan  2 15:41:30 paulo kernel: usb 2-1: device descriptor read/64, error
> > -71 Jan  2 15:41:30 paulo kernel: usb 2-1: device descriptor read/64,
> > error -71 Jan  2 15:41:30 paulo kernel: usb 2-1: new low speed USB device
> > using uhci_hcd and address 12
> >Jan  2 15:41:30 paulo kernel: usb 2-1: device descriptor read/64, error
> > -71 Jan  2 15:41:30 paulo kernel: usb 2-1: device descriptor read/64,
> > error -71 Jan  2 15:41:31 paulo kernel: usb 2-1: new low speed USB device
> > using uhci_hcd and address 13
> >Jan  2 15:41:31 paulo kernel: usb 2-1: device not accepting address 13,
> > error -71
> >Jan  2 15:41:31 paulo kernel: usb 2-1: new low speed USB device using
> > uhci_hcd and address 14
> >Jan  2 15:41:32 paulo kernel: usb 2-1: device not accepting address 14,
> > error -71
> >
> >when they get to syslog.
> >
> >
> >
> >From my experience with USB firmware I can see that to obtain the above
>
> messages it is enough to provide the proper pull-up. I obtained similar
> results when my firmware was absolutely dead ;-).
> If you want to see what's going on on the USB bus, then recompile your
> kernel with debugfs (switch it on in "kernel hacking" section), then
> mount debugfs somewhere (I usually do: "#mkdir /tmp/debug; mount mount
> -t *debugfs* none /tmp/debug"), then insert the "usbmon" module.
> It allows you to monitor the low level USB traffic. More info can be
> found in: "Documentation/usb/usbmon.txt" in your kernel sources and
> here: http://people.redhat.com/zaitcev/linux/OLS05_zaitcev.pdf
> I've found the usbmon to be an essential tool when debugging USB
> firmware without debugging capabilities on my target board...

Whilst waiting for my new kernel to compile, I had a look and found usbmon is 
built in to this fedora kernel, so I've run the above and this is what is 
produced when you plug the device in:

c71555c0 71604466 S Ci:001:00 s a3 00 0000 0002 0004 4 <
c71555c0 71604473 C Ci:001:00 0 4 = 01030100
c71555c0 71604479 S Co:001:00 s 23 01 0010 0002 0000 0
c71555c0 71604484 C Co:001:00 0 0
c71555c0 71604488 S Ci:001:00 s a3 00 0000 0002 0004 4 <
c71555c0 71604493 C Ci:001:00 0 4 = 01030000
c71555c0 71636422 S Ci:001:00 s a3 00 0000 0002 0004 4 <
c71555c0 71636436 C Ci:001:00 0 4 = 01030000
c71555c0 71668417 S Ci:001:00 s a3 00 0000 0002 0004 4 <
c71555c0 71668430 C Ci:001:00 0 4 = 01030000
c71555c0 71700414 S Ci:001:00 s a3 00 0000 0002 0004 4 <
c71555c0 71700427 C Ci:001:00 0 4 = 01030000
c7155340 71732409 S Ci:001:00 s a3 00 0000 0002 0004 4 <
c7155340 71732423 C Ci:001:00 0 4 = 01030000
c7155340 71732447 S Co:001:00 s 23 03 0004 0002 0000 0
c7155340 71732451 C Co:001:00 0 0
c7155340 71788401 S Ci:001:00 s a3 00 0000 0002 0004 4 <
c7155340 71788427 C Ci:001:00 0 4 = 03030000
c7155340 71844393 S Co:001:00 s 23 01 0014 0002 0000 0
c7155340 71844404 C Co:001:00 0 0
c7155340 71844427 S Ci:000:00 s 80 06 0100 0000 0040 64 <
c7155340 71848075 C Ci:000:00 -71 0
c7155340 71848085 S Ci:000:00 s 80 06 0100 0000 0040 64 <
c7155340 71852065 C Ci:000:00 -71 0
c7155340 71852073 S Ci:000:00 s 80 06 0100 0000 0040 64 <
c7155340 71856067 C Ci:000:00 -71 0
c7155340 71856076 S Co:001:00 s 23 03 0004 0002 0000 0
c7155340 71856082 C Co:001:00 0 0
d6da35c0 71856388 C Ii:001:01 0 1 = 04
d6da35c0 71856394 S Ii:001:01 -115 2 = 0400
c7155340 71908387 S Ci:001:00 s a3 00 0000 0002 0004 4 <
c7155340 71908413 C Ci:001:00 0 4 = 03030000
c7155340 71964380 S Co:001:00 s 23 01 0014 0002 0000 0
c7155340 71964391 C Co:001:00 0 0
c71554c0 72068370 S Ci:000:00 s 80 06 0100 0000 0040 64 <
c71554c0 72072191 C Ci:000:00 -71 0
c71554c0 72072200 S Ci:000:00 s 80 06 0100 0000 0040 64 <
c71554c0 72076191 C Ci:000:00 -71 0
c71554c0 72076201 S Ci:000:00 s 80 06 0100 0000 0040 64 <
c71554c0 72080189 C Ci:000:00 -71 0
c71554c0 72080198 S Co:001:00 s 23 03 0004 0002 0000 0
c71554c0 72080204 C Co:001:00 0 0
d6da35c0 72108370 C Ii:001:01 0 1 = 04
d6da35c0 72108380 S Ii:001:01 -115 2 = 0400
c71554c0 72132364 S Ci:001:00 s a3 00 0000 0002 0004 4 <
c71554c0 72132391 C Ci:001:00 0 4 = 03030000
c71554c0 72188356 S Co:001:00 s 23 01 0014 0002 0000 0
c71554c0 72188368 C Co:001:00 0 0
c71554c0 72292344 S Co:001:00 s 23 01 0001 0002 0000 0
c71554c0 72292356 C Co:001:00 0 0
c71554c0 72292381 S Co:001:00 s 23 03 0004 0002 0000 0
c71554c0 72292385 C Co:001:00 0 0
c71554c0 72348337 S Ci:001:00 s a3 00 0000 0002 0004 4 <
c71554c0 72348363 C Ci:001:00 0 4 = 03030000
c71554c0 72404330 S Co:001:00 s 23 01 0014 0002 0000 0
c71554c0 72404340 C Co:001:00 0 0
c71554c0 72404359 S Ci:000:00 s 80 06 0100 0000 0040 64 <
c71554c0 72408375 C Ci:000:00 -71 0
c71554c0 72408395 S Ci:000:00 s 80 06 0100 0000 0040 64 <
c71554c0 72412370 C Ci:000:00 -71 0
c71554c0 72412390 S Ci:000:00 s 80 06 0100 0000 0040 64 <
c71554c0 72416377 C Ci:000:00 -71 0
c71554c0 72416390 S Co:001:00 s 23 03 0004 0002 0000 0
c71554c0 72416397 C Co:001:00 0 0
c71554c0 72472323 S Ci:001:00 s a3 00 0000 0002 0004 4 <
c71554c0 72472350 C Ci:001:00 0 4 = 03030000
c71554c0 72528321 S Co:001:00 s 23 01 0014 0002 0000 0
c71554c0 72528332 C Co:001:00 0 0
c7155340 72632307 S Ci:000:00 s 80 06 0100 0000 0040 64 <
c7155340 72635496 C Ci:000:00 -71 0
c7155340 72635504 S Ci:000:00 s 80 06 0100 0000 0040 64 <
c7155340 72639490 C Ci:000:00 -71 0
c7155340 72639497 S Ci:000:00 s 80 06 0100 0000 0040 64 <
c7155340 72643492 C Ci:000:00 -71 0
c7155340 72643500 S Co:001:00 s 23 03 0004 0002 0000 0
c7155340 72643507 C Co:001:00 0 0
c7155340 72696300 S Ci:001:00 s a3 00 0000 0002 0004 4 <
c7155340 72696326 C Ci:001:00 0 4 = 03030000
c7155340 72752291 S Co:001:00 s 23 01 0014 0002 0000 0
c7155340 72752302 C Co:001:00 0 0
c7155340 72856280 S Co:001:00 s 23 01 0001 0002 0000 0
c7155340 72856292 C Co:001:00 0 0
c7155340 72856313 S Co:001:00 s 23 03 0004 0002 0000 0
c7155340 72856318 C Co:001:00 0 0
d6da35c0 72864277 C Ii:001:01 0 1 = 04
d6da35c0 72864283 S Ii:001:01 -115 2 = 0400
c7155340 72912278 S Ci:001:00 s a3 00 0000 0002 0004 4 <
c7155340 72912304 C Ci:001:00 0 4 = 03030000
c7155340 72968270 S Co:001:00 s 23 01 0014 0002 0000 0
c7155340 72968281 C Co:001:00 0 0
c7155340 72968306 S Co:000:00 s 00 05 000b 0000 0000 0
c7155340 72971681 C Co:000:00 -71 0
c2901a60 73172244 S Co:000:00 s 00 05 000b 0000 0000 0
c2901a60 73175787 C Co:000:00 -71 0
c7155340 73376240 S Co:001:00 s 23 01 0001 0002 0000 0
c7155340 73376250 C Co:001:00 0 0
c7155340 73376270 S Co:001:00 s 23 03 0004 0002 0000 0
c7155340 73376274 C Co:001:00 0 0
c71554c0 73432217 S Ci:001:00 s a3 00 0000 0002 0004 4 <
c71554c0 73432271 C Ci:001:00 0 4 = 03030000
c71554c0 73488211 S Co:001:00 s 23 01 0014 0002 0000 0
c71554c0 73488222 C Co:001:00 0 0
c71554c0 73488243 S Co:000:00 s 00 05 000c 0000 0000 0
c71554c0 73491962 C Co:000:00 -71 0
c71554c0 73692184 S Co:000:00 s 00 05 000c 0000 0000 0
c71554c0 73696069 C Co:000:00 -71 0
c71554c0 73896177 S Co:001:00 s 23 01 0001 0002 0000 0
c71554c0 73896188 C Co:001:00 0 0
c71554c0 73896201 S Co:001:00 s 23 01 0001 0002 0000 0
c71554c0 73896205 C Co:001:00 0 0
c71554c0 73896213 S Ci:001:00 s a3 00 0000 0002 0004 4 <
c71554c0 73896218 C Ci:001:00 0 4 = 01030000

Nothing else is produced for at least 30 seconds

When you unplug the device you get:

d6da35c0 91510157 C Ii:001:01 0 1 = 04
d6da35c0 91510180 S Ii:001:01 -115 2 = 0400
c2901c60 91510193 S Ci:001:00 s a3 00 0000 0002 0004 4 <
c2901c60 91510201 C Ci:001:00 0 4 = 00030300
c2901c60 91510206 S Co:001:00 s 23 01 0010 0002 0000 0
c2901c60 91510210 C Co:001:00 0 0
c2901c60 91510214 S Co:001:00 s 23 01 0011 0002 0000 0
c2901c60 91510218 C Co:001:00 0 0
c2901c60 91510222 S Ci:001:00 s a3 00 0000 0002 0004 4 <
c2901c60 91510226 C Ci:001:00 0 4 = 00030000
c2901c60 91542157 S Ci:001:00 s a3 00 0000 0002 0004 4 <
c2901c60 91542171 C Ci:001:00 0 4 = 00030000
c2901c60 91574154 S Ci:001:00 s a3 00 0000 0002 0004 4 <
c2901c60 91574168 C Ci:001:00 0 4 = 00030000
c2901c60 91606149 S Ci:001:00 s a3 00 0000 0002 0004 4 <
c2901c60 91606162 C Ci:001:00 0 4 = 00030000
c2901c60 91638146 S Ci:001:00 s a3 00 0000 0002 0004 4 <
c2901c60 91638160 C Ci:001:00 0 4 = 00030000

Corresponding dmesg output:

usb 2-2: new low speed USB device using uhci_hcd and address 9
usb 2-2: device descriptor read/64, error -71
usb 2-2: device descriptor read/64, error -71
usb 2-2: new low speed USB device using uhci_hcd and address 10
usb 2-2: device descriptor read/64, error -71
usb 2-2: device descriptor read/64, error -71
usb 2-2: new low speed USB device using uhci_hcd and address 11
usb 2-2: device not accepting address 11, error -71
usb 2-2: new low speed USB device using uhci_hcd and address 12
usb 2-2: device not accepting address 12, error -71

Anyone fluent in usbmon?

Nick

Previous by date: 4 Jan 2006 00:14:37 +0000 Re: [gnupic] Follow-up question to the thread about Ben's port of Brad's Lab2 to gpasm, Nicholas Robinson
Next by date: 4 Jan 2006 00:14:37 +0000 Re: [gnupic] gpsim installation problem, Scott Dattalo
Previous in thread: 4 Jan 2006 00:14:37 +0000 Re: [gnupic] Follow-up question to the thread about Ben's port of Brad's Lab2 to gpasm, Nicholas Robinson
Next in thread: 4 Jan 2006 00:14:37 +0000 Re: [gnupic] Follow-up question to the thread about Ben's port of Brad's Lab2 to gpasm, Chen Xiao Fan


Powered by ezmlm-browse 0.20.