Learn the APDU structure for the type of card.
Read the manufacturer's documentation.