Commit graph

21 commits

Author SHA1 Message Date
Nicholas Corgan
55fd590f3e usb: better processing of strings from libusb
* When overwriting a string field with a shorter string, libusb doesn't erase extra characters
* Extra processing of this string (already done by load_eeprom) removes extraneous characters
2014-02-14 15:27:39 -08:00
Nicholas Corgan
621f9c93f3 Merge branch 'bug182' 2013-11-19 15:51:45 -08:00
Michael West
e83a941a9f BUG #182: Refactored b2xx_fx3_utils to use files from UHD 2013-11-15 09:50:07 -08:00
Michael West
597e7965a7 BUG #183: B200 High CPU Usage: Created a single thread to handle libusb events and expanded packet size to 16k 2013-11-08 15:30:03 -08:00
Josh Blum
236ac82332 usb: added logging capability w/ env var 2013-07-19 14:05:11 -07:00
Josh Blum
719569ffbb usb: added timeout param and additional queries 2013-07-15 15:57:53 -07:00
Josh Blum
a91849bb2f usb: improve messages/logging for when the usb open fails 2011-10-24 14:42:46 -07:00
Josh Blum
bedd308e60 uhd: some tweaks to fix msvc warnings 2011-07-08 17:55:49 -07:00
Josh Blum
4357f5d3c0 uhd: replaced instanced of std::exception with the uhd exceptions 2011-02-24 16:35:29 -08:00
Josh Blum
16f08844d7 uhd: renamed the assert header to assert has
only the assert has implementation is in this header

uhd assert throw moved to the exception header

updated code base includes to match
2011-02-24 14:54:24 -08:00
Josh Blum
0fc641042e usb: moved event handler thread into the zero copy interface 2010-10-05 15:47:58 -07:00
Josh Blum
348b5b12ad usb: catch open errors and print message, device: catch exceptions at discovery time 2010-10-01 11:54:22 -07:00
Josh Blum
e4fffed05d usb: set rt thread priority for the libusb event loop 2010-09-30 11:32:21 -07:00
Josh Blum
0816925695 usb: zero copy work, multiple endpoints with single context, async io
Heavy work on the zero copy interface and endpoint wrappers to properly use the async io.
The global libusb session starts a thread to run the event handler,
the async callbacks push completed transfers onto a thread-safe bounded buffer.
The managed buffer creation routines use the bounded buffer to efficiently pop off completed transfers.

works on linux, throws a weird exception on cleanup
2010-09-26 20:23:23 -07:00
Josh Blum
dc8bcfde80 usb: work on libusb code to use a single context across all calls
libusb allocation stuff had been moved inside of smart pointer classes to handle automatic cleanup

the public device handle implementation now holds an actual libusb device inside of it

needs testing - all platforms
2010-09-25 21:07:15 -07:00
Josh Blum
1dffd5bb5f usb: tweaks to usb code to cleanup properly and/or in error conditions 2010-09-24 18:14:32 -07:00
Josh Blum
f97c433845 usrp1: fixes to remove warnings and errors for usrp1 + libusb windows 2010-09-23 18:07:31 -07:00
Nick Foster
b96088b692 EEPROM burning in UHD. Changed some USB device handle stuff. Added usrp_init_eeprom.cpp. Hacked up the firmware makefile to behave and to generate .bin EEPROM images instead of IHX. 2010-08-31 16:44:30 -07:00
Thomas Tsou
ad55e25aeb usrp1: Additional comments on libusb transport implemenation 2010-08-28 00:18:46 -07:00
Thomas Tsou
b6099569e3 usrp1: Cleanup libusb device handling
This patch limits all libusb device enumeration operations to FSF
(Vendor ID = 0xfffe) devices, which removes a lot of unncessary
libusb output when debug mode is enabled. The reference counts
held by the libusb device list are also reduced, which prevents
holding references to unused devices.
2010-08-27 14:59:12 -07:00
Thomas Tsou
fe7df530e6 usrp1: Modifiy USB transport implementations to use new interface
Common libusb1 code is consolidated in the libusb base file.
2010-08-26 12:21:50 -07:00