Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 14:42 27 Nov 2024 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 : PicoMite/VGA/WEB V5.07.08 release candidates

     Page 14 of 18    
Author Message
karlelch

Senior Member

Joined: 30/10/2014
Location: Germany
Posts: 172
Posted: 08:10pm 15 Nov 2023
Copy link to clipboard 
Print this post

  matherp said  
OPTION DISK SAVE fname$
OPTION DISK LOAD fname$

Works like a charm! Thank you, Peter!  
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2135
Posted: 03:10am 16 Nov 2023
Copy link to clipboard 
Print this post

PicoMiteVGA RC19

XMODEM SEND or XMODEM S or F12 cause MMBasic to reboot but XMODEM S file$ works ok.
Has that feature been removed?
Not important if it has as the program can first be saved to A: or B:.

> XMODEM SEND
Error: Invalid address - resetting
PicoMiteVGA MMBasic Version 5.07.08RC19
Copyright 2011-2023 Geoff Graham
Copyright 2016-2023 Peter Mather
  Quote  XMODEM SEND
XMODEM SEND will send the current program held in the PicoMiteVGA's
program memory to the remote device.
 
TheMonkeys

Regular Member

Joined: 15/12/2022
Location: Australia
Posts: 59
Posted: 07:24am 16 Nov 2023
Copy link to clipboard 
Print this post

A quick question:

Why is it that if left to its own devices for more than a minute or three, the Webmite takes around six seconds to respond to the next TCP interrupt?

Just something that seems a little inconsistent.

Cheers,

Chris.
 
carlschneider
Senior Member

Joined: 04/08/2023
Location: South Africa
Posts: 158
Posted: 08:45am 16 Nov 2023
Copy link to clipboard 
Print this post

Hi Peter

Oopppss, my apologies, the code was flawed and I wasn't actually writing the JSON$ to the A: drive, it was in fact continued usage of the {JSON$} contents of the .html file. So the result of using WEB TRANSMIT a%, file$ for an embedded {variable} is now up to just short of 7 days at its best and less than a day at its worst. Why the variation is puzzling me.

I fixed the code to now write the contents of JSON$ to the .html file before it is sent in response to the curl request.

Stability evaluation continues.

This is the contents of the .html file. As you can see it is a small payload and the number of digits is fixed.

{"a":    51.010, "b":     0.0000, "c":1289, "d":50, "e":     0.0000, "f": 35.0,"g": 81408}/r/n

Thanks for your continuing efforts.
Cheers Carl                                                        
Retirement is tough on Hobbies without a day job
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9122
Posted: 08:48am 16 Nov 2023
Copy link to clipboard 
Print this post

V5.07.08RC19

https://geoffg.net/Downloads/picomite/PicoMite_Beta.zip

Implements

BLIT MERGE colour, x, y, w, h

This works like FRAMEBUFFER MERGE but just overwrites the bit of the physical screen defined by x,y,w,h with the merged combination of that area from F and L

WEB TRANSMIT PAGE cb%, filename$ [,buffersize]

By default the command allocates a buffer the size of the file + 4096 bytes to build the page to transmit. However, if the page is complex and includes many MMBasic variables that yield text bigger than the variable name it is possible that the buffer will not be big enough. In this case the user can specify the extra space required (defaults to 4096 as before if not specified)

FRAMEBUFFER WAIT now implemented for ILI9341, ST7789_320 and ILI9488 displays

note however that the

BLIT MERGE and FRAMEBUFFER MERGE commands both now incorporate this functionality automatically. Assuming these are run on the second processor then tearing effects should be reduced or eliminated

  Quote  Stability evaluation continues.

Are you using the JSON$ function in your code? This is third party code and very memory hungry so if you are this could be an issue.
Edited 2023-11-16 18:50 by matherp
 
andreas

Senior Member

Joined: 07/12/2020
Location: Germany
Posts: 207
Posted: 09:12am 16 Nov 2023
Copy link to clipboard 
Print this post

  matherp said  Try this - picomite only for test


PicoMite.zip

OPTION DISK SAVE fname$
OPTION DISK LOAD fname$

if no extension specified defaults to ".opt"

I've tested that the files transfer both ways successfully over XMODEM


The possibility to save/load OPTIONS & LIBRARY to/from a disk file is very nice to have!

I tried to move those saved files from A: to B: to have them on a save place in the case to fully clear the flash, but it was neither possible to copy them nor to create them directly on B: drive.

so OPTION SAVE DISK "B:options" or LIBRARY SAVE DISK "B:library" is not working, isn't it?
Even a copy "A:options.opt" to "B:options.opt" does not work and results in empty files on B: side. correct?

-andreas
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2135
Posted: 10:50am 16 Nov 2023
Copy link to clipboard 
Print this post

  Quote  Even a copy "A:options.opt" to "B:options.opt" does not work

See if this is any better.
copy A2B "options.opt" to "options.opt"
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9122
Posted: 11:40am 16 Nov 2023
Copy link to clipboard 
Print this post

B:fname is invalid syntax use B:/fname
 
vegipete

Guru

Joined: 29/01/2013
Location: Canada
Posts: 1109
Posted: 04:50pm 16 Nov 2023
Copy link to clipboard 
Print this post

Is there a way to show the active drive letter (A or B) in the command prompt? Or possibly even the entire CWD$ ?
Visit Vegipete's *Mite Library for cool programs.
 
karlelch

Senior Member

Joined: 30/10/2014
Location: Germany
Posts: 172
Posted: 09:54pm 16 Nov 2023
Copy link to clipboard 
Print this post

  Quote  OPTION DISK SAVE fname$
OPTION DISK LOAD fname$

