{"id":182,"date":"2008-05-25T22:59:26","date_gmt":"2008-05-25T22:59:26","guid":{"rendered":"http:\/\/www.reactivated.net\/weblog\/?p=182"},"modified":"2008-05-25T23:37:01","modified_gmt":"2008-05-25T23:37:01","slug":"libusb-10-enters-beta","status":"publish","type":"post","link":"https:\/\/www.reactivated.net\/weblog\/archives\/2008\/05\/libusb-10-enters-beta\/","title":{"rendered":"libusb-1.0 enters beta"},"content":{"rendered":"<p>I&#8217;ve been making good progress on <a href=\"http:\/\/libusb.wiki.sourceforge.net\/Libusb1.0\">libusb-1.0<\/a>, which has now entered beta. Features over libusb-0.1 include:<\/p>\n<ol>\n<li>Asynchronous transfer capabilities (in addition to the synchronous style presented by v0.1)<\/li>\n<li>Support for transfers to isochronous endpoints<\/li>\n<li>Significantly faster bulk transfer performance for large transfers (several kilobytes or more)<\/li>\n<li><a href=\"http:\/\/libusb.sourceforge.net\/api-1.0\/\">Detailed API documentation<\/a><\/li>\n<li>Power saving: on systems running recent Linux kernels, libusb-1.0 does not wake up all the USB devices plugged into the system during device enumeration<\/li>\n<li>Greatly reduced CPU usage while waiting for results of bulk\/interrupt transfers (libusb-0.1 was waking up every 1ms)<\/li>\n<li>Thread safety<\/li>\n<\/ol>\n<p><b>Backwards compatibility<\/b><\/p>\n<p>As noted on the homepage, libusb-1.0 is entirely incompatible with libusb-0.1. However, it is designed to install in parallel, in the same way that you can have GTK+ 1.2 and GTK+ 2.x installed on the same system and in use at the same time.<\/p>\n<p>I have also produced a compatibility layer which replaces libusb-0.1. <b>libusb-compat-0.1<\/b> looks and smells exactly the same as libusb-0.1 (same library name, API, header file, etc) but internally it just converts libusb-0.1 calls to libusb-1.0.<\/p>\n<p>This means that existing libusb-0.1 applications can take advantage of some of the new libusb-1.0 hotness mentioned above: improved bulk I\/O performance, decreased CPU usage, power saving. These improvements appear <em>without any modification<\/em> to the original application, provided that the user has uninstalled libusb-0.1, and installed libusb-1.0 plus libusb-compat-0.1.<\/p>\n<p><b>Status<\/b><\/p>\n<p>I&#8217;m hoping this release will result in:<\/p>\n<ul>\n<li>More testing and adoption<\/li>\n<li>API review and feedback<\/li>\n<li>Ports to other operating systems. Only Linux is supported at the moment, but the library is structured internally for other ports to be written, and the internal API is documented in the source.<\/li>\n<\/ul>\n<p>Further API changes may happen as a result of the above. This is not a finished product.<\/p>\n<p><b>Source download<\/b><\/p>\n<ul>\n<li><a href=\"http:\/\/sourceforge.net\/project\/showfiles.php?group_id=1674&#038;package_id=277626&#038;release_id=601956 \">libusb-0.9.0<\/a><\/li>\n<li><a href=\"http:\/\/sourceforge.net\/project\/showfiles.php?group_id=1674&#038;package_id=277627&#038;release_id=601961\">libusb-compat-0.1.0-beta1<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been making good progress on libusb-1.0, which has now entered beta. Features over libusb-0.1 include: Asynchronous transfer capabilities (in addition to the synchronous style presented by v0.1) Support for transfers to isochronous endpoints Significantly faster bulk transfer performance for large transfers (several kilobytes or more) Detailed API documentation Power saving: on systems running recent [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,14],"tags":[],"class_list":["post-182","post","type-post","status-publish","format-standard","hentry","category-gentoo","category-libusb"],"_links":{"self":[{"href":"https:\/\/www.reactivated.net\/weblog\/wp-json\/wp\/v2\/posts\/182","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.reactivated.net\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.reactivated.net\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.reactivated.net\/weblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.reactivated.net\/weblog\/wp-json\/wp\/v2\/comments?post=182"}],"version-history":[{"count":0,"href":"https:\/\/www.reactivated.net\/weblog\/wp-json\/wp\/v2\/posts\/182\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.reactivated.net\/weblog\/wp-json\/wp\/v2\/media?parent=182"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.reactivated.net\/weblog\/wp-json\/wp\/v2\/categories?post=182"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.reactivated.net\/weblog\/wp-json\/wp\/v2\/tags?post=182"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}