Problems connecting to mobile phone CDC interface #369
Replies: 6 comments 9 replies
-
can you please post a dump of device's descriptors (easy to do with https://www.uwe-sieber.de/usbtreeview_e.html) and your tusb_config.h? |
Beta Was this translation helpful? Give feedback.
-
Thanks IngHK. tusb_config.h should pull in "arduino/ports/rp2040/tusb_config_rp2040.h", which I haven't edited:
Here's the info from USBview:
I'm working through the USB CDC specs but information is spread across multiple locations so it's taking a while. Although there are multiple CDC endpoints, I'd expect at least one to trigger tuh_cdc_mount_cb() and change my blinken light? Debug probe should arrive soon for some more meaningful messages. Thanks again! |
Beta Was this translation helpful? Give feedback.
-
I don't see any obvious reasons why it shouldn't work. ACM (Abstract Control Model) is supported by TinyUSB and the associated interface descriptors initially look plausible. |
Beta Was this translation helpful? Give feedback.
-
I just tested my Samsung Tablet and here it works ( |
Beta Was this translation helpful? Give feedback.
-
Interesting. Thanks IngHK. As soon as the debug probe gets here, I'll grab some logs for you. |
Beta Was this translation helpful? Give feedback.
-
Needs more investigation when I have time. #define CFG_TUSB_DEBUG 2 set but no output from TinyUSB. Redefined SERIAL_TUSB_DEBUG Serial1 to be sure, still nothing except for serial output statements I added in the main loop. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Thank you for this port! Are there any known issues using it as a host to connect to a mobile phone's CDC interface please? I'm using the Arduino port with a Waveshare RP-2040 Zero.
The waveshare is powered and I can get it to enumerate HIDs (mice and keyboard). I pared right down to the bare bones but tuh_cdc_mount_cb() just doesn't seem to be called when the phone is connected as the LED doesn't change colour (debug probe on order!)
This version is based on Adafruit's serial_host_bridge:
My blinken lights remain firmly on red unless I place similar LED hooks in tuh_mount_cb but then they are only called for 'regular' USB devices.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions