Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
destroyer7 opened this issue May 25, 2018 · 2 comments
Open

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

destroyer7 opened this issue May 25, 2018 · 2 comments
Labels
good first issue Good for newcomers

Comments

@destroyer7
Copy link

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
Copy link

jafeelv commented Feb 16, 2023

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 myndcryme changed the title Not able to run the code Not able to run the code - "Error connecting to Arduino" Jun 13, 2023
@myndcryme
Copy link
Collaborator

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 myndcryme added the good first issue Good for newcomers label Jun 13, 2023
@Tribler Tribler locked as resolved and limited conversation to collaborators Jun 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants