Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"But this one goes to eleven." -- Nigel Tufnel


computers / comp.sys.raspberry-pi / Re: Using Pi PICO W flash

SubjectAuthor
* Using Pi PICO W flashThe Natural Philosopher
+* Re: Using Pi PICO W flashDavid Taylor
|`* Re: Using Pi PICO W flashThe Natural Philosopher
| `* Re: Using Pi PICO W flashDavid Taylor
|  `* Re: Using Pi PICO W flashThe Natural Philosopher
|   `* Re: Using Pi PICO W flashDavid Taylor
|    `* Re: Using Pi PICO W flashThe Natural Philosopher
|     +- Re: Using Pi PICO W flashDavid Taylor
|     `* Re: Using Pi PICO W flashMichael Schwingen
|      `* Re: Using Pi PICO W flashThe Natural Philosopher
|       `* Re: Using Pi PICO W flashMichael Schwingen
|        `- Re: Using Pi PICO W flashThe Natural Philosopher
+- Re: Using Pi PICO W flashBjörn Lundin
`* Re: Using Pi PICO W flashNikolaj Lazic
 `* Re: Using Pi PICO W flashThe Natural Philosopher
  `* Re: Using Pi PICO W flashNikolaj Lazic
   `- Re: Using Pi PICO W flashThe Natural Philosopher

1
Using Pi PICO W flash

<u9g49b$3oe5v$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=6602&group=comp.sys.raspberry-pi#6602

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi
Subject: Using Pi PICO W flash
Date: Sat, 22 Jul 2023 09:33:47 +0100
Organization: A little, after lunch
Lines: 32
Message-ID: <u9g49b$3oe5v$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 22 Jul 2023 08:33:47 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="898e2715bc108c82b37a247f8a260e92";
logging-data="3946687"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19viFS4TDhYzCg/iWYNzwCuCniqzfRjIKk="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:VhxRehLs5/GdUJJbkgFMEz+QF50=
Content-Language: en-GB
 by: The Natural Philosop - Sat, 22 Jul 2023 08:33 UTC

Ive been reading up a bit on the PICO W with a possible use for it as a
set of networked domestic temperature sensors.

All seems possible with the usual input of hard work and head
scratching, but in order to do this each PICO W would need to be
uniquely identified and configured to connect to the nearest wifi access
pint.

Now obviously this could be done in the source code itself, but really
I'd prefer to keep the source code constant and instead use the ability
of the flash RAM to appear as a USB storage device to drop a simple
configuration file into that, and read it from the pico, but it seems
this is not as easy as it sounds.

From my limited research it appears that only the boot loader
understands the Flash file format.

Once booted you are on your own, so to speak.

There do seem to be some basic tools in Python, but I prefer to use C if
possible.

Anyone played with this at all?

--
Socialism is the philosophy of failure, the creed of ignorance and the
gospel of envy.

Its inherent virtue is the equal sharing of misery.

Winston Churchill

Re: Using Pi PICO W flash

<u9g6b7$3m7s4$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=6603&group=comp.sys.raspberry-pi#6603

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david-taylor@blueyonder.co.uk.invalid (David Taylor)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Using Pi PICO W flash
Date: Sat, 22 Jul 2023 10:08:55 +0100
Organization: A noiseless patient Spider
Lines: 47
Message-ID: <u9g6b7$3m7s4$1@dont-email.me>
References: <u9g49b$3oe5v$1@dont-email.me>
Reply-To: david-taylor@blueyonder.co.uk
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 22 Jul 2023 09:08:56 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="1e1347b5e6cb2b7b2a1053cf0241ec80";
logging-data="3874692"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1++mzJBI2OXWOADTrSTV4wnUg6LPJJD8IY="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:17nb9UgwOLThCFh2ono8nxoMp8Q=
Content-Language: en-GB
In-Reply-To: <u9g49b$3oe5v$1@dont-email.me>
 by: David Taylor - Sat, 22 Jul 2023 09:08 UTC

On 22/07/2023 09:33, The Natural Philosopher wrote:
> Ive been reading up a bit on the PICO W with a possible use for it as a
> set of networked domestic temperature sensors.
>
> All seems possible with the usual input of hard work and head
> scratching, but in order to do this each PICO W would need to be
> uniquely identified and configured to connect to the nearest wifi access
> pint.
>
> Now obviously this could be done in the source code itself, but really
> I'd prefer to keep the source code constant and instead use the ability
> of the flash RAM to appear as a USB storage device to drop a simple
> configuration file into that, and read it from the pico, but it seems
> this is not as easy as it sounds.
>
> From my limited research it appears that only the boot loader
> understands the Flash file format.
>
> Once booted you are on your own, so to speak.
>
> There do seem to be some basic tools in Python, but I prefer to use C if
> possible.
>
> Anyone played with this at all?

For the actual task you might like to consider MQTT:


https://www.tomshardware.com/how-to/send-and-receive-data-raspberry-pi-pico-w-mqtt

Played with that and it does work.

I do recall reading something recently about auto-configuration, but I don't
recall where. Don't worry about Python - it's easy and there are lots of
examples out there.

Something like Thonny would enable you to add the appropriate configuration
file to the Pico - it works over USB so Wi-Fi isn't needed at that stage. For
example, look here for WIFI_CONFIG.py:

https://learn.pimoroni.com/article/getting-started-with-badger-2040

--
Cheers,
David
Web: https://www.satsignal.eu

Re: Using Pi PICO W flash

<u9g8iu$3ov9b$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=6604&group=comp.sys.raspberry-pi#6604

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Using Pi PICO W flash
Date: Sat, 22 Jul 2023 10:47:10 +0100
Organization: A little, after lunch
Lines: 70
Message-ID: <u9g8iu$3ov9b$1@dont-email.me>
References: <u9g49b$3oe5v$1@dont-email.me> <u9g6b7$3m7s4$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 22 Jul 2023 09:47:10 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="898e2715bc108c82b37a247f8a260e92";
logging-data="3964203"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+2JIIko1PiDj2kLoT1bRDQUAW79MOUZ6I="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:T5SObzrAYhkzpTXBlKiL9f/lZ40=
Content-Language: en-GB
In-Reply-To: <u9g6b7$3m7s4$1@dont-email.me>
 by: The Natural Philosop - Sat, 22 Jul 2023 09:47 UTC

On 22/07/2023 10:08, David Taylor wrote:
> On 22/07/2023 09:33, The Natural Philosopher wrote:
>> Ive been reading up a bit on the PICO W with a possible use for it as a
>> set of networked domestic temperature sensors.
>>
>> All seems possible with the usual input of hard work and head
>> scratching, but in order to do this each PICO W would need to be
>> uniquely identified and configured to connect to the nearest wifi access
>> pint.
>>
>> Now obviously this could be done in the source code itself, but really
>> I'd prefer to keep the source code constant and instead use the ability
>> of the flash RAM to appear as a USB storage device to drop a simple
>> configuration file into that, and read it from the pico, but it seems
>> this is not as easy as it sounds.
>>
>>   From my limited research it appears that only the boot loader
>> understands the Flash file format.
>>
>> Once booted you are on your own, so to speak.
>>
>> There do seem to be some basic tools in Python, but I prefer to use C if
>> possible.
>>
>> Anyone played with this at all?
>
> For the actual task you might like to consider MQTT:
>
>
> https://www.tomshardware.com/how-to/send-and-receive-data-raspberry-pi-pico-w-mqtt
>
> Played with that and it does work.
>
> I do recall reading something recently about auto-configuration, but I
> don't recall where.  Don't worry about Python - it's easy and there are
> lots of examples out there.
>
> Something like Thonny would enable you to add the appropriate
> configuration file to the Pico - it works over USB so Wi-Fi isn't needed
> at that stage.  For example, look here for WIFI_CONFIG.py:
>
>   https://learn.pimoroni.com/article/getting-started-with-badger-2040
>
Thanks for all that. I will look into it.

I have been thinking more, and have decided that it really doesn't
matter if the pico C libraries can understand file systems or not, as it
would be entirely possible to scan the *whole* flash memory for strings
like $SSID="MYWIFI" and $PASSWORD="rats.vomit" and $LOCATION="Kitchen"
etc etc

My ignorance here derives from a comment I found online that 'invoking
BOOTSEL by powering the Pico on with the button pressed erases files
from the Pico's flash'.

And yet there is another piece of info describing how you need to run a
program on the pico to erase it's flash!

I think I will risk the very few pence a Pico costs, plug it in, and see...

--
Those who want slavery should have the grace to name it by its proper
name. They must face the full meaning of that which they are advocating
or condoning; the full, exact, specific meaning of collectivism, of its
logical implications, of the principles upon which it is based, and of
the ultimate consequences to which these principles will lead. They must
face it, then decide whether this is what they want or not.

Ayn Rand.

Re: Using Pi PICO W flash

<u9h34k$3m7s4$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=6605&group=comp.sys.raspberry-pi#6605

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david-taylor@blueyonder.co.uk.invalid (David Taylor)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Using Pi PICO W flash
Date: Sat, 22 Jul 2023 18:20:20 +0100
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <u9h34k$3m7s4$2@dont-email.me>
References: <u9g49b$3oe5v$1@dont-email.me> <u9g6b7$3m7s4$1@dont-email.me>
<u9g8iu$3ov9b$1@dont-email.me>
Reply-To: david-taylor@blueyonder.co.uk
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 22 Jul 2023 17:20:20 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="1e1347b5e6cb2b7b2a1053cf0241ec80";
logging-data="3874692"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+zkzeMka4q4jxA5Mp6R0Sz1b3p5BvUrro="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:GoFR4Pr3+GXeG6g9CESqq4eh1WI=
Content-Language: en-GB
In-Reply-To: <u9g8iu$3ov9b$1@dont-email.me>
 by: David Taylor - Sat, 22 Jul 2023 17:20 UTC

On 22/07/2023 10:47, The Natural Philosopher wrote:
> Thanks for all that. I will look into it.
>
> I have been thinking more, and have decided that it really doesn't
> matter if the pico C libraries can understand file systems or not, as it
> would be entirely possible to scan the*whole* flash memory for strings
> like $SSID="MYWIFI" and $PASSWORD="rats.vomit" and $LOCATION="Kitchen"
> etc etc
>
> My ignorance here derives from a comment I found online that 'invoking
> BOOTSEL by powering the Pico on with the button pressed erases files
> from the Pico's flash'.
>
> And yet there is another piece of info describing how you need to run a
> program on the pico to erase it's flash!
>
> I think I will risk the very few pence a Pico costs, plug it in, and see...

Yes, but basic solution with Wi-Fi could easily be extended. Use Thonny to
write a file with the details you need, and get the Python app to read those
details. Works well for Wi-Fi.

You don't need to either read, or erase, the whole flash. Get the basic Python
loaded (likely it will already be there) and use Thonny to look at the Pico W
contents. Thonny works on Windows, Linux, and the Mac.
--
Cheers,
David
Web: https://www.satsignal.eu

Re: Using Pi PICO W flash

<u9h8qf$3tpsv$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=6606&group=comp.sys.raspberry-pi#6606

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Using Pi PICO W flash
Date: Sat, 22 Jul 2023 19:57:19 +0100
Organization: A little, after lunch
Lines: 35
Message-ID: <u9h8qf$3tpsv$1@dont-email.me>
References: <u9g49b$3oe5v$1@dont-email.me> <u9g6b7$3m7s4$1@dont-email.me>
<u9g8iu$3ov9b$1@dont-email.me> <u9h34k$3m7s4$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 22 Jul 2023 18:57:19 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="898e2715bc108c82b37a247f8a260e92";
logging-data="4122527"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/+ayWrESxpP/pptqH+ePoI2upZ9WuQ/3w="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:VzNjATJ/6HfBvqKjyGkre/V7neg=
In-Reply-To: <u9h34k$3m7s4$2@dont-email.me>
Content-Language: en-GB
 by: The Natural Philosop - Sat, 22 Jul 2023 18:57 UTC

On 22/07/2023 18:20, David Taylor wrote:
> On 22/07/2023 10:47, The Natural Philosopher wrote:
>> Thanks for all that. I will look into it.
>>
>> I have been thinking more, and have decided that it really doesn't
>> matter if the pico C libraries can understand file systems or not, as it
>> would be entirely possible to scan the*whole*  flash memory for strings
>> like $SSID="MYWIFI" and $PASSWORD="rats.vomit" and $LOCATION="Kitchen"
>> etc etc
>>
>> My ignorance here derives from a comment I found online that 'invoking
>> BOOTSEL by powering the Pico on with the button pressed erases files
>> from the Pico's flash'.
>>
>> And yet there is another piece of info describing how you need to run a
>> program on the pico to erase it's flash!
>>
>> I think I will risk the very few pence a Pico costs, plug it in, and
>> see...
>
> Yes, but basic solution with Wi-Fi could easily be extended.  Use Thonny
> to write a file with the details you need, and get the Python app to
> read those details.  Works well for Wi-Fi.
>
I dont want to use python

> You don't need to either read, or erase, the whole flash.  Get the basic
> Python loaded (likely it will already be there) and use Thonny to look
> at the Pico W contents.  Thonny works on Windows, Linux, and the Mac.

--
“Puritanism: The haunting fear that someone, somewhere, may be happy.”

H.L. Mencken, A Mencken Chrestomathy

Re: Using Pi PICO W flash

<u9ia78$5dol$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=6607&group=comp.sys.raspberry-pi#6607

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david-taylor@blueyonder.co.uk.invalid (David Taylor)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Using Pi PICO W flash
Date: Sun, 23 Jul 2023 05:27:20 +0100
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <u9ia78$5dol$1@dont-email.me>
References: <u9g49b$3oe5v$1@dont-email.me> <u9g6b7$3m7s4$1@dont-email.me>
<u9g8iu$3ov9b$1@dont-email.me> <u9h34k$3m7s4$2@dont-email.me>
<u9h8qf$3tpsv$1@dont-email.me>
Reply-To: david-taylor@blueyonder.co.uk
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 23 Jul 2023 04:27:21 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a38a4db7f9a38902ef5080fe0dfc642c";
logging-data="177941"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ujvn6KeeiTNFPt86PpgfVScCaLoPXpwk="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:gBrag8phKEZmWzVBnQljBJL7oC4=
Content-Language: en-GB
In-Reply-To: <u9h8qf$3tpsv$1@dont-email.me>
 by: David Taylor - Sun, 23 Jul 2023 04:27 UTC

On 22/07/2023 19:57, The Natural Philosopher wrote:
> I dont want to use python

I didn't /want/ to use Python, but it's fast enough for the job, it's already
provided on the Pico, it's easy to use, there are plenty of examples, and it's
well supported.

For me, by far the easiest and quickest solution.

For you it may at least provide an source of ideas about customising a setup
without the need to read the whole flash memory.
--
Cheers,
David
Web: https://www.satsignal.eu

Re: Using Pi PICO W flash

<u9im5b$6lt7$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=6608&group=comp.sys.raspberry-pi#6608

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Using Pi PICO W flash
Date: Sun, 23 Jul 2023 08:51:07 +0100
Organization: A little, after lunch
Lines: 45
Message-ID: <u9im5b$6lt7$1@dont-email.me>
References: <u9g49b$3oe5v$1@dont-email.me> <u9g6b7$3m7s4$1@dont-email.me>
<u9g8iu$3ov9b$1@dont-email.me> <u9h34k$3m7s4$2@dont-email.me>
<u9h8qf$3tpsv$1@dont-email.me> <u9ia78$5dol$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 23 Jul 2023 07:51:07 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="3ae897ee53259a940726f56f0686b3f7";
logging-data="219047"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+H5rQoPYHKHmDdMaL0cDmm308f1+2b+zs="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:ofUBumkyklN+uvvtf0rB7FBnJ8M=
Content-Language: en-GB
In-Reply-To: <u9ia78$5dol$1@dont-email.me>
 by: The Natural Philosop - Sun, 23 Jul 2023 07:51 UTC

On 23/07/2023 05:27, David Taylor wrote:
> On 22/07/2023 19:57, The Natural Philosopher wrote:
>> I dont want to use python
>
> I didn't /want/ to use Python, but it's fast enough for the job, it's
> already provided on the Pico, it's easy to use, there are plenty of
> examples, and it's well supported.
>
> For me, by far the easiest and quickest solution.
>
> For you it may at least provide an source of ideas about customising a
> setup without the need to read the whole flash memory.

The problem - as I now understand it - is that the only easy use of the
flash memory is to store the program code. At least all my research so
far shows that its a total bitch to access from the code stored in it.
With lots of gotchas.

My tentative conclusion, since the PICO Ws will be clients to a Pi Zero
W server, is to store the binary (UF2) files on the Pi Zero W, and have
a web interface to a web server on the Zero W to take user supplied
values and *patch* the binary for downloading on to a USB attached PICO W.

So each PICO W will run *unique* code in terms of hostname, SSID, WIFI
password, possibly static IP address, and so on.

There is an another advantage to this, to, in that at the time of
creating the patched UF2, each side will 'know' the others IP address,
and so the clients could be preconfigured to know the server's address,
as well. And vice versa, if needed.

This makes the client code extremely simple indeed...connect to wifi,
read a sensor or three, connect to server and transmit data over, and
sleep for a minute or two. Rinse and repeat. Possibly, if battery
voltage sensor shows 'low', flash the onboard LED...

This is, at least, the first solution where I can see a way through to
do *everything* needful, fairly simply.

--
Canada is all right really, though not for the whole weekend.

"Saki"

Re: Using Pi PICO W flash

<u9iphf$7109$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=6609&group=comp.sys.raspberry-pi#6609

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bnl@nowhere.com (Björn Lundin)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Using Pi PICO W flash
Date: Sun, 23 Jul 2023 10:48:47 +0200
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <u9iphf$7109$1@dont-email.me>
References: <u9g49b$3oe5v$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 23 Jul 2023 08:48:47 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="6f31bb30aec10262a15fa13baf9aca8a";
logging-data="230409"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19qYa8bflWkQtxl0KhCOMJ1"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:WmayrhW3UyHE0HL8on1rDtZmZ2k=
Content-Language: en-US
In-Reply-To: <u9g49b$3oe5v$1@dont-email.me>
 by: Björn Lundin - Sun, 23 Jul 2023 08:48 UTC

On 2023-07-22 10:33, The Natural Philosopher wrote:
>
> All seems possible with the usual input of hard work and head
> scratching, but in order to do this each PICO W would need to be
> uniquely identified and configured to connect to the nearest wifi access
> pint.
>
> Now obviously this could be done in the source code itself, but really
> I'd prefer to keep the source code constant and instead use the ability
> of the flash RAM to appear as a USB storage device to drop a simple
> configuration file into that, and read it from the pico, but it seems
> this is not as easy as it sounds.

If you are in control of where the picos are deployed,
You could get the unique id of the pico, and look up the config for that
device. Rhymes bad with 'keeping source code constant'.
However if you put it in a separate c/h file, it's not that far from a
config file.

A colleague once said that
"source code is also configuration,
just process it with a compiler first"

<https://www.raspberrypi.com/documentation/pico-sdk/high_level.html#pico_unique_id>

--
/Björn

Re: Using Pi PICO W flash

<u9it18$5dol$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=6610&group=comp.sys.raspberry-pi#6610

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david-taylor@blueyonder.co.uk.invalid (David Taylor)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Using Pi PICO W flash
Date: Sun, 23 Jul 2023 10:48:24 +0100
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <u9it18$5dol$2@dont-email.me>
References: <u9g49b$3oe5v$1@dont-email.me> <u9g6b7$3m7s4$1@dont-email.me>
<u9g8iu$3ov9b$1@dont-email.me> <u9h34k$3m7s4$2@dont-email.me>
<u9h8qf$3tpsv$1@dont-email.me> <u9ia78$5dol$1@dont-email.me>
<u9im5b$6lt7$1@dont-email.me>
Reply-To: david-taylor@blueyonder.co.uk
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 23 Jul 2023 09:48:25 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a38a4db7f9a38902ef5080fe0dfc642c";
logging-data="177941"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/CUoBU0U8+cY96D2ZMl7HiwpPxojS2wdM="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:W0CaCGMUvFyKEpWGDKCfpy+tlGE=
In-Reply-To: <u9im5b$6lt7$1@dont-email.me>
Content-Language: en-GB
 by: David Taylor - Sun, 23 Jul 2023 09:48 UTC

On 23/07/2023 08:51, The Natural Philosopher wrote:
> The problem - as I now understand it - is that the only easy use of the
> flash memory is to store the program code. At least all my research so
> far shows that its a total bitch to access from the code stored in it.
> With lots of gotchas.

I note your proposed solution.

Using Python, the flash contains a program named main.py which will run
automatically when the Pico starts. You can add (using Thonny) a file such as
config.py which the program can read, so that's two files on the flash. It
looks like a standard file system, and there can even be sub-directories. So
one program, and a custom config file for each Pico.

Good luck!
--
Cheers,
David
Web: https://www.satsignal.eu

Re: Using Pi PICO W flash

<slrnubrkg7.3258.nlazicBEZ_OVOGA@mudrac.ffzg.hr>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=6611&group=comp.sys.raspberry-pi#6611

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsfeed.CARNet.hr!.POSTED.193.198.212.8!not-for-mail
From: nlazicBEZ_OVOGA@mudrac.ffzg.hr (Nikolaj Lazic)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Using Pi PICO W flash
Date: Mon, 24 Jul 2023 01:21:11 -0000 (UTC)
Organization: CARNet, Croatia
Message-ID: <slrnubrkg7.3258.nlazicBEZ_OVOGA@mudrac.ffzg.hr>
References: <u9g49b$3oe5v$1@dont-email.me>
Reply-To: nlazicBEZ_OVOGA@mudrac.ffzg.hr
Injection-Date: Mon, 24 Jul 2023 01:21:11 -0000 (UTC)
Injection-Info: news1.carnet.hr; posting-host="193.198.212.8";
logging-data="1897840"; mail-complaints-to="abuse@CARNet.hr"
User-Agent: slrn/1.0.2 (Linux)
 by: Nikolaj Lazic - Mon, 24 Jul 2023 01:21 UTC

Dana Sat, 22 Jul 2023 09:33:47 +0100, The Natural Philosopher <tnp@invalid.invalid> napis'o:
> Ive been reading up a bit on the PICO W with a possible use for it as a
> set of networked domestic temperature sensors.
>
> All seems possible with the usual input of hard work and head
> scratching, but in order to do this each PICO W would need to be
> uniquely identified and configured to connect to the nearest wifi access
> pint.
>
> Now obviously this could be done in the source code itself, but really
> I'd prefer to keep the source code constant and instead use the ability
> of the flash RAM to appear as a USB storage device to drop a simple
> configuration file into that, and read it from the pico, but it seems
> this is not as easy as it sounds.
>
> From my limited research it appears that only the boot loader
> understands the Flash file format.
>
> Once booted you are on your own, so to speak.
>
> There do seem to be some basic tools in Python, but I prefer to use C if
> possible.
>
> Anyone played with this at all?
>

Have you looked at:
https://www.home-assistant.io/
https://esphome.io/index.html
https://esphome.io/components/rp2040.html

Re: Using Pi PICO W flash

<u9lucj$lba2$13@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=6612&group=comp.sys.raspberry-pi#6612

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Using Pi PICO W flash
Date: Mon, 24 Jul 2023 14:29:55 +0100
Organization: A little, after lunch
Lines: 43
Message-ID: <u9lucj$lba2$13@dont-email.me>
References: <u9g49b$3oe5v$1@dont-email.me>
<slrnubrkg7.3258.nlazicBEZ_OVOGA@mudrac.ffzg.hr>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 24 Jul 2023 13:29:55 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="db1910e9780eabc23ffaf59ca84b2eb2";
logging-data="699714"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19A+0dg8901S/daKCwlP8gIFD/rTN/wc24="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:XclwO9D+wgLGauCT7tJCjslHdcI=
Content-Language: en-GB
In-Reply-To: <slrnubrkg7.3258.nlazicBEZ_OVOGA@mudrac.ffzg.hr>
 by: The Natural Philosop - Mon, 24 Jul 2023 13:29 UTC

On 24/07/2023 02:21, Nikolaj Lazic wrote:
> Dana Sat, 22 Jul 2023 09:33:47 +0100, The Natural Philosopher <tnp@invalid.invalid> napis'o:
>> Ive been reading up a bit on the PICO W with a possible use for it as a
>> set of networked domestic temperature sensors.
>>
>> All seems possible with the usual input of hard work and head
>> scratching, but in order to do this each PICO W would need to be
>> uniquely identified and configured to connect to the nearest wifi access
>> pint.
>>
>> Now obviously this could be done in the source code itself, but really
>> I'd prefer to keep the source code constant and instead use the ability
>> of the flash RAM to appear as a USB storage device to drop a simple
>> configuration file into that, and read it from the pico, but it seems
>> this is not as easy as it sounds.
>>
>> From my limited research it appears that only the boot loader
>> understands the Flash file format.
>>
>> Once booted you are on your own, so to speak.
>>
>> There do seem to be some basic tools in Python, but I prefer to use C if
>> possible.
>>
>> Anyone played with this at all?
>>
>
> Have you looked at:
> https://www.home-assistant.io/
No. Nothing to do with what I want to do is it?

> https://esphome.io/index.html
Inst using rapsberry PI and isnt coded by me

> https://esphome.io/components/rp2040.html
Nothing to do with a Raspberry PI either.

--
"I guess a rattlesnake ain't risponsible fer bein' a rattlesnake, but ah
puts mah heel on um jess the same if'n I catches him around mah chillun".

Re: Using Pi PICO W flash

<slrnubtfps.2kv65.news-1513678000@a-tuin.ms.intern>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=6613&group=comp.sys.raspberry-pi#6613

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: news-1513678000@discworld.dascon.de (Michael Schwingen)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Using Pi PICO W flash
Date: 24 Jul 2023 18:13:16 GMT
Lines: 39
Message-ID: <slrnubtfps.2kv65.news-1513678000@a-tuin.ms.intern>
References: <u9g49b$3oe5v$1@dont-email.me> <u9g6b7$3m7s4$1@dont-email.me>
<u9g8iu$3ov9b$1@dont-email.me> <u9h34k$3m7s4$2@dont-email.me>
<u9h8qf$3tpsv$1@dont-email.me> <u9ia78$5dol$1@dont-email.me>
<u9im5b$6lt7$1@dont-email.me>
X-Trace: individual.net idr4OYgz+tB48CuVAFNXnw9ws1v9SXLsjCHrjuZkj7WDPPv8bE
Cancel-Lock: sha1:12rxOPMDl55+zVZ1MCLVcZ6n6kw= sha256:Uinbmm2g6CBPYqQjwMgpYgHdz3rb1L/UJBFfvFDLXG4=
User-Agent: slrn/1.0.3 (Linux)
 by: Michael Schwingen - Mon, 24 Jul 2023 18:13 UTC

On 2023-07-23, The Natural Philosopher <tnp@invalid.invalid> wrote:
>> For you it may at least provide an source of ideas about customising a
>> setup without the need to read the whole flash memory.
>
> The problem - as I now understand it - is that the only easy use of the
> flash memory is to store the program code. At least all my research so
> far shows that its a total bitch to access from the code stored in it.
> With lots of gotchas.

How did you come to that conclusion?

I should be possible to have a flash filesystem (littlefs or similar) after
the flash area used by cour code:

https://arduino-pico.readthedocs.io/en/latest/fs.html

Even when not using the arduino libraries, setting up a flash filesystem
uses the same concepts. Your code can then store configuration information
in a file in the filesystem.

Providing that configuration information is a separate topic: a menu or CLI
on a serial port can easily be implemented in your code.

I tend to use a mixed approach (on ESP32, which is my go-to solution if I
need WiFi): the default WiFi parameters that allow initial connection to my
network are compiled into the firmware. The device then requests an IP
address via DHCP and starts a web server that allows configuration of all
relevant parameters (including WiFi SSID, password, static IP if needed plus
parameters for the specific task, like MQTT server and credentials).

You could also use the unique ID of the board to request configuration data
from a server - that way, no board-specific configuration storage is
necessary.

cu
Michael
--
Some people have no respect of age unless it is bottled.

Re: Using Pi PICO W flash

<u9ntnq$11mej$9@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=6614&group=comp.sys.raspberry-pi#6614

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Using Pi PICO W flash
Date: Tue, 25 Jul 2023 08:31:05 +0100
Organization: A little, after lunch
Lines: 63
Message-ID: <u9ntnq$11mej$9@dont-email.me>
References: <u9g49b$3oe5v$1@dont-email.me> <u9g6b7$3m7s4$1@dont-email.me>
<u9g8iu$3ov9b$1@dont-email.me> <u9h34k$3m7s4$2@dont-email.me>
<u9h8qf$3tpsv$1@dont-email.me> <u9ia78$5dol$1@dont-email.me>
<u9im5b$6lt7$1@dont-email.me>
<slrnubtfps.2kv65.news-1513678000@a-tuin.ms.intern>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 25 Jul 2023 07:31:06 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c7a99f4a1670b4358f8a01bf442f91c4";
logging-data="1104339"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19/+wWm3Uf2/h6H2yoCE6OLdx0spFp2AM4="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:tUQ4dYx+mnGp+jOgzcwoOPRPoTI=
In-Reply-To: <slrnubtfps.2kv65.news-1513678000@a-tuin.ms.intern>
Content-Language: en-GB
 by: The Natural Philosop - Tue, 25 Jul 2023 07:31 UTC

On 24/07/2023 19:13, Michael Schwingen wrote:
> On 2023-07-23, The Natural Philosopher <tnp@invalid.invalid> wrote:
>>> For you it may at least provide an source of ideas about customising a
>>> setup without the need to read the whole flash memory.
>>
>> The problem - as I now understand it - is that the only easy use of the
>> flash memory is to store the program code. At least all my research so
>> far shows that its a total bitch to access from the code stored in it.
>> With lots of gotchas.
>
> How did you come to that conclusion?
>
By doing internet research, The flash is accessible after its been
booted for read and write, but it seems that no file placed in it prior
to booting that isn't a .utf or whatever doesn't survive. This is
something I will try when the pico arrives.

But actually I will still go the 'get the code from server to burn into
the board' approach because that way the server knows the board data and
vice versa and it's still a file to be download onto the PICO before
booting.

> I should be possible to have a flash filesystem (littlefs or similar) after
> the flash area used by cour code:
>
> https://arduino-pico.readthedocs.io/en/latest/fs.html
>
> Even when not using the arduino libraries, setting up a flash filesystem
> uses the same concepts. Your code can then store configuration information
> in a file in the filesystem.
>
> Providing that configuration information is a separate topic: a menu or CLI
> on a serial port can easily be implemented in your code.
>
>
> I tend to use a mixed approach (on ESP32, which is my go-to solution if I
> need WiFi): the default WiFi parameters that allow initial connection to my
> network are compiled into the firmware. The device then requests an IP
> address via DHCP and starts a web server that allows configuration of all
> relevant parameters (including WiFi SSID, password, static IP if needed plus
> parameters for the specific task, like MQTT server and credentials).
>
> You could also use the unique ID of the board to request configuration data
> from a server - that way, no board-specific configuration storage is
> necessary.

Unfortunately the chief configuration required is the SSID & password
of the wifi, and the address of the server, all of which are needed
before you can ask the server for configuration data.

Once its done that the rest is as trivial as you indicate.

--
All political activity makes complete sense once the proposition that
all government is basically a self-legalising protection racket, is
fully understood.

Re: Using Pi PICO W flash

<slrnuc26jq.2kv65.news-1513678000@a-tuin.ms.intern>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=6615&group=comp.sys.raspberry-pi#6615

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: news-1513678000@discworld.dascon.de (Michael Schwingen)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Using Pi PICO W flash
Date: 26 Jul 2023 13:07:06 GMT
Lines: 20
Message-ID: <slrnuc26jq.2kv65.news-1513678000@a-tuin.ms.intern>
References: <u9g49b$3oe5v$1@dont-email.me> <u9g6b7$3m7s4$1@dont-email.me>
<u9g8iu$3ov9b$1@dont-email.me> <u9h34k$3m7s4$2@dont-email.me>
<u9h8qf$3tpsv$1@dont-email.me> <u9ia78$5dol$1@dont-email.me>
<u9im5b$6lt7$1@dont-email.me>
<slrnubtfps.2kv65.news-1513678000@a-tuin.ms.intern>
<u9ntnq$11mej$9@dont-email.me>
X-Trace: individual.net S/is1p/8mZ8zIYHNEIoU/g+8ix/UEKtrlZ0EA7NF13mWt7SMNU
Cancel-Lock: sha1:lbo60FM6FtL3OMoosx3GVZy1W5I= sha256:TMAZSkyFP9Z7xeooNx159vd1ulAnp2p//FPmJrzr+3c=
User-Agent: slrn/1.0.3 (Linux)
 by: Michael Schwingen - Wed, 26 Jul 2023 13:07 UTC

On 2023-07-25, The Natural Philosopher <tnp@invalid.invalid> wrote:
>
> Unfortunately the chief configuration required is the SSID & password
> of the wifi, and the address of the server, all of which are needed
> before you can ask the server for configuration data.

Which should all be constant across all boards in your network, so no
problem to compile into the code.

If you don't want to do that, you can do the initial setup that configures
these variables by hand (eg. via a serial port and terminal program on a
PC) on each board. The saved configuration on the device *should* survive a
firmware upgrade (it does on ESP32, and a quick google search indicates that
the RP2040 upload via BOOTSEL does *not* completely erase the flash - you
need to upload a special binary do do a full erase).

cu
Michael
--
Some people have no respect of age unless it is bottled.

Re: Using Pi PICO W flash

<u9rh0g$1hncc$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=6616&group=comp.sys.raspberry-pi#6616

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Using Pi PICO W flash
Date: Wed, 26 Jul 2023 17:18:24 +0100
Organization: A little, after lunch
Lines: 35
Message-ID: <u9rh0g$1hncc$1@dont-email.me>
References: <u9g49b$3oe5v$1@dont-email.me> <u9g6b7$3m7s4$1@dont-email.me>
<u9g8iu$3ov9b$1@dont-email.me> <u9h34k$3m7s4$2@dont-email.me>
<u9h8qf$3tpsv$1@dont-email.me> <u9ia78$5dol$1@dont-email.me>
<u9im5b$6lt7$1@dont-email.me>
<slrnubtfps.2kv65.news-1513678000@a-tuin.ms.intern>
<u9ntnq$11mej$9@dont-email.me>
<slrnuc26jq.2kv65.news-1513678000@a-tuin.ms.intern>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 26 Jul 2023 16:18:24 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c3f30f2e491ad9ba513ed8bdbb765946";
logging-data="1629580"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Q/q9/6ev7Mvg9k0jrXGOaBGUSpITyBvc="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:B5GZhc11hezj0HlnFl0+s5QnI8g=
Content-Language: en-GB
In-Reply-To: <slrnuc26jq.2kv65.news-1513678000@a-tuin.ms.intern>
 by: The Natural Philosop - Wed, 26 Jul 2023 16:18 UTC

On 26/07/2023 14:07, Michael Schwingen wrote:
> On 2023-07-25, The Natural Philosopher <tnp@invalid.invalid> wrote:
>>
>> Unfortunately the chief configuration required is the SSID & password
>> of the wifi, and the address of the server, all of which are needed
>> before you can ask the server for configuration data.
>
> Which should all be constant across all boards in your network, so no
> problem to compile into the code.
>

I just cannot get out of the habit of designing things for production.
So arbitrary networks and dumb users is the order of the day.

> If you don't want to do that, you can do the initial setup that configures
> these variables by hand (eg. via a serial port and terminal program on a
> PC) on each board. The saved configuration on the device *should* survive a
> firmware upgrade (it does on ESP32, and a quick google search indicates that
> the RP2040 upload via BOOTSEL does *not* completely erase the flash - you
> need to upload a special binary do do a full erase).
>
That is more complicated for the user than the way I am adopting
They don't know what a serial port is, but they are familiar with usb
sticks and transferring files into them and downloading files via a web
browser etc...

> cu
> Michael

--
"Nature does not give up the winter because people dislike the cold."

― Confucius

Re: Using Pi PICO W flash

<slrnuc7f1j.18gea.nlazicBEZ_OVOGA@mudrac.ffzg.hr>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=6617&group=comp.sys.raspberry-pi#6617

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsfeed.CARNet.hr!.POSTED.193.198.212.8!not-for-mail
From: nlazicBEZ_OVOGA@mudrac.ffzg.hr (Nikolaj Lazic)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Using Pi PICO W flash
Date: Fri, 28 Jul 2023 13:01:39 -0000 (UTC)
Organization: CARNet, Croatia
Message-ID: <slrnuc7f1j.18gea.nlazicBEZ_OVOGA@mudrac.ffzg.hr>
References: <u9g49b$3oe5v$1@dont-email.me>
<slrnubrkg7.3258.nlazicBEZ_OVOGA@mudrac.ffzg.hr>
<u9lucj$lba2$13@dont-email.me>
Reply-To: nlazicBEZ_OVOGA@mudrac.ffzg.hr
Injection-Date: Fri, 28 Jul 2023 13:01:39 -0000 (UTC)
Injection-Info: news1.carnet.hr; posting-host="193.198.212.8";
logging-data="2955868"; mail-complaints-to="abuse@CARNet.hr"
User-Agent: slrn/1.0.2 (Linux)
 by: Nikolaj Lazic - Fri, 28 Jul 2023 13:01 UTC

Dana Mon, 24 Jul 2023 14:29:55 +0100, The Natural Philosopher <tnp@invalid.invalid> napis'o:
> On 24/07/2023 02:21, Nikolaj Lazic wrote:
>> Dana Sat, 22 Jul 2023 09:33:47 +0100, The Natural Philosopher <tnp@invalid.invalid> napis'o:
>>> Ive been reading up a bit on the PICO W with a possible use for it as a
>>> set of networked domestic temperature sensors.
>>>
>>> All seems possible with the usual input of hard work and head
>>> scratching, but in order to do this each PICO W would need to be
>>> uniquely identified and configured to connect to the nearest wifi access
>>> pint.
>>>
>>> Now obviously this could be done in the source code itself, but really
>>> I'd prefer to keep the source code constant and instead use the ability
>>> of the flash RAM to appear as a USB storage device to drop a simple
>>> configuration file into that, and read it from the pico, but it seems
>>> this is not as easy as it sounds.
>>>
>>> From my limited research it appears that only the boot loader
>>> understands the Flash file format.
>>>
>>> Once booted you are on your own, so to speak.
>>>
>>> There do seem to be some basic tools in Python, but I prefer to use C if
>>> possible.
>>>
>>> Anyone played with this at all?
>>>
>>
>> Have you looked at:
>> https://www.home-assistant.io/
> No. Nothing to do with what I want to do is it?

And you've figured this out... which way?
This is the whole system. You want to do just a part of it.
So, use just a part of it.

It uses one server that holds all the configurations for your
sensors and compiles the firmware for each of the systems you
need.

>
>> https://esphome.io/index.html
> Inst using rapsberry PI and isnt coded by me

This is a subsystem. And it is not coded by you.

>> https://esphome.io/components/rp2040.html
> Nothing to do with a Raspberry PI either.

This is also a subsystem for home assistant.
Everything is done throught the same way.
Configuration -> compile -> upload -> flash -> report back to the server.

Am I missing something or are you trying to redo the same thing?

Re: Using Pi PICO W flash

<ua26rd$2hvno$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=6621&group=comp.sys.raspberry-pi#6621

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Using Pi PICO W flash
Date: Sat, 29 Jul 2023 06:07:57 +0100
Organization: A little, after lunch
Lines: 67
Message-ID: <ua26rd$2hvno$1@dont-email.me>
References: <u9g49b$3oe5v$1@dont-email.me>
<slrnubrkg7.3258.nlazicBEZ_OVOGA@mudrac.ffzg.hr>
<u9lucj$lba2$13@dont-email.me>
<slrnuc7f1j.18gea.nlazicBEZ_OVOGA@mudrac.ffzg.hr>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 29 Jul 2023 05:07:57 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ceb4a33e3ce2bbadc429607c8d317811";
logging-data="2686712"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/NHxeIeYOnFACSGcTT03pmQKQA5z5P+P8="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:vbo7X2e7XRwkgZFfa+eJhz6AuiE=
In-Reply-To: <slrnuc7f1j.18gea.nlazicBEZ_OVOGA@mudrac.ffzg.hr>
Content-Language: en-GB
 by: The Natural Philosop - Sat, 29 Jul 2023 05:07 UTC

On 28/07/2023 14:01, Nikolaj Lazic wrote:
> Dana Mon, 24 Jul 2023 14:29:55 +0100, The Natural Philosopher <tnp@invalid.invalid> napis'o:
>> On 24/07/2023 02:21, Nikolaj Lazic wrote:
>>> Dana Sat, 22 Jul 2023 09:33:47 +0100, The Natural Philosopher <tnp@invalid.invalid> napis'o:
>>>> Ive been reading up a bit on the PICO W with a possible use for it as a
>>>> set of networked domestic temperature sensors.
>>>>
>>>> All seems possible with the usual input of hard work and head
>>>> scratching, but in order to do this each PICO W would need to be
>>>> uniquely identified and configured to connect to the nearest wifi access
>>>> pint.
>>>>
>>>> Now obviously this could be done in the source code itself, but really
>>>> I'd prefer to keep the source code constant and instead use the ability
>>>> of the flash RAM to appear as a USB storage device to drop a simple
>>>> configuration file into that, and read it from the pico, but it seems
>>>> this is not as easy as it sounds.
>>>>
>>>> From my limited research it appears that only the boot loader
>>>> understands the Flash file format.
>>>>
>>>> Once booted you are on your own, so to speak.
>>>>
>>>> There do seem to be some basic tools in Python, but I prefer to use C if
>>>> possible.
>>>>
>>>> Anyone played with this at all?
>>>>
>>>
>>> Have you looked at:
>>> https://www.home-assistant.io/
>> No. Nothing to do with what I want to do is it?
>
> And you've figured this out... which way?
> This is the whole system. You want to do just a part of it.
> So, use just a part of it.
>
> It uses one server that holds all the configurations for your
> sensors and compiles the firmware for each of the systems you
> need.
>
>>
>>> https://esphome.io/index.html
>> Inst using rapsberry PI and isnt coded by me
>
> This is a subsystem. And it is not coded by you.
>
>>> https://esphome.io/components/rp2040.html
>> Nothing to do with a Raspberry PI either.
>
> This is also a subsystem for home assistant.
> Everything is done throught the same way.
> Configuration -> compile -> upload -> flash -> report back to the server.
>
> Am I missing something or are you trying to redo the same thing?

I am building something for my own interest, for my own application.
That's why I run l,inux and play with raspberry Pis.

Otherwise I would be hanging out in farcebook on an apple fondleslab

--
“Progress is precisely that which rules and regulations did not foresee,”

– Ludwig von Mises

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor