Java API and implementation for controlling a serially connected Chip and PIN robot