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

[patch #7321] usbasp: filter usb serial number #619

Closed
avrs-admin opened this issue Dec 13, 2021 · 5 comments
Closed

[patch #7321] usbasp: filter usb serial number #619

avrs-admin opened this issue Dec 13, 2021 · 5 comments
Labels
enhancement New feature or request

Comments

@avrs-admin
Copy link

Mon 20 Sep 2010 08:30:42 PM UTC

Recently I tried using several usbasp compatible programmers (running my
reimplemantation of the usbasp protocol(http://github.com/fd0/kahuna)) at the same time, unfortunately
it is impossible to tell avrdude which one to use (it will just the first it
discovers, and I ended up using a usbasp programmer and my old avrisp2. brr).

So I added a unique usb serial number to all of my programmer devices and
patched avrdude so that if the port (-P) is given in the format usb:serialno
(like in the stk500v2 module), only devices with (prefix-) matching serial
numbers are considered.

file #21512: 0002-prefix-matching-for-usb-serial-numbers-for-usbasp.patch
file #21511: 0001-match-serial-number-for-usbasp-compatible-programmer.patch

This issue was migrated from https://savannah.nongnu.org/patch/?7321

@avrs-admin avrs-admin added the question Further information is requested label Dec 13, 2021
@avrs-admin
Copy link
Author

Alexander Neumann
Thu 25 Aug 2011 08:32:10 AM UTC

Hey Thomas,

Thanks for taking over, what is the state of this patch?

Cheers,

  • Alex

@avrs-admin
Copy link
Author

Joerg Wunsch <joerg_wunsch>
Wed 17 Jan 2018 10:43:41 PM UTC

Unfortunately, Thomas never handled it, so I'll take it over
now.

Meanwhile, AVRDUDE has replaced all fprintf(stderr, ... by
avrdude_message(MSG_, ...), so the patch no longer
applies. Are you interested in filing an update patch?

Regarding a partial serial number match, I suggest to match
the trailing digits rather than the initial substring: usual
serial numbers commonly have a similar initial part but differ
only in the last digits.  That's how the other programmers
do it which implement a serial number match.

@mcuee
Copy link
Collaborator

mcuee commented Jun 10, 2022

I think this is a useful feature. Therefore I create a new issue here.

Relevant discussions:

@mcuee mcuee added the enhancement New feature or request label Jun 19, 2022
@mcuee mcuee removed the question Further information is requested label Nov 6, 2022
@stefanrueger
Copy link
Collaborator

Seeing that this issue has been migrated to #973 I suggest closing this one.

@mcuee
Copy link
Collaborator

mcuee commented Jun 12, 2023

Okay I will close this and further discussions can be done in #973.

@mcuee mcuee closed this as completed Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants