 FrV
		
			FrV
		
		
		
		
		
		
		
		
	
			02-19-2010 02:51 AM
Hi,
I'm using a NI USB-9162 module on an Intel MB under linux 2.6.26. Sometimes, after a hot reboot, the device does not enumerate anymore on the USB bus.
Cold boot kernel messages for usb 4-4:
[    3.512009] usb 4-4: new high speed USB device using ehci_hcd and address 4
[    3.644455] usb 4-4: configuration #1 chosen from 1 choice
[    3.644602] usb 4-4: New USB device found, idVendor=3923, idProduct=719a
[    3.644606] usb 4-4: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[   28.319929] usb 4-4: USB disconnect, address 4
[   30.080031] usb 4-4: new high speed USB device using ehci_hcd and address 6
[   30.220022] usb 4-4: configuration #1 chosen from 1 choice
[   30.223434] usb 4-4: New USB device found, idVendor=3923, idProduct=70a8
[   30.223442] usb 4-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   30.223446] usb 4-4: Product: NI USB-9233
[   30.223449] usb 4-4: Manufacturer: National Instruments
[   30.223452] usb 4-4: SerialNumber: 013764F0
Hot reboot kernel messages for usb4-4:
[    3.492003] usb 4-4: new high speed USB device using ehci_hcd and address 4
[   18.628016] usb 4-4: device descriptor read/64, error -110
[   33.844038] usb 4-4: device descriptor read/64, error -110
[   34.060038] usb 4-4: new high speed USB device using ehci_hcd and address 5
[   49.172013] usb 4-4: device descriptor read/64, error -110
[   64.388010] usb 4-4: device descriptor read/64, error -110
[   64.604009] usb 4-4: new high speed USB device using ehci_hcd and address 6
[   69.624119] usb 4-4: device descriptor read/8, error -110
[   74.744117] usb 4-4: device descriptor read/8, error -110
[   74.960009] usb 4-4: new high speed USB device using ehci_hcd and address 7
[   79.980097] usb 4-4: device descriptor read/8, error -110
[   85.100098] usb 4-4: device descriptor read/8, error -110
I would think this is a bug in the NI USB-9162 module? Anything I can do about it?
Regards,
FrV
 JoeFriedchicken
		
			JoeFriedchicken
		
		
		
		
		
		
		
		
	
			02-19-2010 01:34 PM
Hi FrV,
Which Linux distribution are you using? How often does a warm boot lead to this error: every other reboot/every third reboot/5% of the time? I've been able to reboot 5 times in a row with openSuSE 10.3 without my 9162 showing your problem, which isn't a very thorough test, so I'd like to know how frequently you see it.
Joe
Joe Friedchicken
NI Configuration Based Software Get with your fellow OS users 
[ Linux ] [ macOS ]Principal Software Engineer :: Configuration Based Software 
Senior Software Engineer :: Multifunction Instruments Applications Group (until May 2018)
Software Engineer :: Measurements RLP Group (until Mar 2014)
Applications Engineer :: High Speed Product Group (until Sep 2008)
02-22-2010 02:48 AM
Hi Joe,
The kernel is Linux version 2.6.26-1-686 (Debian 2.6.26-13lenny2) (dannf@debian.org) (gcc version 4.1.3 20080704 (prerelease) (Debian 4.1.2-25)) #1 SMP Fri Mar 13 18:08:45 UTC 2009
I have not counted exactly, but it's probably around 10% of reboots.
In your testing, you were also doings measurements at time of reboot? I think it's the NI USB-9162 being at a specific state at the moment of reboot which causes it to not enumerate on the USB bus anymore.
Regards,
FrV
 JoeFriedchicken
		
			JoeFriedchicken
		
		
		
		
		
		
		
		
	
			
			
    
	
		
		
		02-22-2010
	
		
		08:26 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 - last edited on 
    
	
		
		
		07-16-2024
	
		
		01:18 PM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 by 
				
		 Content Cleaner
		
			Content Cleaner
		
		
		
		
		
		
		
		
	
			
		
I'm reluctant to continue testing since you're using a Linux distribution we don't test in our release cycle. If you can recreate the problem in one of DAQmx Base's offical Linux distros [1], then I'll have more confidence looking for problems. Perhaps someone else in the community has also noticed this behavior, but hasn't mentioned it yet.
Why is your USB-9233 taking measurements when you decide to reboot - is there a reason you can't stop and clear the task before rebooting?
Joe
[1] NI-DAQmx Base 3.3 for Linux readme
https://download.ni.com/support/softlib/multifunction_daq/nidaqmxbase/3.3/Linux/readme.txt
Joe Friedchicken
NI Configuration Based Software Get with your fellow OS users 
[ Linux ] [ macOS ]Principal Software Engineer :: Configuration Based Software 
Senior Software Engineer :: Multifunction Instruments Applications Group (until May 2018)
Software Engineer :: Measurements RLP Group (until Mar 2014)
Applications Engineer :: High Speed Product Group (until Sep 2008)
02-23-2010 03:05 AM
Hi Joe,
Thanks for your help,
FrV