Self-checkout machines are one of the most visible pieces of technology in a modern library, and behind nearly all of them sits the Standard Interchange Protocol 2, known as SIP2. Despite being decades old, SIP2 remains the de facto standard for communication between self-service devices and integrated library systems. Understanding how it works is essential for anyone responsible for library technology infrastructure.
What SIP2 Does
SIP2 is a client-server protocol that allows external devices, such as self-checkout stations, automated materials handling systems, and patron authentication gates, to communicate with the ILS. The device sends a message, the ILS responds, and the transaction proceeds.
The most common message pairs are:
- Patron Status Request / Response: Verify that a patron's card is valid and in good standing.
- Checkout / Checkout Response: Loan an item to a patron.
- Checkin / Checkin Response: Return an item and update its status.
- Renew / Renew Response: Extend the due date of an existing loan.
Each message is a fixed-format text string with positional fields. It is not JSON, not XML, and not particularly human-readable, but it is simple and well-understood by device manufacturers.
Common Integration Pitfalls
Timeout Mismatches
SIP2 connections are stateful. The self-checkout machine opens a TCP socket to the ILS and keeps it alive for the duration of a session. If the ILS closes idle connections after 60 seconds but the device expects 300 seconds, you get intermittent disconnections that frustrate patrons and generate support tickets. Always align timeout settings on both sides.
Character Encoding
SIP2 predates Unicode standardization. Some older devices send patron names and titles in ISO 8859-1 while the ILS expects UTF-8. This mismatch produces garbled characters on receipts and display screens. ERMLib normalizes incoming SIP2 messages to UTF-8, but you may need to configure the device firmware to match.
Security
The original SIP2 specification transmits data in plaintext, including patron credentials. For any deployment handling patron PINs or personal data, wrap the SIP2 connection in a TLS tunnel. ERMLib supports SIP2 over TLS natively on port 6002.
Configuring SIP2 in ERMLib
Setting up a SIP2 connection in ERMLib takes about 15 minutes:
- Navigate to Settings > Integrations > SIP2 Server.
- Enable the SIP2 listener and assign a port.
- Create a device account with a username, password, and branch assignment.
- Define which message types the device is authorized to send.
- Test the connection using our built-in SIP2 diagnostic tool, which sends a status request and displays the raw response.
Looking Ahead
The library community is gradually exploring alternatives like NCIP and newer REST-based protocols that offer richer functionality and modern security. But SIP2 is not going away anytime soon. Thousands of devices in the field speak only SIP2, and replacing them is expensive. For the foreseeable future, a well-configured SIP2 integration remains the backbone of library self-service.