T3P3 Kossel Mini Kit Release 3

Assembly Instructions

Appendix E - Duet Network Comnnection

Creative Commons License

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Think3DPrint3D Ltd

http://www.think3dprint3d.com/

E1: Networking the Duet controller

The Duet has an ethernet port and runs its own web-server, provided on the SD card. It can therefore be controlled from a wired or wireless PC on a network, as well as directly over USB by conventional printer communication programs like Pronterface and Repetier. The web interface is the recommended control method as it gives access to the advanced features and settings of RepRap Firmware which are not available using conventional printer communication programs.

Various options for connecting the printer to a network are summarised below. In addition RepRapPro have published very detailed instructions for connecting to a Duet using the web interface and you should refer to these if you are not sure how to proceed. The following is a brief summary.

E2: Connect using DHCP

If the PC you intend to use for printer control is on a network then the simplest way to connect to your printer may be to use DHCP and NetBIOS, by editing your config.g as follows. First give your printer a name:-

M550 PMiniKossel1         ; Machine name and Netbios name (can be anything you like)

The P in front of the name is essential, to identify this as a command.  Then activate DHCP, using semi-colons to comment out unwanted lines, and removing the semi-colons to uncomment lines and make them active:-

M552 P0.0.0.0                                ; Un-comment for DHCP

; M552 P192.168.1.14                        ; IP address, comment for DHCP

; M554 P192.168.1.1                           ; Gateway, comment for DHCP

; M553 P255.255.255.0                         ; Netmask, comment for DHCP

NOTE: DHCP is supported in firmware v1.09 or later. If the Duet is getting its IP address from the router, via DHCP (ip address in config.g is set by ‘M552 P0.0.0.0′ to enable this), and you can’t connect using the name of the printer (set in config.g by ‘M550 P[name]’), either your router does not support DHCP/NETBIOS naming, or your computer may be using an external DNS server, rather than using the router DNS, which would mean it can’t connect to a local ip address. Setting a static IP address as below  should allow you to connect.

E3: Setting a Static IP Address

If your network/router doesn’t support DHCP and NETBIOS naming, you need to set up your Duet to have a static IP address by setting the IP address, netmask, and gateway IP address in config.g. The defaults settings in sys/config.g on the SD card are:

IP address: 192.168.1.14
netmask: 255.255.255.0
gateway: 192.168.1.1

To obtain this information for your own computer and router:

  • In Windows send ipconfig from the Command Prompt. You should get something like this in response:-

Wireless LAN adapter Wireless Network Connection:
Connection-specific DNS Suffix . : lan

Link-local IPv6 Address . . . . . : fe80::45dc:fdd3:67dd:db47%11
IPv4 Address. . . . . . . . . . . : 192.168.1.66
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.254

  • On a Mac OS X, look at the ‘Network’ preferences panel to get the information.
  • In Linux, look in the Network Manager, or send ifconfig in a terminal window. The response should include a line like this:-

inet addr:192.168.1.101  Bcast:192.168.1.255  Mask:255.255.255.0

The Duet will use the Subnet Mask and Gateway given for your router but need a unique IP address. RepRapPro suggest choosing a number that is 10 higher or lower than the address listed for your computer. For the Windows example above, change the relevant lines in config. as follows:-

; M552 P0.0.0.0                                ; Un-comment for DHCP

M552 P192.168.1.76                        ; IP address, comment for DHCP

M554 P192.168.1.254                           ; Gateway, comment for DHCP

M553 P255.255.255.0                         ; Netmask, comment for DHCP

E4: Other Network options

See the RepRapPro documentation linked above for other networking options such as network bridging or setting up a separate network for your printer. These require a PC with dual internet connections - typically a laptop with wifi and an Ethernet socket.

E5: Connect to the Duet

If you are using DHCP, enter the name of your machine (lowercase and with no spaces). For example, if you have set the following in config.g:

M550 PMiniKossel1

enter this into your browser’s address bar:

http://minikossel1

If you are using a static IP address, enter this instead. For example if you set the following in config.g:

M552 P192.168.1.76

then in the browser address bar enter

192.168.1.76

 and you should get the web interface page