Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 17:18 04 Dec 2026 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Update a WebMite using a browser page

Author Message
Malibu
Senior Member

Joined: 07/07/2018
Location: Australia
Posts: 268
Posted: 09:51pm 27 Nov 2026
Copy link to clipboard 
Print this post

Another great project by claude AI

From the ReadMe file :
  Quote  PICO WEB UPLOADER
=================
Update a Raspberry Pi Pico (RP2350 WebMite, MMBasic V7) from a web page: send web files and whole new programs from a browser,
with checksums, a backup, one-button rollback, and optional ENCRYPTED program files.

FOLDERS
 1_Working_Example/        A complete, tested uploader. Put the program and the page on a Pico and it works.
                           Includes a 100 KB test program for trying big installs.
 2_Minimum_Starting_Base/  ONLY the updating code (no WiFi / web-server code), as a parts list to merge into your own web program.
                           (Never run on its own - see its README.)
 3_Encryption/             The PC tool that makes encrypted program files, sample keys and files, and a detailed description of how
                           the encryption works from end to end.

QUICK START (details in 1_Working_Example/README.txt)
 1. Put update_pico_Ver3.bas on the Pico and RUN it. Put upload.html on the Pico (exactly that name).
 2. Browse to http://<the Pico's IP>/
 3. Choose a file and press UPLOAD. For a program, then press INSTALL. ROLLBACK goes back.

The basic idea is that you have a WebMite running remote and it needs a new program update or some extra files.
Usually, you would need to plug in to a PC and upload the new code via a terminal program (I always use MMCC)...

That may be difficult in some situations, so this tool here allows remote reprogramming using a web-page upload. Run the web page on the WebMite, select the file to send and it all works the same as using a terminal program.
There's also an optional Encryption to keep your program code from prying eyes if needed.

Try it out, it could be useful for someone  

There's lots of detailed README files in all the directories, and how-to examples

Working Example.zip

Minimum Files.zip

Encryption.zip
John
 
ville56
Guru

Joined: 08/06/2022
Location: Austria
Posts: 694
Posted: 11:47am 28 Nov 2026
Copy link to clipboard 
Print this post

Isn't the embedded TFTP server in the Webmite a way to upload new program files? It's at least what I use for that purpose. Also the Telnet console together with MMCC works for uploading new code IIRC. Maybe I just don't see the problem for the solution.
                                                                 
73 de OE1HGA, Gerald
 
Malibu
Senior Member

Joined: 07/07/2018
Location: Australia
Posts: 268
Posted: 06:49pm 28 Nov 2026
Copy link to clipboard 
Print this post

Thanks, and you're right: for my own bench work TFTP and the Telnet console with MMCC are simpler, and I use them too.

The problem I was playing with is a different one: a deployed WebMite that somebody else has to update with just a browser. So the page sits behind the unit's own developer login (and an edit lock), checks the upload with a checksum, keeps the old program so it can roll back, swaps it in and restarts the program, and recovers by itself if the power goes mid-update. It can also take an encrypted file, so the update that gets sent around can't be read in a text editor.

TFTP puts a file on the Pico but doesn't do any of that, and it has no login. That reminded me that on a unit I hand over I should turn it off with OPTION TFTP OFF.

It was a concept test, and if you only ever update your own units, TFTP is plenty.  
John
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2026