For the VGA version (R19), I get the following:
> option list
PicoMiteVGA MMBasic Version 5.07.08RC19
OPTION SYSTEM I2C GP14,GP15
OPTION FLASH SIZE 16777216
OPTION COLOURCODE ON
OPTION KEYBOARD GR
OPTION PICO OFF
OPTION SDCARD GP13, GP10, GP11, GP12
OPTION AUDIO GP22,GP23', ON PWM CHANNEL 3
OPTION RTC AUTO ENABLE
OPTION MODBUFF ENABLE
> option disk save "hpsVGA"
> option reset
PicoMiteVGA MMBasic Version 5.07.08RC19
Copyright 2011-2023 Geoff Graham
Copyright 2016-2023 Peter Mather

> option list
PicoMiteVGA MMBasic Version 5.07.08RC19
OPTION FLASH SIZE 16777216
OPTION KEYBOARD US
> option disk load "hpsVGA"
PicoMiteVGA MMBasic Version 5.07.08RC19
Copyright 2011-2023 Geoff Graham
Copyright 2016-2023 Peter Mather

> option list
PicoMiteVGA MMBasic Version 5.07.08RC19
OPTION SYSTEM I2C GP14,GP15
OPTION FLASH SIZE 16777216
OPTION COLOURCODE ON
OPTION KEYBOARD GR
OPTION PICO OFF
OPTION CPUSPEED (KHz) 252000
OPTION SDCARD GP13, GP10, GP11, GP12
OPTION AUDIO GP22,GP23', ON PWM CHANNEL 3
OPTION RTC AUTO ENABLE
OPTION MODBUFF ENABLE
OPTION F1 ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
OPTION F5 ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
OPTION F6 ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
OPTION F7 ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
OPTION F8 ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
OPTION F9 ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
>
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3150
Posted: 12:34am 17 Nov 2023
Copy link to clipboard 
Print this post

  karlelch said  I get the following:


Did you use XMODEM to transfer the saved option file to the PC and back?

This looks like it could be the XMODEM issue of filling an uploaded file
with nulls up to the block size.
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2135
Posted: 02:33am 17 Nov 2023
Copy link to clipboard 
Print this post

  vegipete said  Is there a way to show the active drive letter (A or B) in the command prompt?

Sub mm.prompt
  Print Cwd$ "> ";
 ' Print Time$ "> ";
End Sub

Add it to the program area or library.
Edited 2023-11-17 14:45 by phil99
 
karlelch

Senior Member

Joined: 30/10/2014
Location: Germany
Posts: 172
Posted: 06:45am 17 Nov 2023
Copy link to clipboard 
Print this post

  lizby said  
  karlelch said  I get the following:


Did you use XMODEM to transfer the saved option file to the PC and back?

This looks like it could be the XMODEM issue of filling an uploaded file
with nulls up to the block size.

Yes, but according to Peter‘s first post on this, XModem works for this and it also worked for me, I think, when I tried it with the previous pre-release.
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6099
Posted: 07:15am 17 Nov 2023
Copy link to clipboard 
Print this post

The characters at the end of your opt file are chr$(255). XMODEM will use either chr$(0) or chr$(26)

I think there is another issue at play.

My webmite complained about wrong file size when I tried a file with chr$(0) padding.

Edit: also complained about file size with chr$(26) padding

Jim
Edited 2023-11-17 17:19 by TassyJim
VK7JH
MMedit   MMBasic Help
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9122
Posted: 07:46am 17 Nov 2023
Copy link to clipboard 
Print this post

The options area is 768 bytes so should be an exact number of xmodem buffers. The firmware checks for this size before loading options
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6099
Posted: 08:47am 17 Nov 2023
Copy link to clipboard 
Print this post

On my WEBmite
OPTION LIST
WebMite MMBasic Version 5.07.08RC19
OPTION CPUSPEED  250000 'KHz
OPTION WIFI hoth_e, **********, PICOE6614104035
OPTION TCP SERVER PORT 80, 1000
OPTION TELNET CONSOLE ON
>
>option disk save "options2"
> print mm.info(filesize "options2.opt")
772
>


The problem seems to be the reported size, not the actual size.

I can reload the file immediately OK but XMODEM and the extra 4 bytes cause the extra packet.

Jim
Edited 2023-11-17 18:50 by TassyJim
VK7JH
MMedit   MMBasic Help
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9122
Posted: 09:14am 17 Nov 2023
Copy link to clipboard 
Print this post

Sounds like I've done something stupid in RC19. Unless you need the functions stick with RC19 until I have chance to look
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 4243
Posted: 12:57pm 17 Nov 2023
Copy link to clipboard 
Print this post

Hi Peter,

When I define a CONST in a SUB it is not defined outside the SUB (not global).
When this is intentional, maybe add a remark about it in the user manual. There is a chapter in the user manual about variable definition (STATIC, CONST, DIM, LOCAL). For STATIC it starts with "in a subroutine...etc", but not for CONST.

Tested on PicomiteVGA 50708RC17.

Regards,

Volhout
PicomiteVGA PETSCII ROBOTS
 
javavi

Senior Member

Joined: 01/10/2023
Location: Ukraine
Posts: 218
Posted: 02:42pm 17 Nov 2023
Copy link to clipboard 
Print this post

When plotting using the command
Line x1, y1, x2, y2

The graph closes along the screen contour when parameters X and Y go beyond it.
Closure occurs on all sides screen.
Is this normal or can you make sure this doesn’t happen and the line can go off the screen ?
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6798
Posted: 03:00pm 17 Nov 2023
Copy link to clipboard 
Print this post

IIRC it's up to the user to check for out of range values.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
     Page 14 of 18    
Print this page
© JAQ Software 2024