Reprogramming Netburner itself using Autoupdate

Discussion to talk about software related topics only.
Post Reply
Musco
Posts: 13
Joined: Wed Oct 12, 2011 10:36 am

Reprogramming Netburner itself using Autoupdate

Post by Musco »

Is it possible for an SB70LC module to periodically access an FTP site, download a file if update is needed, and reprogram itself using the downloaded file? I would like to do this without the use of an SD card. Any ideas would be much appreciated.
User avatar
pbreed
Posts: 1091
Joined: Thu Apr 24, 2008 3:58 pm

Re: Reprogramming Netburner itself using Autoupdate

Post by pbreed »

Look in the examples
nburn\examples\ftp\ftpd_appUpdate
Musco
Posts: 13
Joined: Wed Oct 12, 2011 10:36 am

Re: Reprogramming Netburner itself using Autoupdate

Post by Musco »

Looks like that example is for setting up an FTP server on the Netburner. I would like the Netburner to act as an FTP client to connect to an external FTP server in order to download files. The idea is to download two different file types. One file would be the APP.s19 file to update the Netburner. The second file would be a .hex file to update devices connected to an RS485 network. Can I download and store files to the Netburner to be used for update at the appropriate time (when version numbers do not match)?
User avatar
Chris Ruff
Posts: 222
Joined: Thu Apr 24, 2008 4:09 pm
Location: topsail island, nc
Contact:

Re: Reprogramming Netburner itself using Autoupdate

Post by Chris Ruff »

It looks like everything you need is available. The FTP client example will cove the FTP client business, the _update example will cover how to unpack and reboot, and you have 8M of RAM to unpack your HEX file(s) into. All seems do-able and possibly fun to do. You could encode the version data in the file names, so all your app would have to do is occasionally review the filenames at the FTP server to see if it is time to update.

Chris
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand
Post Reply