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 多了個(gè) 0D
for ( j=0; j{ mCmdParam.ByteRead.mByteCount = sizeof( mCmdParam.ByteRead.mByteBuffer ); /* 請(qǐng)求讀出64字節(jié)數(shù)據(jù), 單次讀寫的長(zhǎng)度不能超過(guò) sizeof( mCmdParam.ByteWrite.mByteBuffer ) */ i = ExecCommand( CMD_ByteRead, 1 ); /* 以字節(jié)為單位讀取數(shù)據(jù)*/ 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 ); /* 關(guān)閉文件 */ mStopIfError( i );