wirenboard / atecc-util

Linux command-line tool for ATECC608A and ATECC508A
MIT License
37 stars 17 forks source link

Configuring the atecc #3

Closed dogusural closed 3 years ago

dogusural commented 3 years ago

Hey there,

Thank you for the great project. I have one question about the writing of the config.

write-config input.bin|-

I have three questions regarding that command.

  1. Why is there are |- sign at the end , why not just use the file name ?
  2. Why is the config file is in .bin format ?
  3. Can you give a sample regarding the .bin file needed to configure the atecc608 ?

Thank you

evgeny-boger commented 3 years ago

Why is there are |- sign at the end , why not just use the file name ?

- sign means read config from stdin. So it's either write-config input.bin or write-config -

Why is the config file is in .bin format ?

Because it's the way the config is stored and written to device: binary format. The meaning of individual bits and bytes is described in ATECC608A/508A datasheet. You may use dump-config though which will show most of the config parameters in human-readable form alongside with binary format.

Can you give a sample regarding the .bin file needed to configure the atecc608 ?

well, it's really not that easy. There are many many different use cases and writing config zone is one time operation (i.e. it can not be reversed). I would say you shoud use one supplied by Microchip in their appnotes and samples on AWS or Google IoT cloud service, for example.