MicrochipTech / aws-iot-zero-touch-secure-provisioning-kit

Project files for the AWS IoT Zero Touch Secure Provisioning Kit
Other
19 stars 19 forks source link

how to communicate with ATECC508A in Linux via i2c directly? #1

Open paclema opened 6 years ago

paclema commented 6 years ago

Hello, I am developing an IoT device using your ATECC508A and AWS IoT service. I have the chip connected via I2C to a Chip pro board based on Debian.

Although there is some documentation here using the SAMG55 Xplained Pro board to make a JITR with AWS, I don't have many clues to use the ATECC508A connected directly to a Debian board using I2C without use in between the MCU ATSAMG55-XPRO. I am also using Python and Boto3 library to manage AWS services from the Chip pro Debian board and develop the board firmware.

Thank you in advance!

bryan-hunt commented 6 years ago

Cryptoauthlib which is the core library for using the ATECC508A does also feature a linux userspace i2c driver you can use. We don't have a cython interface for cryptoauthlib so if you want to make calls into the resulting c library directly from python you would end up using ctypes. There are a number of options however for building an interface for you final application and depend on your needs. Some options would be a cython module that provides just the operations you require, a compiled shell application that does the authentication steps, etc.