GithubHelp home page GithubHelp logo

3dwifisend's Introduction

3dWiFiSend

Qidi X-Pro/X-Max Network Script

note from original author:

This is a python script I threw together to allow me to send my gcode file from my pc to my printer over the network.

The Qidi X-Pro 3D printer has network built in and allows you to send your files and start printing from Qidi's own software. I wanted to use Simplify 3D instead and also not have to walk to and from my printer so this script came out.

I am not a python person. I absolutely hate python with a burning passion so this code is ugly and does not error-check. Basically, it is not written to really be distributed but I figured I'd share so that someone who actually has the patience to deal with python can improve it or whatever.

I've tried to keep it simple to use.

Instructions

There are 2 files.

One is the python script itself the other is a compressor for windows only - for macs you must have the QIDI Print software installed because it gets the compressor from there.

There is also a test file included, which is a small printer test file.

To use make sure that you have a flash drive plugged into the printer. I find it is a lot more reliable over ethernet than over wifi but YMMV.

Here is how to use it: "python 3DWiFiSendFile.py IPADDRESS FILE.GCODE [yes|no]"

example:

python3 3DWiFiSendFile.py 192.168.3.100 test.gcode yes

The first argument is the ip address of the printer. Second argument is the name/path to the gcode file. Third arg is an optional print flag. If you add 'yes' as the third arg, the printer will also print the file after copying it. If you don't put anything there, it will just copy the file over without printing.

youtube video: https://youtu.be/agJc9IzfyQk

note: Now works on mac and against QIDI X-MAX as well.

Erratta

Sources for M Commands:

experimentation with just sending codes to the printer and seeing what happens:

echo "M4001" | nc -u 192.168.3.100 3000

-and-

observation of QIDI Print softare interacting with printer via tcpdump:

sudo tcpdump -i en9 -nn -s0 -v host 192.168.3.100

-and-

GCode Spec

Similar printer board info

Similar board, diffeent info site

3dwifisend's People

Contributors

tkuebler avatar yandreev3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

nshaver

3dwifisend's Issues

Can't send data to printer

Hi and happy new year.
Impossible for me to upload file to printer...
Got an idea?

`C:\quidi>c:\quidi\3DWSF.py 192.168.1.42 Body1.gcode yes
INFO:main:Printer Info

INFO:main:board/firmware info: Error:Wifi reboot,please reconnect!

INFO:main:firmware version: Error:Wifi reboot,please reconnect!

INFO:main:File 1: Body1.gcodeFile 2: Body1.gcode.tz
INFO:main:Compressing Gcode File`

Can't write to SD card

Hi,
first of all thank you for spending your time in putting this together. I just got the QIDI X-Max and was really disappointed that the software would not just connect via Ethernet.
I found your script and it seems to be able to compress the file as well as connect to the printer. The issue is that it can't write onto the USB stick. Here is the creation of the compressed code and the error code:

input file:.\gear.gcode file:gear.gcode dir:.
open input file .\gear.gcode ok
open output file .\gear.gcode.tz ok
convert done!
X_min:5.000000 X_max:163.324005 Y_min:111.676003 Y_max:138.324005!

INFO:main:3D Printer Xmax IP address: 192.168.5.244
INFO:main:Start write to SD: M28 .\gear.gcode.tz
INFO:main:Start write to SD result: Error!Cann't create file .\gear.gcode.tz
INFO:main:File Position: 0
INFO:main:Sending File Chunk result: ok

Is there any requirement for the USB stick? I have tried the original one and a clean FAT32 formatted one. Do you have any other idea what could go wrong here?

Thanks!

Error checking

I see in the code that you already have a TODO for this, but I really wish there was file error checking implemented. Around 1/4 of the time with the stock QIDI Print software, even over Ethernet, I get incomplete files and only find out when it tells me "Invalid GCode" hours into the print. I'd be willing to pay a decent amount of money if you're able to implement this or have any insight. Support wasn't very helpful. Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.