Menu
JAQForum Ver 19.10.27

Forum Index : Microcontroller and PC projects : PicoMiteWeb firmware for the Pico W - now making real progress

   Page 6 of 8    
Posted: 08:36am
12 Feb 2023
Copy link to clipboard
matherp
Guru

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
 
Posted: 08:54am
12 Feb 2023
Copy link to clipboard
TassyJim
Guru


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.
 
Posted: 08:57am
12 Feb 2023
Copy link to clipboard
matherp
Guru

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
 
Posted: 11:12am
12 Feb 2023
Copy link to clipboard
matherp
Guru

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
 
Posted: 02:02pm
12 Feb 2023
Copy link to clipboard
Plasmamac
Guru


How to connect the sdcard adapter to the picow? Which pins ?
 
Posted: 02:13pm
12 Feb 2023
Copy link to clipboard
Mixtel90
Guru


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.
 
Posted: 04:31pm
12 Feb 2023
Copy link to clipboard
atmega8
Guru


Feature Request for Peter,

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

Just think about it        
 
Posted: 04:43pm
12 Feb 2023
Copy link to clipboard
Michal
Senior Member

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

Michal
 
Posted: 05:35pm
12 Feb 2023
Copy link to clipboard
pwillard
Guru

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.
 
Posted: 06:15pm
12 Feb 2023
Copy link to clipboard
Michal
Senior Member

Telnet should respond as COM

Michał
 
Posted: 07:03pm
12 Feb 2023
Copy link to clipboard
matherp
Guru

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
 
Posted: 07:54pm
12 Feb 2023
Copy link to clipboard
homa
Guru


  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
 
Posted: 08:05pm
12 Feb 2023
Copy link to clipboard
JohnS
Guru

  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
 
Posted: 08:31pm
12 Feb 2023
Copy link to clipboard
homa
Guru


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.


 
Posted: 08:36pm
12 Feb 2023
Copy link to clipboard
homa
Guru


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
 
Posted: 08:54pm
12 Feb 2023
Copy link to clipboard
lizby
Guru

  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.
 
Posted: 09:09pm
12 Feb 2023
Copy link to clipboard
Mixtel90
Guru


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. :(
 
Posted: 11:28pm
12 Feb 2023
Copy link to clipboard
Hans
Senior Member


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 ...  
 
Posted: 03:00am
13 Feb 2023
Copy link to clipboard
TheMonkeys
Regular Member


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
 
Posted: 05:09am
13 Feb 2023
Copy link to clipboard
TassyJim
Guru


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
 
   Page 6 of 8    
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2026