As Anton Smirnov wrote:

> /dev/bus/usb devices cannot be used directly for STK500v2.
> 
> All this relates to Android. I'm not using file path (see above), but file
> descriptor passed from android app.

But how is that file descriptor obtained, i.e. which pathname has
been provided to open() initially?

You write about libusb: no, sorry, that's not the way to go for
STK500v2.  It *requires* a plain old serial port, be it physical
(RS-232), or virtual (emulated by a driver).  Just opening an USB
device simply doesn't work.  (It would work for other programmer
types, like JTAGICEmkII, AVRISPmkII etc.)

Only the underlying driver knows how to e.g. talk to the serial
emulation device at the other end of the USB in order to adjust
baudrates, control signals etc.
-- 
cheers, Joerg               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/
Never trust an operating system you don't have sources for. ;-)

_______________________________________________
avrdude-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/avrdude-dev

Reply via email to