Skip to content

Latest commit

 

History

History
76 lines (63 loc) · 2.94 KB

README.md

File metadata and controls

76 lines (63 loc) · 2.94 KB

中文说明|Chinese Readme

sm2uploader

A command-line tool for send the gcode file to Snapmaker Printers via WiFi connection.

Features:

  • Auto discover printers (UDP broadcast, same as Snapmaker Luban)
  • Upload any type of file does not depend on the head/module limit
  • Simulated a OctoPrint server, so that it can be in any slicing software such as Cura/PrusaSlicer/SuperSlicer/OrcaSlicer send gcode to the printer
  • Smart pre-heat for switch tools, shutoff nozzles that are no longer in use, and other optimization features for multi-extruders.
  • Reinforce the prime tower to avoid it collapse for multi-filament printing
  • No need to click Yes button on the touch screen every time for authorization connect
  • Support Snapmaker 2 A150/250/350, J1, Artisan
  • Support for multiple platforms including win/macOS/Linux/RaspberryPi

Usage:

Download sm2uploader

  • Linux/macOS: chmod +x sm2uploader

for Windows:

  • locate to the sm2uploader folder, and double-click start-octoprint.bat
  • type a port number for octoprint that you wish to listen
  • when Server started ... message appears, the startup was successful, do not close the cmd window, and go to the slicer software to setup a OctoPrint printer
  • use http://127.0.0.1:(PORT NUM) as url, click the Test Connect button, all configuration will be finished if successful.
## Discover mode
$ sm2uploader /path/to/code-file1 /path/to/code-file2
Discovering ...
Use the arrow keys to navigate: ↓ ↑ → ←
? Found 3 machines:
  ▸ [email protected] - Snapmaker A350
    [email protected] - Snapmaker A250
    [email protected] - Snapmaker-J1
Printer IP: 192.168.1.19
Printer Model: Snapmaker J1
Uploading file 'code-file1' [1.2 MB]...
  - SACP sending 100%
Upload finished.
Uploading file 'code-file2' [1.0 MB]...
  - SACP sending 100%
Upload finished.

## Use printer id
$ sm2uploader -host J1V19 /path/to/code-file1
Discovering ...
Printer IP: 192.168.1.19
Printer Model: Snapmaker J1
Uploading file 'code-file1' [1.2 MB]...
  - SACP sending 100%
Upload finished.

## OctoPrint server (CTRL-C to stop)
$ sm2uploader -octoprint 127.0.0.1:8844 -host A350
Printer IP: 192.168.1.20
Printer Model: Snapmaker 2 Model A350
Starting OctoPrint server on :8844 ...
Server started, now you can upload files to http://127.0.0.1:8844
Request GET /api/version completed in 6.334µs
  - HTTP sending 100.0%
Upload finished: model.gcode [382.2 KB]
Request POST /api/files/local completed in 951.080458ms

If UDP Discover can not work, use sm2uploader -host 192.168.1.20 /file.gcode to directly upload to printer.

If host in knownhosts, -host printer-id is very convenient.

Get help: sm2uploader -h

Fix the "can not be opened because it is from an unidentified developer"

Solution: https://osxdaily.com/2012/07/27/app-cant-be-opened-because-it-is-from-an-unidentified-developer/

or: xattr -d com.apple.quarantine sm2uploader-darwin