[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 13:53:44 +0600 |
> That cannot work.
As i said file descriptor is used, file path is used only for message
(agree that's misleading, path is passed to avrdude too).
How can i understand what type of file descriptor is returned since i can't
find explanation in UsbDeviceConnection,getFileDescriptor() description
and it uses native code behind the scene.
> Can i walk around using modified libusb which can work
with file descirptor (
https://github.com/martinmarinov/rtl_tcp_andro-/tree/master/jni/libusb-andro/libusb,
open2() function)?
Can this help?
> You need a serial emulation device. Depending on your operating system,
the pathname for it might look like /dev/ttyS3, /dev/ttyUSB2, /dev/cuau4,
/dev/ttyACM0, /dev/term/whatever — whatever your driver implements.
/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.
2013/6/11 Joerg Wunsch <address@hidden>
> As Anton Smirnov wrote:
>
> > avrdude: ser_setspeed(): tcgetattr() failedavrdude: ser_open(): can't set
> > attributes for device "/dev/bus/usb/002/002": Not a typewriter
>
> That cannot work.
>
> > What is the reason of error?
>
> You need a serial emulation device. Depending on your operating system,
> the pathname for it might look like /dev/ttyS3, /dev/ttyUSB2, /dev/cuau4,
> /dev/ttyACM0, /dev/term/whatever — whatever your driver implements.
>
> /dev/bus/usb devices cannot be used directly for STK500v2.
>
> --
> 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
>
- Re: [avrdude-dev] “Not a typewriter” avrdude error on Android, (continued)
- Re: [avrdude-dev] “Not a typewriter” avrdude error on Android, Joerg Wunsch, 2013/06/10
- Re: [avrdude-dev] “Not a typewriter” avrdude err or on Android, Anton Smirnov, 2013/06/10
- Re: [avrdude-dev] “Not a typewriter” avrdude err or on Android, Anton Smirnov, 2013/06/10
- Re: [avrdude-dev] “Not a typewriter” avrdude error on Android, Joerg Wunsch, 2013/06/10
- Re: [avrdude-dev] “Not a typewriter” avrdude err or on Android, Anton Smirnov, 2013/06/10
- Re: [avrdude-dev] “Not a typewriter” avrdude error on Android, Joerg Wunsch, 2013/06/10
- Re: [avrdude-dev] “Not a typewriter” avrdude err or on Android, Anton Smirnov, 2013/06/10
- Re: [avrdude-dev] “Not a typewriter” avrdude error on Android, Joerg Wunsch, 2013/06/10
- Re: [avrdude-dev] “Not a typewriter” avrdude err or on Android, Anton Smirnov, 2013/06/11
- Re: [avrdude-dev] “Not a typewriter” avrdude error on Android, Joerg Wunsch, 2013/06/11
- Re: [avrdude-dev] “Not a typewriter” avrdude err or on Android,
Anton Smirnov <=
- Re: [avrdude-dev] “Not a typewriter” avrdude error on Android, Joerg Wunsch, 2013/06/11
- Re: [avrdude-dev] “Not a typewriter” avrdude err or on Android, Anton Smirnov, 2013/06/11
- Re: [avrdude-dev] “Not a typewriter” avrdude error on Android, Joerg Wunsch, 2013/06/11
- Re: [avrdude-dev] “Not a typewriter” avrdude err or on Android, Anton Smirnov, 2013/06/11
- Re: [avrdude-dev] “Not a typewriter” avrdude error on Android, Joerg Wunsch, 2013/06/11
- Re: [avrdude-dev] “Not a typewriter” avrdude err or on Android, Anton Smirnov, 2013/06/11
- Re: [avrdude-dev] “Not a typewriter” avrdude error on Android, Joerg Wunsch, 2013/06/11
- Re: [avrdude-dev] “Not a typewriter” avrdude err or on Android, Anton Smirnov, 2013/06/11
- Re: [avrdude-dev] “Not a typewriter” avrdude err or on Android, Anton Smirnov, 2013/06/11
- Re: [avrdude-dev] “Not a typewriter” avrdude err or on Android, Axel Wachtler, 2013/06/11