mirobot / mirobot-ui

The web application that is used to control Mirobot (http://mirobot.io)
GNU General Public License v2.0
16 stars 14 forks source link

Question: How does updating the module work? #1

Closed ajfisher closed 10 years ago

ajfisher commented 10 years ago

I'm having a play with this as I have some of the USR WIFI232-T modules and was interested in how to update the actual firmware?

I can see that the html / css / js files get bundled up into a bin file using the rakefile and that the update shell script pushes the bin to the actual module itself using the web uploader but how do you tell the module to use the new web binary?

bjpirt commented 10 years ago

Hi, Sorry, I didn't get a notification about this issue so have only just spotted it.

The update process is a little quirky. You can do it manually by navigating to http:///iweb.html and selecting the bin file, though this only works on a Windows machine at the moment (I'm going to try and get the manufacturer to fix this). If you're on a mac, you can use the script in bin in this repository.

It doesn't always work first time, but I've found the following process has generally worked for me:

It should restart and then you'll be able to get the new web pages you uploaded.

Hope this helps, Ben

ajfisher commented 10 years ago

Thanks - I had a look at the bin creation script - having some issues getting it built (all sorts of Ruby errors / dependencies which I'll just have to work through). But assuming I can get the bin to build I don't need any firmware changes etc? It should just pop the files in the right spot and away we go?

bjpirt commented 10 years ago

I've updated the README with more details on how to get going. If you just want to flash a new module, you can use the bin file from the last release which is here: https://github.com/bjpirt/mirobot-ui/releases You don't need any firmware changes for the module.

alx commented 10 years ago

Thanks for the tips, you should specify in the readme that the iweb.html form only works for windows, and that the update.sh script also works on linux.

Now I've got a working mirobot :) Don't hesitate to contact me if you need some help improving the UI, I'll probably make some patches on my side :)

bjpirt commented 10 years ago

Actually, I have found it to work on Mac again recently, though for me Safari is more reliable than Chrome. However the manufacturer says it should work on all platforms (of course :-)

Thanks for your help