My ATSHA204 is refuse to lock with 0x04 0x0F 0x23 0x42 error. Which means, the device state need to change or change of command bit.
I'd treid with letting the device Idle and awake to push LOCK config, - same.
Command I'm pushing is
lock_cmd  = 0x03; /// command lock_cmd  = 0x07; /// length lock_cmd  = 0x17; /// command lock lock_cmd  = 0x00; /// zone -- configuration zone lock_cmd  = (uint8_t) (conf_crc & 0x00FF); // 88 bytes conf CRC lock_cmd  = (uint8_t) (conf_crc >> 8); // 88 bytes conf CRC uint16_t lock_crc_calc; lock_crc_calc = crc16_calc (5, &lock_cmd); lock_cmd  = (uint8_t) (lock_crc_calc & 0x00FF); lock_cmd  = (uint8_t) (lock_crc_calc >> 8);
But failed as before. As it return 0x0F - seems to me command is correct. But what else state need to change ?
Any help is highly appreciated.