Jump to content
Ultimaker Community of 3D Printing Experts

UM2+: read status, temp etc. via USB


Recommended Posts

Posted · UM2+: read status, temp etc. via USB

Hello

 

We have an UM2+ which we have just installed in out hackspace and are anticipating heavy use - it's great. What would be even better would be the ability to monitor usage, and report the temperature, remaining time etc. via a web-page over the internet. This would allow members to tell when the printer was being used currently, and how much time was remaining on a print, before coming down to use it. Over time, the statistics collected would also allow them to judge when was the best time to come down to maximise their chances of being able to use it.

 

To be clear - we do not want to *control* the printer via USB, only to monitor it.

 

We are very capable at electronics and perfectly able to design a small electronic device to plug into the USB port and communicate with the internet. What we need is advice on whether it is possible to get the printer to report these status variables via USB whilst printing from the SD card. 

 

All tips and advice welcomed

 

Thanks :)

  • Link to post
    Share on other sites

    Posted · UM2+: read status, temp etc. via USB

    Yes, that is possible, though it is somewhat limited. You can monitor temperatures, but I don't know if you can also monitor how far along a print is.

     

    However - as the creator of the OctoPrintPlugin - I will add that printing over the network from an OctoPrint instance is far superior to printing from SD-cards on a sneakernet.

  • Link to post
    Share on other sites

    Posted · UM2+: read status, temp etc. via USB

    Have a look at the Octoprint API documentation:
    http://docs.octoprint.org/en/master/api/index.html

    You can retrieve info about the running job (if submitted from Octoprint)
    http://docs.octoprint.org/en/master/api/job.html#retrieve-information-about-the-current-job

     

    I think you can even print jobs from the SD from Octoprint.

    You can do all the things Octoprint does regarding the printer status yourself, if you want. It is simply processing serial output that comes from the printer via USB or uses G-code commands to query the status.

    But Octoprint does all this already and much more and gives you a REST API for that, which is easier than to deal with the G-code commands and all the serial communication stuff.

  • Link to post
    Share on other sites

    Posted · UM2+: read status, temp etc. via USB

    Thanks both - am feeling the love for Octoprint. We're familiar with Octoprint as we used it with our RepRap setup, and agree that it is a great piece of software. 

     

    In our particular circumstances there are some benefits to restricting printing and control of the printer to the SD card - for instance, making sure the user is present to start the job so that they can ensure that they know what filament they are using, and that they have good first layer adhesion and are not going to print a huge birds nest. I think it will generally reduce the scope for error and therefore also the need for (volunteer) maintenance effort.

     

    I'll take a look at the Octoprint documentation to see what I can glean about the serial interface, do some tests, and post back here if we have any success.

     

     

  • Link to post
    Share on other sites

    Posted · UM2+: read status, temp etc. via USB

    As @ahoeben said, for prints from sdcard your possibilities are limited. There's gcode M105 for the temperatures and M27 gives you the current (byte) position of the printed file.

    I see no other available information that would be useful for your use case. At least you could use it to make your own statistics and predictions.

  • Link to post
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
     Share

    • Our picks

      • New here? Get ahead with a free onboarding course
        Hi,
         
        Often getting started is the most difficult part of any process. A good start sets you up for success and saves you time and energy that could be spent elsewhere. That is why we have a onboarding course ready for
        Ultimaker S5 Pro Bundle, Ultimaker S5, Ultimaker S3 Ultimaker 2+ Connect.   
        They're ready for you on the Ultimaker Academy platform. All you need to do to gain access is to register your product to gain free access. 
        Ready? Register your product here in just 60 seconds.
          • Like
        • 11 replies
    ×
    ×
    • Create New...