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 error on Android


From: Joerg Wunsch
Subject: Re: [avrdude-dev] “Not a typewriter” avrdude error on Android
Date: Tue, 11 Jun 2013 10:11:04 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

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. ;-)



reply via email to

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