404 (DuetWebControl)



  • Just started migrating to this controller board, and although I've been reading the documentation, assume I know nothing.

    I can connect to the board with pronsole via USB.
    I have configured the network with a static IP address.
    When opening that IP address in my web browser, I get the 404 page.
    M997 S2 (and S1) returns "Invalid module number '2'"

    RepRapFirmware version seems to be 1.18.1 (checked with M552). The size of the DuetWebControl.bin on the µSD card corresponds to DuetWebControl-1.15a.bin from dc42's DuetWifi Stable branch (DuetEthernet branch lacks the .bin file).

    Any ideas?

    Thanks.


  • administrators

    Is it the Duet WiFi or the Duet Ethernet that you have? From your M997 behaviour, I presume that it is the Duet Ethernet. In which case, the DuetWebControl.bin file is not used, instead you need the files and folders from DuetWebConfrol.zip extracted to folder /www on the SD card. These files should already have been present on the SD card that was shipped within the board.



  • Sorry, forgot to mention that my board is indeed the Duet Ethernet.

    The files are present on the card.


  • administrators

    What files exactly do you have in /www on the SD card?

    Is the SD card being read ok? Here are two ways to check:

    1. Send M503 via USB. It should respond with the contents of config.g.

    2. Send M906 from USB or PanelDue and see what motor currents are reported. They should be the currents you defined in config.g. If they are all zero, then config.g wasn't read when the board started up.



  • config.g evoked with M503 shows:

    M906 X1000 Y1000 Z1000 E800 I60
    

    M906 returns:

    Motor current (mA) - X:1000, Y:1000, Z:1000, E:800:800:800:800:800:800:800, idle factor 60%
    

    I suppose these are OK?

    The directory on the SD card was missing the following files:

    www/reprap.htm.gz
    www/fonts/glyphicons.ttf.gz
    www/fonts/Homenaje-Regular.ttf.gz
    

    I copied these files to the directory from DuetWebControl-1.15a.zip and the DWC page now loads!

    But the layout seems to be broken. It looks like a plain HTML page. The "Connect" button also does nothing.

    When I insert the SD card to my PC, Windows says "There's a problem with this drive. Scan the drive now and fix it."

    I've been a little hesitant to let Windows "fix" it as I don't know what that actually entails. Should I try it?

    Here is the complete current recursive file listing of the SD card:

    > tree /F
    Folder PATH listing
    Volume serial number is 153A-D53E
    G:.
    ├───Duet085Firmware-1.18.1stable
    │       RepRapFirmware.bin
    │
    ├───DuetEthernetFirmware-1.18.1stable
    │       DuetEthernetFirmware-1.18.1.bin
    │
    ├───DuetWifiFirmware-1.18.1stable
    │       DuetWiFiFirmware-1.18.1.bin
    │
    ├───gcodes
    │       TestPrint2.gcode
    │
    ├───macros
    │       E motors off
    │       Load filament
    │       Extrude 5mm
    │       Retract 5mm
    │       Unload filament
    │
    ├───SD-image-samples
    │   ├───www
    │   │   │   html404.htm
    │   │   │   favicon.ico.gz
    │   │   │   language.xml.gz
    │   │   │   reprap.htm.gz
    │   │   │
    │   │   ├───fonts
    │   │   │       glyphicons.woff.gz
    │   │   │       glyphicons.woff2.gz
    │   │   │       glyphicons.eot.gz
    │   │   │       glyphicons.svg.gz
    │   │   │       Homenaje-Regular.ttf.gz
    │   │   │       glyphicons.ttf.gz
    │   │   │
    │   │   ├───css
    │   │   │       dwc.css.gz
    │   │   │       slate.css.gz
    │   │   │
    │   │   └───js
    │   │           dwc.js.gz
    │   │
    │   ├───gcodes-Ormerod
    │   │       duettest.g
    │   │       whistle.g
    │   │       circle.g
    │   │       square.g
    │   │       ormaxis.g
    │   │       snowman.g
    │   │       coathook.g
    │   │
    │   ├───sys-Fisher
    │   │       retractprobe.g
    │   │       homez.g
    │   │       iap.bin
    │   │       homedelta.g
    │   │       pause.g
    │   │       bed.g
    │   │       resume.g
    │   │       tpost1.g
    │   │       tpre0.g
    │   │       tfree0.g
    │   │       tpost0.g
    │   │       tfree1.g
    │   │       config.g
    │   │       deployprobe.g
    │   │       homey.g
    │   │       homeall.g
    │   │       stop.g
    │   │       homex.g
    │   │       iap4e.bin
    │   │       tpre1.g
    │   │
    │   ├───macros
    │   │       E motors off
    │   │       Load filament
    │   │       Extrude 5mm
    │   │       Retract 5mm
    │   │       Unload filament
    │   │
    │   ├───sys-Ormerod2
    │   │       homez.g
    │   │       iap.bin
    │   │       pause.g
    │   │       resume.g
    │   │       tpost1.g
    │   │       tpre0.g
    │   │       tfree0.g
    │   │       tpost0.g
    │   │       tfree1.g
    │   │       config.g
    │   │       homey.g
    │   │       homeall.g
    │   │       homex.g
    │   │       iap4e.bin
    │   │       tpre1.g
    │   │
    │   ├───sys-Ormerod1
    │   │       homez.g
    │   │       iap.bin
    │   │       pause.g
    │   │       resume.g
    │   │       tpost1.g
    │   │       tpre0.g
    │   │       tfree0.g
    │   │       tpost0.g
    │   │       tfree1.g
    │   │       config.g
    │   │       homey.g
    │   │       homeall.g
    │   │       homex.g
    │   │       iap4e.bin
    │   │       tpre1.g
    │   │
    │   ├───gcodes-MiniKossel
    │   │       EscherLizard.gcode
    │   │       setheight.gcode
    │   │       octagon-test-delta.gcode
    │   │       HollowDodecahedron.gcode
    │   │
    │   ├───sys-Huxley
    │   │       homez.g
    │   │       iap.bin
    │   │       pause.g
    │   │       resume.g
    │   │       tpost1.g
    │   │       tpre0.g
    │   │       tfree0.g
    │   │       tpost0.g
    │   │       tfree1.g
    │   │       config.g
    │   │       homey.g
    │   │       homeall.g
    │   │       homex.g
    │   │       iap4e.bin
    │   │       tpre1.g
    │   │
    │   ├───sys-Prusai3
    │   │       homez.g
    │   │       iap.bin
    │   │       pause.g
    │   │       resume.g
    │   │       tpost1.g
    │   │       tpre0.g
    │   │       tfree0.g
    │   │       tpost0.g
    │   │       tfree1.g
    │   │       config.g
    │   │       homey.g
    │   │       homeall.g
    │   │       homex.g
    │   │       iap4e.bin
    │   │       tpre1.g
    │   │
    │   ├───sys-CoreXY
    │   │       homez.g
    │   │       iap.bin
    │   │       pause.g
    │   │       resume.g
    │   │       tpost1.g
    │   │       tpre0.g
    │   │       tfree0.g
    │   │       tpost0.g
    │   │       tfree1.g
    │   │       config.g
    │   │       homey.g
    │   │       homeall.g
    │   │       homex.g
    │   │       iap4e.bin
    │   │       tpre1.g
    │   │
    │   ├───sys-dc42Kossel
    │   │       iap.bin
    │   │       homedelta.g
    │   │       pause.g
    │   │       bed.g
    │   │       resume.g
    │   │       config.g
    │   │       iap4e.bin
    │   │       cancel.g
    │   │
    │   └───sys-MiniKossel
    │           retractprobe.g
    │           iap.bin
    │           homedelta.g
    │           pause.g
    │           bed.g
    │           resume.g
    │           config.g
    │           deployprobe.g
    │           iap4e.bin
    │
    ├───sys
    │       retractprobe.g
    │       iap.bin
    │       homedelta.g
    │       pause.g
    │       bed.g
    │       resume.g
    │       deployprobe.g
    │       DuetWiFiServer.bin
    │       iap4e.bin
    │       DuetWebControl.bin
    │       config.g~
    │       config.g
    │       .config.g.un~
    │
    ├───Utilities_documents
    │   ├───Documents
    │   │       WHATS_NEW.md
    │   │       LICENCE
    │   │       README.md
    │   │
    │   ├───Driver
    │   │       duetinf.cat
    │   │       duet.inf
    │   │       README.md
    │   │       DuetDriverFiles.zip
    │   │
    │   └───SAM-BA
    │           sam-ba_2.16_linux.zip
    │
    └───www
        │   html404.htm
        │   favicon.ico.gz
        │   language.xml.gz
        │   reprap.htm.gz
        │
        ├───fonts
        │       glyphicons.woff.gz
        │       glyphicons.woff2.gz
        │       glyphicons.eot.gz
        │       glyphicons.svg.gz
        │       glyphicons.ttf.gz
        │       Homenaje-Regular.ttf.gz
        │
        ├───css
        │       dwc.css.gz
        │       slate.css.gz
        │
        └───js
                dwc.js.gz
    

  • administrators

    I suggest you copy the /sys and /macros folders from the SD card to your PC, then reformat the SD card. Then create a new /www folder and extract DWC 1.16.zip into it, restore the /sys and /macros folders, and create a new /gcodes folder.



  • While copying the entire contents to my PC, Windows threw this error on the file dwc.js.gz:

    Error 0x80070570: The file or directory is corrupted and unreadable.
    

    I then proceeded according to your instructions and the DWC now seems to be working perfectly.

    Thanks a lot for the help.


Locked
 

Looks like your connection to Duet3D was lost, please wait while we try to reconnect.