2013/6/11 Joerg Wunsch <j...@uriah.heep.sax.de> > As Anton Smirnov wrote: > > > > 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. > > > Okay, so now the question is what is this file descriptor and how > > can it be used in native code. Even Android seems to be not > > documented enough.. > > You'd end up in reimplementing (parts of) a serial device emulation > in AVRDUDE. I don't think this is a useful approach. >
Okay, i've been thinking about it, but it seems to be pretty difficult for me. I'd like to use modified libusb since it already works with file descriptor from android. > > It's completely independent of whether you're using STK500v1 or > STK500v2: both want to set a baudrate initially. > > Of course, you can try skipping all the baudrate stuff in AVRDUDE > if you believe it's not necessary, and go ahead using read() and > write() calls on that descriptor. If the descriptor belongs to > a plain USB device, I doubt that will work though. > Agree, the problem is that i can't figure out what does that file descriptor mean according to android sources. > -- > cheers, Joerg .-.-. --... ...-- -.. . DL8DTL > > http://www.sax.de/~joerg/ > Never trust an operating system you don't have sources for. ;-) > > _______________________________________________ > avrdude-dev mailing list > avrdude-dev@nongnu.org > https://lists.nongnu.org/mailman/listinfo/avrdude-dev > _______________________________________________ avrdude-dev mailing list avrdude-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/avrdude-dev