VCP/CDC Port is not connected (flowcontrol) #16754
Unanswered
rapzak
asked this question in
STM32 / Pyboard
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have added a second CDC/VCP port to the usb, so in windows they come up as 2 comports - this works almost perfect.
Plan is to run modbus on the one/or both ports.
I encountered a problem that none of the standard modbus tools i make can make the isconnected() function return true.
Same goes for termite terminal program as standard settings, however terminal in arduino editor could make it true.
When true RX/TX works well, when false RX works but no TX.
In the termite terminal i can make it work by enabling flow control - however i can not do that in the modbus tools, that is not an option.
I tried all compinations of:
USB_VCP.init(*, flow=-1) --> -1 to 3 in 1 incremental steps
When it says isconnected() = false, then the port is enumerated correct in windows, the comport is up in the device manager and i can open the port in the different terminal program, and i can receive data.
Is there a way to bypass the check during transmit?
Is there a way to make it know it is connected, even with no flowcontrol from pc terminal?
I use the USB_VCP.write(buf) function.
I hope the description makes sense...
The board is a custom build for STM32G0 based on 1.23.0 micropython
Thank you
/Rapzak
Beta Was this translation helpful? Give feedback.
All reactions