This topic contains 75 replies, has 12 voices, and was last updated by
click 3 months ago.
-
AuthorPosts
-
04/12/2014 at 9:13 pm #10883
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!
05/12/2014 at 12:45 am #10887Great 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.
Moh05/12/2014 at 9:12 am #10896
AnonymousNice work @clicky. Yes, we’re interested!
05/12/2014 at 9:30 am #10898I’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…
05/12/2014 at 9:32 am #10899
AnonymousFirst I need to buy a Rpi and PiCam. Did you get an A or B model?
05/12/2014 at 9:33 am #10900Definitively B model as it has 512Mb memory…
05/12/2014 at 10:13 am #10915You 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.
05/12/2014 at 10:37 am #10919@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/wizards05/12/2014 at 11:18 am #10926@pelgrim “do 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?
05/12/2014 at 1:14 pm #10941Here 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-javaAlso - 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!!!
05/12/2014 at 9:05 pm #11007OK. 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…
06/12/2014 at 8:02 pm #11072I’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
-
AuthorPosts
You must be logged in to reply to this topic.




