Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 07:50 29 Nov 2024 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 : PicoMiteWeb alphas - It had to be done

     Page 1 of 5    
Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9139
Posted: 07:09pm 29 Jan 2023
Copy link to clipboard 
Print this post

It's cold and dull in the UK and I was bored....

If you have a pico_w try the attached


PicoMiteWeb.zip


The firmware is identical to the PicoMite except for the following:

Removed
GUI command, CTRLVAL command and CTRLVAL function

Changes
Available memory - still to be tuned - may increase or decrease

Added
OPTION WIFI SSID,PASSWORD
To disable wifi use: OPTION WIFI "",""
WEB command with currently one sub-command
WEB NTP 'connects to an NTP server ("pool.ntp.org") and updates the system time and date

TBD
All the other WEB subcommands



Edited 2023-01-30 05:10 by matherp
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6812
Posted: 07:33pm 29 Jan 2023
Copy link to clipboard 
Print this post

This is another of those "dogs" that you won't be bothering with, I see.  ;)
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4047
Posted: 08:26pm 29 Jan 2023
Copy link to clipboard 
Print this post

It's exhausting trying to keep up.



I guess this must make it 12 months since MMB4W ?

Best wishes,

Tom
Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6102
Posted: 09:12pm 29 Jan 2023
Copy link to clipboard 
Print this post

I knew I purchased a wifi module for a reason.

(too soon to ask but) Will the WEB NTP command get a timezone parameter?

> OPTION LIST
PicoMite MMBasic Version 5.07.07a0
OPTION WIFI someplace, not_telling
> web ntp  
ntp address 88.198.226.248
got ntp response: 29/01/2023 21:12:54
> print time$
21:13:25
>


Jim
VK7JH
MMedit   MMBasic Help
 
k2backhoe
Regular Member

Joined: 04/12/2021
Location: United States
Posts: 46
Posted: 02:30am 30 Jan 2023
Copy link to clipboard 
Print this post

WOW!  Very impressive.  I can't wait to see where this goes and I will be looking for any more examples or documentation as it develops.  Thanks enormously.
 
Zonker

Guru

Joined: 18/08/2012
Location: United States
Posts: 761
Posted: 02:52am 30 Jan 2023
Copy link to clipboard 
Print this post

So then would you be able to access the pico with say firefox and serve up a simple webpage showing data being collected from connected devices..??  
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9308
Posted: 03:14am 30 Jan 2023
Copy link to clipboard 
Print this post

Hey, now, Peter, you can't tease us all with that, and then not say what you had to do and how long it took you to make it work!  

I distinctly recall you stating several times that the W would NEVER be supported.  

This is wonderful news, but I really would love to have more DETAILS as to HOW you made it work, and how much effort it took.

I seem to recall the idea of supporting the W module was out of the question due to the size of the network stack or something that MMBASIC would have to support to be able to talk to the WiFi on the W module, making it impossible - or very difficult at least, so that idea was OUT.

I never bought any W modules, but I might just have to order a couple to play with this as it moves forward in development.

matherp - making the impossible possible.    
Smoke makes things work. When the smoke gets out, it stops!
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9308
Posted: 03:16am 30 Jan 2023
Copy link to clipboard 
Print this post

  Zonker said  So then would you be able to access the pico with say firefox and serve up a simple webpage showing data being collected from connected devices..??  


That would be my guess, yes, once Peter has finished the code.  But that might be a little way off, as I am guessing this is very much still in alpha stage.  But the alpha is often the hardest one.  Once you have the essential system working, later releases tend to be bug-fixes and improvements, so I think you will be able to do that once he has finished - but the man himself will be the one to answer that for sure.
Smoke makes things work. When the smoke gets out, it stops!
 
Plasmamac

Guru

Joined: 31/01/2019
Location: Germany
Posts: 554
Posted: 03:35am 30 Jan 2023
Copy link to clipboard 
Print this post

Cool and wonderfully News. Thx matherp
Plasma
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9139
Posted: 10:14am 30 Jan 2023
Copy link to clipboard 
Print this post

V5.07.07a1

PicoMiteWeb.zip

WEB NTP [adjust]

The optional parameter 'adjust' is a float between -12.0 and +14.0 and allows you to offset the time given by the NTP server to suit your timezone

WEB SCAN

Scans for wifi access points in the vicinity

