Welcome! Log In Create A New Profile

Advanced

Cant connect to Web Interface on Mac

Posted by InventEd 
Cant connect to Web Interface on Mac
March 18, 2017 07:20AM
I have been slowly building an Ormerod 2 with Duet v0.6 electronics with my son. We can't get the web interface to work. We have managed to connect directly between my mac and the ormerod with USB fine. We are using a DC42 Mini IR Sensor so are using the relevant fork for the SD card image (relevant sections pasted below).

; Ormerod 2 config file for dc42 Duet firmware
M111 S0 ; Debug off
M550 PMy Ormerod ; Machine name (can be anything you like)
M551 Preprap ; Machine password (currently not used)
M540 P0xBE:0xEF:0xDE:0xAD:0xFE:0xED ; MAC Address
;*** Adjust the IP address and gateway in the following 2 lines to suit your network
M552 P192.168.1.14 ; IP address (0 = use DHCP)
M554 P192.168.1.1 ; Gateway
M553 P255.255.255.0 ; Netmask
M555 P2 ; Set output to look like Marlin
M575 P1 B57600 S1 ; Comms parameters for PanelDue



I have manually set the network configuration on the mac to;

IP Address - 192.168.1.12
Subnet Mask - 255.255.255.0

The Network settings say they are connected. If I ping in terminal it comes back with;

$ping 192.168.1.12
PING 192.168.1.12 (192.168.1.12): 56 data bytes
64 bytes from 192.168.1.12: icmp_seq=0 ttl=64 time=0.075 ms
64 bytes from 192.168.1.12: icmp_seq=1 ttl=64 time=0.118 ms
64 bytes from 192.168.1.12: icmp_seq=2 ttl=64 time=0.088 ms

If I then go to a browser (tried chrome and safari) and try to connect I can't get anything. I have tried [myormerod], [192.168.1.12], 192.168.1.12 but all come back with "this site can't be reached". I have tried with the wi-fi also on and off.

Any ideas what I am doing wrong?

Thanks
Re: Cant connect to Web Interface on Mac
March 18, 2017 12:00PM
You do have all the files in the WWW Folder on the SD card for the Web interface don't you
Re: Cant connect to Web Interface on Mac
March 18, 2017 12:29PM
Your config section you posted it configured to use 192.168.1.14, yet your testing is all showing 192.168.1.12. To connect to the printer, you need to be trying to connect to 192.168.1.14.

You said your mac was 192.168.1.12

Edited 1 time(s). Last edit at 03/18/2017 12:29PM by PDBeal.
Re: Cant connect to Web Interface on Mac
March 18, 2017 05:32PM
Quote
PDBeal
Your config section you posted it configured to use 192.168.1.14, yet your testing is all showing 192.168.1.12. To connect to the printer, you need to be trying to connect to 192.168.1.14.

You said your mac was 192.168.1.12

Good spot hadn't noticed that he was effectively pinging his own Mac
Re: Cant connect to Web Interface on Mac
March 18, 2017 07:40PM
Thanks, I was being a bit thick there. OK managed to get it to connect to to 192.168.1.14!

Next step has been trying to connect it via my router, an Airport Base Station. This says it has the following details;

IP address - 79.66.147.108
LAN IP address - 10.0.1.1
DHCP Range - 10.0.1.2 to 10.0.1.200

I have tried the following configurations settings;

first try
M552 P10.0.1.92 ; IP address (0 = use DHCP)
M554 P10.0.1.1 ; Gateway
M553 P255.255.255.0 ; Netmask

Second Try to see if I could get DHCP to work
M552 P0.0.0.0 ; IP address (0 = use DHCP)
M554 P10.0.1.1 ; Gateway
M553 P255.255.255.0 ; Netmask

I also wanted to try and connect with the MAC address but I am not sure how I find out what this is on the Duet. ?
I checked that there is nothing else connected to 10.0.1.92 on the Airport. Neither of these is getting a connection. Any thoughts appreciated - Networking is not my strong point!

Cheers
Re: Cant connect to Web Interface on Mac
March 19, 2017 02:48AM
I think the easiest way to find your printer in a complicated network (including Switches, rooters) is to set it in DHCP mode. You cave posted your config.g in the first post, I have modified it a bit:

