Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 06:52 02 Aug 2025 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 : E64: file xferred with xmodem not saved

Author Message
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3378
Posted: 11:53pm 09 Oct 2018
Copy link to clipboard 
Print this post

I just tried the XMODEM RECEIVE, FILENAME$ command on my Explore-64, sending with Teraterm. It reported success--"Saved 2386 bytes", but no file appears when I execute "FILES".

[code]
> xmodem receive, GEOsets.dat
Saved 2386 bytes
> files
\
2798 GEOTHERM.HTM
4107 GEOTMPL2.TXT
2823 GEOTMPLT.TXT
426819 LOG.TXT
415029 LOGFILE.TXT
1024 LOGPL.TXT
82 TEST.TXT
65762 TESTSD.TXT
0 directories, 8 files
[/code]
I also tried putting the filename in quotes, "GEOsets.dat". That also reported success, but no file. I tried assigning "GEOsets.dat" to a variable. and trying XMODEM with the variable name. That again reported success, but no file of that name is listed with "FILES".

XMODEM SEND, "TEST.TXT" worked. This is version 5.0302

What am I doing wrong?

Edited by lizby 2018-10-11
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 12:24am 10 Oct 2018
Copy link to clipboard 
Print this post

try without the comma after receive
I would also use the quotes.
xmodem receive "GEOsets.dat"


It certainly works with firmware V5.04.10

Jim
VK7JH
MMedit
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3378
Posted: 12:39am 10 Oct 2018
Copy link to clipboard 
Print this post

No joy, Jim.

