Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Webserver won't start

    Scheduled Pinned Locked Moved Solved
    Duet Web Control
    4
    76
    2.7k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Haffwalkerundefined
      Haffwalker
      last edited by

      Hi, SD looks like this:
      bdad5884-eb81-429e-9101-6b243fa3a2b3-image.png

      Inside of www:
      a14e1661-c888-44fc-abcb-e0858c97e7e3-image.png

      And my config.g looks like this:

      ; Configuration file for Duet WiFi (firmware version 3)
      ; executed by the firmware on start-up
      ;
      ; generated by RepRapFirmware Configuration Tool v2.1.8 on Tue Jan 28 2020 00:41:51 GMT+0100 (Central European Standard Time)

      ; General preferences
      G90 ; send absolute coordinates...
      M83 ; ...but relative extruder moves
      M550 P"AKLP Plus+" ; set printer name
      M665 R135.4 L267 B118 H300 ; Set delta radius, diagonal rod length, printable radius and homed height
      M666 X0 Y0 Z0 ; put your endstop adjustments here, or let auto calibration find them

      ; Network
      M552 S1 ; enable network
      M586 P0 S1 ; enable HTTP
      M586 P1 S0 ; disable FTP
      M586 P2 S0 ; disable Telnet

      ; Drives
      M569 P0 S0 ; physical drive 0 goes forwards
      M569 P1 S0 ; physical drive 1 goes forwards
      M569 P2 S0 ; physical drive 2 goes forwards
      M569 P3 S1 ; physical drive 3 goes forwards
      M584 X0 Y1 Z2 E3 ; set drive mapping
      M350 X16 Y16 Z16 E16 I1 ; configure microstepping with interpolation
      M92 X80.00 Y80.00 Z80.00 E418.50 ; set steps per mm
      M566 X250.00 Y250.00 Z800.00 E200.00 ; set maximum instantaneous speed changes (mm/min)
      M203 X18000.00 Y18000.00 Z18000.00 E1200.00 ; set maximum speeds (mm/min)
      M201 X2000.00 Y2000.00 Z2000.00 E1000.00 ; set accelerations (mm/s^2)
      M906 X1100 Y1100 Z1100 E1000 I30 ; set motor currents (mA) and motor idle factor in per cent
      M84 S30 ; Set idle timeout

      ; Axis Limits
      M208 Z-20 S1 ; set minimum Z

      ; Endstops
      M574 X2 S1 P"xstop" ; configure active-high endstop for high end on X via pin xstop
      M574 Y2 S1 P"ystop" ; configure active-high endstop for high end on Y via pin ystop
      M574 Z2 S1 P"zstop" ; configure active-high endstop for high end on Z via pin zstop

      ; Z-Probe
      M558 P5 C"e0stop" H5 A3 F360 T6000 ; set Z probe type to switch and the dive height + speeds
      G31 P500 X0 Y0 Z16.254 ; set Z probe trigger value, offset and trigger height
      M557 R110 S19 ; define mesh grid

      ; Heaters
      M308 S0 P"bedtemp" Y"thermistor" T100000 B4138 ; configure sensor 0 as thermistor on pin bedtemp
      M950 H0 C"bedheat" T0 ; create bed heater output on bedheat and map it to sensor 0
      M143 H0 S120 ; set temperature limit for heater 0 to 120C
      M307 H0 B0 S1.00 ; disable bang-bang mode for the bed heater and set PWM limit
      M140 H0 ; map heated bed to heater 0
      M308 S1 P"e0temp" Y"thermistor" T100000 B4138 ; configure sensor 1 as thermistor on pin e0temp
      M950 H1 C"e0heat" T1 ; create nozzle heater output on e0heat and map it to sensor 1
      M143 H1 S280 ; set temperature limit for heater 1 to 280C
      M307 H1 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit

      ; Fans
      M950 F0 C"fan0" ; create fan 0 on pin fan0 and set its frequency
      M950 F1 C"fan1" ; create fan 1 on pin fan1 and set its frequency Hotend Cooler
      M106 P0 S0 H-1 ; set fan 0 value. Thermostatic control is turned off
      M106 P1 S127 H1 T50 ; set fan 1 value. Thermostatic control is turned on Hotend Cooler ab 50°C mit 12V

      ; Tools
      M563 P0 S"Hotend 1" D0 H1 F0 ; define tool 0
      G10 P0 X0 Y0 Z0 ; set tool 0 axis offsets
      G10 P0 R0 S0 ; set initial tool 0 active and standby temperatures to 0C

      ; Custom settings are not defined

      ; Miscellaneous
      M501 ; load saved parameters from non-volatile memory

      1 Reply Last reply Reply Quote 0
      • droftartsundefined
        droftarts administrators @Haffwalker
        last edited by

        @Haffwalker Reading through the thread, it doesn't seem that this is a Duet-related problem, I think more likely is that the TL-WR802N is blocking http requests to the Duet from the network. What settings are there to configure it?

        To test the Duet, if you can move it to plug the ethernet directly into your main router, using a USB power adapter to power it, you should be able to access it.

        Ian

        Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

        Dougal1957undefined 1 Reply Last reply Reply Quote 0
        • Haffwalkerundefined
          Haffwalker
          last edited by

          Hi, yes I already took the WR802N out of the equation - the Duet is currently directly plugged into my router.

          droftartsundefined 1 Reply Last reply Reply Quote 0
          • Dougal1957undefined
            Dougal1957 @droftarts
            last edited by

            @droftarts I think his M552 line is wrong for an Ethernet version should it not have P0.0.0.0 to tell it to pick up an address via DHCP also not sure if you really need the S1 to enable it as well

            A Former User? 1 Reply Last reply Reply Quote 0
            • A Former User?
              A Former User @Haffwalker
              last edited by

              @Haffwalker said in Webserver won't start:

              Is it possible, that when I erased the board, that any kind of firmware which is supposed to run on the ethernet module got deleted as well? Maybe I have to flash firmware on that thing too?

              The firmware relating to the network is part of the Duet's RepRap firmware which you have at v3.0, so no. As far as replacing the Ethernet module its a possibility, but I'd be surprised to see it make a difference.

              To get to the bottom of whats going on we'd need something like a wireshark log of the traffic, which is a bit difficult to do without a bridge or managed switch with a mirror feature as far as I can tell.

              I suppose you can as a last effort set up a static IP address on your computer using the same ethernet cable (and no wifi), then set up the Duet 2 Ethernet with the same address and see if it works to rule out issues with DHCP (but its such a simple, tried and true protocol that incompatibilities are rare)

              1 Reply Last reply Reply Quote 0
              • A Former User?
                A Former User @Dougal1957
                last edited by

                @Dougal1957 said in Webserver won't start:

                @droftarts I think his M552 line is wrong for an Ethernet version should it not have P0.0.0.0 to tell it to pick up an address via DHCP also not sure if you really need the S1 to enable it as well

                He's supposedly tried the Duet without the SD card and thus no config, using only M552 S1

                1 Reply Last reply Reply Quote 0
                • droftartsundefined
                  droftarts administrators @Haffwalker
                  last edited by

                  @Haffwalker said in Webserver won't start:

                  Hi, yes I already took the WR802N out of the equation - the Duet is currently directly plugged into my router.

                  Okay! Sorry, just catching up...

                  @Dougal1957 said in Webserver won't start:

                  @droftarts I think his M552 line is wrong for an Ethernet version should it not have P0.0.0.0 to tell it to pick up an address via DHCP also not sure if you really need the S1 to enable it as well

                  Quite right. M552 should be M552 P0.0.0.0 S1 for DHCP, or for a fixed IP address, set the address using the P parameter.

                  Ian

                  Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

                  Dougal1957undefined 1 Reply Last reply Reply Quote 0
                  • Dougal1957undefined
                    Dougal1957 @droftarts
                    last edited by

                    @droftarts I think his config is the one from his WiFi first post says he swapped them over it's one of those little things that catch us all out from time to time!

                    1 Reply Last reply Reply Quote 0
                    • A Former User?
                      A Former User
                      last edited by A Former User

                      @Dougal1957 said in Webserver won't start:

                      @droftarts I think his config is the one from his WiFi first post says he swapped them over it's one of those little things that catch us all out from time to time!

                      @droftarts said in Webserver won't start:

                      Quite right. M552 should be M552 P0.0.0.0 S1 for DHCP, or for a fixed IP address, set the address using the P parameter.

                      see my post https://forum.duet3d.com/post/142097 Duet2Ethernet, no SD card, only send M552 S1 gets IP from DHCP server no problem. M552 P0.0.0.0 S1 will also work, but isn't needed unless to override a stored/configured static IP for a Wifi network afaik.

                      1 Reply Last reply Reply Quote 0
                      • Haffwalkerundefined
                        Haffwalker
                        last edited by Haffwalker

                        Well about the M552 P0.0.0.0 S1...I already tried that but it didnt make any difference...even if I specify an IP address eg. 192.168.0.14, it won´t work...I double and triple checked with my router and that IP isn`t occupied by any other device.

                        60b5a2a1-9371-453e-bcd2-6c0917121fda-image.png
                        d80e1112-4b90-46e6-a8fc-3cf69ff256a3-image.png

                        Dougal1957undefined 1 Reply Last reply Reply Quote 0
                        • Dougal1957undefined
                          Dougal1957 @Haffwalker
                          last edited by

                          @Haffwalker what's in your Config-overide.g?

                          Haffwalkerundefined 1 Reply Last reply Reply Quote 0
                          • Haffwalkerundefined
                            Haffwalker @Dougal1957
                            last edited by

                            @Dougal1957 SD card isn't plugged in right now.

                            droftartsundefined 1 Reply Last reply Reply Quote 0
                            • A Former User?
                              A Former User
                              last edited by

                              With the risk of repeating myself, its not a config issue if it doesn't work with the SD card removed.

                              Dougal1957undefined 1 Reply Last reply Reply Quote 0
                              • Dougal1957undefined
                                Dougal1957 @A Former User
                                last edited by

                                @bearer I think you'll find that the duet won't come up at all without an SD Card inserted but I am prepared to be proved wrong

                                A Former User? 1 Reply Last reply Reply Quote 0
                                • A Former User?
                                  A Former User @Dougal1957
                                  last edited by A Former User

                                  @Dougal1957 said in Webserver won't start:

                                  @bearer I think you'll find that the duet won't come up at all without an SD Card inserted but I am prepared to be proved wrong

                                  @bearer said in Webserver won't start:

                                  @Dougal1957 said in Webserver won't start:

                                  @droftarts I think his config is the one from his WiFi first post says he swapped them over it's one of those little things that catch us all out from time to time!

                                  see my post https://forum.duet3d.com/post/142097 Duet2Ethernet, no SD card, only send M552 S1 gets IP from DHCP server no problem. M552 P0.0.0.0 S1 will also work, but isn't needed unless to override a stored static IP for a Wifi network afaik.

                                  there you go; proven wrong. (i.e. the whole session from the serial terminal is shown, M552 is send over serial to rule out other config issues)

                                  Dougal1957undefined 1 Reply Last reply Reply Quote 0
                                  • droftartsundefined
                                    droftarts administrators @Haffwalker
                                    last edited by

                                    @Haffwalker At some point you changed from 3.01-RC5, which got an IP address, to 3.0, which doesn't. At what point did you also disconnect the TL-WR802N?

                                    Just for completeness, can you downgrade to 2.05.1, and try connecting again, without SD card?

                                    Ian

                                    Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

                                    Haffwalkerundefined 2 Replies Last reply Reply Quote 0
                                    • Dougal1957undefined
                                      Dougal1957 @A Former User
                                      last edited by

                                      @bearer I Stand corrected I know that wouldn't work several years back.

                                      1 Reply Last reply Reply Quote 0
                                      • Haffwalkerundefined
                                        Haffwalker @droftarts
                                        last edited by

                                        @droftarts I will downgrade to 2.05.1 now, will let you know how if it works.

                                        1 Reply Last reply Reply Quote 0
                                        • Haffwalkerundefined
                                          Haffwalker
                                          last edited by

                                          Didn´t help...
                                          b8a92198-bcde-459b-9c78-bbe6b63f8265-image.png

                                          1 Reply Last reply Reply Quote 0
                                          • Haffwalkerundefined
                                            Haffwalker @droftarts
                                            last edited by

                                            @droftarts During my initial setup everything seemed to work nicely - duet got an IP and dwc was working. Then I unplugged everything - put it into the printer/attached cables and when I powered it up, it didnt work anymore. After that I got rid of the WR802N and connected it directly with my router and also I did downgrade from 3.01RC5 to RRF3.0 and now 2.05.

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Unless otherwise noted, all forum content is licensed under CC-BY-SA