-
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
Motes change names while programming #26
Comments
this problem also existed before the PR and is not caused by PR #13 |
It will also occur if you specify the MOTES value by hand |
This is incorrect, I just tested it by checking out one commit before bd53597 and there programming was possible:
|
wow, this is really confusing, because it should only use the value $(MOTES) for resetting and flashing. the resetting progress shows the value |
I won't blame you, Makefiles are black magic... But anyway this magic feature was quite useful 😃 |
And I think we would need even more black magic, to get this feature back, because it is a bit hard to find the correct device-path after resetting. So from my point of view it was only luck to get a successful run of the programmer (It fails if you use |
Yes that fails as you expected. Another idea: Can we check if the motes are enumerated in /dev/inga/?
Theses names are stable over resetting and this way the feature can be brought back for users that use the udev rule. If there are no motes in that folder then use the default ttyUSB paths. The longer I think about it, the more useful the old magic feature gets. I think I will personally be annoyed when I have to work with multiple motes and only every other try to program them works. |
Attempt to solve Issue #26 (Motes change names while programming)
Attempt to solve Issue ibr-cm#26 (Motes change names while programming)
PR #13 from @comawill introduced a new problem:
After resetting a mote with inga_tool the mote is newly enumerated and may change its name, eg. from ttyUSB1 to ttyUSB0. After that avrdude tries to program ttyUSB1 and fails.
Reproduction:
Plug in 2 motes, they get enumerated as ttyUSB0 and ttyUSB1.
Remove ttyUSB0, only ttyUSB1 remains.
make program.upload, fails as after reset the mote is no longer on ttyUSB1 but on ttyUSB0
make program.upload, works because the mote is now ttyUSB0 before and after reset
I hope this time I found a valid bug in this PR...
The text was updated successfully, but these errors were encountered: