CH395 Socket3 Socket4 Socket5 配置成TCP_Client,只有Socket3能正常收發(fā)數(shù)據(jù),Socket4 Socket5不能接收數(shù)據(jù)(無接收中斷),能發(fā)心跳包,但數(shù)據(jù)是錯的,且是固定的有規(guī)律數(shù)據(jù),重新分配過緩存了,??
static void Socket_R_S_Buf_Modify(void )? // 定義6個 Socket收發(fā)緩沖區(qū) 大小
{
? ?CH395SetSocketRecvBuf(0,0,4);? ? ?// Socket 0 ,接收緩沖區(qū)4*512 = 2K,發(fā)送緩沖區(qū)4*512 = 2K
? ?CH395SetSocketSendBuf(0,4,4);??
??
? ?CH395SetSocketRecvBuf(1,8,4);? ? ?// Socket 1?
? ?CH395SetSocketSendBuf(1,12,4);??
??
? ?CH395SetSocketRecvBuf(2,16,4);? ? // Socket 2?
? ?CH395SetSocketSendBuf(2,20,4);??
??
? ?CH395SetSocketRecvBuf(3,24,4);? ? // Socket 3?
? ?CH395SetSocketSendBuf(3,28,4);??
??
? ?CH395SetSocketRecvBuf(4,32,4);? ? // Socket 4?
? ?CH395SetSocketSendBuf(4,36,4);??
??
? ?CH395SetSocketRecvBuf(5,40,4);? ? // Socket 5?
? ?CH395SetSocketSendBuf(5,44,4);
}
請版主幫助分析解決,急啊