1

Topic: USB VCP mode Not working

Hello,

I'm trying the USB VCP mode as described in example.
It doesn't seems to work, UART2 Data Received is fired on each data (Greenled reacts), but comparison with UART2 RX Len = 6 ("equal to") never match, "RX Len" seems not count actual data in buffer.
What I'm doing wrong?

Thank you
Regards
Nico

Post's attachments

Attachment icon c72duo_uart_5.png 56 kb, 84 downloads since 2021-11-22 

2

Re: USB VCP mode Not working

The example you referred was successfully tested

Please ensure you send exactly 6 bytes to CANNY from your USB-CDC host and send it in the right order. In ASCII it will be: 'H' + 'e' + 'l' + 'l' + 'o' + '!'  with no any spaces / CRs / LFs

3

Re: USB VCP mode Not working

Hello,

I can not succeed.

I can force CANNY to send text to my terminal, no problem. I respect the exact format ('Hello', no extra char)

I tried to put the led at the output of the 8:1 converter, led is never "ON"

Also tried led at the output of RX Len == 6 test, no light up.

Also tried to send to terminal RX Len as data, it never goes over 1.

I try the diagram in attachment, sending 'Hello!', I get back only the last char sent ('!') other are 0.

I use Canny7duo with firmware V.2.19

Thank you

Best regards

Post's attachments

Attachment icon uart.png 17.62 kb, 91 downloads since 2021-11-22 

4

Re: USB VCP mode Not working

I try the diagram in attachment, sending 'Hello!', I get back only the last char sent ('!') other are 0.

Possible you have some pauses after each character in transmission from USB-CDC host to CANNY 7.2 Duo.

The example was tested on CANNY 7.2 Duo with firmware V.2.19 using this excellent terminal program on USB-CDC host side: https://sites.google.com/site/terminalbpp/
This terminal program provide the full control on the transmission parameters. (Please see attachments)
You can try to test the example with this terminal program.

Post's attachments

term.png, 73.98 kb, 867 x 599
term.png 73.98 kb, 182 downloads since 2021-11-23 

5

Re: USB VCP mode Not working

Hi Konstantin,

I use exactly this terminal host for a while.
My setting was already set as yours.
No success, I'm still looking forward to find out the issue.

Thank you
Regards

Nico

6 (edited by nicolas0481 25-11-2021 17:02:09)

Re: USB VCP mode Not working

Hi Konstantin,

It now works...

Quite weird as behavior.

I used Terminal V1.9  (for a while with no problem) instead of 1.93b.

I have tried V1.93b as you suggested,
At starting, with correct settings, it didn't work
I tried to modify 'Delay between bytes' (see picture), from 0 to other values, and noticed that v1.93b allows to set value down to -1 (?) that V1.9 doesn't allow. And then go back to 0, and now it works.
Very strange, maybe a bug in Terminal.

I focused on Terminal issue because I've tried with PuTTY and it worked directly

Thank you for the support

Best regards

Nico

Post's attachments

Attachment icon terminal.jpg 92.09 kb, 85 downloads since 2021-11-25 

7

Re: USB VCP mode Not working

Thank you for this notice, Nico!
I wish you success with your project!