CH395 Socket3 Socket4 Socket5 配置成TCP_Client,只有Socket3能正常收发数据,Socket4 Socket5不能接收数据(无接收中断),能发心跳包,但数据是错的,且是固定的有规律数据,重新分配过缓存了,
static void Socket_R_S_Buf_Modify(void ) // 定义6个 Socket收发缓冲区 大小
{
CH395SetSocketRecvBuf(0,0,4); // Socket 0 ,接收缓冲区4*512 = 2K,发送缓冲区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);
}
请版主帮助分析解决,急啊