How to distinguish Pico from Pico W?

RP2040 based microcontroller boards running MicroPython.
Target audience: MicroPython users with an RP2040 boards.
This does not include conventional Linux-based Raspberry Pi boards.
Post Reply
User avatar
aivarannamaa
Posts: 171
Joined: Fri Sep 22, 2017 3:19 pm
Location: Estonia
Contact:

How to distinguish Pico from Pico W?

Post by aivarannamaa » Thu Jul 07, 2022 5:13 am

I haven't received my Pico W yet, but I'm told that that its INFO_UF2.TXT uses same Model and Board-ID values as original Pico. Do you know why is that?

Is there another way for distinguishing Pico W from original Pico in bootloader mode? I'd like to enhance Thonny's MicroPython installation dialog to pre-select proper MicroPython automatically.

What about USB PID/VID in normal mode? Are they same as on original Pico?
Aivar Annamaa
https://thonny.org

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: How to distinguish Pico from Pico W?

Post by jimmo » Thu Jul 07, 2022 8:00 am

aivarannamaa wrote:
Thu Jul 07, 2022 5:13 am
I haven't received my Pico W yet, but I'm told that that its INFO_UF2.TXT uses same Model and Board-ID values as original Pico. Do you know why is that?
I don't have one yet either, but they're the same RP2040 chip -- the bootloader doesn't know anything about what else is on the board, and the bootloader on the RP2040 is in ROM.
aivarannamaa wrote:
Thu Jul 07, 2022 5:13 am
What about USB PID/VID in normal mode? Are they same as on original Pico?
I believe they would be the same because MicroPython doesn't override it on these boards (again, haven't checked, but I can't see how it would be different from the code). We possibly could though -- might be worth raising an issue on github.com/micropython/micropthon and @kilograham

User avatar
scruss
Posts: 360
Joined: Sat Aug 12, 2017 2:27 pm
Location: Toronto, Canada
Contact:

Re: How to distinguish Pico from Pico W?

Post by scruss » Thu Jul 07, 2022 2:37 pm

There's a slightly messy method here:
with some additional commentary in that thread. There's also an official method on page 25 of the "Connecting to the Internet" datasheet.

I haven't got a Pico W yet either, and it looks like mine are a week or more away

Shards
Posts: 39
Joined: Fri Jun 25, 2021 5:14 pm
Location: Milton Keynes, UK

Re: How to distinguish Pico from Pico W?

Post by Shards » Thu Jul 07, 2022 3:38 pm

I have a couple of the new chips, available from day one here in the UK. I can confirm the INFO_UF2.TXT file is identical to the original board. Once micropython is installed it's easy enough to identify the new board. If nothing else it has a network module.

danjperron
Posts: 51
Joined: Thu Dec 27, 2018 11:38 pm
Location: Québec, Canada

Re: How to distinguish Pico from Pico W?

Post by danjperron » Thu Jul 07, 2022 10:24 pm

OK I got both of them .

you could search for the term "Pico" and "Pico W" to figure out which firmware is for. Mostly check for "Pico W"

Code: Select all

pi@benchpi4:~/micropython/ports/rp2 $ grep -obUa "Pico " ./build-PICO/firmware.uf2
496680:Pico 
pi@benchpi4:~/micropython/ports/rp2 $ grep -obUa "Pico " ./build-PICO_W/firmware.uf2
757446:Pico 
pi@benchpi4:~/micropython/ports/rp2 $ grep -obUa "Pico W" ./build-PICO/firmware.uf2
pi@benchpi4:~/micropython/ports/rp2 $ grep -obUa "Pico W" ./build-PICO_W/firmware.uf2
757446:Pico W

User avatar
scruss
Posts: 360
Joined: Sat Aug 12, 2017 2:27 pm
Location: Toronto, Canada
Contact:

Re: How to distinguish Pico from Pico W?

Post by scruss » Wed Jul 13, 2022 8:32 pm

aivarannamaa wrote:
Thu Jul 07, 2022 5:13 am
Is there another way for distinguishing Pico W from original Pico in bootloader mode?
I did find a difference, but I'm not sure it's relevant. INDEX.HTM on a v1 silicon Raspberry Pi Pico includes the string version=E0C912952D54, but on a (v2 silicon) Pico W it's version=E0C9125B0D9B.

I don't have any other v2 silicon RP2040 boards to test whether the version relates to the silicon or something else. Other v1 silicon RP2040 boards contain E0C912952D54, so I'm not very hopeful that it can detect Pico Ws. It can certainly tell you if it's not a Pico W, though ...

User avatar
aivarannamaa
Posts: 171
Joined: Fri Sep 22, 2017 3:19 pm
Location: Estonia
Contact:

Re: How to distinguish Pico from Pico W?

Post by aivarannamaa » Wed Jul 13, 2022 9:49 pm

Thanks for sharing this observation! But I think I'll refactor the installation dialog to present a dropdown with MicroPython variants rather than rely on index.htm
Aivar Annamaa
https://thonny.org

Post Reply