-
Notifications
You must be signed in to change notification settings - Fork 13
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
Attempt to solve Issue #26 (Motes change names while programming) #28
Conversation
Can one of the admins verify this patch? |
motes = glob.glob("/dev/serial/by-id/*IBR_INGA*") | ||
|
||
if not motes: | ||
motes = glob.glob("/dev/USB*") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you have to glob here on "/dev/ttyUSB*"
I will test this tomorrow. |
5947319
to
7b8e699
Compare
@yschroeder thank you (fixed that typo) |
We should think about how specific the udev rule should be: In the current version we map all FTDI devices to the INGA folder. This comes in handy for motes where the initial setup wasn't done (yet). But maybe it is better to only map devices into that folder that have
set. This can prevent confusion if multiple different FTDI devices are connected. Every INGA is an FTDI but not every FTDI is an INGA 😄 |
I just tested this (without parallel execution as PR #27 was missing). For me it works by getting the nodes from the /dev/inga folder. I have not tested the fallback paths. Maybe we should glob onto But after all: 👍 |
7b8e699
to
c51ffe7
Compare
Changed those things:
|
👍 looks great! I'm not sure if platform is the right place for the udev rules or if we should place it in |
Attempt to solve Issue #26 (Motes change names while programming)
Attempt to solve Issue ibr-cm#26 (Motes change names while programming)
This PR solves #26 in different ways