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 - 1 through 12 (of 76 total)
  • Author
    Posts
  • #10883
    Profile photo of click
    click @click
    My Robox is a Green Kickstarter Limited Edition

    I’ve just successfully send three commands to printer:

    status, pause and resume!

    Now I can read id of the current printing job, which line in gcode it prints (and it is line number when all comments and otherwise empty lines are removed) and which state it is in (working, paused, pausing or resuming). Also, sending pause stops print and sending resume resumes it!

    I’ll make them into standard command line … a… commands? Plus Java API for those who might be interested in it.

    Also, now having all three - I can start making little web site to monitor my print progress, too! :)

    #10887
    Profile photo of Aimdy
    Aimdy @mistsoul
    My Robox is a Blue Commercial Version

    Great work, i typically start robox from my phone when i am at work, i can also pause it and watch what it is doing from away and stop the print if it looks like it failed.I wish i had some robotic arms to clean the bed and reload in case of a failure, but just being able to monitor long prints remotely has helped a lot. I ran your java script but have not had the chance to test it yey, hopefully tomorow.

    Moh
    #10896
    Profile photo of
    Anonymous

    Nice work @clicky. Yes, we’re interested! :-)

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

    I’ll try to put code in githib this lunch time or later this evening… All help is more than welcome. As is request for features… :)

    #10899
    Profile photo of
    Anonymous

    First I need to buy a Rpi and PiCam. Did you get an A or B model?

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

    Definitively B model as it has 512Mb memory…

    #10915

    Andy S @andylion
    My Robox is a Blue Commercial Version

    You want the B+ now as it has more usb, better power management (lower power use, more reliable) and a bunch of other frequently requested little updates.

    #10919

    pelgrim @pelgrim
    My Robox is a Green Kickstarter Early Bird

    @clicky
    how did you find these commands ?

    do you still keep in mind what we discusses in here ?
    I would love to help out, especially when java and web is involved, but I have my reservations of course, CEL can possibly object to all this.

    java (EE), JavaFX, HTML, GIS) programmer, database wizard, framework inventor, looking for a job ! http://roboxing.com/wizards
    #10926
    Profile photo of click
    click @click
    My Robox is a Green Kickstarter Limited Edition

    @pelgrimdo you still keep in mind what we discusses in here ?”

    What are you referring at? I skimmed over the thread and still not quite sure which part you think of…

    @pelgrim “…, but I have my reservations of course, CEL can possibly object to all this.”

    True, but - this is their forum. If their have anything against it I would expect them to say something. Also, I don’t think this is anyhow against CEL nor Robox. On contrary. It just expands possibilities what one can do with Robox. Why would they deliberately quash any initiative that can help their product?

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

    Here it is: https://github.com/natdan/rbx-toolset

    Since it relies or rxtx library on RPi(*) you should install it too:

    > sudo apt-get install librxtx-java

    Also - there isn’t easy way to run it (yet). If you put jars from robox-comms an robox-toolset and run org.ah.robox.Main class it should do. Oh and jar from robox-comms/lib/RXTXcomm-2.2pre2.jar, too!

    Arguments are status or list or pause or resume as per org.ah.robox.Main.

    (*) it is RPi right now, but I am sure I can produce one jar from robox-toolset which will include other other needed java classes + .so libraries for RPi and Linux, dynlib for OSX and dll (?) for Windows. That way you won’t need installing anything extra or RPi or anywhere else.

    This is work in progress after all!!!

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

    OK. I’ve updated project so it is much simpler to be used now. If you checkout git repo, build it with maven you can copy robox-toolset/target/robox-toolset-0.1-SNAPSHOT.jar to RPi and use it like:

    > java -jar robox-toolset-0.1-SNAPSHOT.jar status

    I suggest to create alias:

    > alias rbx=”java -jar robox-toolset-0.1-SNAPSHOT.jar”

    and then use it as:

    > rbx status

    or

    > rbx pause

    or

    > rbx resume

    If there are any issues with building it I don’t mind uploading jar file somewhere where’s convenient…

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

    I’ve just tried the latest version with estimated time to end of print and it was acceptable. The longer it passed since it was checked for the first time - the more accurate reading I’ve got. It was 15 minutes out (on shorter side) 1 hour and 15 minutes before the end of print, 4 minutes out 52 minutes before finish and 2 minutes 15 minutes before the end…

    You can use jar from https://www.dropbox.com/s/7af7und3vylxado/robox-toolset-0.1-SNAPSHOT.jar?dl=0, source is at https://github.com/natdan/rbx-toolset, I am sure I’ll be producing newer more often for it to be permanent place to get ready to use jar.

    Generally usage (or RPi at the moment) is:

    > java -jar robox-toolset-0.1-SNAPSHOT.jar … (-h would do)

    For instance

    > java -jar robox-toolset-0.1-SNAPSHOT.jar status -all

     

Viewing 12 posts - 1 through 12 (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