0
Motorola의 EMDK for .NET/Symbol.rfid2.device dll을 사용하여 특정 RFID 태그 (사용자 메모리에 실제로)에 데이터를 쓸 수 있습니까? 앞면에 2 개의 태그가 있고 그 중 하나에만 데이터를 쓰고 싶다고 상상해보십시오.특정 태그에 데이터 쓰기
WriteTag 메서드가이를 지원하지 않는 것 같습니다.
감사합니다.
Motorola의 EMDK for .NET/Symbol.rfid2.device dll을 사용하여 특정 RFID 태그 (사용자 메모리에 실제로)에 데이터를 쓸 수 있습니까? 앞면에 2 개의 태그가 있고 그 중 하나에만 데이터를 쓰고 싶다고 상상해보십시오.특정 태그에 데이터 쓰기
WriteTag 메서드가이를 지원하지 않는 것 같습니다.
감사합니다.
태그 별 작업을 수행 할 수있는 Symbol.RFID3.device가있는 새로운 EMDK가 있다고 생각합니다. CS_RFID3Sample3을 확인하십시오.
서명 :
// Summary:
// This method is used to write data to the memory bank of a specific tag.
//
// Parameters:
// tagID:
// EPC-ID of the Tag on which the Write operation is to be performed.
//
// writeAccessParams:
// Parameters required for the Write operation.
//
// antennaInfo:
// Antennas on which the current operation is to be performed. If this is null,
// operation will be performed on all Antennas.
public void WriteWait(string tagID, TagAccess.WriteAccessParams writeAccessParams, AntennaInfo antennaInfo);
사용 예 :
public RFIDResults WriteTag(string tagId, string writeData, MEMORY_BANK mb, Int32 offset)
{
byte[] writeUserData = null;
writeUserData = new byte[writeData.Length/2];
ConvertStringToByteArray(writeData, ref writeUserData);
TagAccess.WriteAccessParams writeParams = new TagAccess.WriteAccessParams();
writeParams.AccessPassword = 0;
writeParams.WriteData = writeUserData;
writeParams.WriteDataLength = (uint)writeUserData.Length;
writeParams.MemoryBank = mb;
writeParams.ByteOffset = (uint)offset;
try
{
m_RfidReader.Actions.TagAccess.WriteWait(tagId, writeParams, null);
return RFIDResults.RFID_API_SUCCESS;
}
catch (OperationFailureException e)
{
return e.Result;
}
}