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

pico_get_unique_board_id: Unique id is not always unique #1132

Closed
ThinkTransit opened this issue Dec 4, 2022 · 8 comments
Closed

pico_get_unique_board_id: Unique id is not always unique #1132

ThinkTransit opened this issue Dec 4, 2022 · 8 comments
Assignees
Labels
documentation Improvements or additions to documentation review
Milestone

Comments

@ThinkTransit
Copy link

I have 2 Pico W boards that return the same unique id with pico_get_unique_board_id()

For Pico W devices this can be resolved by combining with the mac address to form a unique combination, not sure what options exist for non wireless version.

@liamfraser
Copy link
Contributor

liamfraser commented May 31, 2023

@ThinkTransit do you have any more detail here? Was this a flash binary or a no flash build? No flash binaries are not expected to have a unique ID. On RP2040 the unique ID comes from the flash chip. I assume they are not sharing the same flash chip?

@ThinkTransit
Copy link
Author

@liamfraser I flashed the boards with the Pimoroni micropython firmware. Boards aren't using the same flash chip.

Looking through the micropython code it calls pico_get_unique_board_id().

I checked all my boards and it is only 2 boards that have the same unique_id so maybe it is a freak occurrence?

@kilograham kilograham added documentation Improvements or additions to documentation review labels May 19, 2024
@kilograham kilograham modified the milestones: 1.6.0, 1.6.1 May 19, 2024
@liamfraser
Copy link
Contributor

I think this might just be a freak occurrence. Potentially we could mix in the WiFi mac address on Pico W @peterharperuk, although that would require initializing the wireless driver at start of day which is probably undesirable.

@liamfraser liamfraser modified the milestones: 1.6.0, 1.7.0 Aug 1, 2024
@ThinkTransit
Copy link
Author

@liamfraser thanks yes it must be, I haven't seen it happen with any other boards. Maybe I just won the UUID lottery.

Will reopen it I come across it again.

@Tonykids
Copy link

I bought 50 luatos-rp2040 boards 6 monthon ago for my project and find they return the same unique id.
finally I find that it uses PY25Q32 instead of normal W25Q32 .
PY25Q32 has 128bit unique ID,this may be the problem.
LUTAOS
PY25Q32

@lurch
Copy link
Contributor

lurch commented Aug 13, 2024

@Tonykids See #1641

@peterharperuk
Copy link
Contributor

@Tonykids Any idea where I can get one of those boards for testing a fix for this?

@lurch
Copy link
Contributor

lurch commented Aug 15, 2024

@Tonykids You might like to test #1819 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation review
Projects
None yet
Development

No branches or pull requests

6 participants