; Ormerod 2 config file for dc42 Duet firmware
M111 S0 ; Debug off
M550 PMyOrmerod ; Machine name (can be anything you like)
M551 Preprap ; Machine password (currently not used)
M540 P0xBE:0xEF:0xDE:0xAD:0xFE:0xED ; MAC Address
;*** Adjust the IP address and gateway in the following 2 lines to suit your network
M552 P0.0.0.0 ; IP address (0 = use DHCP)
;M554 P192.168.1.1 ; Gateway
;M553 P255.255.255.0 ; Netmask

This will put the Duet in DHCP mode, with the network name MyOrmerod.
By the way, the MAC address is also set here with M540 command.

Now I would check if the airport device is ready to accept a new device connection (I am not sure how it is called on Mac, but you can actually force a rooter to reject any new connection).
After that you should be able to just type in MyOrmerod, or [myormerod] in your browser and it should bring you to the DWC.
You should also be able to ping your Duet by issueing $ping MyOrmerod.
Remember, you also have set a password 'reprap' in config.g so be prepared to enter it, when DWC will ask you.

I hope this helps.
Re: Cant connect to Web Interface on Mac
March 19, 2017 05:49AM
Thanks for the advice! I have tried those settings but still no luck. ping myormerod responds with

$ ping myormerod
ping: cannot resolve myormerod: Unknown host

Tried to see if I could see the printer on the network with the following command but non match the MAC address in the config

$ snmptable -v 2c -c public 10.0.1.1 ipNetToMedia
SNMP table: IP-MIB::ipNetToMediaTable

ipNetToMediaIfIndex ipNetToMediaPhysAddress ipNetToMediaNetAddress ipNetToMediaType
9 28:8a:1c:ec:54:cf 79.66.128.1 other
10 bc:6e:76:1:13:eb 10.0.1.3 other
10 e8:fc:af:e5:95:19 10.0.1.4 other
10 78:7e:61:c4:dc:ea 10.0.1.11 other
10 b8:44:d9:de:7a:dc 10.0.1.63 other
10 18:b4:30:e:83:dd 10.0.1.73 other
10 88:71:e5:b:f5:86 10.0.1.76 other
10 e0:f8:47:7:5:7e 10.0.1.80 other
10 20:c9:d0:95:cc:51 10.0.1.81 other



I have attached screen grabs of the key setting screens in the Airport

Main Network Screen


In the HTTP port settings


Network options


I also dont understand the MAC address in the config. It seams to have too many characters. My router allows me to enter a MAC address to assign a dedicated IP address, but it does not like the MAC address from the config. I always thought MAC addresses looked like

00:25:96:FF:FE:12:34:56
or
0025:96FF:FE12:3456

0xBE:0xEF:0xDE:0xAD:0xFE:0xED it does not accept. Is it a 64 bit MAC address?

In case it has an effect the router is set to DHCP & NAT rather then just DHCP

Oh and lastly should I comment out the password? This was just how the config was set up when I downloaded it so had not given it much thought.

Thanks!

Edited 2 time(s). Last edit at 03/19/2017 06:14AM by InventEd.
Re: Cant connect to Web Interface on Mac
March 19, 2017 06:32AM
I have also added a DHCP reservation for (what I think is) the MAC address


Re: Cant connect to Web Interface on Mac
March 19, 2017 07:49AM
OK there is something really strange going on. After a couple of hours of no luck I thought I would go back to the direct connection of mac to printer by ethernet. I could not get it to work so thought I would go back to USB connection. I clicked the Y axis homing button on Pronterface and it says;

Starting netw
ork...
RepRapFirmware is up and running.
Starting network
Network up, IP=192.168.1.14

Now the web interface is working, but it does not home the Y axis???

So I checked back through all the versions of config.g I used and realised for my early testing I used the Master and later on in commissioning I changed to the DC42 version! I think using the DC42 version is what has caused a number of issues. Nothing against DC42 here just my inability to understand the differences between the details of the two configurations. I am using a DC42 Mini IR sensor as my Oremrod kit got supplied with the original one missing.Using the Master config has me getting online with a direct network cable to my Mac using a fixed IP address but still no luck with DHCP via the Airport.

Edited 1 time(s). Last edit at 03/19/2017 08:42AM by InventEd.
Sorry, only registered users may post in this forum.

Click here to login