Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 19:02 01 Jul 2025 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 firmware for the Pico W - now making real progress

     Page 6 of 8    
Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10180
Posted: 08:36am 12 Feb 2023
Copy link to clipboard 
Print this post

Jim

Thanks for the info. Your detailed description of problems are invaluable - In the last version I made the internal receive buffer variable size depending on the data received but I forgot to update the read command which assumed 2K. I'll fix this and post an update later today
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6266
Posted: 08:54am 12 Feb 2023
Copy link to clipboard 
Print this post

Glad to give the grey-matter a workout.
My little test program is up to 560 refresh reads and, in the meantime, the DHT22 has done 2800 reads without a hiccup.
VK7JH
MMedit
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10180
Posted: 08:57am 12 Feb 2023
Copy link to clipboard 
Print this post

Attached is a new version with the fix - hopefully no dummy arrays needed


PicoMiteWeb.zip

UPDATE

This has a memory leak so ignore - more work needed
Edited 2023-02-12 19:51 by matherp
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10180
Posted: 11:12am 12 Feb 2023
Copy link to clipboard 
Print this post

Still not 100% confident that there isn't a race condition hidden in there somewhere but this seems better and the memory leak is cured


PicoMiteWeb.zip
 
Plasmamac

Guru

Joined: 31/01/2019
Location: Germany
Posts: 573
Posted: 02:02pm 12 Feb 2023
Copy link to clipboard 
Print this post

How to connect the sdcard adapter to the picow? Which pins ?
Plasma
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7817
Posted: 02:13pm 12 Feb 2023
Copy link to clipboard 
Print this post

Any that aren't being used, I suppose. You define which using the appropriate OPTION commands, just as you would do on the PicoMite or PicoMite VGA.
Mick

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

Guru

Joined: 19/11/2013
Location: Germany
Posts: 724
Posted: 04:31pm 12 Feb 2023
Copy link to clipboard 
Print this post

Feature Request for Peter,

a "simple Telnet" remote Console to the PICOW.
Would be amazing, an open a new World;-).

Just think about it        
 
Michal
Senior Member

Joined: 02/02/2022
Location: Poland
Posts: 125
Posted: 04:43pm 12 Feb 2023
Copy link to clipboard 
Print this post

Also, I would like to ask for the possibility of telnet connection with the pico terminal?

Michal
 
pwillard
Guru

Joined: 07/06/2022
Location: United States
Posts: 313
Posted: 05:35pm 12 Feb 2023
Copy link to clipboard 
Print this post

Telnet would need to do things our command line interface doesn't do, like support ANSI terminals unless it was made to be a *very dumb* implementation.
 
Michal
Senior Member

Joined: 02/02/2022
Location: Poland
Posts: 125
Posted: 06:15pm 12 Feb 2023
Copy link to clipboard 
Print this post

Telnet should respond as COM

Michał
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10180
Posted: 07:03pm 12 Feb 2023
Copy link to clipboard 
Print this post

V5.07.07a11


PicoMiteWebV5.07.07a11.zip

Update to SDK V1.5.
This has a significantly re-written interface to the cyw43 which is supposed to be more robust - we will see

Number of flash slots reduced to 4

ERASES ALL FLASH SLOTS AND THE FLASH DISK

PS: It is pointless to keep asking for more functionality at the moment. If and until I can get a simple TCP server completely reliable then the code won't make it past alpha status and I certainly won't be adding anything. This stuff isn't easy. If anyone want to try themselves I can post the source on github - don't all shout at once
Edited 2023-02-13 05:06 by matherp
 
homa

Guru

Joined: 05/11/2021
Location: Germany
Posts: 464
Posted: 07:54pm 12 Feb 2023
Copy link to clipboard 
Print this post

  matherp said  V5.07.07a11
...
Number of flash slots reduced to 4

Why still use flash slots at all? The flashdisk is much more flexible!


  matherp said  
I can post the source on github ...

YES with pleasure!  
Edited 2023-02-13 05:55 by homa
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4032
Posted: 08:05pm 12 Feb 2023
Copy link to clipboard 
Print this post

  homa said  Why still use flash slots at all? The flashdisk is much more flexible!

I think FLASH CHAIN is very useful and can't be done via the flash disk.

John
 
homa

Guru

Joined: 05/11/2021
Location: Germany
Posts: 464
Posted: 08:31pm 12 Feb 2023
Copy link to clipboard 
Print this post

How did I manage to do that? (V5.07.07a11)
I tried sending direct input to the server in parallel with Tera Term on port 80 ... After closing this happened after 4-5 sec
I was wondering about the connection counter number 3 on my test website. And then came the error message.


 
homa

Guru

Joined: 05/11/2021
Location: Germany
Posts: 464
Posted: 08:36pm 12 Feb 2023
Copy link to clipboard 
Print this post

because of the upper post still: the program memory is then empty after the reboot?


  JohnS said  
I think FLASH CHAIN is very useful and can't be done via the flash disk.

Doesn't the command "EXECUTE command$" do the same thing?
Edited 2023-02-13 06:38 by homa
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3347
Posted: 08:54pm 12 Feb 2023
Copy link to clipboard 
Print this post

  homa said  because of the upper post still: the program memory is then empty after the reboot?
  JohnS said  
I think FLASH CHAIN is very useful and can't be done via the flash disk.

Doesn't the command "EXECUTE command$" do the same thing?

FLASH CHAIN runs a program (retaining variable values); EXECUTE command$ runs a command.
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7817
Posted: 09:09pm 12 Feb 2023
Copy link to clipboard 
Print this post

There's no alternative to FLASH CHAIN and no way to get round it really. Obviously, you need flash slots for it to work. :)

I'm already bemoaning the loss of flash slots. :(
Mick

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

Senior Member

Joined: 18/10/2022
Location: Canada
Posts: 116
Posted: 11:28pm 12 Feb 2023
Copy link to clipboard 
Print this post

Hello All;

I have been able to configure all my peripherals to the point that they work on a11, although I must admit it took a while as I believe the order that the options are declared may make a difference but I have not tried different iterations to verify that case.

I have submitted a screen capture of my options;







Am I correct that the WIFI will not try and connect until you launch the console on the USB? The on board led flashes when the WiFi connects and does not do so if I just apply a power connection to the USB port. Does this mean that the web server cannot run without console?

Peter your programming efforts must be monumental, I truly appreciate all your efforts in making the PICO W achieve its full potential as I am sure all the forum members do!

Thank you for all you do.
Hans ...  
 
TheMonkeys

Regular Member

Joined: 15/12/2022
Location: Australia
Posts: 59
Posted: 03:00am 13 Feb 2023
Copy link to clipboard 
Print this post

Just a little showing off...


uptime is calculated and displayed using dhms$(timer/1000)

dhmWHAT?


function dhms(secs%) as string
' take a decimal time and convert it to
' (d) (h) (m) s
' () = only appears as required
local integer s% = secs% mod 60
local integer m% = int(secs% / 60) mod 60
local integer h% = int(secs% / 3600) mod 24
local integer d% = int(secs% / 86400)
dhms$ = str$(s%)+"s"
if m% then dhms$ = srt$(m%)+"m "+dhms$
if h% then dhms$ = str$(h%)+"h "+dhms$
if d% then dhms$ = str$(d%)+"d "+dhms$
end function


first port of my php code library to basic.

As seen in the screenshot above, css and images are now supported.
I'll be adding javascript, although I intend to have a go at re-writing the page$ stuff to be more generally web-server compatible.

Yes, I'm running alpha 11 now.      
Edited 2023-02-13 13:11 by TheMonkeys
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6266
Posted: 05:09am 13 Feb 2023
Copy link to clipboard 
Print this post

With my router, the first attempt to reconnect results in a failed attempt and IP of 0.0.0.0
The next attempt connects OK.
This means that an automatic reboot will not recover.

I found out the hard way that an innocent { in your html will create a "Prefix" error. I know we were told to use two {{
Trying to load a page with too many images will cause grief. There are only 4 connections allowed and browsers tend to download in parallel.

Just to test the system over a realistic link, I have opened up a port from the nasty old world.

http://tassyjim.ddns.net:50080

It will probably fall over a lot...
The link is not a permanent thing but should be OK few a few days.

Jim
Edited 2023-02-13 15:22 by TassyJim
VK7JH
MMedit
 
     Page 6 of 8    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025