ACR122L – Communication Protocol
Version 1.03
www.acs.com.hk
Page 37 of 57
Example 1:
To read the existing LED State.
// Assume both LED_0 and LED_1 are OFF initially //
// Not linked to the buzzer //
APDU = “FF 00 40 00 04 00 00 00 00”
Response = “90 00”. LED_0 and LED_1 LEDs are OFF.
Example 2:
To turn on LED_0 and LED_1.
// Assume both LED_0 and LED_1 are OFF initially //
// Not linked to the buzzer //
APDU = “FF 00 40 0F 04 00 00 00 00”
Response = “90 03”. LED_0 and LED_1 are ON,
To turn off both LED_0 and LED_1, APDU = “FF 00 40 0C 04 00 00 00 00”
Example 3:
To turn off the LED_1 only, and leave the LED_0 unchanged.
// Assume both LED_0 and LED_1 are ON initially //
// Not linked to the buzzer //
APDU = “FF 00 40 04 04 00 00 00 00”
Response = “90 02”. LED_0 is not changed (ON); LED_1 is OFF.
LED_1 On
LED_1 Off
LED_0 On
LED_0 Off