![]() |
Forum Index : Microcontroller and PC projects : PicoMiteWeb firmware for the Pico W - now making real progress
![]() ![]() ![]() ![]() |
|||||
Author | Message | ||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10180 |
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: AustraliaPosts: 6266 |
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 KingdomPosts: 10180 |
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 KingdomPosts: 10180 |
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: GermanyPosts: 573 |
How to connect the sdcard adapter to the picow? Which pins ? Plasma |
||||
Mixtel90![]() Guru ![]() Joined: 05/10/2019 Location: United KingdomPosts: 7817 |
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: GermanyPosts: 724 |
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: PolandPosts: 125 |
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 StatesPosts: 313 |
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: PolandPosts: 125 |
Telnet should respond as COM Michał |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10180 |
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: GermanyPosts: 464 |
Why still use flash slots at all? The flashdisk is much more flexible! YES with pleasure! ![]() Edited 2023-02-13 05:55 by homa |
||||
JohnS Guru ![]() Joined: 18/11/2011 Location: United KingdomPosts: 4032 |
I think FLASH CHAIN is very useful and can't be done via the flash disk. John |
||||
homa![]() Guru ![]() Joined: 05/11/2021 Location: GermanyPosts: 464 |
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: GermanyPosts: 464 |
because of the upper post still: the program memory is then empty after the reboot? 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 StatesPosts: 3347 |
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 KingdomPosts: 7817 |
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: CanadaPosts: 116 |
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: AustraliaPosts: 59 |
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: AustraliaPosts: 6266 |
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 |
||||
![]() ![]() ![]() ![]() |
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |