Re: please can you add my device ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

just a remark, in the dmesg result, there is no lines likes :
usb 1-1.3: Endpoint 1 MaxPacketSize 64
usb 1-1.3: Endpoint 2 MaxPacketSize 64
usb 1-1.3: Setting MaxPacketSize 64

Is this normal ?

Thanks

Le 15/02/2015 11:10, faivre.laurent@xxxxxxxxxxx a écrit :
Thanks for your reply.

If I use directly the ftdi_sio driver, I can't read anything.
some details :
$ dmesg
     usb 1-1.3: new full-speed USB device number 4 using dwc_otg
     usb 1-1.3: New USB device found, idVendor=0403, idProduct=6001
     usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
     usb 1-1.3: Product: FT232R USB UART
     usb 1-1.3: Manufacturer: FTDI
     usb 1-1.3: SerialNumber: AD02DY77
     usbcore: registered new interface driver usbserial
     usbcore: registered new interface driver usbserial_generic
     usbserial: USB Serial support registered for generic
     usbcore: registered new interface driver ftdi_sio
     usbserial: USB Serial support registered for FTDI USB Serial Device
     ftdi_sio 1-1.3:1.0: FTDI USB Serial Device converter detected
     usb 1-1.3: Detected FT232RL
     usb 1-1.3: FTDI USB Serial Device converter now attached to ttyUSB0


$stty -F /dev/ttyUSB0 ispeed 1200 ospeed 1200 cs7 -cstopb clocal cread
parenb -parodd inpck istrip -crtscts -icanon -echo -echoe -isig -ixon
-ixoff -ixany -icrnl -opost

$stty -F /dev/ttyUSB0 -a
speed 1200 baud; rows 0; columns 0; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt
= ^R; werase = ^W; lnext = ^V; flush = ^O;
min = 1; time = 0;
parenb -parodd cs7 hupcl -cstopb cread clocal -crtscts
-ignbrk -brkint -ignpar -parmrk inpck istrip -inlcr -igncr -icrnl -ixon
-ixoff -iuclc -ixany -imaxbel -iutf8
-opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0
vt0 ff0
-isig -icanon iexten -echo -echoe echok -echonl -noflsh -xcase -tostop
-echoprt echoctl echoke

 >Settings are OK

$ cat /dev/ttyUSB0
Nothing appears !







If I add this device id "by hand", I can't set the parameters, but I can
read something (not usable unfortunately)
some details :
$ dmesg : result in previous mail

$ stty -F /dev/ttyUSB0 ispeed 1200 ospeed 1200 cs7 -cstopb clocal cread
parenb -parodd inpck istrip -crtscts -icanon -echo -echoe -isig -ixon
-ixoff -ixany -icrnl -opost
stty: /dev/ttyUSB0 : impossible d'effectuer toutes les opérations demandées
 >(unable to perform all requested operations)

$ stty -F /dev/ttyUSB0 -a
speed 9600 baud; rows 0; columns 0; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt
= ^R; werase = ^W; lnext = ^V;
flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 hupcl -cstopb cread clocal -crtscts
-ignbrk -brkint -ignpar -parmrk inpck istrip -inlcr -igncr -icrnl -ixon
-ixoff -iuclc -ixany -imaxbel -iutf8
-opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0
vt0 ff0
-isig -icanon iexten -echo -echoe echok -echonl -noflsh -xcase -tostop
-echoprt echoctl echoke

BUT :
$ cat /dev/ttyUSB0
bbb@bp``pp```ppp```````````````@pp`p```pp```p````@`ppp`p``p`p`p````ppppp``pp````pp`````p```p``p```pp```

 >continually. It's the data that I want but read at 9600 cs8 -parenb
instead of 1200 cs7 parenb

Since this device is already supported by the driver, I will resume my
tests using the ftdi_sio driver directly.

If you have any solutions, I would be interested


Thanks

Le 14/02/2015 20:03, Greg KH a écrit :
On Sat, Feb 14, 2015 at 07:26:20PM +0100, faivre.laurent@xxxxxxxxxxx
wrote:
Hi !

I try to use a usb-serial converter and i can't set the baud rate
(and other
stuff) on the ttyUSB0.

The converter can be see on this page (Version USB : 20.00 €) :
http://www.domotibox.com/solarbox/?section=Boutique

There is some data from my system (raspberry pi b+, raspbian) :

$ uname -a
Linux domo-1 3.18.7+ #755 PREEMPT Thu Feb 12 17:14:31 GMT 2015 armv6l
GNU/Linux

$ /opt/vc/bin/vcgencmd version
Feb 12 2015 17:23:49
Copyright (c) 2012 Broadcom
version 571f5d2143489e4300d7e2ed5b1a73f33f3b13e5 (clean) (release)

$ cat /etc/*-release
PRETTY_NAME="Raspbian GNU/Linux 7 (wheezy)"
NAME="Raspbian GNU/Linux"
VERSION_ID="7"
VERSION="7 (wheezy)"
ID=raspbian
ID_LIKE=debian
ANSI_COLOR="1;31"
HOME_URL="http://www.raspbian.org/";
SUPPORT_URL="http://www.raspbian.org/RaspbianForums";
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs";

$ dmesg
usb 1-1.3: new full-speed USB device number 4 using dwc_otg
usb 1-1.3: New USB device found, idVendor=0403, idProduct=6001
usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1.3: Product: FT232R USB UART
usb 1-1.3: Manufacturer: FTDI
usb 1-1.3: SerialNumber: AD02DY77
usbcore: registered new interface driver usbserial
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial support registered for generic
usbserial_generic 1-1.3:1.0: The "generic" usb-serial driver is only for
testing and one-off prototypes.
usbserial_generic 1-1.3:1.0: Tell linux-usb@xxxxxxxxxxxxxxx to add your
device to a proper driver.
usbserial_generic 1-1.3:1.0: generic converter detected
usb 1-1.3: generic converter now attached to ttyUSB0
usbcore: registered new interface driver ftdi_sio
usbserial: USB Serial support registered for FTDI USB Serial Device

If you need other data, ask me.
(and sorry for my english.. I'm french so...)

This device is already supported by the ftdi_sio driver, there is no
need to provide module options to the generic usb serial driver for this
id.

Have you tried just using the ftdi_sio driver directly?  Why are you
adding this device id "by hand"?

thanks,

greg k-h

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux