使用MINI6410,写了一个QT读卡号程序 第一步请求就超时了,ret = select(fd + 1,&rdfd, NULL,NULL,&timeout);
switch(ret)
{
case -1:
perror("select error\n");
break;
printf("Request timed out.\n");
break;
default:
ret = read(fd, RBuf, 8);
if (ret < 0)
{
// printf("ret = %d, %m\n", ret, errno);q
break;
}
if (RBuf[2] == 0x00) //应答帧状态部分为0 则请求成功
{
return 0;
}
break;
不断返回case 0:,请问是什么问题 ??