Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 05:08 07 May 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 : Remotely Updating programs

Author Message
cs41
Newbie

Joined: 08/08/2016
Location: Australia
Posts: 27
Posted: 02:31pm 04 May 2017
Copy link to clipboard 
Print this post

Hi all,

I am working on an application where it would be good to be able to remotely update the running program in a Micromite 64 pin module.

The system will be connected to a central portal via a 3G modem and will be possible to send the program file (XXX.bas) to the remote unit. File length would be in the order of 60 - 80 kbytes.

This would be stored on an SD card for subsequent loading into the micro. (LOAD XXX.BAS, R)

I cannot see a simple way to store the remotely sent file to SD. STORE saves the current pgm that is in memory as far as I can see.

I don't see any way to handle it as a string because of the 256 byte limit on strings.

Any assistance, suggestions appreciated. Thanks in advance

cs.
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 5914
Posted: 02:46pm 04 May 2017
Copy link to clipboard 
Print this post

XMODEM
You will have to write your own code for the micromite assuming you want to upload the new program while the old program is still running.
You could upload it without xmodem by receiving a line at a time then saving it to the end of the file on SDcard without any error checking, but I prefer the added reliability of XMODEM for iffy links.

As well as the error checking, by using XMODEM, you can use TeraTerm or Putty on the PC end without having to reinvent that side.

Jim


VK7JH
MMedit   MMBasic Help
 
Print this page


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

© JAQ Software 2024