Tribler / software-based-PUF

The first open source software-based Physically Unclonable Function (PUF) using off-the-shelf SRAM
GNU General Public License v3.0
90 stars 26 forks source link

Not able to run the code - "Error connecting to Arduino" #2

Open destroyer7 opened 6 years ago

destroyer7 commented 6 years ago

Section 1.1: Retrieve SRAM's stable bits using data remanence algorithm I was trying to execute this. I uploaded the arduino code using platformio successfully. Then i ran the GetStableBits.py. But I got an error "Error connecting to Arduino". software-based-PUF/Source Code/enrollment and testing/master-testing/GetStableBits.py pls help.

I feel setting up the environment to run this project is quite a big task. If you could give detailed instructions on this it would be a great help to everyone.

jafeelv commented 1 year ago

Section 1.1: Retrieve SRAM's stable bits using data remanence algorithm I was trying to execute this. I uploaded the arduino code using platformio successfully. Then i ran the GetStableBits.py. But I got an error "Error connecting to Arduino". software-based-PUF/Source Code/enrollment and testing/master-testing/GetStableBits.py pls help.

I feel setting up the environment to run this project is quite a big task. If you could give detailed instructions on this it would be a great help to everyone.

Did you resolved this issue?

myndcryme commented 1 year ago

I got an error "Error connecting to Arduino"

This is an old question but I'll modify the title and leave it open because it is frequently asked. The author of this project hard coded the device path specific to his environment. Each user must make sure to use their own device path. For example, using Debian, my Arduino is recognized as '/dev/ttyACM0' when plugged in, so in GetStableBits.py (line 124)

thread2= StableBitsGenerator(is_sram_23lc1024=False, serialconnection='/dev/cu.usbmodem14121', bitrate=115200,
                              index='C')

is changed to

thread2= StableBitsGenerator(is_sram_23lc1024=False, serialconnection='/dev/ttyACM0', bitrate=115200,
                              index='C')