Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You could always just use libusb to talk to your device (e.g., an AVR w/ V-USB or another microcontroller with actual USB support) from user space, instead of fooling around with fake COM ports.


That's probably what I should do. I bought a book on usb and started learning a bit about the protocol. Are there any good Libusb projects that would be a good example? Most I was were for using libusb to talk to an existing device class. I'd like a sample that contains both device and host?


Take a look at how avrdude works over libusb. That's a pretty good example of bulk-upload and bulk-download and various types of things you're likely to want to do with a microcontroller.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: