-
Notifications
You must be signed in to change notification settings - Fork 983
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CDC] Serial USB without DTR #1193
Comments
Hi @jlocsx |
This issue just hit me (and other guy), too. I was using hterm and What was the rationale behind the change? Per above two widely used serial monitors don't set the DTR flow control lines upon opening the virtual COM port, leading to this strange behavior. |
hi for those using Linux there is one thing to check
make sure that the product id and vendor id matches that used in your sketch. the main thing is that |
I though it was fixed by #884 |
hi fpistm, there could be 'old' linux distributions which requires users to tell udev that 'it is not a modem' i.e. edit the udev rules file |
Fixes stm32duino#1193 Signed-off-by: Frederic Pillon <[email protected]>
Hi @jlocsx, @maxgerhardt and @ag88 I've made a PR to implement a way to disable the DTR usage. See #1382. I've tested using hterm as stated by @maxgerhardt and it works as expected. Hope it is fine for you. 😉 |
Now, in order to observe UART data over USB, you must either use a terminal program with DRT monitoring support or force SerialUSB.dtr(true) into loop(). We need to make this optional, not the default behavior. |
By default DTR is enabled as before. This PR simply implement a way to disable it. If you don't need it simply call |
Is your feature request/improvement related to a problem? Please describe.
I recently experienced the following issue using the Blue Pill board (STM32F103C8T6 MCU) with the STM32Duino core:
This is because the DTR signal is not enabled by default on that Serial Terminal. After enabling this signal, I was able to receive the data without any problem.
But I didn't experience any issue when I performed the tests using a Rust program based on the following code with the Blue Pill:
I also tested a Honeywell RFID reader (YJ-HF500) that communicate via USB CDC, and the Terminal was able to receive the data even with the DTR signal disabled.
Describe the solution you'd like
I found the following "work around" in the STM32duino forum:
But I would like something that can be configured through the development environment, without having to modify the
usbd_cdc_if.c
file directly.For example, I would like to be able to enable/ disable the DTR signal verification by overwriting some macro. Or is this already possible?
The text was updated successfully, but these errors were encountered: