This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320C6748: TCP问题咨询

Part Number: TMS320C6748


实现一个定时向服务器发送指定数据的功能,如下代码:
void Task_SerTcpproTimeTx(void)
{
int tc;
    while(1)
    {
        Task_sleep(5000);
        if( 1 == s_SerTcpproCfg.conSucFlag)
            {
    SerTcppro_buildFrame( TCPFRAME_DN_LSP,TCPFRAME_DET_CMD,TCPFRAME_FC_HEARTUP,SN,12,0);
    tc = send(tcpSocket1, s_TcpTxFrame.txData, s_TcpTxFrame.txDataLength, 0);
                            System_printf("tc %d.\n",tc);
        }
    }
}
 
void NetOpenHook()
{
     hTask_BuildRev = TaskCreate(Task_SerTcpproBuildRecv, "Task_SerTcpproBuildRecv", OS_TASKPRINORM, OS_TASKSTKNORM, 0, 0, 0);
    hTask_TimeTx = TaskCreate(Task_SerTcpproTimeTx, "Task_SerTcpproTimeTx", OS_TASKPRINORM, OS_TASKSTKNORM, 0, 0, 0);
}
运行的情况,发现连接上服务器后,没有接收到定时发送的数据,请问下,问题在哪里,如何设置,谢谢。
注:tcpSocket1仅申请一个