Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic SPIFFS file uploading by customer (Read 5705 times)
Acuario
Senior Member
****
Offline


Posts: 256
Location: Spain
Joined: Aug 28th, 2015
SPIFFS file uploading by customer
Feb 19th, 2017 at 6:15pm
Print Post  
Hi,
I am working on a project for a customer and need to ship him prototype devices. Inevitably there will be updates to the code and data files.

I have a system in place for the sketch updates uploaded and updated using a web browser, I send the .bin file and he can update.

I need something for the SPIFFS file as well and this seems more complicated. I don't really want to send a bunch of html files and for him to have to use a tool to build/upload using the Arduino IDE for example.

I would like to send him a .spiffs.bin file and for him to run a simple tool to do the upload.

Is the ESP8266FSUpload.exe able to do this, and can I supply him with this tool and a command line to do the upload? 

Any advice on this?

Thanks
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: SPIFFS file uploading by customer
Reply #1 - Feb 19th, 2017 at 7:13pm
Print Post  
The esp8266upload is command line but also creates the spiffs from the data folder. We could add a flag to tell it to use an existing spiffs. Will take a look over next few days.

You can distribute the uploader.exe so should work ok
  
Back to top
IP Logged
 
Acuario
Senior Member
****
Offline


Posts: 256
Location: Spain
Joined: Aug 28th, 2015
Re: SPIFFS file uploading by customer
Reply #2 - Feb 20th, 2017 at 4:16am
Print Post  
That would be excellent and would allow in field updates which at the moment is complicated. I'm sure other developers have the same problem but there doesn't seem to be a solution.

Looking forward to getting hold of the exe Smiley
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: SPIFFS file uploading by customer
Reply #3 - Feb 20th, 2017 at 2:32pm
Print Post  
The only thing that needs thought it discovery of where the esp tools are. This would be a simple job if our customers know where the tools are

normally c:\usesr\[username]\appdata\local\arduino15\packages\ep8266....

The ide normally passes the location to the .exe as a param so the exe doesn't currently have the intelligence to find the tools by itself.

The exe could be expanded to find the tools but that would slow down this request. Maybe you can look at copying the esp tools (espota.y and esptool.exe) and making them work in an isolated folder. Then you could put the esp8266uploader.exe in the same folder and zip for your clients (or something)

Maybe you can give this some thought on the easiest way for it to work, if it makes sense?

  
Back to top
IP Logged
 
Acuario
Senior Member
****
Offline


Posts: 256
Location: Spain
Joined: Aug 28th, 2015
Re: SPIFFS file uploading by customer
Reply #4 - Feb 20th, 2017 at 4:50pm
Print Post  
My idea was to supply everything that the customer would need and have it all in a single folder, the spiffs bin included. Then he just needs to run a batch file (supplied) that takes care of everything (he would just need to configure the COM port).
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: SPIFFS file uploading by customer
Reply #5 - Feb 20th, 2017 at 5:05pm
Print Post  
If you switch on verbose you will see the command and args for the tool.

I don't think you need the visual micro esp uploader.exe

Create a folder with the tools and add a .bat file to call esptool.exe

If the tool runs okay I can tell you the args to use and you can ask the user via the .bat commands for the port

« Last Edit: Feb 20th, 2017 at 5:05pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Acuario
Senior Member
****
Offline


Posts: 256
Location: Spain
Joined: Aug 28th, 2015
Re: SPIFFS file uploading by customer
Reply #6 - Feb 21st, 2017 at 7:35am
Print Post  
Hi,
that works fine - it looks like I can use the uploader for both my program file and the spiffs, that solves everything in one go.

I guess the only difference between the two files is the starting address, in my case a 4M flash with 1M SPIFFS so starts at 0x300000.

Thanks for the help.
« Last Edit: Feb 21st, 2017 at 7:49am by Acuario »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: SPIFFS file uploading by customer
Reply #7 - Feb 21st, 2017 at 1:13pm
Print Post  
Great
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint