I am having difficulty setting my NTP5332 to send signals that events have been detected. I have tried the following in Android but can't seem to get the card to respond. I get an error code of 0x01
Does anyone have the right sequence of bytes to send?
public static final byte[] cmd_activateEDPinAl = new byte[]{
(byte) 0x12,
(byte) 0xC1,
(byte) 0x04,
(byte) 0x3D, //Config Memory for ED/EH Pin
(byte) 0x01, // EH_CONFIG
(byte) 0x00, // RFU
(byte) 0x01, // ED_CONFIG - Start Any command 00001010
(byte) 0x00
};
public static final byte[] cmd_activateEDPin = new byte[]{
(byte) 0x12,
(byte) 0xC1,
(byte) 0x04,
(byte) 0xA8, //Config Memory for ED/EH Pin
(byte) 0x01, // ED_CONFIG - Start Any command 00001010
(byte) 0x00, // RFU
(byte) 0x00,
(byte) 0x00
};
public static final byte[] cmd_clearEDPin = new byte[]{
(byte) 0x12,
(byte) 0xC1,
(byte) 0x04,
(byte) 0xAB, //Config Memory for ED/EH Pin
(byte) 0x01, // Clear 00000001 -> 0x01
(byte) 0x00, // RFU
(byte) 0x00, // RFU
(byte) 0x00 // RFU
};