![]() |
Forum Index : Microcontroller and PC projects : Remotely Updating programs
Author | Message | ||||
cs41 Newbie ![]() Joined: 08/08/2016 Location: AustraliaPosts: 27 |
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: AustraliaPosts: 6283 |
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 |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |