<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi!<div><br></div><div>Sadly enough the libusb do not (did not at the time) support plug an play, this must be handled by some </div><div>other type of application. I did solve it for serial usb devices by using fnotify (<a href="http://github.com/Feuerlabs/fnotify">github.com/Feuerlabs/fnotify</a>)</div><div>code found in (<a href="http://github.com/tonyrog/uart/src/uart_devices.erl">github.com/tonyrog/uart/src/uart_devices.erl</a>)</div><div><br></div><div>Please hint to the list (or to me) if you find some nice plug and play api that is multi platform.</div><div>(I have use for it in an other project <a href="http://github.com/tonyrog/hid">github.com/tonyrog/hid</a> )</div><div><br></div><div>Thanks</div><div><br></div><div>/Tony</div><div><br></div><div><div><div>On 28 sep 2013, at 09:48, Benoit Chesneau <<a href="mailto:bchesneau@gmail.com">bchesneau@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hi all,<div><br></div><div>I am looking for a USB library for Erlang that would allow me to detect the insertion of usb devices like any wifi/bt dongles or hard disks. Is there ay more recent lib than this one ?</div>
<div><br></div><div><a href="https://github.com/tonyrog/libusb">https://github.com/tonyrog/libusb</a> <br></div><div><br></div><div><br></div><div>- benoit</div></div>
_______________________________________________<br>erlang-questions mailing list<br><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>http://erlang.org/mailman/listinfo/erlang-questions<br></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 12px; ">"Installing applications can lead to corruption over time. </span><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 12px; ">Applications gradually write over each other's libraries, partial upgrades occur, user and system errors happen, and minute changes may be unnoticeable and difficult to fix"</span></div><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 12px; "><br></span></div></span><br class="Apple-interchange-newline">
</div>
<br></div></body></html>