Getting connected to the Duet WiFi
The Duet WiFi requires some configuration to be able to connect to the network.
The board is supplied pre-programmed. To get started you will need to connect to the board via USB and a printer host program such as Pronterface, then use WiFi to set up the WiFi:
- The board does not start up the WiFi access point until you send it M552 S1 over USB from a printer host program.
- The WiFi will start up as an access point (SSID DuetWiFi); you must connect to it and give it the login information of your wireless network. You can also give the printer a name (say "printer").
- The WiFi module must be restarted. Shut down the wireless (with M552 S0) and start it up again (M552 S1).
- The board will appear on your normal network with a dynamically-allocated IP address. You can find out what it is from your router, or it may work to refer to your printer by its name (as http://printer.local/).
- Note the DuetWifi operates at 2.4Ghz not 5 Ghz. Most Wifi networks have both these frequencies, sometimes as separate network names.
- Note: Duets are shipped with the version of firmware current at the time of manufacture, which is uploaded at the factory for testing purposes. As the firmware is under continual development, customers should always check the firmware version as supplied, and upgrade to the latest stable version if necessary.
This process sometimes goes wrong, most often at the stage of trying to persuade your devices to connect to the Duet WiFi as an access point. This wireless network doesn't allow connection to the Internet, so Android devices (and others) may decide that it isn't working and switch to another network. Temporarily shutting down your normal network may help, if this leaves your devices without any better network to connect to. Alternatively it may be possible to do the initial configuration quickly enough that your device doesn't have time to give up on the network.
Although the config.g file on the internal SD card contains G-code to set machine name and network, on the Duet WiFi these have no effect; the only way to set the network parameters is with the WiFi operating as an access point. This is because these settings are stored on the ESP8266 WiFi module, which has no direct access to the internal SD card.
If you ever need to reconfigure the Duet WiFi's wireless settings, you have to induce it to go into access point mode again. It will do this any time it fails to connect to the normal access point.
- Omit this step if your host computer runs an operating system other than Windows, or you have already installed this device driver for use with a Duet 0.6 or 0.8.5 running recent firmware.
- Go to RepRapFirmware on github and download DuetDriverFiles.zip in Raw mode (i.e. click on the link to the file and then press the Download button) to a folder on your computer. Unzip the file to extract the two driver files, duet.inf and duet.cat.
- Under Windows 10 you can install it by opening the folder in File Manager and double-clicking on duet.inf.
- Under earlier versions of Windows, open Device Manager, find the "Unknown device" that appears when you connect the Duet, right-click on it, select Update Driver, select Have Disk, and browse to the duet.inf file.
- If you will be using a PanelDue with the Duet WiFi, we recommend that you upgrade it to version 1.15c or later firmware. See the PanelDue instructions for how.
- Connect the Duet WiFi board to your computer and check in Device Manager that it is correctly recognized, It should show up as “Duet 3D printer control electronics (COMnnn)” as below.
- Connect Pronterface, Repetier Host or similar via USB. We suggest using just USB power initially, so do not connect the main 12V/24V power yet. Connect to the Duet WiFi using the COM port as allocated in 3. above - in this case COM3:
- You should get a report showing the printer is online:
- You can check that the internal SD card is being read by sending M503 and should get a readout of the config.g file from the internal SD card.
- As supplied, the config.g file on the internal SD card does not enable WiFi. From Pronterface, send the command M552 S1 to enable it.
- Wait 30 seconds, then use a computer, tablet or smartphone with WiFi client capability to scan for access points. You should find an open access point called Duet. Connect to it. If using a computer, disconnect any wired Ethernet connection, to force the computer to use the Duet access point. Enter the default IP address 192.168.1.1 in the address bar of your browser. You should get a page listing available WiFi networks.
- On that page, select your WiFi network and enter the network password. Please note: only ASCII characters are supported at present, so your password should not use accented characters. Also enter a name for your printer, or leave it as the default duetwifi.
- Check that you have entered the password correctly, then submit the data. You should get an “all done” response. Please note, this does not mean that you have entered the password correctly, because the password is not checked until the WiFi module restarts.
- From Pronterface, send command M552 S0 followed by M552 S1 to stop and restart WiFi. A few seconds later, you should get a response giving the IP address. If this does not happen, after 30 seconds check whether the Duet access point is still available, which would indicate that it failed to connect to your network.
- Access the Duet WiFi web interface from a computer or tablet using one of the following methods, note that Chrome and Firefox should work fully however there may be issues with Edge, IE or Safari:
- Enter the IP address that was displayed by Pronterface in your browser.
- If your computer or tablet supports multicast DNS (mDNS), then instead of the IP address you can enter the machine name you chose followed by “.local”, e.g. “duetwifi.local”. You can add mDNS support to a Windows machine by installing Apple’s Bonjour Print Services, or to a Linux machine by installing Avahi.
- The DuetWebControl interface should be displayed.
It should connect automatically but if it doesn’t, click on the blue Connect button.
- Once you have a reliable network connection, you may un-comment the M552 S1 command in config.g file so that the WiFi interface is enabled at startup. This can be done from within the web interface. Note: in later versions of DuetWebControl, the Configuration File tab shown here has been replaced by System Editor and you need to click on the Edit icon next to the config.g file.
- Scroll down to the bottom of the page and click on Apply Settings. The settings will upload and you will be asked if you want to reboot the Duet - respond Yes.