Welcome! Log In Create A New Profile

Advanced

Minor experimental firmware update 0.78q-dc42 and web interface 1.01

Posted by dc42 
Minor experimental firmware update 0.78q-dc42 and web interface 1.01
August 31, 2014 06:18AM
I've released these at [github.com] and [github.com] respectively. Firmware changes since 0.78p:

* Fixed bug that caused the web interface to stop updating when attempting to list the gcode files, and there were no gcode files to display.

* Fan RPM data sent to the Duet is now correct. Previously it was generally too high because of noise on the tacho signal fed through from the negative supply. I am using the hardware debouncing feature of the processor to clean up the signal.

To enable a fan RPM to be measured, connect the fan tacho output to pin PC4 on the Duet or DueX4 expansion connector. Caution: if the black fan wire becomes disconnected, or the fan is switched on/off using the black(negative) wire, some fans might feed 12V through the tacho output, which is liable to wreck at least that input pin of the the Duet. So for safety, I recommend you connect a diode (e.g. 1N4148) in series with the tacho line (cathode to tacho pin, anode to Duet pin PC4).

This feature is intended to be used with 4-wire PWM-controllable or permanently-on fans. You will not get reliable tacho readings if the power to the fan itself is PWM'd.

Web interface changes:

* The web interface now displays the cooling fan RPM (thanks zombiepantslol).



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: Minor experimental firmware update 0.78q-dc42 and web interface 1.01
September 01, 2014 09:45AM
Hi David,

I was using firmware 078q and web interface 1.01 yesterday with no problems. Thank you

However, today the web interface just will not start, all of the buttons are dimmed and no response at all even refreshing has no effect.
This was using chrome and I have tried it in ie with the same results.

I down graded the web interface trying the last few updates, same result.
I downgraded the firmware, again no response.

Everything else on my computer seems to be working well.

At the moment I am using Pronterface and the printer is printing.

Any ideas?
Paul


appjaws - Core XYUV Duet Ethernet Duex5
firmware 3.1.1 Web Interface 3.1.1
Ormerod 1-converted to laser engraver, Duet wifi
OpenSCAD version 2020.07
slic3r-1.3.0, Simplify3D 4.1.2, Cura-4.4.1
Re: Minor experimental firmware update 0.78q-dc42 and web interface 1.01
September 01, 2014 09:53AM
Paul, here are some suggestions:

1. Press control-shift-J in Chrome to open the Javascript console, then try to refresh the page and see if any error messages are shown.

2. Try my 0.78r-alpha firmware release, it fixes a problem that someone else was having with loading the web page.

3. With the network disconnected, connect via Pronterface. Then connect the Ethernet cable. You should see the "Network up" message in Pronterface. Then open a browser session to the Duet and watch out for error messages in Pronterface.

4. Put the SD card in a PC and use chkdsk or equivalent to make sure it is OK. Then delete the www directory, then re-create it and put a fresh copy of all the files on it from my repository at [github.com].

5. Try restarting the PC.

6. Use Wireshark to see what is going on.

bte these days I find that after flashing the firmware, I need to press the reset button before I can connect - it seems the -R switch on the bossac command line is not sufficient.

Edited 3 time(s). Last edit at 09/01/2014 09:55AM by dc42.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: Minor experimental firmware update 0.78q-dc42 and web interface 1.01
September 01, 2014 10:05AM
updated to 0.78r-alpha firmware release and running 1.01 of the web interface.

The Javascript console is reporting:-

Uncaught TypeError: Cannot read property 'active' of null jquery.storageapi.min.js:2
t jquery.storageapi.min.js:2
g._callMethod jquery.storageapi.min.js:2
g.get jquery.storageapi.min.js:2
getCookies reprap.js:491
(anonymous function) reprap.js:65
j jquery-2.1.0.min.js:2
k.fireWith jquery-2.1.0.min.js:2
o.extend.ready jquery-2.1.0.min.js:2
I jquery-2.1.0.min.js:2

Edited 1 time(s). Last edit at 09/01/2014 10:08AM by appjaws1.


appjaws - Core XYUV Duet Ethernet Duex5
firmware 3.1.1 Web Interface 3.1.1
Ormerod 1-converted to laser engraver, Duet wifi
OpenSCAD version 2020.07
slic3r-1.3.0, Simplify3D 4.1.2, Cura-4.4.1
Re: Minor experimental firmware update 0.78q-dc42 and web interface 1.01
September 01, 2014 10:18AM
Hi Paul, I think you need to delete browser cookies relating to the Ormerod web interface.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: Minor experimental firmware update 0.78q-dc42 and web interface 1.01
September 01, 2014 10:38AM
Quote
dc42
Hi Paul, I think you need to delete browser cookies relating to the Ormerod web interface.
Done that in chrome, no difference.

