macdylan / sm2uploader

A command-line tool for send the gcode file to Snapmaker Printers via WiFi connection.
MIT License
44 stars 4 forks source link

i/o timeout #6

Closed robanderson closed 1 year ago

robanderson commented 1 year ago

Hi there, I suspect there is a step I'm missing here.

Can find the J1 and connect with it but both the command line and octoprint emulator fall over with an I/o timeout.

Any help appreciated.

robanderson@Robs-MBP bin % sm2uploader-darwin-arm64 -host 192.168.0.222 Snap-test1.gcode 2023/05/12 11:40:44 Found printer in /Users/robanderson/bin/hosts.yaml 2023/05/12 11:40:44 Printer IP: 192.168.0.222 2023/05/12 11:40:44 Printer Model: Snapmaker J1 2023/05/12 11:40:44 Uploading file 'Snap-test1.gcode' [12.1 MB]... 2023/05/12 11:40:49 read tcp4 192.168.0.196:52351->192.168.0.222:8888: i/o timeout

macdylan commented 1 year ago

When specifying an IP or Hostname, Discovery will not work, which means the IP address in hosts.yaml may be out of date (if your printer use dynamic IP).

You can try to remove the -host flag to search printers again.