Dobrý den,
prisily mi Gadgets a nedari se mi stabilne pripojit k donglu:
Na USB1 portu jsem mel pripojeny 500GB USB disk a na
USB2 portu ctyz portovi USB hub a v nem cidlo DS18B20 pres USB2Serial prevodnik Prolific - vse funkcni
Pro zjednoduseni jsem vse odpojil a rebootoval Turrise.
pak nainstaloval
opkg install kmod-usb-serial-ftdi
a vetknul dongl do portu USB1:
error v dmes:
[ 5753.271300] usb 1-1.1: new full-speed USB device number 13 using fsl-ehci
[ 5753.367303] usb 1-1.1: device descriptor read/64, error -32
[ 5753.547569] usb 1-1.1: device descriptor read/64, error -32
[ 5753.727573] usb 1-1.1: new full-speed USB device number 14 using fsl-ehci
[ 5753.819325] usb 1-1.1: device descriptor read/64, error -32
[ 5753.999590] usb 1-1.1: device descriptor read/64, error -32
[ 5754.179352] usb 1-1.1: new full-speed USB device number 15 using fsl-ehci
[ 5754.607112] usb 1-1.1: device not accepting address 15, error -32
[ 5754.703379] usb 1-1.1: new full-speed USB device number 16 using fsl-ehci
[ 5755.127137] usb 1-1.1: device not accepting address 16, error -32
[ 5755.140956] hub 1-1:1.0: unable to enumerate USB device on port 1
ttyUSBx se nevytvori
Pokud dongl vetknu do USB2:
[ 80.223164] usb 1-1.2: new full-speed USB device number 3 using fsl-ehci
[ 80.333600] ftdi_sio 1-1.2:1.0: FTDI USB Serial Device converter detected
[ 80.342577] usb 1-1.2: Detected FT-X
[ 80.346244] usb 1-1.2: Number of endpoints 2
[ 80.350605] usb 1-1.2: Endpoint 1 MaxPacketSize 16384
[ 80.355685] usb 1-1.2: Endpoint 2 MaxPacketSize 16384
[ 80.360778] usb 1-1.2: Setting MaxPacketSize 64
[ 80.367553] usb 1-1.2: FTDI USB Serial Device converter now attached to ttyUSB0
to vypada dobre, ale ne na dlouho...
asrtep27t /gatgets/gadgets_demo # python gadget_command.py "WHO AM I?"
SENDING: WHO AM I?
REPLY: TURRIS DONGLE V1.4
po cca jednotkach min mi dmesg zhlti storm zprav:
[ 281.192712] ftdi_sio ttyUSB0: requested CSIZE setting not supported
[ 281.204467] ftdi_sio ttyUSB0: requested CSIZE setting not supported
[ 281.216358] ftdi_sio ttyUSB0: requested CSIZE setting not supported
[ 281.228214] ftdi_sio ttyUSB0: requested CSIZE setting not supported
[ 281.240089] ftdi_sio ttyUSB0: requested CSIZE setting not supported
[ 281.252089] ftdi_sio ttyUSB0: requested CSIZE setting not supported
[ 281.264088] ftdi_sio ttyUSB0: requested CSIZE setting not supported
[ 281.276090] ftdi_sio ttyUSB0: requested CSIZE setting not supported
[ 281.287969] ftdi_sio ttyUSB0: requested CSIZE setting not supported
z modulem uz nelze komunikovat napr:
asrtep27t /gatgets/gadgets_demo # python gadget_command.py "GET SLOT:00"
SENDING: GET SLOT:00
REPLY: None
asrtep27t /gatgets/gadgets_demo # python gadget_command.py "GET SLOT:01"
SENDING: GET SLOT:01
REPLY: None
Odpojení a pripojeni donglu nepomuze.
Pro obnoveni komunikace musim restartovat turris s odpojenym donglen a pripojit ho za chodu.
znovu pripojen dongl
[ 160.356790] usb 1-1.2.2: new full-speed USB device number 4 using fsl-ehci
[ 160.480069] ftdi_sio 1-1.2.2:1.0: FTDI USB Serial Device converter detected
[ 160.490078] usb 1-1.2.2: Detected FT-X
[ 160.493903] usb 1-1.2.2: Number of endpoints 2
[ 160.498362] usb 1-1.2.2: Endpoint 1 MaxPacketSize 16384
[ 160.503616] usb 1-1.2.2: Endpoint 2 MaxPacketSize 16384
[ 160.508879] usb 1-1.2.2: Setting MaxPacketSize 64
[ 160.518535] usb 1-1.2.2: FTDI USB Serial Device converter now attached to ttyUSB0
[ 160.537569] ftdi_sio ttyUSB0: requested CSIZE setting not supported
[ 160.550562] ftdi_sio ttyUSB0: requested CSIZE setting not supported
[ 160.563704] ftdi_sio ttyUSB0: requested CSIZE setting not supported
[ 160.582454] ftdi_sio ttyUSB0: requested CSIZE setting not supported
[ 160.613190] ftdi_sio ttyUSB0: requested CSIZE setting not supported
[ 160.627430] ftdi_sio ttyUSB0: requested CSIZE setting not supported
[ 160.639929] ftdi_sio ttyUSB0: requested CSIZE setting not supported
[ 160.652553] ftdi_sio ttyUSB0: requested CSIZE setting not supported
Overil jsem si ze se jedna o problém v routeru Turris - Gadgets:Dongl je plne funkcni, ověreno s jinymi zažízeními.
K erroru v dmesg jsem vygooglil toto:
http://patchwork.ozlabs.org/patch/306740/Patchwork [3.8.y.z,extended,stable] Patch "USB: ftdi_sio: fixed handling of unsupported CSIZE setting" has been added to staging queue
ale nedokazu posoudit zda je patch v turris repository aplikovany ci nikoli …
Dovolil jsem si dotaz prelogovat do oddílu "Technická podpora" protože si myslim ze sem patri.
Do re-flashe routeru se mi zatim moc nechce, prece jen mam imlementovano dost rozsireni.
Třeba mi někdo poradíte …
s pozdravem
Petr