Hello,
We are using USB port on K28 to communicate with a modem in CDC mode. Is it possible to read the state of simulated CTS and DSR lines in MCUXpresso USB stack?
Thanks
Ugljesa
已解决! 转到解答。
Hi Ugliesa,
Unfortunately, that is not possible, I recommend you to check also the SerialState this contains the current state of carrier detect, transmission carrier, break, ring signal, and device overrun error. Please check below snippet from PSTN specification (document attached).
I hope this is helpful.
Best regards,
Felipe
Hi Felipe,
Thank you on your answer.
If I understand correctly function USB_HostCdcSetAcmCtrlState is controlling the output lines (RTC and DTR). We need to detect changes in the input line state. USB_HostCdcGetAcmLineCoding function is used to get DSR state but I am not able to find how to detect CTS.
Best regards
Ugljesa
Hi Ugliesa,
Unfortunately, that is not possible, I recommend you to check also the SerialState this contains the current state of carrier detect, transmission carrier, break, ring signal, and device overrun error. Please check below snippet from PSTN specification (document attached).
I hope this is helpful.
Best regards,
Felipe
Hi Ugliesa,
Please check USB_HostCdcTask in host_cdc.c, in kUSB_HostCdcRunGetStateDone you set the control state.
USB_HostCdcSetAcmCtrlState function implements CDC ControlLineState request.
Hope it helps!
Best regards,
Felipe
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------