Topic: Sending commands to printer from Raspberry Pi

Home Forums Software Sending commands to printer from Raspberry Pi

This topic contains 75 replies, has 12 voices, and was last updated by Profile photo of click click 3 months ago.

Viewing 12 posts - 25 through 36 (of 76 total)
  • Author
    Posts
  • #12162

    Lauwenmark @lauwenmark
    My Robox is a Blue Commercial Version

    @clicky Oh, sure you can add me, please. I’ll finish filling the small documentation I made about the packets I decoded and will then add that to your project. git username’s is the same as the one I use on this forum, so it shouldn’t be hard :). I can also see to port my code to java and merge with yours - I mostly worked on status readings so far (temperatures, parameters, etc).

    #12165
    Profile photo of click
    click @click
    My Robox is a Green Kickstarter Limited Edition

    Thanks. Done.

    #12546

    Steve N @discosteve
    My Robox is a Blue Commercial Version

    is the Pi issue talking to usb devices resolved? last year I had a Pi talking to a Nikon camera with gphoto2 taking timelapse photos and had difficulties with usb resets

    Steve N | Creator of things both virtual and physical
    #12552
    Profile photo of click
    click @click
    My Robox is a Green Kickstarter Limited Edition

    No, it is fine. 3-4 hour long prints, USB stayed solid.

    BTW you can give it a go if you want - https://github.com/natdan/rbx-toolset is now up to date and you can check it out, build it with maven on your machine and transfer robox-toolset/target/robox-toolset-0.1-SNAPSHOT.jar over to RPi, make /usr/bin/rbx as:

    #!/bin/bash

    java -jar /home/pi/robox-toolset-0.1-SNAPSHOT.jar $@

    (or wherever you stored robox-toolset-0.1-SNAPSHOT.jar)… You can, then, just use it as:

    > rbx -help

    > rbx status

    > rbx web

    or if you want to log out RPi and have ‘web’ app to stay something like:

    > nohup rbx >web.log web &

    Stopping is going to be harder (at the moment) and you’ll need to find that java process and just kill it. I have plans to make it much more convenient!

    For ‘estimate’ to work you need to upload ‘xxxx_robox.gcode’ file from your CEL Printer/PrintJobs/xxxx dir after print has started. Estimate is bad at the moment but all of this is just work in progress after all. Oh, I didn’t get to try out ‘commands’ - not even sure if they are enabled as default. If they are not you could enabled them as:

    > rbx web -allow-commands

    (see other switches using rbx web -help)

    Enjoy. I am really planning to finish as much as possible during this break…

    #12596
    Profile photo of click
    click @click
    My Robox is a Green Kickstarter Limited Edition

    I’ve added new command: gcode. Now you can do things like this:

    $ rbx gcode “M105″
    > T:18 @0 B:20 ^63 A:20 *0
    ok

    Or:

    $ cat <commands.gcode | rbx gcode “G90″

    Also there’s some kind of OSX support too (aside of Linux and Rpi). Shame I can’t try proper, longer print as my printer’s heating bed packed up :(

     

    #12601

    smitty @smitty
    My Robox is a Blue Commercial Version

    @clicky is it easy to set up a pi ? don’t really no much about them but I’ve noticed a few of you guys using them to monitor the robox and it looks pretty trick

    smitty
    #12605
    Profile photo of click
    click @click
    My Robox is a Green Kickstarter Limited Edition

    It is not too hard, but involves time and some knowledge. In nutshell it is down to getting RPi, camera module, downloading raspian os image and store it on SD card, installing and setting up Java. I don’t mind helping you at any step yo get stuck with. Just send me a PM on thingiverse if you stumble at any point…

    #12611

    smitty @smitty
    My Robox is a Blue Commercial Version

    @clicky yeah i wouldn’t mind giving it a go at some point ,I’ve seen the rpi and they look pretty cool but never really done anything like that before ,gonna have a read up on it and see what its all about

    smitty
    #12718
    Profile photo of click
    click @click
    My Robox is a Green Kickstarter Limited Edition

    I’ve added ‘send’, ‘jobs’ and ‘start’ commands (unscheduled - but kind of forced by effort to make printer usable again as printing bed doesn’t work and AM insists on waiting for bed to heat up - or at least created gcode in such way).

    Anyway - now you can now use AM to send job to printer and later re-initiate it using command line. Here’s example:

    $ rbx send -f my.gcode
    Job id: a71abeae6a344c57
    $ rbx jobs
    1: 5f6a6940b9a4437e
    ...
    14: f088f34c17c748d7
    15: a71abeae6a344c57
    $ rbx start a71abeae6a344c57
    $ cp my.gcode a71abeae6a344c57_robox.gcode
    $ rbx upload a71abeae6a344c57_robox.gcode
    $ rbx web -rs 1 -ar 2 -ac
    Started web server at null

    Enjoy…

    BTW it works on Linux boxes including RPi and on OSX. If anyone wants latest jar file I can create it and upload it to right place as well…

    #12765
    Profile photo of gid
    gid @gid
    My Robox is a Green Kickstarter Beta

    @clicky Nice job on all this! I’ve been AWOL for health reasons, but I’m getting back to playing with my Robox now. I was wondering whether it was worth refactoring this in a lighter-weight language. Java’s slow and a bit of a pig to get going sometimes, so maybe reworking for Python, Perl or similar might allow use on even lower-specced hosts. Regardless, damn fine work!

    Apparently the new AM (or one of the branches, maybe) is architectured with an internal “virtual Robox” so that part could be shifted to another machine, eg. an RPi. I still see a benefit to a totally transparent proxy, eg. to allow n-to-m switching of PCs to Roboxes for lab/classroom environments.

    Tom Gidden -- Bristol, UK -- New Roboxer? Check out the wiki, and add yourself to the map! http://roboxing.com/user_locations
    #12767
    Profile photo of click
    click @click
    My Robox is a Green Kickstarter Limited Edition

    @gid thanks! :)

    Probably that got me not to have been selected as beta tester, but hey… You can have it both way. :(

    “Apparently the new AM (or one of the branches, maybe) is architectured with an internal “virtual Robox” so that part could be shifted to another machine, eg. an RPi. I still see a benefit to a totally transparent proxy, eg. to allow n-to-m switching of PCs to Roboxes for lab/classroom environments.”

    Yes - that’s what I planned to do mid-term. And without need to hack anything badly. Shame it is, kind of, duplicated work, but I suspect CEL will never have time to engage with us and share some of it…

    In the mean time I’ll concentrate on web front end…

    “I was wondering whether it was worth refactoring this in a lighter-weight language. Java’s slow and a bit of a pig to get going sometimes, so maybe reworking for Python, Perl or similar might allow use on even lower-specced hosts.”

    I did consider it (actually doing it in C), but after all those commands are not executed too often so it doesn’t really mater. Also, I can slimline toolset easily for slightly faster loading + use Java 7’s special features where first loading of particular jar is at ‘normal’ speed while all subsequent are lighting fast as JVM will keep all classes in shared memory and re-use it from there.

    Also, now having it running in Java - it works on my Mac and RPi and i586/amd64 Linux (virtual machine for me at the moment) and shouldn’t be too hard to bring Windows machines in it, too.

    Anyway - source is over there and can be easily read (I really hope O: ) so if someone is interested in porting some of it, please do! Also, if anyone finds anything not being quite as it should - please do pass the info back so I can fix it!

    I’m glad that at least someone appreciate what I’ve done. I did it mostly for myself, but I would be more than glad if I helped at least someone else, too. Oh, btw - without it I would have dead printer on my first ‘3d printing holiday’ - so at least I’ve done something positive.

    #12771

    Steve N @discosteve
    My Robox is a Blue Commercial Version

    I will get around to trying the Pi interface once I’ve got comfortable with AM on Windows

    Steve N | Creator of things both virtual and physical
Viewing 12 posts - 25 through 36 (of 76 total)

You must be logged in to reply to this topic.

Subscribe now to be kept up-to date with the latest Robox® news. Subscribe Now