Home › Forums › TinyG › TinyG Support › Python control in linux
Tagged: control, linux, python, sending files
- This topic has 5 replies, 3 voices, and was last updated 11 years ago by alden.
-
AuthorPosts
-
November 6, 2013 at 1:59 pm #4920timnoble2Member
Hi all,
I’m running linux (Ubuntu 12.04LTS) and having difficulty sending files to my TinyG. I have used picocom from the terminal to send individual lines of GCode and to change settings, both with success. However, since TGFX doesn’t seem to work on my system and since I can’t seem to open CoolTerm’s linux version (not really supported anyway), I’m in a bit of a bind sending full files to the machine.My solution has been to use Python (the language I know best) to send files via the serial. However, I seem to be having buffer issues probably due to the fact that I’m overwhelming the TinyG without having a clear way for the python script to wait for a response. Does anyone have a simple python script that they would be willing to share which takes a file of gcode and sends it along to the board? perhaps something like that which appears in this video from Riley a few years back? http://www.flickr.com/photos/rileyporter/4881539094/
Thanks!
November 6, 2013 at 8:04 pm #4921mcgyvrMemberpfft.. who needs a computer.. (assuming you have a tablet)
https://play.google.com/store/apps/details?id=org.csgeeks.TinyG&hl=enNovember 7, 2013 at 4:25 am #4922timnoble2Member<<pfft.. who needs a computer.. (assuming you have a tablet)>>
well, i don’t. so, that’s unfortunately not an option.
November 8, 2013 at 8:27 am #4929aldenMemberI’m writing something up on the wiki to help with your inquiry. There are enough people working on programmatic interfaces that this needs some attention. Please give me a day or 2 to get this in place and I’ll post a follow up.
- This reply was modified 11 years ago by alden.
November 8, 2013 at 12:39 pm #4931timnoble2MemberThanks, Alden. That would be massively helpful. I too am looking forward to TGFX’s development. However, for my sort of implementation, coding up something simple by hand is probably better. Specifically, I need to provide museum staff with a simple text interface to run one file or another. Not much is needed except robust communication with TinyG in order to send simple GCode files several thousand lines long. I’ve found several chunks of example code that folks seem to have used, but they vary widely.
Again, thanks for your help. I’ve found the hardware to work very well and look forward to working with it for a long time to come.
November 12, 2013 at 4:17 pm #4942aldenMemberHere’s a page discussing the issues. It’s a work in process, so things might changes as we have more discussion or there are other inputs.
https://github.com/synthetos/TinyG/wiki/Tinyg-Communications-Programming
-
AuthorPosts
- You must be logged in to reply to this topic.