Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Probleme mit ftdi-sio
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum
View previous topic :: View next topic  
Author Message
pummel
n00b
n00b


Joined: 18 Jul 2006
Posts: 11

PostPosted: Mon Dec 22, 2014 5:09 pm    Post subject: Probleme mit ftdi-sio Reply with quote

Hallo,

ich möchte einen Arduino Nano von einem Thinkpad T420 aus programmieren. Das geht via usbserial. Aber wohl leider nicht unter Gentoo :-(
(Kernel: 3.16.5-gentoon und ftdi & co als Modul gebaut, 64bit)


Das hier passiert:

* Arduino angesteckt:
[ 184.188033] usb 2-1.1: new full-speed USB device number 4 using ehci-pci
[ 184.274623] usb 2-1.1: New USB device found, idVendor=1a86, idProduct=7523
[ 184.274636] usb 2-1.1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 184.274643] usb 2-1.1: Product: USB2.0-Serial
=> OK

* modprobe ftdi-sio:
[ 245.363725] usbcore: registered new interface driver usbserial
[ 245.363785] usbcore: registered new interface driver usbserial_generic
[ 245.363839] usbserial: USB Serial support registered for generic
[ 245.366834] usbcore: registered new interface driver ftdi_sio
[ 245.366872] usbserial: USB Serial support registered for FTDI USB Serial Device
=> OK

* erkennt das Gerät nicht selber; Nachhelfen:
* echo 1a86 7523 > /sys/bus/usb-serial/drivers/ftdi_sio/new_id
[ 259.876146] ftdi_sio 2-1.1:1.0: FTDI USB Serial Device converter detected
[ 259.876300] usb 2-1.1: Detected FT8U232AM
[ 259.876310] usb 2-1.1: Number of endpoints 3
[ 259.876319] usb 2-1.1: Endpoint 1 MaxPacketSize 32
[ 259.876328] usb 2-1.1: Endpoint 2 MaxPacketSize 32
[ 259.876336] usb 2-1.1: Endpoint 3 MaxPacketSize 8
[ 259.876344] usb 2-1.1: Setting MaxPacketSize 8
[ 259.876531] ftdi_sio ttyUSB0: Unable to read latency timer: -32
[ 259.876906] ftdi_sio ttyUSB0: Unable to write latency timer: -32
[ 259.877099] usb 2-1.1: FTDI USB Serial Device converter now attached to ttyUSB0
=> OK

* via"arduino" -IDE (letzte Beta 1.5.8 als fertiges Paket gezogen)
* Board: Arduini Nano, Programmer: avrisp mkII, Port: /dev/ttyUSB0
* irgendein Beispielprogramm laden:
[ 324.258430] ftdi_sio ttyUSB0: ftdi_set_termios FAILED to set databits/stopbits/parity
[ 324.258769] ftdi_sio ttyUSB0: ftdi_set_termios urb failed to set baudrate
[ 324.259146] ftdi_sio ttyUSB0: urb failed to clear flow control
[ 324.259891] ftdi_sio ttyUSB0: ftdi_set_termios urb failed to set baudrate
[ 324.260278] ftdi_sio ttyUSB0: urb failed to clear flow control
[ 324.260645] ftdi_sio ttyUSB0: failed to get modem status: -32
[ 324.511185] ftdi_sio ttyUSB0: failed to get modem status: -32
[...]
=> NICHT OK

Der Upload läuft ins Leere. avrdude sagt lapidar:
...
ioctl("TIOCMGET"): Input/output error
ioctl("TIOCMGET"): Input/output error
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
...

Das ganze in einem Ubuntu 12.04 klappt auf Anhieb - Hardware ist also OK

Was sagt mit das ganze ftdi_sio - Zeugs? was kann ich wo beeinflussen? Google habe ich schon rauf und runter, da ist nichts für mich verwertbares dabei.
Hat wer Erfahrungen damit und kann mir helfen?
Back to top
View user's profile Send private message
pummel
n00b
n00b


Joined: 18 Jul 2006
Posts: 11

PostPosted: Thu Dec 25, 2014 6:20 pm    Post subject: Reply with quote

Der Zauber ist, daß der im Arduino Nano verbaute usb-serial-Konverter ein "CH341" ist. Dieser hat einen eigenen Treiber "ch341". Der von mir im Auge gehaltenen "ftdi_sio" war einfach der Falsche!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum