SerialUSB CDC test
Colin (478) 2433 posts |
If anyone has a CDC USB serial device would they like to try out SerialUSB_CDC_10a. I’ve added support for CDC devices and would like to know if you can send and receive. I’ve tested it out on a Arduino uno R3 clone – but would still like to know if your version works – or not. If you have an arduino with a cdc usb interface I used the following Arduino IDE sketch to test.
I then ran the !SerialTerminal program in the zip file. If you type into the window that opens and you see the characters you type that means you are sending and receiving – only received characters are displayed. If you need a different baud rate open a serialterminal window at the command line with
If you have a CDC USB serial adapter you can just connect the rx and tx pins and use !SerialTerminal. I’d also like to know the ProductId mentioned in |
Tristan M. (2946) 1039 posts |
Could you please explain what the device is a little more? Even searching on the Web left me less than informed. |
Ronald (387) 195 posts |
CDC USB serial device I’ve tried an old alcatel phone I know has cdc, and a newer samsung tab A which going by googling should be cdc. In tethering mode I can see the 2 way pipe symbol in usbinfo, but not a peep out of your terminal window. Have hung the Iyonix a few times trying. |
Colin (478) 2433 posts |
I’ll try. SerialUSB allows the use of serial to usb adapters like this Most usb to serial adaptors use proprietary usb interfaces but USB standards have a generic interface for serial communications over usb – CDC. I just read enough to get serial port <→ usb working – cdc covers more than that. I’ve had difficulty finding a CDC serial adapter to test but when I was asked to do a CDC backend for SerialUSB I was informed that the Arduino Uno uses CDC serial interface – a lot of the clones use other serial usb interfaces which already work. Unfortunately after getting one, my device is now working but his only sends and I was wondering if the problem was specific to his device – hence this post.
I’m afraid I don’t know how phones work or how you would test if a connection was working with it. For it to connect with SerialUSB
and
The 02_02_01 and 0A_00_00 is the significant bit The device should show up in |
Richard Coleman (3190) 54 posts |
Just tried on my son’s Arduino Uno and it’s not working. But *SerialUSBDevices doesn’t show anything and I get no response from the SerialTerminal at either 9600 or 115200 |
Colin (478) 2433 posts |
Thanks for trying. That ‘should’ work – at least it should be listed in It may not do anything in !serialterminal – other than show the device name if the uno is not programmed to output serial info like the example sketch I posted. |
Richard Coleman (3190) 54 posts |
I’d programmed the example sketch onto the Arduino and it was working on my laptop and so I knew the Arduino was okay. |
Tristan M. (2946) 1039 posts |
Ahhh. I just did a little digging. The legitimate Arduino Uno uses an ATmega8U2 for serial. I’m with you now. I think the Arduino Leonardo may be in the same family with the ATmega32u4 uC which also handles USB. I’ve got a few ATmega32u4 based devices. Useful things. I used one with a touchpad I ripped out of a broken notebook as a USB mouse. |