RTS on USB CDC device

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

RTS on USB CDC device

ソリューションへジャンプ
1,942件の閲覧回数
Teckna
Contributor V

Hi everyone,

My device acts as a USB CDC device, my system is CW 10.2 and MQX 3.8.1; the communication channel needs a hardware flow control, I need to simulate the RTS signal to the host (and to get the simulated host CTS signal, of course!).

How can I implement this mechanism?

Is a notification event or an application event?

Many thanks

Teckna

ラベル(1)
タグ(5)
0 件の賞賛
返信
1 解決策
841件の閲覧回数
DavidS
NXP Employee
NXP Employee

Hi Teckna,

I'm not USB expert at all (can spell it and plug mouse/keyboard/USB_Stick in).

Have you looked at the MQX example and its _README.pdf?

C:\Freescale\Freescale MQX 3.8b1\usb\device\examples\cdc\virtual_com

Page 6 has:

The USB_Notif_Callback, which is part of the callbacks initialized by

TestApp_Init is a callback function that the CDC class code uses to

signal to the user that a CDC event has happened. The four conditions

it handles are DTE activation and deactivation (for compatibility with

hardware flow control as in traditional UARTs), data received, and send

complete. The DTE conditions set and clear the start_transactions

variable which is tested in receive and send condition checks to make

sure data can be sent or received.

Hope this helps.

Regards,

David

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
842件の閲覧回数
DavidS
NXP Employee
NXP Employee

Hi Teckna,

I'm not USB expert at all (can spell it and plug mouse/keyboard/USB_Stick in).

Have you looked at the MQX example and its _README.pdf?

C:\Freescale\Freescale MQX 3.8b1\usb\device\examples\cdc\virtual_com

Page 6 has:

The USB_Notif_Callback, which is part of the callbacks initialized by

TestApp_Init is a callback function that the CDC class code uses to

signal to the user that a CDC event has happened. The four conditions

it handles are DTE activation and deactivation (for compatibility with

hardware flow control as in traditional UARTs), data received, and send

complete. The DTE conditions set and clear the start_transactions

variable which is tested in receive and send condition checks to make

sure data can be sent or received.

Hope this helps.

Regards,

David

0 件の賞賛
返信
841件の閲覧回数
richardtseng
Contributor I

In our case:

PC host == DTE

K60 CDC device == DCE

In the MQX USB CDC example, USB_Notif_Callback() shows how K60 DCE can handle CDC activation/deactivation signal from DTE.

How about sending CDC activation/deactivation signal from K60 DCE to DTE ? Is there a USB device API to send activation/deactivation signal ?

Thanks,

Richard

0 件の賞賛
返信