Skip to content
This repository has been archived by the owner on May 2, 2023. It is now read-only.

Commit

Permalink
- Performance improvements(15-18%)
Browse files Browse the repository at this point in the history
- Each device's token is kept in the preference(cura.cfg), which means you don't need to authorize it every time even reboot snapmaker or cura
  • Loading branch information
macdylan committed May 21, 2022
1 parent dc84f4e commit 4270286
Show file tree
Hide file tree
Showing 9 changed files with 303 additions and 374 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,5 @@ dmypy.json
.pyre/
.vscode
release.sh

*.zip
22 changes: 22 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
TARGET=~/Library/Application\ Support/cura/5.0/plugins/Snapmaker2Plugin/Snapmaker2Plugin/

PROJ = Snapmaker2Plugin

SRC = plugin.json \
__init__.py \
SM2GCodeWriter.py \
SM2OutputDeviceManager.py

REL = $(SRC) \
LICENSE \
README.md \
README.en-us.md

install:
cp -f $(SRC) $(TARGET)

release:
mkdir $(PROJ)
cp $(REL) $(PROJ)
zip -r $(PROJ).zip $(PROJ)
rm -fr $(PROJ)
10 changes: 4 additions & 6 deletions README.en-us.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,9 @@ Install profile from [snapmaker official cura profiles page](https://support.sna

- Tap Yes in Snapmaker 2 touchscreen WiFi Connection Request (only required the first time after boot)

![](_snapshots/touchscreen_auth.png)
![](_snapshots/touchscreen_auth.jpg)

- Wait for file upload process to complete
- Tap disconnect on the touchscreen or wait for touchscreen to return to home
- Tap start buton on touchscreen
- Navigate to files and choose the file that was just uploaded to your snapmaker

Expand All @@ -53,7 +52,7 @@ You can also use Save to file in Snapmaker G-code file format to disk if require

# Troubleshooting Snapmaker Discovery
⚠️ If your snapmaker name or IP address does not appear try the following steps:
1. Ensure you snapmaker is connected to wifi by checking your wireless router or checking on the Snapmakers touchscreen
1. Ensure you snapmaker is connected to wifi by checking your wireless router or checking on the Snapmakers touchscreen
2. Wait 5-10 seconds, Cura continuously looks for all compatible devices in the LAN and displays them automatically
3. Restart Snapmaker 2 (poweroff for **at least 15 seconds**) and wait for touchscreen to fully start and ensure it is connected to the right wireless lan
4. Check your computer's firewall to see if Cura access to the local area network is blocked (win10 is blocked by default)
Expand All @@ -64,5 +63,4 @@ Please note that the instructions above are valid on firmware 1.12.1 and 1.12.3;


---
**__Make Something Wonderful_**

**__Make Something Wonderful__**
38 changes: 20 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

[Please click here for English README.md](README.en-us.md)
# Snapmaker 2 Plugin for Cura
- 无需配置,通过 UDP 广播自动查找局域网内所有 Snapmaker 2 设备
Expand All @@ -24,33 +23,36 @@ Cura 4.1 以后已经内置了 Snapmaker 2 的配置文件,参考 https://supp
# Usage
- 对模型切片后,将在 Save to File 按钮的位置出现设备选择菜单

![](_snapshots/sendto.png)

⚠️ 如果不出现这个菜单,可按照如下方法排查:
1. 检查 Snapmaker 2 是否已经联网
2. 检查电脑的防火墙,是否阻止了 Cura 访问局域网(win10 默认会阻止)
3. 等待 5-10 秒,Cura 会持续查找局域网内所有兼容设备并自动显示
4. 重启 Snapmaker 2 并等待联网,因为它的应答服务可能挂了
5. 检查路由器设置,是否阻止了 UDP 广播
6. 如果可能,确保电脑、Snapmaker 2、路由器尽可能靠近,避免丢包率过高
![](_snapshots/sendto.png)

- 选择需要发送的设备,点击 Send to
- 每次 Snapmaker 2 启动后,需要在触摸屏进行一次连接授权,在 WiFi Connection Request 中点击 Yes
- 从触摸屏进行连接授权
- 等待文件发送完成

![](_snapshots/screen_auth.png)
![](_snapshots/screen_auth.png)

- 在 Snapmaker 2 触摸屏确认进行打印

![](_snapshots/preview.jpg)
![](_snapshots/preview.jpg)

- 你也可以使用 Save to File,将文件保存为 Snapmaker G-code file(*.gcode) 格式
你也可以使用 Save to File,将文件保存为 Snapmaker G-code file(*.gcode) 格式

![](_snapshots/savetofile.png)
![](_snapshots/savetofile.png)

以上说明适用于固件 1.12 后续版本,不同版本的界面可能有所调整。Snapmaker 2 的无线连接有时候不稳定,如果按照以上排查方法仍无法解决,请提供 cura.log 文件到 issues 中以便分析,感谢你的帮助。
以上说明适用于固件 1.12 后续版本,不同版本的界面可能有所调整。

# 问题排查
⚠️ Snapmaker 2 的无线连接有时候不稳定,如果无法出现设备选择菜单,可按如下方法排查:

---
**_Make Something Wonderful_**
1. 检查 Snapmaker 2 是否已经联网
2. 检查电脑的防火墙,是否阻止了 Cura 访问局域网(win10 默认会阻止)
3. 等待 5-10 秒,Cura 会持续查找局域网内所有兼容设备并自动显示
4. 重启 Snapmaker 2 并等待联网,因为它的应答服务可能挂了
5. 检查路由器设置,是否阻止了 UDP 广播
6. 如果可能,确保电脑、Snapmaker 2、路由器尽可能靠近,避免丢包率过高

如仍无法解决,请提供 cura.log 文件到 issues 中以便分析,感谢你的帮助。


---
**__Make Something Wonderful__**
Loading

0 comments on commit 4270286

Please sign in to comment.