
READER PROTOCOLS 123
notifications of observations or alerts by email (via the Simple Mail Transfer Protocol),
over a TCP socket, or over the serial port, using several configurable formats for the infor-
mation. In the following example, we use an XML format to show a TCP socket notifica-
tion. The host listens on a configurable socket. The reader connects to this socket, sends a
notification like the following (give or take a few lines) to that port as XML text, and then
closes the socket:
<Alien-RFID-Reader-Auto-Notification>
<ReaderName>Dock Reader</ReaderName>
<ReaderType>Alien RFID Tag Reader (Class 1 / 915Mhz) </ReaderType>
<IPAddress>192.168.0.3</IPAddress>
<CommandPort>23</CommandPort>
<Time>2005/01/03 01:48:00</Time>
<Reason>EXAMPLE MESSAGE FOR CHAPTER SIX</Reason>
<Alien-RFID-Tag-List>
<Alien-RFID-Tag>
<TagID>0102 0304 0506 0709</TagID>
<CRC>87B4</CRC>
<DiscoveryTime>2005/01/02 23:40:03</DiscoveryTime>
<Antenna>0</Antenna>
<ReadCount>837</ReadCount>
</Alien-RFID-Tag>
<Alien-RFID-Tag>
<TagID>2283 1668 ADC3 E804</TagID>
<CRC>9FD0</CRC>
<DiscoveryTime>2003/01/03 01:48:00</DiscoveryTime>
<Antenna>0</Antenna>
<ReadCount>1</ReadCount>
</Alien-RFID-Tag>
</Alien-RFID-Tag-List>
</Alien-RFID-Reader-Auto-Notification>
Writing a client to receive these notifications is as simple as attaching a daemon to the
socket the reader is configured to connect to and streaming the incoming XML into ...