All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jaap de Jong <jaap.dejong@nedap.com>
To: openembedded-devel@lists.openembedded.org
Subject: strange usb behavior
Date: Fri, 10 Dec 2010 15:47:52 +0100	[thread overview]
Message-ID: <4D023D98.4080606@nedap.com> (raw)

Hi All!

I'm observing some strange usb behavior.
I have a board with an onboard ftdi usb chip acting as 2 rs232 ports.
And I have on the same board an external usb device with again a ftdi 
chip on board, this time acting as a single rs485 port.

    Build Configuration:
    BB_VERSION        = "1.8.18"
    METADATA_BRANCH   = "release-2010.12"
    METADATA_REVISION = "dec3967"
    TARGET_ARCH       = "arm"
    TARGET_OS         = "linux-gnueabi"
    MACHINE           = "at91sam9263ek-special"
    DISTRO            = "angstrom"
    DISTRO_VERSION    = "2010.7-test-20101210"
    TARGET_FPU        = "soft"

So when I boot with the external device in the connector the internal 
and external devices are detected as expected.

     [    1.280000] usb 1-1: new full speed USB device using at91_ohci 
and address 2
     [    1.460000] usb 1-1: configuration #1 chosen from 1 choice
     [    1.470000] ftdi_sio 1-1:1.0: FTDI USB Serial Device converter 
detected
     [    1.470000] usb 1-1: Detected FT2232C
     [    1.480000] usb 1-1: Number of endpoints 2
     [    1.480000] usb 1-1: Endpoint 1 MaxPacketSize 64
     [    1.490000] usb 1-1: Endpoint 2 MaxPacketSize 64
     [    1.490000] usb 1-1: Setting MaxPacketSize 64
     [    1.500000] usb 1-1: FTDI USB Serial Device converter now 
attached to ttyUSB0
     [    1.510000] ftdi_sio 1-1:1.1: FTDI USB Serial Device converter 
detected
     [    1.510000] usb 1-1: Detected FT2232C
     [    1.520000] usb 1-1: Number of endpoints 2
     [    1.520000] usb 1-1: Endpoint 1 MaxPacketSize 64
     [    1.530000] usb 1-1: Endpoint 2 MaxPacketSize 64
     [    1.530000] usb 1-1: Setting MaxPacketSize 64
     [    1.540000] usb 1-1: FTDI USB Serial Device converter now 
attached to ttyUSB1
     [    1.680000] usb 1-2: new full speed USB device using at91_ohci 
and address 3
     [    1.860000] usb 1-2: configuration #1 chosen from 1 choice
     [    1.870000] ftdi_sio 1-2:1.0: FTDI USB Serial Device converter 
detected
     [    1.880000] usb 1-2: Detected FT232RL
     [    1.880000] usb 1-2: Number of endpoints 2
     [    1.890000] usb 1-2: Endpoint 1 MaxPacketSize 64
     [    1.890000] usb 1-2: Endpoint 2 MaxPacketSize 64
     [    1.900000] usb 1-2: Setting MaxPacketSize 64
     [    1.900000] usb 1-2: FTDI USB Serial Device converter now 
attached to ttyUSB2


But if I look at the /dev directory ttyUSB2 is missing!

     # ls -l /dev/ttyU*
         crw-rw----    1 root     dialout  188,   0 Jan  1  1970 
/dev/ttyUSB0
         crw-rw----    1 root     dialout  188,   1 Jan  1  1970 
/dev/ttyUSB1

     # lsusb
         Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
         Bus 001 Device 002: ID 0403:6010 Future Technology Devices 
International, Ltd FT2232C Dual USB-UART/FIFO IC
         Bus 001 Device 003: ID 0403:6001 Future Technology Devices 
International, Ltd FT232 USB-Serial (UART) IC

So, why is ttyUSB2 gone and are ttyUSB[01] still available??

If I then remove (mark the second line!)

     [  103.600000] usb 1-2: USB disconnect, address 3
     [  103.610000] ftdi_sio ttyUSB2: FTDI USB Serial Device converter 
now disconnected from ttyUSB2
     [  103.630000] ftdi_sio 1-2:1.0: device disconnected

and re-enter the external device life is OK!

     [  140.020000] usb 1-2: new full speed USB device using at91_ohci 
and address 4
     [  140.200000] usb 1-2: configuration #1 chosen from 1 choice
     [  140.230000] ftdi_sio 1-2:1.0: FTDI USB Serial Device converter 
detected
     [  140.250000] usb 1-2: Detected FT232RL
     [  140.250000] usb 1-2: Number of endpoints 2
     [  140.250000] usb 1-2: Endpoint 1 MaxPacketSize 64
     [  140.260000] usb 1-2: Endpoint 2 MaxPacketSize 64
     [  140.260000] usb 1-2: Setting MaxPacketSize 64
     [  140.270000] usb 1-2: FTDI USB Serial Device converter now 
attached to ttyUSB2

     # ls -l /dev/ttyU*
         crw-rw----    1 root     dialout  188,   0 Jan  1  1970 
/dev/ttyUSB0
         crw-rw----    1 root     dialout  188,   1 Jan  1  1970 
/dev/ttyUSB1
         crw-rw----    1 root     dialout  188,   2 Dec 10 02:18 
/dev/ttyUSB2

     # lsusb
         Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
         Bus 001 Device 002: ID 0403:6010 Future Technology Devices 
International, Ltd FT2232C Dual USB-UART/FIFO IC
         Bus 001 Device 004: ID 0403:6001 Future Technology Devices 
International, Ltd FT232 USB-Serial (UART) IC

Any ideas??

Thanks!
Jaap




             reply	other threads:[~2010-12-10 14:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-10 14:47 Jaap de Jong [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-08-18  8:19 Strange USB behavior Chris Tapp
2011-08-18 19:36 ` Chris Tapp
2011-08-18 19:38   ` Bruce Ashfield
2011-08-18 21:06   ` Darren Hart
2011-08-18 21:21     ` Chris Tapp

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D023D98.4080606@nedap.com \
    --to=jaap.dejong@nedap.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.