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 V5.07.07a24+ - Now with TFTP
Page 4 of 5 | |||||
Author | Message | ||||
aFox Regular Member Joined: 28/02/2023 Location: GermanyPosts: 76 |
It seems, that the socket timeout for the connect is to short. In my wlan network the respond can take 8 seconds in a worst case. Open Session [9] WEB OPEN TCP CLIENT Address$, 1080 Error : No response from client > Connected In this example an error is returned but the socket is connected later. I get also a problem using TFTP by my Android phone importing org.apache.commons.net.tftp. In my view the try to connect the ip-socket will be broken in this case to early too. In my opinion the same in case of WEB ntp. If returning to version a24 it runs a bit better. But some minutes later it fails with the message "failed to create pcb". In this case I have to reset by pulling out the USB plug. Gregor Edited 2023-03-19 19:01 by aFox |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 9139 |
V5.07.07a27 PicoMiteWebV5.07.07a27.zip Hopefully fixes the crash when telnet disconnected. Add new parameter to WEB NTP, and WEB TCP CLIENT OPEN The 3rd parameter is an optional timeout - defaults to 5000 WEB NTP [timezone [,address] [,timeout]] WEB TCP CLIENT CONNECT address, port [,timeout] |
||||
Geoffg Guru Joined: 06/06/2011 Location: AustraliaPosts: 3196 |
I don't think that I have seen WEB TCP CLIENT CONNECT before. What does it do? Is it different to WEB OPEN TCP CLIENT ? Geoff Geoff Graham - http://geoffg.net |
||||
pwillard Senior Member Joined: 07/06/2022 Location: United StatesPosts: 292 |
I may have missed some details somewhere, but on FRESH install of PicoMiteWebV5.07.07a24.uf2, if the only thing I setup so far is the WIFI so I'm connected... If I type: > datetime$(1679228317) Error : Unknown command > Above is what I get. Did Adding TFTP and NTP support remove working with EPOCH time to set TIME$ and DATE$? |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 9139 |
Sorry intra-cranial typo WEB OPEN TCP CLIENT address, port [,timeout] Which section of the manual is datetime$ in? Functions? Edited 2023-03-19 22:31 by matherp |
||||
pwillard Senior Member Joined: 07/06/2022 Location: United StatesPosts: 292 |
yes, but oh geez... I was trying to shortcut and do stuff in immediate mode... not a program. Maybe that can be it? Obviously... I'm very confused. Edited 2023-03-19 23:02 by pwillard |
||||
thwill Guru Joined: 16/09/2019 Location: United KingdomPosts: 4047 |
DateTime$() is a function not a command. Do: ? DateTime$(...) Best wishes, Tom Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 9139 |
It is a function not a command I think you are miss-remembering rtc settime datetime$(now) Note though that on the WEB version data$ and time$ are automatically set by WEB NTP Edited 2023-03-19 23:08 by matherp |
||||
pwillard Senior Member Joined: 07/06/2022 Location: United StatesPosts: 292 |
Ok, I clearly need more coffee... Note: I was looking into using the "time" API (see other thread on "WEB CLIENT" code) because WEB NTP fails for me... a lot. And on one of my Pico W's, whenever WEB NTP fails back to ">" prompt... there is a good chance program is also gone from memory. Type "list" and get "nothing" Edited 2023-03-20 00:18 by pwillard |
||||
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 6102 |
a27 connect from TeraTerm OPTION LIST responds correctly as do many other commands. FILES causes cardiac arrest. Heartbeat stops. Reset required. Wireshark sees no response of any kind after sending FILES\r Jim VK7JH MMedit MMBasic Help |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 9139 |
Jim Please describe setup. Are you connected USB or just Telnet. Have you run anything before? Thanks |
||||
Michal Senior Member Joined: 02/02/2022 Location: PolandPosts: 123 |
Why doesn't NOW return a value? Only datetime$(NOW): 10 ? datetime$(now) 20 ? now 30 now=100000 40 ? now 50 ? datetime$(now) 60 ? datetime$(now - 100000) 70 ? datetime$(100000 - now) 80 ? datetime$(100000) Michal |
||||
pwillard Senior Member Joined: 07/06/2022 Location: United StatesPosts: 292 |
Bummer, I got my code working... but... *** PANIC *** Port: COM8 removed Disconnected Port: COM8 inserted Connected to COM8 at 115200 PicoMiteWeb MMBasic Version 5.07.07a21 Copyright 2011-2023 Geoff Graham Copyright 2016-2023 Peter Mather And then POOF... code gone missing... LIST and I get nothing. Edited 2023-03-20 20:23 by pwillard |
||||
Pluto Guru Joined: 09/06/2017 Location: FinlandPosts: 359 |
@pwillard: have you tested version a27 (latest)? For me at least the newer versions work quite well. Some disruptions still, but not PANIC. /Pluto |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 9139 |
V5.07.07a28 PicoMiteWebV5.07.07a28.zip Will delete all flash and options Reduces max program size to 80Kb to increase stack space and help avoid stack overflow (panics) Blocks setting WEB option commands in a program Implements OPTION ESCAPE to enable escape sequences in strings - needed in any program where you want to use escape sequences embedded in strings. If not specified MMBasic will act as it did in all earlier releases Implemented OPTION ANGLE - see CMM2 manual for details |
||||
Pluto Guru Joined: 09/06/2017 Location: FinlandPosts: 359 |
@matherp, FYI your latest update a28 shows as a27 in option list. /Pluto |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 9139 |
Sorry - should have read 27 - the uf2 is correct |
||||
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 6102 |
all FILES tests done with telent only - USB disconnected. clear_flash install a27 (The original a27) load options > OPTION LIST PicoMite MMBasic Version 5.07.07a27 OPTION CPUSPEED (KHz) 250000 OPTION WIFI hoth_e, ********** OPTION TCP SERVER PORT 80 OPTION TELNET CONSOLE ON > Files command works happily load 20 files FILES causes lockup install a28 (Lists in options as a27 but is new version) repeat with same results.. delete one file to leave 19 files. FILES command on telnet works. add files to have 20 or more files. lockup with FILES command on TELNET 20 files is the limit when "Press any key..." is invoked. Jim VK7JH MMedit MMBasic Help |
||||
pwillard Senior Member Joined: 07/06/2022 Location: United StatesPosts: 292 |
Well, It stopped panicking so far... That is a good sign. |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 9139 |
That's what I needed to know - now I know how to fix it (tomorrow) |
||||
Page 4 of 5 |
Print this page |