Sure, i know that there are different kinds of Arduino boards:
Arduino Uno implements CDC and Arduino Nano f.e. uses FTDI-chips.

I know how to detect it's kind and i can pass the type to avrdude.
So we can think the detection is not the problem.

I've been thinking that android os does it internally. If it's not we can
use libftdi or smth.

Anyway i'd like to go the simplest way for now just to check it can work
(and i have both CDC and FTDI boards to test)

The main problem now i think is to understand what is this file descriptor
nature since"standard " posix impl can't work with it.
Then we will be able to understand how can it be used with avrdude and do i
have to create another serial impl specially.



2013/6/11 Joerg Wunsch <[email protected]>

> As Anton Smirnov wrote:
>
> > > 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.
>
> There's no uniform handling for this.  If the backend implements a CDC
> (communication device class, likely the case for those Arduino
> platforms that use an ATmega16U2), the handling is fairly different
> than e.g. a backend that connects to an AVR through an FT232 or FT245
> USB/serial(/parallel) interface chip.
> --
> 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
>
_______________________________________________
avrdude-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/avrdude-dev

Reply via email to