Displaying the IP address using the N520 command



  • 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"
    ;



  • 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.



  • 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.



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



  • @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?



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



  • 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



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



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



  • @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?



  • @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.



  • @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



  • @aidar I will take a look.


  • administrators

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



  • @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.



  • @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


  • administrators

    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



  • @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.



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


  • administrators

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


Log in to reply