Hey there,
Although this post may be dated, I believe it directly addresses my current issue, hence I'm sharing it here.
My objective was to empower non-technical end users to autonomously modify Wi-Fi connection settings on the Pico W device. To achieve this, I wrote software using pico-sdk with tinyusb to transform the Pico into a USB Mass Storage Class device, employing the FAT12 file system akin to the BOOTSEL mode on the Pico. Notably, within this software, solely the contents of the `WIFI.TXT` file are stored in the Pico's internal flash memory. This example software enables users to interface Pico W with a computer as a standard USB drive, facilitating Wi-Fi settings adjustments via a text editor. Naturally, developers retain the option to exclude credential information from the source code.
`WIFI.TXT` contains the following
For further details, refer to: https://github.com/oyama/pico-msc-wifi-setting
This implementation entails reading and writing a structure parsed from `WIFI.TXT` to a 256-byte segment of flash memory. While it does not adhere strictly to the FAT12 specification, it operates as a pseudo-FAT12 file system, focusing solely on the read and write of `WIFI.TXT` contents to and from the flash memory.
Sure, it's not the most straightforward setup, but I'm pretty chuffed with how user-friendly it turned out. Go ahead, give it a whirl!
Although this post may be dated, I believe it directly addresses my current issue, hence I'm sharing it here.
My objective was to empower non-technical end users to autonomously modify Wi-Fi connection settings on the Pico W device. To achieve this, I wrote software using pico-sdk with tinyusb to transform the Pico into a USB Mass Storage Class device, employing the FAT12 file system akin to the BOOTSEL mode on the Pico. Notably, within this software, solely the contents of the `WIFI.TXT` file are stored in the Pico's internal flash memory. This example software enables users to interface Pico W with a computer as a standard USB drive, facilitating Wi-Fi settings adjustments via a text editor. Naturally, developers retain the option to exclude credential information from the source code.
`WIFI.TXT` contains the following
Code:
ssid=YOUR_WIFI_SSIDpassword=YOUR_PASSWORDThis implementation entails reading and writing a structure parsed from `WIFI.TXT` to a 256-byte segment of flash memory. While it does not adhere strictly to the FAT12 specification, it operates as a pseudo-FAT12 file system, focusing solely on the read and write of `WIFI.TXT` contents to and from the flash memory.
Sure, it's not the most straightforward setup, but I'm pretty chuffed with how user-friendly it turned out. Go ahead, give it a whirl!
Statistics: Posted by 0yama — Wed Apr 03, 2024 3:31 pm