User Tools

Site Tools


wifi:g-code_file

G-code file


Connecting to WiFi

  1. Download the file “wifi_setup.gcode” from the Google Drive “WiFi” Folder, Save from the link below, or Copy & paste from the code block below.
  2. Using a text editor; Windows Notepad, Notepad++, or similar program
    1. Replace “SSID” with the name of your WiFi network - don't leave spaces after the SSID name unless your SSID has spaces at the end
    2. Replace “PASSWORD” with the password for your WiFi network - don't have spaces after the password unless your password has spaces at the end
    3. Verify there is a blank line for the last line. If there is not a blank line then add one.
  3. Save the file with the extension “.gcode” e.g., “wifi_setup.gcode”
  4. Copy the file onto a microSD card and insert the microSD card into the printer.
  5. From the Print menu select the file you just copied to the card.
  6. The printer will go through a short routine. The fan turning on/off and movement of the X & Y axis is to let the user know that process has started and that is has ended. i.e. The only important parts are the two lines that contain M550 & M551.
    1. The fan will turn on
    2. X & Y axis with move to home position
    3. SSID & Password will be saved to the printer
    4. The X-axis will move to the center of the bed
    5. The fan will turn off to signify completion
    6. Sometimes the LCD doesn't show the job as complete but you can cancel the job or power cycle the printer.

Limitations

  • This method will work with SSID & passwords that contain multiple spaces, space(s) at the end, special characters, & lower case characters in any location.
  • This method will not work if WiFi password contains a semicolon “;”
  • This method will not work for configuring open system WiFi networks with no password.
wifi_setup.gcode
; G-Code generated by Matthew Upp
; WiFi SSID & Password for Malyan M200 & MP Select Mini
; 
; Look below and replace "SSID" with the name of your WiFi network - don't leave spaces after the SSID name
; Look below and replace "PASSWORD" with the password for your WiFi network - don't leave spaces after the password
; This method will not work if WiFi password contains a semicolon “;”
; This method will not work for configuring open system WiFi networks with no password
; Lines with only a semicolon are for making line separations only
; Please add a blank line to the end of the file while editing. DokuWiki Code Blocks deletes blank lines at the end of the block but g-code files should end with a single blank line at the end.
; 
; 
M106 S0 ; turn fan off in case it was already on
M106 S200 ; turn fan on to signify start
G28 X Y ; home X & Y
; 
;  
M550 SSID
M551 PASSWORD
; 
; 
G1 X60 Y60 F1000 ; CENTER bed to signify completion
M106 S0 ; turn fan to signify completion
M84 ; disable motors


NOTES:

  • WiFi and USB cannot access simultaneously.
  • Disconnect USB cable from the printer if you want to use the WiFi function.
  • WiFi works with 2.4 GHz b/g/n networks only.
  • These next two notes apply to when connecting using the Android & iOS apps.
    1. If you have a 2.4 GHz and 5 GHz network using the same SSID(wireless network name) you may have trouble connecting the printer.
    2. For initial WiFi setup try moving the printer closer to the WiFi router.
wifi/g-code_file.txt · Last modified: 2017/03/03 15:53 by Matthew Upp