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

Displaying the IP address using the N520 command

Scheduled Pinned Locked Moved
Example setups and prints
6
27
2.6k
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.
  • undefined
    NOVAprint
    last edited by 16 Dec 2018, 02:41

    I am trying to get the board to display the IP address when it is connected to the network. The command lines are at the very top. I am wondering if the issue if the decimals, I have removed the D (decimal) variable and it yields the same. I have varied the width all the way out to 70 and nothing happened. Here is the code. I am using an LED screen and although it would be great to buy a screen that displays outomatically, I want to make this screen work it seems reasonable to me.

    My code: the IP part appears, and three asterix.
    text R3 C5 F0 T"IP:"
    value R3 C30 F0 W27 D0 N530
    ;
    text R15 C5 F0 T"Hotend:"
    value R15 C50 F0 D1 W27 N79
    text R15 C80 F0 T"/"
    value R15 C87 F0 D0 W27 N179
    ;
    text R27 C5 F0 T"Bed:"
    value R27 C50 F0 D1 W27 N80
    text R27 C80 F0 T"/"
    value R27 C87 F0 D0 W27 N180
    ;
    text R39 C5 F0 T"Fan:
    value R39 C50 F0 D0 W19 N399
    ;
    text R51 C5 F0 T"Feed Rate:"
    value R51 C50 F0 D0 W19 N500
    ;
    ; hold one selectable item, off-screen, so that a click brings you to e_main:
    button R51 C132 F0 T"Get Started ยป" A"menu" L"e_main"
    ;

    1 Reply Last reply Reply Quote 0
    • undefined
      3dmntbighker
      last edited by 16 Dec 2018, 02:53

      N530 = octet 1
      N531 = octet 2
      N532 = octet 3
      N533 = octet 4

      I suspect all you need is octet 4. You probably have to build out the whole IP address appending the octets and periods one at a time.

      Scratch built CoreXY with Maestro
      Heavily modified Ender 3 with Maestro
      MPCNC work in progress with Duet WiFi

      undefined 1 Reply Last reply 16 Dec 2018, 17:59 Reply Quote 0
      • undefined
        NOVAprint
        last edited by 16 Dec 2018, 04:34

        OK,, should each set of octets be on a seperate line or on one single line witht eh spaces counted out. Also is it possible that anyone out there has the display file for the duet wifi hd display? Even though it is HD the basic planning should be the same.

        1 Reply Last reply Reply Quote 0
        • undefined
          patakopecek
          last edited by 16 Dec 2018, 12:50

          What screen do you use and how did you configure it on the duet wifi?

          undefined 1 Reply Last reply 16 Dec 2018, 14:05 Reply Quote 0
          • undefined
            NOVAprint @patakopecek
            last edited by 16 Dec 2018, 14:05

            @patakopecek LCD 12864 and right now I am using a modified factury configuration obviously I have to change it. The first three lines of code are modified here. There is a guide that outlines how to program the menu screen, it is hared to do so far. If I take a few days I could get it done, but how has a few days?

            1 Reply Last reply Reply Quote 0
            • undefined
              Dougal1957
              last edited by 16 Dec 2018, 14:48

              I Would suggest that it is on a Meastro not a WiFi!

              1 Reply Last reply Reply Quote 0
              • undefined
                NOVAprint
                last edited by 16 Dec 2018, 16:02

                Sorry I did not make that clear this is the Maestro, perhaps I mispoke. At any rate the formatting and the question still stands is there any examples perhapos the menu from the Wifi can be translated over, can anyone post the menu files form the Duet Wifi as it lists the IP address on the HD screen

                undefined 1 Reply Last reply 16 Dec 2018, 16:50 Reply Quote 0
                • undefined
                  NOVAprint
                  last edited by 16 Dec 2018, 16:12

                  @3dmntbighker Do you have any menu code or formatting that could help with this, perhaps something that could copy and paste?

                  undefined 1 Reply Last reply 16 Dec 2018, 20:08 Reply Quote 0
                  • undefined
                    aidar @NOVAprint
                    last edited by 16 Dec 2018, 16:50

                    @novaprint Wifi doesnt support LCD 12864 as far as i know. Only Maestro does. So there are no menu files for Wifi.

                    undefined 1 Reply Last reply 16 Dec 2018, 17:58 Reply Quote 0
                    • undefined
                      NOVAprint @aidar
                      last edited by 16 Dec 2018, 17:58

                      @aidar There is code that lines up the commands for the wifi. The code the N commands in the wifi shoild be common between the two platforms. There is no alternaive st of copmmands for the siplay on the LCD screen versus the HD The commands are the same, I would like to see the commands, would someone please post them?

                      undefined 1 Reply Last reply 16 Dec 2018, 18:08 Reply Quote 0
                      • undefined
                        NOVAprint @3dmntbighker
                        last edited by 16 Dec 2018, 17:59

                        @3dmntbighker Do you have an example of lining up the N commands for this one, I wonder how many different ways the width, the decimals etc would need to be manipulated before I get it correct.

                        1 Reply Last reply Reply Quote 0
                        • undefined
                          aidar @NOVAprint
                          last edited by 16 Dec 2018, 18:08

                          @novaprint Not sure what code and commands you are talking about. LCD 12864 and PanelDue are two completly different things. PanelDue has its own firmware and talks to board via serial connection. Btw PanelDue firmware is open source so if you want to look at it .. https://github.com/dc42/PanelDueFirmware/releases

                          undefined 1 Reply Last reply 16 Dec 2018, 18:17 Reply Quote 0
                          • undefined
                            NOVAprint @aidar
                            last edited by 16 Dec 2018, 18:17

                            @aidar I will take a look.

                            1 Reply Last reply Reply Quote 0
                            • undefined
                              dc42 administrators
                              last edited by 16 Dec 2018, 19:35

                              On a PanelDue, to find the IP address go to the Console page, press the keyboard icon and enter M552.

                              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
                              • undefined
                                3dmntbighker @NOVAprint
                                last edited by 16 Dec 2018, 20:08

                                @novaprint said in Displaying the IP address using the N520 command:

                                @3dmntbighker Do you have any menu code or formatting that could help with this, perhaps something that could copy and paste?

                                No, I'm not displaying the IP on my display.

                                Scratch built CoreXY with Maestro
                                Heavily modified Ender 3 with Maestro
                                MPCNC work in progress with Duet WiFi

                                undefined 1 Reply Last reply 2 Jan 2019, 10:06 Reply Quote 0
                                • undefined
                                  NOVAprint @3dmntbighker
                                  last edited by 2 Jan 2019, 10:06

                                  @3dmntbighker THis is the code that I have so far:
                                  My code: the IP part appears

                                  text R3 C5 F0 T"IP:"
                                  value R3 C30 F0 W27 D0 N530

                                  1 Reply Last reply Reply Quote 0
                                  • undefined
                                    dc42 administrators
                                    last edited by 2 Jan 2019, 10:24

                                    At present you have to display the 4 octets separately, for example:

                                    text R3 C5 F0 T"IP:"
                                    value D0 N530
                                    text T"."
                                    value D0 N531
                                    text T"."
                                    value D0 N532
                                    text T"."
                                    value D0 N533

                                    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

                                    undefined 1 Reply Last reply 2 Jan 2019, 10:54 Reply Quote 0
                                    • undefined
                                      NOVAprint
                                      last edited by 2 Jan 2019, 10:53

                                      @dc42 said in Displaying the IP address using the N520 command:

                                      text R3 C5 F0 T"IP:"
                                      value D0 N530
                                      text T"."
                                      value D0 N531
                                      text T"."
                                      value D0 N532
                                      text T"."
                                      value D0 N533

                                      thank you for that line of code, but at present, the display shows a series of asterixs (little stars) after each period. As if it is trying to show the information, but is somehow unable. I Had this unit connected to the internet last night and when I woke up it would not react to the same ISP numbers that it previously was assigned. The display of the little stars is consistent with the behavior that I was able to get before. The operating system is the latest from M3D. Just got it in November.

                                      1 Reply Last reply Reply Quote 0
                                      • undefined
                                        NOVAprint @dc42
                                        last edited by 2 Jan 2019, 10:54

                                        @dc42 Yes it is connected to the internet and I am getting yellow and green lights on the Connecting network wire.

                                        1 Reply Last reply Reply Quote 0
                                        • undefined
                                          dc42 administrators
                                          last edited by 2 Jan 2019, 11:36

                                          What firmware version are you using? I don't think M3D has updated to 2.02 yet.

                                          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

                                          undefined 1 Reply Last reply 2 Jan 2019, 12:31 Reply Quote 0
                                          • First post
                                            Last post
                                          Unless otherwise noted, all forum content is licensed under CC-BY-SA