Introduction
This document is relevant to: Duet 2 WiFi / Ethernet, Duet 2 Maestro, and Duet 3 MB6HC and Mini 5+ WiFi / Ethernet in stand alone mode.
Firmware versions: All versions
This guide covers getting a basic USB connection to your Duet, setting it up to be connected to your network, and connecting to the Duet Web Console using a browser.
If you are setting up a Duet 3 with connected Single Board Computer (SBC, eg Raspberry Pi), please see SBC setup for Duet 3 documentation.
If you have any problems with your Duet when using this guide, rather than posting comments, please use our support forum: https://forum.duet3d.com/
-
-
Duet Controller
-
Connector kit
-
Würth Elektronic WR-WTB series connectors (Molex-KK compatible)
-
Ferrules for power input, bed heater, and hotend heaters.
-
Plastic washers for isolation when mounting.
-
100 pins for connectors
-
3 ft. USB Cable
-
-
-
Connect the Duet to your PC with the USB cable provided. Do not connect other power supplies at this stage.
-
Windows users, download the USB drivers for Duet here and extract the files to a suitable location.
-
To install drivers, open Device Manager by pressing Windows Key + R and type devmgmt.msc, or launch from the Start menu by typing "Device Manager". On Windows 10, you can right-click on the Start icon and click on "Device Manager".
-
Look for any devices with a yellow triangle, or for any "Generic USB" devices which would indicate that the Duet driver is not installed.
-
If a USB device does show the yellow triangle, or as a Generic USB device, right click on the device. Click Install Driver and browse to the location of the driver that was downloaded at the beginning of this step. Continue setup by clicking "Next" until the device driver has been installed.
-
Mac OSX users have no drivers to install. To check the Duet is recognised open Applications > Utilities > System Information, under Hardware > USB for a 'Duet' entry. For the Serial Port name, open Applications > Utilities > Terminal, run ls /dev/tty.*. The Duet uses a port with USB in the name, e.g. /dev/tty.usbmodem1411
-
Linux users have no drivers to install. To check the Duet is recognised open a Terminal window and send lsusb, which should show an entry for the Duet. For the Serial Port name, send ls /dev/tty*, which should show an entry /dev/ttyACM[number]. This is the port the Duet is using.
-
-
-
Windows users: we recommend downloading YAT. Other terminal emulation programs may work, eg PuTTY, but we've found YAT the most reliable.
-
Mac OS users: we recommend using SerialTools from the AppStore. You can also connect to your Duet using the built-in 'screen' command.
-
Linux users: we recommend using CuteCom, but you can also use Terminal-based tools such as Minicom, or the built-in 'screen' command.
-
-
-
Download YAT here. Install YAT using default options, then open it. If the Terminal Settings screen doesn't open automatically, select "Terminal" menu, then "Settings".
-
Select the correct COM port as the Serial Port.
-
If unsure of the COM port number, press Windows Key + R on your keyboard and type devmgmt.msc
-
Your Duet will be listed under Ports (COM & LPT) as USB Serial Device (COM#) or similar. Use COM# as the Serial Port in YAT.
-
Set YAT to use <LF> as the end of line character. This will improve the readability of the messages coming from the Duet. Click "Text Settings" in the "Terminal Settings" and change "EOL sequence:" to <LF>. Click "OK" to close Text Settings. Click "OK" again to close Terminal Settings.
-
Select "Terminal" menu, then "Open/Start" to connect to your Duet. Or click the green tick in the tool bar. If you are connecting to a Duet 2 WiFi or Duet 3 Mini 5+ WiFi, you may see lots of "WiFi reported error: no known networks found" messages. Don't worry, that's normal, and it means that the Duet is working!
-
-
-
To connect to your Duet, we recommend using SerialTools from the AppStore. Install SerialTools and run it. Select the Duet from the 'Serial Port' drop down; it will be named something like "usbmodem1411". Baud rate should be 115200, and Local Echo should be ticked. Click 'Connect' to connect.
-
It is also possible to use the built-in 'screen' terminal application. However, you cannot see the commands you type in, and the responses from the Duet are not formatted nicely on the screen. If you want to use 'screen', do this:
-
Open Applications > Utilities > Terminal. Run screen /dev/tty.usbmodem1411 115200, replacing "usbmodem1411" with the Serial Port name for your Mac, if different (see Step 2).
-
You should see a blank screen, but see note on Duet 2 WiFi below. Hit enter and you should see OK returned. You are connected successfully.
-
-
-
Most likely, the first thing you will need to do on a Linux installation is to add the user to the 'dialout' group, to allow permission to connect to the Duet. Do this by opening a Terminal window and sending sudo adduser [your_username] dialout. Following this, you will need to log out and back in, or possibly restart, to enable this.
-
There are many options to connect using Linux. Our favourite is to use CuteCom, which is a GUI serial terminal. It's available in most package repositories, or install with sudo apt install cutecom. It should automatically detect the correct port (usually /dev/ttyACM0), and is configured correctly out of the box. Click 'Open' to connect.
-
Alternatively, you can use a text-based serial terminal application such as Minicom. Install with sudo apt install minicom, and run from a Terminal window with minicom -s, which starts it in setup mode.
-
Select 'Serial port setup', then 'A', and change the port to '/dev/ttyACM0' (or the port name from step 2). Press return twice, then 'Exit'. The terminal will start. Press CTRL-A then W for linewrap, CTRL-A then U for CR at end of line, and CTRL-A then E for local echo. CTRL-A then X quits Minicom, releasing the port.
-
Finally, you can use the built-in 'screen' terminal. However, you cannot see the commands you type in, and the responses from the Duet are not formatted nicely on the screen. If you want to use 'screen', do this:
-
Run screen /dev/ttyACM0 115200. (Replace "ttyACM0" with the port name if it's different.). You should see a blank screen, but see note on Duet 2 WiFi below.
-
-
-
By this point, your computer should be connected and talking to your Duet. You may have received a number of messages from the Duet already; it's generally safe to ignore these for now. The Duet uses 'G-codes' to communicate and for all configuration. See the G-code dictionary here for a description and full list.
-
If you have a Duet 2 Wifi or Duet 3 Mini 5+ WiFi, you may find you are getting a lot of messages like "WiFi reported error: no known networks found". The default configuration turns on the WiFi, but it is not finding a network to connect to. To stop the WiFi, send M552 S-1 (see M552 in the G-code dictionary).
-
To check the Duet's firmware version, send command M115 to the Duet board (see M115 in the G-code dictionary).
-
The Duet will respond with the firmware version being used.
-
Mac OS and Linux users using 'screen': You will not see characters appear on the screen as you type. For this reason, it is easiest to copy and paste the commands to ensure correct syntax.
-
Copy M115 and paste into terminal and then hit enter. You will see OK when a succesful command is received. Wait a few moments and the firmware version will be displayed.
-
-
-
For Duets with WiFi (Duet 2 WiFi, Duet 3 Mini 5+ WiFi; both have internal and external antenna versions):
-
If you didn't turn off WiFi in Step 7, you may find you are getting a lot of messages like "WiFi reported error: no known networks found". The default configuration turns on the WiFi, but it is not finding a network to connect to. To stop the WiFi, send M552 S-1.
-
Send M552 to check the status. It should say "WiFi module is disabled". Now put it into idle mode by sending command M552 S0. Send M552 again to check it's in idle, then proceed to the next step, Step 9.
-
For Duets with Ethernet:
-
Send M552 to check the network module status.
-
It may report that the module is disabled or enabled. Put it into disabled mode by sending command M552 S0. Send M552 again to check it is disabled, then proceed to Step 10.
-
-
-
This step is for Duets with WiFi only! Use the command M587 as shown below. Substitute the SSID and WiFi password for those of your network. Enter the exact characters of your network SSID and password, in the correct case. The simple double quote characters (not curly quotes) are needed. Once you press enter, wait for the 'ok' response.
-
M587 S"your-network-ssid" P"your-network-password"
-
Send command M552 S1 to connect to WiFi. After a moment, the Duet will confirm the connection and the IP address of the Duet controller. The blue LED on the WiFi module will flash as it connects, then should be on constantly once connected.
-
At this point your Duet should be on the wifi network. To connect to the Duet Web Control (DWC) interface, continue to Step 11.
-
-
-
This step is for Duets with Ethernet only! Plug an ethernet cable into the Duet's ethernet port and connect the other end of the cable to a free ethernet port on your router/network hub.
-
So you need to change the network settings. There are two options:
-
DHCP: Most home routers are setup to assign IP addresses by DHCP. Send M552 S0 to disable networking, then M552 S1 P0.0.0.0 to enable networking and have your router assign an IP address.
-
Fixed Address: You can set the Duet to use a fixed IP address. Note that if you use a fixed address, care should be taken that it does not conflict with other devices on the network. Send M552 S0 to disable networking, then M552 S1 Px.x.x.x to enable networking, where "x.x.x.x" is the IP address you want to use, eg 192.168.1.15.
-
In both cases, after 10-30 seconds the board should reply with Network running and the IP address the Duet is using. Send M552 to check the settings.
-
-
-
Open your browser and type the IP address assigned to the Duet, eg 192.168.1.90
-
You may also be able to access the Duet by typing "http://duettest.local/" into your address bar. This is the easiest way to connect to your Duet if you are using a dynamic IP address (via DHCP). See this note about mDNS support if it doesn't work.
-
You should now see the main control page for the Duet!
-
-
-
Navigate to config.g (which is the Duet configuration file) by clicking:
-
System > config.g
-
In the older version of DWC, click Settings > System Editor > config.g
-
Check that there is a command M552 S1 without a semicolon in the beginning. This sets the wifi or ethernet module to enabled.
-
If you have a Duet 2 WiFi or Duet 3 Mini 5+ WiFi, this is sufficient to enable networking and let your network router assign an IP address via DHCP. If you need to assign a static IP address, use M587 with the I parameter when setting up the SSID in Step 9. See M587 in the G-code dictionary.
-
-
-
For DHCP:
-
Most home routers are setup to assign IP addresses by DHCP. Change the M552 P192.168.1.14 line in config.g to M552 P0.0.0.0 to have your router assign an IP address via DHCP. This is standard for most network devices. Any other network settings are set automatically.
-
For Fixed IP address:
-
You can set the Duet to use a fixed IP address. Note that if you use a fixed address, care should be taken that it does not conflict with other devices on the network. Change the M552 P192.168.1.14 line to the IP address you want to use, eg M552 P192.168.0.15
-
You may also need to change the M554 (Gateway) and M553 (Netmask) commands to match your network.
-
-
-
Congratulations - you are now connected to your Duet! You may continue to 2.) Wiring your Duet.
-
The Duet 2 WiFi and Duet 3 Mini 5+ WiFi offer an "Access Point" mode that allows a direct WiFi connection to the Duet. See M589 and M552 in the Gcode dictionary.
-
The Duet 2 Ethernet, Duet 2 Maestro, Duet 3 MB6HC and Duet 3 Mini 5+ Ethernet can be configured to connect directly to an available ethernet port on your PC. See this thread on the forum for details.
-
Cancel: I did not complete this guide.
234 other people completed this guide.
45 Comments
thanks for it
hello, i have 4 wifi´s remembered in my duet. how can i delete them?
M588: Forget WiFi host network
Parameters:
S"ccc" Network SSID to remove from the remembered list
The specified SSID will be removed from the remembered list and the associated password cleared out of EEPROM. If the SSID is given as "*" then all remembered networks will be forgotten.
Ricard -