Hi,
I mentioned previously that I switched to RHEL5 (kernel 2.6.18-53.1.4) to use the debuging feature of the newer kernel to monitor an usb traffic.
This feature is activated by mounting a special file system:
# mount -f debugfs none_debugs /sys/kernel/debug and then dumping the output from a device
# cat /sys/kernel/debug/usbmon/Xt > usbmon_dump.txt The problem is still there.
Since NIvisaic never works this time I used my simple
C-program I mentioned earlier. This time it made only 3 write/read sequencies (n = 3), not 2000.
The dump file corresponds to the following sequence of events:
1) unplugging the scope at non-working state (no communication is possible)
2) plugging it again
3) running the C-program which runs successfully at this point showing
j=0 Data read: TEKTRONIX, TDS 2024B,C031476,CF;91.1CT FV:v22.01
j=1 Data read: TEKTRONIX, TDS 2024B,C031476,CF;91.1CT FV:v22.01
j=2 Data read: TEKTRONIX, TDS 2024B,C031476,CF;91.1CT FV:v22.01
4) running the C-program for the second time (now it fails)
for your convinience I put my comments in the file starting with "-----------" separating the parts (1)-(4).
The format of the dump is described in
/usr/src/linux/Documentation/usb/usbmon.txt
or
/usr/share/doc/kernel-doc-2.6.*/Documentation/usb/usbmon.txt
or you can look at it
here (see "Raw text data format" section).