Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 17:40 24 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 : XMODEM

Author Message
Talbit
Senior Member

Joined: 07/06/2011
Location: Australia
Posts: 210
Posted: 11:56pm 26 Nov 2011
Copy link to clipboard 
Print this post

In Geoff's Mini-MM article in the November SC, he says to transfer a program to the MM via USB you use Xmodem. I just fired up my full MM (2.7A) using Terra Term via the normal USB and did a "File - Send file", browsed for the file and hit open. It transferred the file into the MM. I didn't use XMODEM. Am I really clever or is something waiting in the wings to bite me later?
Talbit

But it looks like I might need Xmodem if I use HyperTerminal. But I haven't tried it.
Talbit
Edited by Talbit 2011-11-28
Talbit
 
DuinoMiteMegaAn
Senior Member

Joined: 17/11/2011
Location: Australia
Posts: 231
Posted: 12:53am 27 Nov 2011
Copy link to clipboard 
Print this post

This is what I did at the command prompt in MMbasic to my DuinoMite Mega.

#1. Typed in Xmodem recieve "test1.bas" <-------- file string name
#2. In Tera Term - Files --> Transfer --> XModem ---> Send and chose the "test1.bas" file to send
#3. Waited for the window to exit in step 2. (Which is almost immediate)

If I tried your test eg Files ---> Send An error indicates "remote did not respond"
The filename was transfered (use file command) but there was nothing in this file after using the load/list commands.

You see, you need the Xmodem on the PIC32 running AND in Tera Term at the same time - see instuctions on page 21 MMBASIC v 2.7


Tera Term v 4.68
Win XP/SP3
Edited by DuinoMiteMegaAn 2011-11-28
 
Keith W.
Senior Member

Joined: 09/10/2011
Location: Australia
Posts: 118
Posted: 01:01am 27 Nov 2011
Copy link to clipboard 
Print this post

HI,

I have been downloading XX.bas programs as a Send File from Terra Term since I first received my SM1 Maximite. I found that I had to set some slight delay for lines of text as done in the Terra Term Setup/Serial Port dialog, I have Terra Term set for 19200 baud however this may not apply as connection is via USB, do not select for handshaking dialog, ie Flow Control = None. I have long used this method to transfer files that will be accepted by other Micro programs, ie S19 files to Motorola chips. This works as if you had typed the program to the Maximite from a terminal. However Maximite will not accept other than .bas files by this method. You must use Xmodem to transfer Fonts, Data files etc. You can list a Maximite program to the Terra Term screen then select with the mouse and copy to a text editor and save to disk.

Regards,

Keith W.
 
DuinoMiteMegaAn
Senior Member

Joined: 17/11/2011
Location: Australia
Posts: 231
Posted: 01:13am 27 Nov 2011
Copy link to clipboard 
Print this post

@KW OK - I also duplicated your transfer method by adjusting the char/line delays
in the tera term serial setup. Seems to work? I used 1 ms char and 1 ms per line.

Please Note: In KW/Talbit method, the file is sent to MMBasic as if it was typed in
with the keyboard. So you have to save the "basic code" as a file after
the send command.

The Xmodem transfer, the code is in the file string and you need to load, list,
and run this file.Edited by DuinoMiteMegaAn 2011-11-28
 
Talbit
Senior Member

Joined: 07/06/2011
Location: Australia
Posts: 210
Posted: 01:54am 27 Nov 2011
Copy link to clipboard 
Print this post

Gents,
Thanks for the feedback. I just used the normal Terra Term setup as suggested by Geoff in his original MM artical and set the Terra Term serial port up as 9600, 8, N, 1, No flow control with 50 msec/line transmit delay. Once it's in the MM, I save it to the SD or drive A as normal. But your probably right KW, it will only transfer .bas files. But still the cut and paste is still a pretty good method. Anyway, the transfer works for me.
But having said all that, I still recon having the SD card on board is the best way to go because all you have to do is plug it in loaded with the updated code. With no SD card attached, you need a PC or Laptop with a terminal program at the place where the MM is. Each to his own. Better go and do the house work before 'er indoors comes home!
Talbit
Edited by Talbit 2011-11-28
Talbit
 
Print this page


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

© JAQ Software 2024