{"id":51,"date":"2008-01-13T21:27:17","date_gmt":"2008-01-13T20:27:17","guid":{"rendered":"http:\/\/www.martyndavis.com\/?p=51"},"modified":"2008-01-13T21:28:41","modified_gmt":"2008-01-13T20:28:41","slug":"usb_set_configuration-failed","status":"publish","type":"post","link":"https:\/\/www.martyndavis.com\/?p=51","title":{"rendered":"usb_set_configuration failed"},"content":{"rendered":"<p>If you&#8217;ve been trying to transfer a GPX file to your GPS unit from a Linux machine, using GPSBabel, and have seen this message:<br \/>\n<meta content=\"Kate, the KDE Advanced Text Editor\" name=\"Generator\" \/><\/p>\n<pre><strong>$> gpsbabel -r -i gpx -f FOO.gpx -o garmin -F usb: <\/strong>\r\nusb_set_configuration failed, probably\r\nbecause kernel driver 'garmin_gps' is\r\nblocking our access to the USB device.<\/pre>\n<p>&#8230;then don&#8217;t despair.  Help is here.<!--more--><\/p>\n<p>This error occurs because gpsbabel doesn&#8217;t use the kernel module <strong>garmin_gps<\/strong>, and that module gets in the way of other applications writing to the GPS device.  The simple solution is to unload the blocking module thus:<\/p>\n<pre>sudo rmmod garmin_gps<\/pre>\n<p>which will then allow you to repeat the original command without problems.  Note that removing the kernel module is temporary: without more jiggery pokery it will come back when next you reboot.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;ve been trying to transfer a GPX file to your GPS unit from a Linux machine, using GPSBabel, and have seen this message: $> gpsbabel -r -i gpx -f FOO.gpx -o garmin -F usb: usb_set_configuration failed, probably because kernel driver &#8216;garmin_gps&#8217; is blocking our access to the USB device. &#8230;then don&#8217;t despair. Help is &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.martyndavis.com\/?p=51\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;usb_set_configuration failed&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,2,3],"tags":[],"_links":{"self":[{"href":"https:\/\/www.martyndavis.com\/index.php?rest_route=\/wp\/v2\/posts\/51"}],"collection":[{"href":"https:\/\/www.martyndavis.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.martyndavis.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.martyndavis.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.martyndavis.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=51"}],"version-history":[{"count":0,"href":"https:\/\/www.martyndavis.com\/index.php?rest_route=\/wp\/v2\/posts\/51\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.martyndavis.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=51"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.martyndavis.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=51"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.martyndavis.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=51"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}