Also connected via Pronterface without the Ethernet cable, then plugged in the Ethernet cable but nothing was registered in the window.


appjaws - Core XYUV Duet Ethernet Duex5
firmware 3.1.1 Web Interface 3.1.1
Ormerod 1-converted to laser engraver, Duet wifi
OpenSCAD version 2020.07
slic3r-1.3.0, Simplify3D 4.1.2, Cura-4.4.1
Re: Minor experimental firmware update 0.78q-dc42 and web interface 1.01
September 01, 2014 11:00AM
Just for completeness I have just installed firefox, never been on this computer before, I am getting the same problem All buttons are greyed out and nothing responds meanwhile the printer is happy printing and I am missing all of the facilities of the web interface.sad smiley.


appjaws - Core XYUV Duet Ethernet Duex5
firmware 3.1.1 Web Interface 3.1.1
Ormerod 1-converted to laser engraver, Duet wifi
OpenSCAD version 2020.07
slic3r-1.3.0, Simplify3D 4.1.2, Cura-4.4.1
Re: Minor experimental firmware update 0.78q-dc42 and web interface 1.01
September 01, 2014 11:08AM
Hi Paul,

I'm still not sure what is going on, but try changing line 491 of reprap.js from:

if (!storage.get('temps.active')) {

to:

if (!storage.get('temps') || !storage.get('temps.active')) {

If that doesn't work, then please post the Javascript console error trace again.

Edited 2 time(s). Last edit at 09/01/2014 11:11AM by dc42.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: Minor experimental firmware update 0.78q-dc42 and web interface 1.01
September 01, 2014 11:17AM
Yes. This is same problem reported here

The javascript can throw an exception if the old temps is there but not temps.active. Deleting cookies doesn't help as localstorage is kept elsewhere.

I'm not sure if the extra test will avoid the exception. An alternative approach would be a try catch around the test.
Re: Minor experimental firmware update 0.78q-dc42 and web interface 1.01
September 01, 2014 11:33AM
Thanks for that I have changed that line. I used wordpad, so I don't know if I caused the next error or not..

What should I have used to edit that file?

Uncaught SecurityError: Failed to read the 'localStorage' property from 'Window': Access is denied for this document. 192.168.1.14/js/jquery.storageapi.min.js:2


appjaws - Core XYUV Duet Ethernet Duex5
firmware 3.1.1 Web Interface 3.1.1
Ormerod 1-converted to laser engraver, Duet wifi
OpenSCAD version 2020.07
slic3r-1.3.0, Simplify3D 4.1.2, Cura-4.4.1
Re: Minor experimental firmware update 0.78q-dc42 and web interface 1.01
September 01, 2014 11:57AM
Wordpad should be OK to edit the .js file, but Notepad++ is better.

From that error message, it sounds to me that your browser security settings are not allowing it to read cookies. But you didn't post the full message trace, so I don't know whether it is failing in the same place or not.

I looked up that error message and found this: [code.google.com] (and several other pages). So you may need to disable blocking of 3rd-party cookies to get round it.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
cog
Re: Minor experimental firmware update 0.78q-dc42 and web interface 1.01
September 01, 2014 12:01PM
Quote
dc42
Hi Paul,

I'm still not sure what is going on, but try changing line 491 of reprap.js from:

if (!storage.get('temps.active')) {

to:

if (!storage.get('temps') || !storage.get('temps.active')) {

If that doesn't work, then please post the Javascript console error trace again.

This solved the reported problem for me.
Re: Minor experimental firmware update 0.78q-dc42 and web interface 1.01
September 01, 2014 12:40PM
Quote
cog
Quote
dc42
Hi Paul,

I'm still not sure what is going on, but try changing line 491 of reprap.js from:

if (!storage.get('temps.active')) {

to:

if (!storage.get('temps') || !storage.get('temps.active')) {

If that doesn't work, then please post the Javascript console error trace again.

This solved the reported problem for me.

Thanks cog, I'll include that change in version 1.02.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: Minor experimental firmware update 0.78q-dc42 and web interface 1.01
September 01, 2014 01:50PM
All is well with the world again.

You were right, for some reason cookies were being blocked from the ormerod in chrome.

Paul


appjaws - Core XYUV Duet Ethernet Duex5
firmware 3.1.1 Web Interface 3.1.1
Ormerod 1-converted to laser engraver, Duet wifi
OpenSCAD version 2020.07
slic3r-1.3.0, Simplify3D 4.1.2, Cura-4.4.1
Sorry, only registered users may post in this forum.

Click here to login