This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Missing feature in Middleware-Lib CDC ACM

Hello,

i´m working on a K-Line interface using a STM32F105.
The middleware lib is successfully installed and the virtual com port is running good with the CDC ACM feature.

Now there is a special problem. The KWP2000 protocol is using a special RS232 feature called send line break condition.
There is a SEND_BREAK request (23h) send from Windows via the usbser.sys driver to the middleware library. So the cortex as to apply a positiv voltage on the rs-232 tx-line.

I could´t find the point or the function which is called or is it not implemented in the usb device class?

Parents
  • It is implemented however it was not exposed externally there is a function which prototype is as follows:

    bool USBD_CDC_ACM_CoreSendBreak (uint8_t instance, uint16_t dur)

    you should implement that function and it should return true, anyway it will be used instead of the default library function with same name and you will be able to handle Send Break request.

Reply
  • It is implemented however it was not exposed externally there is a function which prototype is as follows:

    bool USBD_CDC_ACM_CoreSendBreak (uint8_t instance, uint16_t dur)

    you should implement that function and it should return true, anyway it will be used instead of the default library function with same name and you will be able to handle Send Break request.

Children