Eclipse Keyple is probably the most powerful and complete open-source middleware for integrating Calypso card processing into ticketing terminals. This technical support site provides:
CNA also provides Keyple-based tools (some publicly accessible, some reserved for CNA members).