K64 usb cdc virtual com issue with certain terminal programs

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

K64 usb cdc virtual com issue with certain terminal programs

ソリューションへジャンプ
1,281件の閲覧回数
inorman
Contributor III

Hi, I was wondering if anyone's come across an odd issue where the usb com port works fine only with certain terminal programs? Applications teraterm, and hyperterminal are fine, but Termite and user applications using the .net environment aren't?

 

From my observations they must open the port in a different way as my application in the k64 detects whether a usb connection has been made by USB_Check_Start_Transactions(), once it has i send a welcome message.  Termite  etc.. never trigger this function.

 

Any ideas why this might be?

 

Kind regards

Ian

ラベル(1)
1 解決策
1,083件の閲覧回数
inorman
Contributor III

In the end this turned out to be a flow control issue. Some applications must turn this on without being set.

This forum post from 6 years ago pointed me in the right direction.  https://community.nxp.com/message/72826#comment-72826

Basically keep  start_transactions = TRUE;  and comment out

case USB_APP_CDC_DTE_ACTIVATED:

            if(start_app == TRUE)

            {

                start_transactions = TRUE;

            }

        break;

        case USB_APP_CDC_DTE_DEACTIVATED:

            if(start_app == TRUE)

            {

                start_transactions = FALSE;

            }

        break;

from the function USB_App_Class_Callback in virtual_com.c

元の投稿で解決策を見る

1 返信
1,084件の閲覧回数
inorman
Contributor III

In the end this turned out to be a flow control issue. Some applications must turn this on without being set.

This forum post from 6 years ago pointed me in the right direction.  https://community.nxp.com/message/72826#comment-72826

Basically keep  start_transactions = TRUE;  and comment out

case USB_APP_CDC_DTE_ACTIVATED:

            if(start_app == TRUE)

            {

                start_transactions = TRUE;

            }

        break;

        case USB_APP_CDC_DTE_DEACTIVATED:

            if(start_app == TRUE)

            {

                start_transactions = FALSE;

            }

        break;

from the function USB_App_Class_Callback in virtual_com.c