Page 1 of 1

Some good stuff coming soon!

Posted: Sun Mar 13, 2016 10:02 am
by mhackney
More details here: Duet In-application firmware updates!

Over the past few months I've been corresponding with Christian Hammacher - he wrote the Duet Web Control application and he also has a branch of David Crocker's firmware that he maintains to work on the web server and other stuff. Originally I reached out to him to help resolve the DWC disconnects I (and others) had been getting. Over the months he's made great progress on eradicating issues and things are much much much more stable now. But the exciting part is, along the way he's added several very cool features:

1) the ability to edit the config.g in place. You can open config.g in DWC and edit away
2) the ability to upload zip packages - I use it to install new releases of Duet Web Control itself and it works great
3) and I saved the best for last - the ability to update the RepRapFirmware itself right from DWC!!! Yes, you read that correctly. Christian developed a little app that runs on Duet (iap.bin - In Application Programming for Duet) and once installed you can upload new firmware releases right from the Settings tab. No more Bossac and command lines! You can install iap.bin the first time via the web interface too (I think you need to be using the absolute latest DWC though for this to work, otherwise you can simply transfer the file to the CF card).

iap.bin works with any RRF including dc42. I've been switching back and forth painlessly as Christian has worked on the disconnect stuff. It is implemented as a new M-code: M997 and the gcode wiki page has some info on it.

This is a really exciting development as it now allows almost complete "hands-off" the compact flash card for doing configurations and firmware updates. Excellent work.

And this just in, literally!
David Crocker has just released an updated dc42 firmware that includes Christian's iap.bin!

Re: Some good stuff coming soon!

Posted: Sun Mar 13, 2016 11:36 am
by 3D-Print
That is totally AWESOME!!!

Re: Some good stuff coming soon!

Posted: Sun Mar 13, 2016 2:02 pm
by critical_limit
had installed 1.09x beta and now I´ve updated to 1.09x release.
Worked like a charme over the webinterface update function.
Simply copy the firmware file with the webinterface. After uploading you will get a message that a firmware was uploaded and if you want to do this update.
Really easy now to update the firmware now.

Great work! Thanx Chris and David!

Re: Some good stuff coming soon!

Posted: Sun Mar 13, 2016 3:47 pm
by DerStig
mhackney wrote:More details here: Duet In-application firmware updates!
And this just in, literally!
David Crocker has just released an updated dc42 firmware that includes Christian's iap.bin!
So quick question for the total programming noob here. How does one update a fresh virgin not yet installed Duet board when he does install it?

Re: Some good stuff coming soon!

Posted: Sun Mar 13, 2016 4:14 pm
by mhackney
It depends on what's on that new Duet. Yu should be able to update DWC to v1.11 by uploading the zip package for it. From there you upload iap.bin and once that's done you can upload any version of firmware you want.

There is no programming involved, this is not like Arduino where you have to compile the source code in order to upload to the controller.

Re: Some good stuff coming soon!

Posted: Sun Mar 13, 2016 9:00 pm
by Great_Thark
This is good stuff. The whole bosac thing was a pain (i had a wrong version initially) in fact the whole web interface is great work.
Do you know if there is any intention to add a login option so you can access remotely without letting everyone else access your printer.

Re: Some good stuff coming soon!

Posted: Sun Mar 13, 2016 9:24 pm
by mhackney
What do you mean by a login option? You can set a password today and only authenticated users can access the printer. Doesn't that solve the problem.

Re: Some good stuff coming soon!

Posted: Sun Mar 13, 2016 11:41 pm
by 3D-Print
Great_Thark wrote: Do you know if there is any intention to add a login option so you can access remotely without letting everyone else access your printer.
Are you thinking of a way to login and access your printer when outside your personal home network??

Re: Some good stuff coming soon!

Posted: Mon Mar 14, 2016 10:06 am
by mhackney
I already do that. It requires having external access - which I can configure on my router. Then, as a secondary measure the login credentials to DWC itself provide an extra level of access control.

Re: Some good stuff coming soon!

Posted: Mon Mar 14, 2016 1:48 pm
by bot
I use teamviewer (a free app) to connect to a local machine to control my printer. You can use it from your phone, anywhere in the world.

Re: Some good stuff coming soon!

Posted: Mon Mar 14, 2016 2:42 pm
by CRPerryJr
Woot!

Re: Some good stuff coming soon!

Posted: Mon Mar 14, 2016 8:37 pm
by Great_Thark
I must have missed something. Never saw any way to have login credentials. Atm using remote desktop to a local machine but its a bit of a klutzy solution.

Re: Some good stuff coming soon!

Posted: Mon Mar 14, 2016 8:57 pm
by mhackney
Look at the top of config.g - username and password. The comment says for FTP but it also applies to the web interface.

Re: Some good stuff coming soon!

Posted: Tue Mar 15, 2016 6:29 pm
by Great_Thark
mhackney wrote:Look at the top of config.g - username and password. The comment says for FTP but it also applies to the web interface.
Ta :)

Re: Some good stuff coming soon!

Posted: Tue Mar 15, 2016 7:40 pm
by Eaglezsoar
mhackney wrote:Look at the top of config.g - username and password. The comment says for FTP but it also applies to the web interface.
Thanks for that info Michael, I missed that one.

Re: Some good stuff coming soon!

Posted: Fri Mar 18, 2016 5:17 pm
by Great_Thark
Great_Thark wrote:
mhackney wrote:Look at the top of config.g - username and password. The comment says for FTP but it also applies to the web interface.
Ta :)
So I eventually got round to checking this, I didn't miss it, i've put a password in but it doesnt ask just logs on

Re: Some good stuff coming soon!

Posted: Fri Mar 18, 2016 5:35 pm
by mhackney
Hmm, you did precede it with the parameter ID "P" correct? It should look like this:

M551 Popensesame

Where the password is opensesame

This works on all of my Duets, I get a password prompt when I try to access via the Duet Web Control.

Re: Some good stuff coming soon!

Posted: Fri Mar 18, 2016 5:54 pm
by Great_Thark
mhackney wrote:Hmm, you did precede it with the parameter ID "P" correct? It should look like this:

M551 Popensesame

Where the password is opensesame

This works on all of my Duets, I get a password prompt when I try to access via the Duet Web Control.
ermm no P .... I'll get there lol

Thank you

Re: Some good stuff coming soon!

Posted: Fri Mar 18, 2016 7:07 pm
by mhackney
it's a subtle thing but all the G and M codes must have a parameter ID preceeding parameters. Like G0 X1 Y1. In this case "P" is the parameter ID.