NB: forgot to mention in the first post GP23, GP24, GP25, GP29 are now completely inaccessible from MMBasic as they are used by the pico_w to communicate with the cyw43. The LED on the pico_w is actually driven by an IO port on the cyw43.

You can also try

WEB HTTP SERVER OPEN. This will create an HTTP server on the pico_w on port 80 (NB: not HTTPS). Doesn't do anything at the moment but you can connect to it from a browser and you will see the diagnostics. You will need to reset the pico_w to get out of it.
Edited 2023-01-30 20:15 by matherp
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3816
Posted: 10:47am 30 Jan 2023
Copy link to clipboard 
Print this post

Hooray!

Figuring out what to support/allow & the syntax may be a challenge.

How to best allow TCP/IP & UDP, if at all?  Would sending email be useful?  Or ping?  Etc.

John
Edited 2023-01-30 20:50 by JohnS
 
IanRogers

Senior Member

Joined: 09/12/2022
Location: United Kingdom
Posts: 151
Posted: 12:22pm 30 Jan 2023
Copy link to clipboard 
Print this post

"GUI command, CTRLVAL command and CTRLVAL function"

This kinda bothered me.. I was trying to use this command on the pico_W  Clearly this was "one of those incompatibility" things you mentioned..

Ah well
I'd give my left arm to be ambidextrous
 
pwillard
Senior Member

Joined: 07/06/2022
Location: United States
Posts: 292
Posted: 12:25pm 30 Jan 2023
Copy link to clipboard 
Print this post

Never say never, I guess.   Thanks for giving it a shot.
 
k2backhoe
Regular Member

Joined: 04/12/2021
Location: United States
Posts: 46
Posted: 01:54pm 30 Jan 2023
Copy link to clipboard 
Print this post

Please forgive my ignorance, but I have a capacity question.  With all of the desireable features that Peter Mather is creating it feels like a hacker's Cornucopia with too small a horn.  Is the restriction because of the 2 MB flash or the 264 KB RAM?  If it is the flash memory, then would replacing the W25Q16JV external flash with a W25Q128JV (16 MB flash) on the Pico allow for all of the features to be included simultaneously?
 
Plasmamac

Guru

Joined: 31/01/2019
Location: Germany
Posts: 554
Posted: 03:35pm 30 Jan 2023
Copy link to clipboard 
Print this post




multiple listed some ssid , sry
Edited 2023-01-31 01:39 by Plasmamac
Plasma
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4047
Posted: 03:45pm 30 Jan 2023
Copy link to clipboard 
Print this post

  k2backhoe said  ... Is the restriction because of the 2 MB flash or the 264 KB RAM? ...


I believe it's the RAM. The PicoMite would really be cooking if there were 512K to play with ... more than that it probably doesn't need - though some will no doubt disagree.

Best wishes,

Tom
Edited 2023-01-31 01:46 by thwill
Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6812
Posted: 06:51pm 30 Jan 2023
Copy link to clipboard 
Print this post

It's the amount of RAM and the way it's selected, I think. There are only certain combinations of RAM blocks that can be in current address space. Or something like that. Chapter 2.6.2 of the RP2040 Datasheet is nice and confusing in an enlightening sort of a way. :)
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9139
Posted: 10:57pm 30 Jan 2023
Copy link to clipboard 
Print this post

Anyone coded against LWIP? Seems massively overcomplicated compare to the simple socket interfaces I've implemented on the Raspberry Pi and MMB4W. Any help appreciated
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3816
Posted: 12:34am 31 Jan 2023
Copy link to clipboard 
Print this post

  matherp said  Anyone coded against LWIP? Seems massively overcomplicated compare to the simple socket interfaces I've implemented on the Raspberry Pi and MMB4W. Any help appreciated

I don't wish to be negative about it. It is aimed as it says at systems with tens of KB free RAM (etc). Sort of not-very-LWIP, depending on the size of system with which a potential user is comfortable.  It is LW if you're used to GB or many MB of RAM.

It looks to have lots and lots of features, most of which I believe most users would never want.

I wonder if there's a tinyIP...

John
 
George H
Newbie

Joined: 03/07/2020
Location: United States
Posts: 24
Posted: 02:44am 31 Jan 2023
Copy link to clipboard 
Print this post

... W ordered ;)
 
     Page 1 of 5    
Print this page
© JAQ Software 2024