Hi,

I'm running my read call in a separate thread, is this likely to cause
problems doing this? As currently it keeps failing to read the USB despite
there being data for it to read. The code works when I run it in the same
thread as the main application on its own, however now using Process from
the multiprocessing module it fails to read.

Attached is some of the output with libusb at DEBUG for the log level.

It was working before I put the whole thing in a background process.

What could be going wrong?

Kind Regards,

Dean Chester
libusb: 0.000000 info [event_thread_main] creating hotplug event source
libusb: 0.000130 info [event_thread_main] thread ready to receive events
libusb: 0.001014 info [process_new_device] allocating new device for location 
0xfd000000
libusb: 0.001052 info [darwin_check_configuration] active config: 1, first 
config: 1
libusb: 0.001061 info [process_new_device] found device with address 1 at 
001-05ac-8006-09-00
libusb: 0.001431 info [process_new_device] allocating new device for location 
0xfa000000
libusb: 0.001482 info [darwin_check_configuration] active config: 1, first 
config: 1
libusb: 0.001491 info [process_new_device] found device with address 1 at 
001-05ac-8006-09-00
libusb: 0.001801 info [process_new_device] allocating new device for location 
0xfd100000
libusb: 0.001995 info [darwin_check_configuration] active config: 1, first 
config: 1
libusb: 0.002005 info [process_new_device] found device with address 2 at 
002-0424-2513-09-00
libusb: 0.002326 info [process_new_device] allocating new device for location 
0xfa100000
libusb: 0.002491 info [darwin_check_configuration] active config: 1, first 
config: 1
libusb: 0.002501 info [process_new_device] found device with address 2 at 
002-0424-2513-09-00
libusb: 0.002779 info [process_new_device] allocating new device for location 
0xfa110000
libusb: 0.190338 info [process_new_device] allocating new device for location 
0xfa130000
libusb: 0.190729 info [darwin_check_configuration] active config: 1, first 
config: 1
libusb: 0.190740 info [process_new_device] found device with address 7 at 
007-05ac-1006-09-00
libusb: 0.191074 info [process_new_device] allocating new device for location 
0xfa200000
libusb: 0.338605 info [darwin_check_configuration] active config: 1, first 
config: 1
libusb: 0.338659 info [process_new_device] found device with address 3 at 
003-05ac-8509-ef-02
libusb: 0.339406 info [process_new_device] allocating new device for location 
0xfd110000
libusb: 0.486419 info [darwin_check_configuration] active config: 1, first 
config: 1
libusb: 0.486478 info [process_new_device] found device with address 3 at 
003-05ac-8242-00-00
libusb: 0.487315 info [process_new_device] allocating new device for location 
0xfa120000
libusb: 0.634805 info [darwin_check_configuration] active config: 1, first 
config: 1
libusb: 0.634832 info [process_new_device] found device with address 4 at 
004-05ac-0246-00-00
libusb: 0.635228 info [process_new_device] allocating new device for location 
0xfa113000
libusb: 0.822250 warning [darwin_cache_device_descriptor] could not retrieve 
device descriptor 05ac:821a: device not responding. skipping device
libusb: 0.822762 info [process_new_device] allocating new device for location 
0xfa132000
libusb: 0.823781 info [darwin_check_configuration] active config: 1, first 
config: 1
libusb: 0.823793 info [process_new_device] found device with address 8 at 
008-05ac-0221-00-00
libusb: 0.824075 info [process_new_device] allocating new device for location 
0xfa131000
libusb: 0.825003 info [darwin_check_configuration] active config: 1, first 
config: 1
libusb: 0.825035 info [process_new_device] found device with address 9 at 
009-045e-0039-00-00
libusb: 0.825424 info [process_new_device] allocating new device for location 
0xfd120000
libusb: 0.825693 info [darwin_check_configuration] active config: 0, first 
config: 1
libusb: 0.825705 info [process_new_device] found device with address 4 at 
004-16c0-0762-ff-ff
libusb: 4.532272 info [process_new_device] allocating new device for location 
0xfd000000
libusb: 4.532314 info [darwin_check_configuration] active config: 1, first 
config: 1
libusb: 4.532320 info [process_new_device] found device with address 1 at 
001-05ac-8006-09-00
libusb: 4.532629 info [process_new_device] allocating new device for location 
0xfa000000
libusb: 4.532659 info [darwin_check_configuration] active config: 1, first 
config: 1
libusb: 4.532664 info [process_new_device] found device with address 1 at 
001-05ac-8006-09-00
libusb: 4.532925 info [process_new_device] allocating new device for location 
0xfd100000
libusb: 4.533145 info [darwin_check_configuration] active config: 1, first 
config: 1
libusb: 4.533155 info [process_new_device] found device with address 2 at 
002-0424-2513-09-00
libusb: 4.533434 info [process_new_device] allocating new device for location 
0xfa100000
libusb: 4.533605 info [darwin_check_configuration] active config: 1, first 
config: 1
libusb: 4.533611 info [process_new_device] found device with address 2 at 
002-0424-2513-09-00
libusb: 4.533867 info [process_new_device] allocating new device for location 
0xfa110000
libusb: 4.720808 info [process_new_device] allocating new device for location 
0xfa130000
libusb: 4.721100 info [darwin_check_configuration] active config: 1, first 
config: 1
libusb: 4.721120 info [process_new_device] found device with address 7 at 
007-05ac-1006-09-00
libusb: 4.721688 info [process_new_device] allocating new device for location 
0xfa200000
libusb: 4.870799 info [darwin_check_configuration] active config: 1, first 
config: 1
libusb: 4.870819 info [process_new_device] found device with address 3 at 
003-05ac-8509-ef-02
libusb: 4.871224 info [process_new_device] allocating new device for location 
0xfd110000
libusb: 5.018560 info [darwin_check_configuration] active config: 1, first 
config: 1
libusb: 5.018584 info [process_new_device] found device with address 3 at 
003-05ac-8242-00-00
libusb: 5.019096 info [process_new_device] allocating new device for location 
0xfa120000
libusb: 5.165552 info [darwin_check_configuration] active config: 1, first 
config: 1
libusb: 5.165571 info [process_new_device] found device with address 4 at 
004-05ac-0246-00-00
libusb: 5.165982 info [process_new_device] allocating new device for location 
0xfa113000
libusb: 5.353298 warning [darwin_cache_device_descriptor] could not retrieve 
device descriptor 05ac:821a: device not responding. skipping device
libusb: 5.354385 info [process_new_device] allocating new device for location 
0xfa132000
libusb: 5.355729 info [darwin_check_configuration] active config: 1, first 
config: 1
libusb: 5.355770 info [process_new_device] found device with address 8 at 
008-05ac-0221-00-00
libusb: 5.356638 info [process_new_device] allocating new device for location 
0xfa131000
libusb: 5.357739 info [darwin_check_configuration] active config: 1, first 
config: 1
libusb: 5.357765 info [process_new_device] found device with address 9 at 
009-045e-0039-00-00
libusb: 5.358508 info [process_new_device] allocating new device for location 
0xfd120000
libusb: 5.358934 info [darwin_check_configuration] active config: 0, first 
config: 1
libusb: 5.358955 info [process_new_device] found device with address 4 at 
004-16c0-0762-ff-ff
libusb: 5.362364 info [darwin_open] device open for access
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to