Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5589

MicroPython • Re: Show Pico W board info

$
0
0
Hello,

I'm looking for a way to display the Pico W board info e.g. version, firmware, etc.
Is there a function available so I can print it in the console ?


If it is connected to a linux system (such as a 'Flagship' RPi board running RasPiOS) then dmesg gives you some information including a serial number.

Using the usb REPL from any suitable workstation gives you a lot of 'signature' information when the device is Reset.

Comparative examples below from an RPi Pico W and an RPi Pico2 W.

Code:

[470197.347548] usb 1-2: new full-speed USB device number 7 using xhci-hcd[470197.519077] usb 1-2: New USB device found, idVendor=2e8a, idProduct=0005, bcdDevice= 1.00[470197.519083] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3[470197.519085] usb 1-2: Product: Board in FS mode[470197.519088] usb 1-2: Manufacturer: MicroPython[470197.519090] usb 1-2: SerialNumber: e6614864d3677d34[470197.546165] cdc_acm 1-2:1.0: ttyACM0: USB ACM deviceMicroPython v1.23.0 on 2024-06-02; Raspberry Pi Pico W with RP2040Type "help()" for more information.>>> 

Code:

[470704.083581] usb 1-2: new full-speed USB device number 9 using xhci-hcd[470704.255425] usb 1-2: New USB device found, idVendor=2e8a, idProduct=0005, bcdDevice= 1.00[470704.255447] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3[470704.255451] usb 1-2: Product: Board in FS mode[470704.255453] usb 1-2: Manufacturer: MicroPython[470704.255456] usb 1-2: SerialNumber: 9be2752092f4e1fc[470704.293481] cdc_acm 1-2:1.0: ttyACM0: USB ACM deviceMicroPython v1.25.0-preview.144.g4e76acc88 on 2024-12-20; Raspberry Pi Pico 2 W with RP2350Type "help()" for more information.>>> 

Statistics: Posted by B.Goode — Mon Dec 23, 2024 9:18 pm



Viewing all articles
Browse latest Browse all 5589

Trending Articles