Reading DSR and CTS in MCUXpresso USB stack

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Reading DSR and CTS in MCUXpresso USB stack

ソリューションへジャンプ
1,600件の閲覧回数
ugljesa_tomanov
Contributor I

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

ラベル(1)
0 件の賞賛
返信
1 解決策
1,411件の閲覧回数
FelipeGarcia
NXP Employee
NXP Employee

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).

pastedImage_2.png

I hope this is helpful.

 

Best regards,

Felipe

元の投稿で解決策を見る

6 返答(返信)
1,411件の閲覧回数
ugljesa_tomanov
Contributor I

Hi Felipe,

Yes, our device is host. The idea is to use RTS-CTS synchronization with modem.

Regards

Ugljesa

0 件の賞賛
返信
1,411件の閲覧回数
ugljesa_tomanov
Contributor I

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

0 件の賞賛
返信
1,412件の閲覧回数
FelipeGarcia
NXP Employee
NXP Employee

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).

pastedImage_2.png

I hope this is helpful.

 

Best regards,

Felipe

1,411件の閲覧回数
ugljesa_tomanov
Contributor I

Hi Felipe,

Thank you very much for your answer.

Best regards

Ugljesa

0 件の賞賛
返信
1,411件の閲覧回数
FelipeGarcia
NXP Employee
NXP Employee

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.
-------------------------------------------------------------------------------

0 件の賞賛
返信
1,411件の閲覧回数
FelipeGarcia
NXP Employee
NXP Employee

Hi Ugliesa,

 

Are you using USB stack as host or device?

 

Regards,

Felipe

0 件の賞賛
返信