2008-10-14 00:21:37     BF527 USB Host with Composite Device

Document created by Aaronwu Employee on Aug 8, 2013
Version 1Show Document
  • View in full screen mode

2008-10-14 00:21:37     BF527 USB Host with Composite Device

Hyun-ho Choe (KOREA, REPUBLIC OF)

Message: 63594   

 

Hello, everyone.

 

Doese anyone tested BF527 USB Host with USB composite device?

 

I have a certain USB composite device composed of network device & PCSC smart card reader device.

 

Successfully ported the device driver & pcscd which is used for smart card(user mode driver using libusb).

 

Each driver works well in standalone, but if loaded together driver doesn't work.

 

Kernel log has following messages:

 

musb_h_tx_flush_fifo 124: Could not flush host TX fifo: csr: 0003

 

and libusb made "Resource temporarily unavailabe" error on both of bulk in/out endpoint.

 

Anyone has similar experiences?

 

Thanks in advance.

 

 

 

Choe, Hyun-ho

TranslateQuoteReplyEditDelete

 

 

2008-10-14 00:36:34     Re: BF527 USB Host with Composite Device

Sonic Zhang (CHINA)

Message: 63595   

 

BF52x/54x USB host controller doesn't support USB hub. You  can only connect one USB device once.

QuoteReplyEditDelete

 

 

2008-10-14 03:22:34     Re: BF527 USB Host with Composite Device

Hyun-ho Choe (KOREA, REPUBLIC OF)

Message: 63602   

 

Hmmm.

 

Is USB composite device is treated as same as hub?

 

Physically, It looks like a single device, but in real, it has two device interfaces.

 

Some kinds of usb devices are in this kind of devices.

 

If this is true, USB composite device cannot be used in BF54x/52x ?

TranslateQuoteReplyEditDelete

 

 

2008-10-14 03:35:32     Re: BF527 USB Host with Composite Device

Mike Frysinger (UNITED STATES)

Message: 63605   

 

use `lsusb` to figure out whether it has an internal hub or it is just multiple endpoints.  if it's a hub, it will never work.  if it's multiple endpoints, it should generally work.

QuoteReplyEditDelete

 

 

2008-10-14 04:58:42     Re: BF527 USB Host with Composite Device

Bryan Wu (CHINA)

Message: 63630   

 

BF52x/BF54x usb should support such composite devices, but we don't test such devices you post here.

 

Please make sure it does not include hub.

 

-Bryan

QuoteReplyEditDelete

 

 

2008-10-14 09:19:55     Re: BF527 USB Host with Composite Device

Hyun-ho Choe (KOREA, REPUBLIC OF)

Message: 63652   

 

Device doesn't have hub. It just has multiple endpoints.

 

Two bulk in/out for NIC(actually, it's m-WiMAX device), and two bulk in/out and a interrupt in for Smartcard reader.

 

I should dig further using like USB debug fs, but as for now, I suspect host controller driver or root hub side, because single device alone works well on each side.

 

 

 

Anyone gets successful result on any kind of composite device?

TranslateQuoteReplyEditDelete

 

 

2008-10-14 10:21:12     Re: BF527 USB Host with Composite Device

Robin Getz (UNITED STATES)

Message: 63654   

 

Hyun-ho:

 

I have used low speed composite devices (keyboard/mouse) sucessfully - but not what you have.

 

-Robin

Attachments

    Outcomes