software-based-PUF icon indicating copy to clipboard operation
software-based-PUF copied to clipboard

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

Open destroyer7 opened this issue 7 years ago • 2 comments

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.

destroyer7 avatar May 25 '18 08:05 destroyer7

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?

jafeelv avatar Feb 16 '23 06:02 jafeelv

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')

myndcryme avatar Jun 13 '23 18:06 myndcryme