22 | P a g e
Event Channel
The Event Channel is a uni-directional channel of communication that delivers event information
from the Procyon to the host software.
The host machine establishes an Event Channel by opening a TCP/IP connection to IP address of the
Procyon on port 50008. Immediately after establishing this connection, the Procyon will push an
Event Connection ID to the connecting application. The syntax of this response is:
event.connection id = X
Where “X” is the integer value of the Event Channel.
The value of the Event Connection ID is used to register for events on a given Event Channel. The
registration of the events must be done via the Command Response Channel. The sequence used
to establish an Event Channel and subsequently register for events is as follows:
1. Establish a TCP/IP connection to the IP address of the Procyon on port 50008
2. Capture the Event Connection ID:
event.connection id = 3
3. Establish a TCP/IP connection to the IP address of the Procyon on port 50007 (Command
Response Channel)
4. Register for the desired event using the Event Connection ID captured in step 2 above:
events.register(3, event.tag.arrive)\r\n
ok\r\n\r\n
Once an event has been registered on a given Event Channel, the Procyon will asynchronously push
the event data to the host system on that channel. All events delivered by the reader on the Event
Channel will be terminated with “\r\n\r\n”. For example:
event.tag.arrive tag_id=0x111122223333444455556666\r\n\r\n
Please see section seven of this document for additional details regarding events.
The Procyon supports up to 12 simultaneous Event Channel Connections.