How to write data to CDC serial device from rp2040 host? #239
Replies: 2 comments 1 reply
-
I'm trying to do the exact same thing, I can plug the device into my pc and talk to it all day through serial monitor/putty, but cant with pico
this is running your modified example code on my device, it does however work fine for this device
furthermore how do i set the baud to communicate with the serial usb device |
Beta Was this translation helpful? Give feedback.
-
I have another CDC device that is set to CDC Communications (02h). Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 0110
bDeviceClass 2
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x1eab
idProduct 0x0006
bcdDevice 0001
iManufacturer 1 Newland Auto-ID
iProduct 2 NLS-FM3080V2-20 USB CDC
iSerialNumber 3 FM3080V2-20-CC00236
bNumConfigurations 1 So this is a "bDeviceClass 2". So when running: serial_host_bridge.ino I would expect it to work. But it doesn't. Core1 setup to run TinyUSB host with pio-usb
TinyUSB Host Serial Echo Example
SerialHost is connected to a new CDC device But when the device sends data to the pico, it doesn't display anything. @Icesythe7 do you have tested the serial_host_bridge.ino with your devices? |
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.
-
Hello,
I try to write data to a USB serial device. The host is a RPI pico board, arduino IDE, adafruit TinyUSB USB stack.
If I run the default example device_info.ino, I get the descriptor when I connect the device:
Code from device_info.ino example:
Shell output from device_info example:
I would expect for the serial_host_bridge.ino example to work,
https://github.com/adafruit/Adafruit_TinyUSB_Arduino/blob/master/examples/DualRole/serial_host_bridge/serial_host_bridge.ino
Code from serial_host_bridge example:
But it doesn't detect the device.
I suppose this is because the bDeviceClass is 0 and not 2. ( https://www.usb.org/defined-class-codes )
Does anybody have an idea how to open endpoints and send data to this type of device?
Beta Was this translation helpful? Give feedback.
All reactions