avrdude-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avrdude-dev] “Not a typewriter” avrdude err or on Android


From: Anton Smirnov
Subject: Re: [avrdude-dev] “Not a typewriter” avrdude err or on Android
Date: Tue, 11 Jun 2013 15:21:51 +0600

2013/6/11 Joerg Wunsch <address@hidden>

> 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
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/avrdude-dev
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]