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

    12864 LCD "N534" is not work in Duet3 Mini5+ ver 3.4.5

    Scheduled Pinned Locked Moved Unsolved
    General Discussion
    4
    11
    391
    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.
    • airking7undefined
      airking7
      last edited by

      I have connected a BTT 12864 LCD to the Duet3 Mini 5+ and I am configuring the settings for the LCD.

      I added the following code to the lcd"main" file of the LCD to display the IP address of the Raspberry Pi connected to it.

      text R54 C17 F0 T"IP:"
      value N534 W30
      

      IMG_7703.JPG

      However, it displays "IP: 0.0.0.0". Could this be due to incorrect settings on the Raspberry Pi or elsewhere?

      (The Ras-Pi is connected via wired LAN, and the wireless functionality is disabled on the Pi.)

      Previously, I was able to use a command to display the IP address on the LCD when using the Duet2 Maestro. I assumed I could do the same with the Duet 3 Mini 5+.

      dc42undefined 2 Replies Last reply Reply Quote 0
      • dc42undefined
        dc42 administrators @airking7
        last edited by

        @airking7 the reason is that you are running the Duet in SBC mode and RRF only knows the IP address (if any) of the local network interface. I am looking into whether there is an alternative way to display the IP address of the Pi.

        Duet WiFi hardware designer and firmware engineer
        Please do not ask me for Duet support via PM or email, use the forum
        http://www.escher3d.com, https://miscsolutions.wordpress.com

        airking7undefined 1 Reply Last reply Reply Quote 0
        • dc42undefined
          dc42 administrators @airking7
          last edited by

          @airking7 I think the following should work in the forthcoming 3.4.0-beta.4 release of RRF.

          In config.g add:

          global ipAddress = network.interfaces[0].actualIP
          

          In your menu file use:

          text R54 C17 F0 T"IP:"
          value N{global.ipAddress} W30
          

          Duet WiFi hardware designer and firmware engineer
          Please do not ask me for Duet support via PM or email, use the forum
          http://www.escher3d.com, https://miscsolutions.wordpress.com

          1 Reply Last reply Reply Quote 0
          • airking7undefined
            airking7 @dc42
            last edited by

            @dc42
            Thank you for suggesting the cause and solution.

            However, are the codes and countermeasures that you have taught me functions that are valid only for the beta version? If so, change to the suggested version and try again.

            I would like to strongly hope that it will be compatible with the official version in the future.

            Because I am currently developing a 3D printer to sell to Japanese companies.
            I think it is very functional that the IP address that accesses the DWC can be easily seen on the LCD just by plugging in the wired LAN.

            chrishammundefined dc42undefined 2 Replies Last reply Reply Quote 0
            • chrishammundefined
              chrishamm administrators @airking7
              last edited by chrishamm

              @airking7 I think that already works in v3.4 (and not only in the upcoming 3.5-b4) but test it to be sure. I'd also recommend to add a daemon.g file and to update the IP address every 10 seconds or so:

              set global.ipAddress = network.interfaces[0].actualIP
              

              Note that the approach above only works for the Ethernet interface. With some extra logic you could also add support for the second network interface (network.interfaces[1] -> WiFi) if required.

              Duet software engineer

              1 Reply Last reply Reply Quote 1
              • dc42undefined
                dc42 administrators @airking7
                last edited by

                @airking7 I've created a github issue for this: https://github.com/Duet3D/RepRapFirmware/issues/864

                dc42 created this issue in Duet3D/RepRapFirmware

                closed In SBC mode the network IP address is not available to the 12864 display system #864

                Duet WiFi hardware designer and firmware engineer
                Please do not ask me for Duet support via PM or email, use the forum
                http://www.escher3d.com, https://miscsolutions.wordpress.com

                airking7undefined 1 Reply Last reply Reply Quote 0
                • airking7undefined
                  airking7 @dc42
                  last edited by

                  @dc42
                  I added the two codes you told me the other day to 3.4.5, which is currently running, but an error occurred as shown in the image.
                  IMG_7708.JPG

                  @chrishamm
                  Can you tell me about the code inside the daemon .g file?

                  dc42undefined 1 Reply Last reply Reply Quote 0
                  • dc42undefined
                    dc42 administrators @airking7
                    last edited by

                    @airking7 please post the menu file that the error is reported in, so that I can see what is at line 45 column 8.

                    Duet WiFi hardware designer and firmware engineer
                    Please do not ask me for Duet support via PM or email, use the forum
                    http://www.escher3d.com, https://miscsolutions.wordpress.com

                    airking7undefined 1 Reply Last reply Reply Quote 0
                    • airking7undefined
                      airking7 @dc42
                      last edited by

                      @dc42

                      I converted the menu folder to txt.
                      Please let me know if you need any other data.
                      main.txt

                      dc42undefined T3P3Tonyundefined 2 Replies Last reply Reply Quote 0
                      • dc42undefined
                        dc42 administrators @airking7
                        last edited by

                        @airking7 the new syntax used by that code won't work in RRF 3.4.5.

                        Duet WiFi hardware designer and firmware engineer
                        Please do not ask me for Duet support via PM or email, use the forum
                        http://www.escher3d.com, https://miscsolutions.wordpress.com

                        1 Reply Last reply Reply Quote 0
                        • T3P3Tonyundefined
                          T3P3Tony administrators @airking7
                          last edited by

                          @airking7

                          Please test the latest release to confirm its fixed?

                          www.duet3d.com

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