ATSHA204A problem: I can not encrypted Read DATA_ZONE at SOLT14 and SOLT15

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I set :

 CheckMacConfig     :  00

SlotConfig0 to SlotConfig1    :0x80  0xA0   as secret key . can not read and write.

SlotConfig2 to SlotConfig7    :0xC0  0xA0   only  encrypted Read . can't be written.  key is SOLT0

SlotConfig8 to SlotConfig15   :0xC1  0xA0   only  encrypted Read . can't be written.  key is SOLT1

 

others in Configuration Zone is all default.

and lock config.

 

then I write  Data ZONE Slot 0-15   32*16=512bytes,  

and locked data. everything is OK.

 

then I  encrypted Read DATA slot2-7 .  no error . readout datas is correct.  (key is Slot0 value)

then I read Slot8 to SLOT13 : Datas is all correct. (key is Slot1 value)

 

but when I read Slot14 and Slot 15 . ATSHA204A is no respond (ERROR TimeOUT). Read ways is all same with Reading Solt8-13 .

 

what's is the problem.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

0000 : 01 23 99 9C 00 09 04 00 6B 22 11 7A EE 10 00 00 
0010 : C8 00 55 00 80 A0 80 A0 C0 A0 C0 A0 C0 A0 C0 A0 
0020 : C0 A0 C0 A0 C1 A0 C1 A0 C1 A0 C1 A0 C1 A0 C1 A0 
0030 : C1 A0 C1 A0 FF 00 FF 00 FF 00 FF 00 FF 00 FF 00 
0040 : FF 00 FF 00 FF FF FF FF FF FF FF FF FF FF FF FF 
0050 : FF FF FF FF 00 00 00 00 

 

above is my Config Zone Value after Locked.

 

use atcab_read_enc function ,  ATSHA204A sot23  swi_uart mode.

 status= atcab_read_enc(Slotindex,0,pDest,enc_keySolt1,1);

Last Edited: Thu. Dec 5, 2019 - 06:36 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

wangxin wrote:

use atcab_read_enc function ,  ATSHA204A sot23  swi_uart mode.

 status= atcab_read_enc(Slotindex,0,pDest,enc_keySolt1,1);

 

According to your config settings for slot 15, the read key is 12 but you are passing is slot 1's key. Am I reading this correctly? I plugged your config into one of my projects and get the following:

        Write   Write   Write   Write   Write   Write   Write   Write   Is      Encrypt Limit   Check   Read    Read    Read    Read
        Config  Config  Config  Config  key     key     key     key     Secret  Read    Use     Only    Key     Key     Key     Key
-------------------------------------------------------------------------------------------------------------------------------------
Slot    15      14      13      12      11      10      9       8       7       6       5       4       3       2       1       0
-------------------------------------------------------------------------------------------------------------------------------------
0       1       0       0       0       0       0       0       0       1       0       1       0       0       0       0       0       0x80 0xA0       Write Key: 0 Read Key: 10 Secret: Yes Encrypt Read: No Encrypt Write: No
1       1       0       0       0       0       0       0       0       1       0       1       0       0       0       0       0       0x80 0xA0       Write Key: 0 Read Key: 10 Secret: Yes Encrypt Read: No Encrypt Write: No
2       1       0       0       0       0       0       0       0       1       0       1       0       0       0       0       0       0x80 0xA0       Write Key: 0 Read Key: 10 Secret: Yes Encrypt Read: No Encrypt Write: No
3       1       0       0       0       0       0       0       0       1       0       1       0       0       0       0       0       0x80 0xA0       Write Key: 0 Read Key: 10 Secret: Yes Encrypt Read: No Encrypt Write: No
4       1       0       0       0       0       0       0       0       1       0       1       0       0       0       0       0       0x80 0xA0       Write Key: 0 Read Key: 10 Secret: Yes Encrypt Read: No Encrypt Write: No
5       1       0       0       0       0       0       0       0       1       0       1       0       0       0       0       0       0x80 0xA0       Write Key: 0 Read Key: 10 Secret: Yes Encrypt Read: No Encrypt Write: No
6       1       0       0       0       0       0       0       0       1       0       1       0       0       0       0       0       0x80 0xA0       Write Key: 0 Read Key: 10 Secret: Yes Encrypt Read: No Encrypt Write: No
7       1       0       0       0       0       0       0       0       1       0       1       0       0       0       0       0       0x80 0xA0       Write Key: 0 Read Key: 10 Secret: Yes Encrypt Read: No Encrypt Write: No
8       1       0       1       0       0       0       0       0       1       1       0       0       0       0       0       1       0xA0 0xC1       Write Key: 0 Read Key: 12 Secret: Yes Encrypt Read: Yes Encrypt Write: No
9       1       0       1       0       0       0       0       0       1       1       0       0       0       0       0       1       0xA0 0xC1       Write Key: 0 Read Key: 12 Secret: Yes Encrypt Read: Yes Encrypt Write: No
10      1       0       1       0       0       0       0       0       1       1       0       0       0       0       0       1       0xA0 0xC1       Write Key: 0 Read Key: 12 Secret: Yes Encrypt Read: Yes Encrypt Write: No
11      1       0       1       0       0       0       0       0       1       1       0       0       0       0       0       1       0xA0 0xC1       Write Key: 0 Read Key: 12 Secret: Yes Encrypt Read: Yes Encrypt Write: No
12      1       0       1       0       0       0       0       0       1       1       0       0       0       0       0       1       0xA0 0xC1       Write Key: 0 Read Key: 12 Secret: Yes Encrypt Read: Yes Encrypt Write: No
13      1       0       1       0       0       0       0       0       1       1       0       0       0       0       0       1       0xA0 0xC1       Write Key: 0 Read Key: 12 Secret: Yes Encrypt Read: Yes Encrypt Write: No
14      1       0       1       0       0       0       0       0       1       1       0       0       0       0       0       1       0xA0 0xC1       Write Key: 0 Read Key: 12 Secret: Yes Encrypt Read: Yes Encrypt Write: No
15      1       0       1       0       0       0       0       0       1       1       0       0       0       0       0       1       0xA0 0xC1       Write Key: 0 Read Key: 12 Secret: Yes Encrypt Read: Yes Encrypt Write: No

 

"When all else fails, read the directions"