08 06 02 0D 0A 01 00 02 01 2D 2D 2D 2E 2E 2E 2F 2F 04 00 FF 50 00 00 00 02 2D 2D 2D 2E 2E 2E 2F 2F 04 00 FF 50 00 00 00
08 06 02 0D 多了个 0D
for ( j=0; j{ mCmdParam.ByteRead.mByteCount = sizeof( mCmdParam.ByteRead.mByteBuffer ); /* 请求读出64字节数据, 单次读写的长度不能超过 sizeof( mCmdParam.ByteWrite.mByteBuffer ) */ i = ExecCommand( CMD_ByteRead, 1 ); /* 以字节为单位读取数据*/ mStopIfError( i ); for ( k=0; k!=mCmdParam.ByteRead.mByteCount; k++ ) { printf( "%c", mCmdParam.ByteRead.mByteBuffer[k] ); if ( mCmdParam.ByteRead.mByteCount { printf( "end\n" ); break; } } printf( "Close\n" ); mCmdParam.Close.mUpdateLen = 0; i = ExecCommand( CMD_FileClose, 1 ); /* 关闭文件 */ mStopIfError( i );