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 5 of 5 | |||||
Author | Message | ||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 9139 |
Jim Please try the attached and let me know PicoMiteWeb (4).zip |
||||
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 6103 |
It looks good so far. Jim VK7JH MMedit MMBasic Help |
||||
JohnS Guru Joined: 18/11/2011 Location: United KingdomPosts: 3816 |
It's not a variable - unless you make one, but try not to because it can confuse you. It's some syntax for some parts of MMBasic. A bit like the TO in FOR i = 1 TO 10 John |
||||
pwillard Senior Member Joined: 07/06/2022 Location: United StatesPosts: 292 |
Actually, Its in the manual. You WILL get the datetime$ result... but it will also produce a Syntax error message. > ? datetime$(NOW) 21-03-2023 11:06:47 Error : Syntax |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 9139 |
No you don't unless you are also sending some sort of non-printing character Also tested via telnet Edited 2023-03-21 21:18 by matherp |
||||
thwill Guru Joined: 16/09/2019 Location: United KingdomPosts: 4047 |
I think this is just a bug, MMB4W and MMB4L are both perfectly happy with DateTime$(NOW), "NOW" isn't a variable in this context it is one of MMBasic's magic parameters. Best wishes, Tom Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
Hans Senior Member Joined: 18/10/2022 Location: CanadaPosts: 116 |
@matherp I loaded the latest a27. Don't have the "? datetime$(now)" issue, works for me. Not sure if this is an issue or not or if by design. If you pull the SD card while on the A: it will not warn you the event has happened. If you are on B: and pull the card it will not warn you. If you are on B: and command FILES, after the list, it will warn you. If you then go back to A: it will still not warn you. If you are on A: and command FILES, then pull the SD card after the list is finished it will still not warn you. Going back to B: it will not warn you until after a FILES list is completed again. Now that I am aware of this, it's not a problem for me. Super job so far! Sorry for the long windiness. Hans ... Edited 2023-03-22 11:51 by Hans |
||||
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 6103 |
I spoke too soon. I am still having lockups with the files command. It is not always. Not even often but often enough to be a problem. It is still only when there are more than a page full of files to list. I can connect via telnet, issue files command and watching with Wireshark, there is no reply. The heartbeat LED stops. I then disconnect the telnet and connect via USB. I can then 'hit any key' and the second page of files is sent. When it does work, transferring files by TFTP is lovely to watch. I have it integrated into MMCC and even got it working on Linux! Jim VK7JH MMedit MMBasic Help |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 9139 |
The warning only happens after the SDcard has been accessed the first time with a FILES command or anything else. After it has been warned it won't warn again until again it has been both replaced AND accessed The current drive makes no difference - same on all versions Jim: Does this make any difference PicoMiteWeb (2).zip Edited 2023-03-22 18:45 by matherp |
||||
Hans Senior Member Joined: 18/10/2022 Location: CanadaPosts: 116 |
Thank you for the information Peter. Hans ... |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 9139 |
Jim Ignore the previous and try this one PicoMiteWeb.zip I found hole where the telnet transmit could in very particular circumstances drop characters and this fixes it. Just had the most bizarre experience with an SDcard. Copied 765 files to a SDcard to test this issue on my PC. No problem copying. SDcard shows no errors and I can read any of the files. Plug the card into a PicoMite or a CMM2. List files - NOTHING - no files showing but no errors either. Copy a file onto the "blank" SDcard on the PicoMite - all OK List files and just the one file appears Card back in the PC - still 765 files and the new one not there - WTF Re-format the SD and repeat above - same outcome - WTF2 Use SD card formatter to format with complete overwrite and CHS format size adjustment enabled (whatever that is) Now the card works as expected and I can diagnose as above Somehow the card appeared to have two shadow directory structures, one visible on the PC and one by FatFS - never seen anything like that before |
||||
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 6103 |
First look is promising. I said that yesterday too so lets hope. I don't know how you can manage working on so many different systems at once. I have a medical appointment this morning but afterwards, I will not be allowed to do much physical work so should have time to play. Jim Edit: I spoke too soon again. I am still having lockups with the files command (sometimes). I then disconnect the telnet and connect via USB. I can then 'hit any key' and the second page of files is sent. I will try and find a sure-fire way of causing the lockup but I don't have much hope. It's a strange... Jim Edited 2023-03-23 07:04 by TassyJim VK7JH MMedit MMBasic Help |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 9139 |
Jim Are you doing this from the console (teraterm) or your program. In teraterm I can't get any problem since I solved the dropped characters. |
||||
pwillard Senior Member Joined: 07/06/2022 Location: United StatesPosts: 292 |
Man! Good work... finally stable and able to run for 2 days so far with no issues. |
||||
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 6103 |
Mainly using MMEdit. I just came home after a couple of hours with the pico running doing nothing. Connected with TeraTerm Lockup with FILES and TeraTerm gets disconnected. I had a thought. TeraTerm was using CR as it's end-of-line. I changed MMEdit back to LF because I noticed that CR did not work for the end-of-line. I had been experimenting with various eol combinations. Perhaps it is the CR without LF that is the culprit. I will play with that thought today. Jim VK7JH MMedit MMBasic Help |
||||
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 6103 |
The results of a day playing. pico has nothing running and no programs loaded in flash. 22 files on drive A: OPTION LIST PicoMite MMBasic Version 5.07.07a28 OPTION CPUSPEED (KHz) 250000 OPTION WIFI hoth_e, ********** OPTION TCP SERVER PORT 80 OPTION TELNET CONSOLE ON Leave the pico running at the command prompt with nothing connected for at least 45 minutes. The minimum time has not been determined. Connect with TeraTerm. press enter and the prompt appears so things are alive. enter files and <CR>. system locks up. I have tried all line ending combinations and pasting the text instead of typing character at a time. no difference. Once you connect by USB and press enter to wake the pico web up again, a TeraTerm TCPIP session will work successfully until you disconnect and leave it for about 45 minutes before trying to reconnect. Jim VK7JH MMedit MMBasic Help |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 9139 |
Jim I'm testing other alternatives but please could you repeat the test with the TCP server disabled Thanks |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 9139 |
V5.07.07a29 PicoMiteWebV5.07.07a29.zip Fixes bug when telnet disconnects Reduces slightly stack usage of WEB TRANSMIT PAGE |
||||
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 6103 |
Turned the tcp server off and left it overnight. Passed the test this morning but that's only one. I will wait a while before installing a29 on my test system. I have others to play with. Jim Edited 2023-03-24 06:03 by TassyJim VK7JH MMedit MMBasic Help |
||||
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 6103 |
V5.07.07a29 is looking promising... Jim VK7JH MMedit MMBasic Help |
||||
Page 5 of 5 |
Print this page |