[code]
xmodem receive "GEOSETS.DAT"
Saved 2386 bytes
> files
\
2798 GEOTHERM.HTM
4107 GEOTMPL2.TXT
2823 GEOTMPLT.TXT
426819 LOG.TXT
415029 LOGFILE.TXT
1024 LOGPL.TXT
82 TEST.TXT
65762 TESTSD.TXT
0 directories, 8 files
>
[/code]
I guess I have to see if I can find my never-used PICKIT3 clone. (If I recall correctly, there's no over-USB firmware update available for the E64--is that right?)

PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 01:10am 10 Oct 2018
Copy link to clipboard 
Print this post

The E64 needs a pickit or preferably a microbridge.
http://geoffg.net/microbridge.html
I have modified my E64 by replacing the USB with a microbridge. It makes using the E64 easier and allows easy updates of the firmware. I rarely bring the pickit out anymore.

I assume that you have tried saving with a different name and/or a different file?

You could also try using MMEdit instead of Teraterm but I don't think it will make any difference.

Jim


VK7JH
MMedit
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 01:16am 10 Oct 2018
Copy link to clipboard 
Print this post

Extract fro the Change log:
  Quote  Change log for Micromite MMBasic Ver 5.04.01

The XMODEM command can now transfer a file to or from a file on the SD card. This
is in addition to the standard behaviour of transferring to/from program memory.



You do need to update the firmware

VK7JH
MMedit
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 09:37am 10 Oct 2018
Copy link to clipboard 
Print this post

Without updating as Jim is saying, you will just have to use the old way, which is to say XMODEM R, wait for it to transfer across, then SAVE "GEOSETS.DAT"
Smoke makes things work. When the smoke gets out, it stops!
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3378
Posted: 01:24pm 10 Oct 2018
Copy link to clipboard 
Print this post

Ok, then, gotta find my PICKIT3.

Thanks, Grogs. That worked, and then this printed the file:

open "geosets.dat" for input as #1
do until eof(#1) : line input #1, a$ : if a$ <> "" then : print a$ : endif : loop : close #1 : end


PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3378
Posted: 12:16am 11 Oct 2018
Copy link to clipboard 
Print this post

Ok, flashed 5.0409 to the E64 with the PICKIT3 clone. "Programming Complete" reported; after "OPTION SDCARD 12,14", "PRINT mm.ver" prints 5.0409.

'xmodem receive "test.dat"' worked (without the comma shown in my version--5.04--of the Micromite Plus Manual).

Thanks Jim & Grogs
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 01:45am 11 Oct 2018
Copy link to clipboard 
Print this post

Good to see it working.

The syntax is correct in the micromite manual in the detailed listing.
I had to check the plus manual and you are right, there is an error on page 21
  Quote  XModem Transfer
In addition to the standard method of XModem transfer which copies to or from the program memory the Micromite Plus can also copy to and from a file on the SD card. The syntax is:
XMODEM SEND, filename$
or
XMODEM RECEIVE, filename$


The commas shouldn't be there and will cause a "syntax error"

Jim

VK7JH
MMedit
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3378
Posted: 05:11pm 11 Oct 2018
Copy link to clipboard 
Print this post

  TassyJim said  You could also try using MMEdit instead of Teraterm but I don't think it will make any difference.


I don't see how to initiate XMODEM on the PC side with MMEdit--how do you do it?

PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 08:40pm 11 Oct 2018
Copy link to clipboard 
Print this post

First, make sure you have the correct syntax file selected. It has to be one of the versions that allows saving to SD.

Open the file manager.


select the file on the PC and transfer to the 'mite.

Check out 'file manager' in the help.

Jim
VK7JH
MMedit
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3378
Posted: 09:49pm 11 Oct 2018
Copy link to clipboard 
Print this post

Ok, thank you, Jim. Got it.

One snag along the way--when I click on the version-choosing item to the right of "Help", I can only see some of the options, and see no way to scroll. I clicked the bottom option, clicked the chosen item again, hit the down arrow, which chose the next, invisible option, and then repeated that until I got to Micromite_Plus_V5.3.
Edited by lizby 2018-10-13
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 01:46am 12 Oct 2018
Copy link to clipboard 
Print this post

The list should have a scroll bar.


If your mouse has a scroll wheel, it should scroll the list for you.

What version of Windows are you running and do you have any scale set other than 100%?

Jim
VK7JH
MMedit
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3378
Posted: 12:13pm 12 Oct 2018
Copy link to clipboard 
Print this post

Windows 7 on a laptop--no scroll wheel. I'm not sure what scale you would mean--other than for certain browser windows, I don't know that I have any scales set.



Version 3.7.3 OS Ver: 6.01
Build Date: 2-Apr-2018

PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 09:12pm 12 Oct 2018
Copy link to clipboard 
Print this post

Try this TKN file. Replace the one in the program folder. It will make the pop-up a bit wider and will hopefully show the scrollbar.
The problem is caused by the different sizes of the borders around the windows.
2018-10-13_071113_MMedit.zip

Post a screenshot of the pop-up please.

If your display is high resolution you might have it set to display text at 125% or 150%. That can cause issues but I don't think that is the problem here.

Jim

VK7JH
MMedit
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3378
Posted: 11:51pm 12 Oct 2018
Copy link to clipboard 
Print this post

With new TKN file, the pop-up appears slightly wider than before, but no scroll bar.

Screen resolution is maximum available on my laptop, 1600x900.




PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 02:23am 13 Oct 2018
Copy link to clipboard 
Print this post

OK one more try.
With a display of 16090 pixels you either use a magnifying glass to see the menus in MMEdit or your display settings are set to 125 or 150%
That way all the programs that call for 100 pixels actually display over 125 or 150 pixels.
The way Windows does it really sucks and it changes from year to year.

I don't have Windows7 anymore so I can't tell you how to find the display settings.

The language that MMEdit is written in doesn't know much about DPI scaling so it is difficult for me to control it.

It looks like Windows scales the pop-up window differently to the control inside the pop-up, causing it to not fit.

This TKN has sizing controls on the pop-up so you should be able to size it to fit the full control, complete with scrollbar.
2018-10-13_122138_MMedit.zip

A screenshot with the pop-up sized will help me set it for you.
I can't leave the sizing controls on it unfortunately.

Jim


VK7JH
MMedit
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3378
Posted: 02:44pm 13 Oct 2018
Copy link to clipboard 
Print this post

That did it. Scroll bar appeared without my doing anything. Thanks.



(I'm not sure where you got 16090 pixels-- 1600 by 900. Everything appears to be sized as I would have expected from past laptops.)
Edited by lizby 2018-10-15
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025