Skip to main content

A simple gcode sender

Project description

A simple gcode sender

Features:

  • fast (buffered)
  • simple to use
  • easy to tune to your device (one simple & clean Python file)
  • works well on a raspberry pi (tested with "old" Python versions)

Usage: sgs <gcode_filename> <serial_device>

Note: if you see any output, it means there are errors occurring, try tweaking those two values:

BUFFER_SIZE = 10 # you can try to reduce this
BUFFER_FULL_PAUSE_DURATION = 0.01 # you can try to increase that

On the other hand, if you have a really fast hardware, you can do the opposite until you get some errors (prioritize BUFFER_FULL_PAUSE_DURATION over BUFFER_SIZE: buffered data may get replayed on error which may lead to undesired behavior (duplicate gcodes).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simple_gcode_sender-1.0.0.tar.gz (2.5 kB view hashes)

Uploaded Source

Built Distribution

simple_gcode_sender-1.0.0-py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page