Is there an function call to show the information about a connected device in host mode? #1259
Replies: 4 comments 2 replies
-
which specific info you want to get ? |
Beta Was this translation helpful? Give feedback.
-
I want to see what is currently attached to the host controller (rp2040). I will also be testing this with an STMf4xx controller and TinyUSB.
Mostly just looking for the basics:
Product ID: 0x6001
Vendor ID: 0x0403 (Future Technology Devices International Limited)
Version: 6.00
Serial Number: AB0KU7UZ
Speed: Up to 12 Mb/s
Manufacturer: FTDI
I am working with a new CDC interface using the Silicon Labs CP2102 <https://www.silabs.com/documents/public/data-sheets/CP2102-9.pdf> and I am not sure it is coming up properly. It is a USB-C attached serial console built into a piece of equipment.
Thanks,
…-michael
From: Ha Thach ***@***.***>
Reply-To: hathach/tinyusb ***@***.***>
Date: Wednesday, December 22, 2021 at 12:52 AM
To: hathach/tinyusb ***@***.***>
Cc: micgresham ***@***.***>, Author ***@***.***>
Subject: Re: [hathach/tinyusb] Is there an function call to show the information about a connected device in host mode? (Discussion #1259)
which specific info you want to get ?
—
Reply to this email directly, view it on GitHub<#1259 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AJOKP3UNUH3U2TZF6NXNUMDUSFRRFANCNFSM5KQ2J5QQ>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
@micgresham If I am reading the descriptor you sent correctly and correctly matched it to the USB class specs, I think the CP2102-9 is a pure CDC PSTN device. See the class spec. I had a quick look at the spec. I think you get line status on the interrupt endpoint and use bulk IN and OUT endpoints for data. For the Raspberry Pi Pico's rp2040, bulk endpoints are still being sorted. I submitted a pull request for a MIDI host driver #1219 that supports a bulk IN and bulk OUT endpoint pair like the CP2102-9's descriptor indicates. See @hathach comments on that pull request and also see discussion #1261 for more info. The MIDI host driver lacks the interrupt IN endpoint for line status that the CP2102-9 seems to have. Hope this helps. |
Beta Was this translation helpful? Give feedback.
-
See #2488. |
Beta Was this translation helpful? Give feedback.
-
I am using the host/cdc_msc_hid example on a Pico RP2040 to connect an external USB-TTL adapter. I also have the Pico configured to dump stdio out UART0.
I would like to get detailed information when a device (USB-TTL) adapter is connect. I am looking for something similar to the output of the linux lsusb -v command.
Any help is appreciated.
-michael
Beta Was this translation helpful? Give feedback.
All reactions