23.12.2012 Views

Digital Forensics in Small Devices: RFID Tag Investigation

Digital Forensics in Small Devices: RFID Tag Investigation

Digital Forensics in Small Devices: RFID Tag Investigation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

if (item.ToStr<strong>in</strong>g() == "No Readers")<br />

{<br />

}<br />

else<br />

{<br />

MessageBox.Show("No readers available.");<br />

this.Cursor = Cursors.WaitCursor;<br />

try<br />

{ // Open the connection & subscribe to notifications<br />

hReader = usb<strong>RFID</strong>.Open((u<strong>in</strong>t)dev);<br />

// Assign the callback delegates we want to use<br />

usb<strong>RFID</strong>.OnConnectionLost += new<br />

RfidUsb.ConnectionLostEventDelegate(OnConnectionLost);<br />

usb<strong>RFID</strong>.OnAsyncRead += new<br />

RfidUsb.AsyncReadEventDelegate(OnAsyncRead);<br />

// Read the current Auto-Read sett<strong>in</strong>g (fCont<strong>in</strong>uousRead)<br />

SDKType.<strong>RFID</strong>_CONFIG_READER Conf = new<br />

SDKType.<strong>RFID</strong>_CONFIG_READER();<br />

System.UInt32 dwFlags =<br />

(u<strong>in</strong>t)SDKType.ConfigFlag.<strong>RFID</strong>_CONFIG_GET |<br />

(u<strong>in</strong>t)SDKType.ConfigFlag.<strong>RFID</strong>_FLG_READER_AUTOREAD;<br />

usb<strong>RFID</strong>.ConfigReader(hReader, ref Conf, ref dwFlags);<br />

// Set-up the UI<br />

btnConnect.Enabled = false;<br />

btnDisConnect.Enabled = true;<br />

btnRead<strong>Tag</strong>.Enabled = true;<br />

tmrHalfSec.Enabled = true;<br />

lst<strong>Tag</strong>IDs.Items.Clear();<br />

38

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!