Jump to content

Inside the Ultimaker 3 - Day 1 - GCode


Daid

Recommended Posts

Posted · Inside the Ultimaker 3 - Day 1 - GCode

Setting the LED colors from the API is broken in the current firmware release I think.

Issue: EM-563: API set lighting does not work (status: todo)

Most things are indeed python. Except for the display interface and marlin (and linux stuff like the kernel)

  • Link to post
    Share on other sites

    Posted (edited) · Inside the Ultimaker 3 - Day 1 - GCode

    Ultimaker absolutely needs all resellers to have a few micro SD cards to unbrick machines that get corrupted such that the reseller can mail the SD card to the customer who can insert it into the A20 board and reload the operating system (and then of course update it to latest the normal way through Internet).

    and arduino github link would be nice. :)

     

    I don't think there's a need for SD cards for that. The USB plug on the front of the machine connects directly to the miniusb port, the documentation shows that is posible to use it as boot. They just need to make a system check so when the machine turns on, while pressing the wheel (for example) it forces a USB check and firmware install if the USB drive has the firmware files on it. Of course, that system restore should be a check that loads before any other service, so it can have a fast/easy factory restore.

    I think resellers should just buy the 12€ cable if they have linux know-how to debug failing parts. Is quite un-intrusive and easy to do. Ofc, the UM3 already have a really good DUMP LOG that shows almost everything that happens or doesn't happen on the machine.

    Of course, with the SD boot img to burn on a SDcard, it could be much easier to play with the little board and do experiments without risk of bricking the linux boot.

    Edited by Guest
  • Link to post
    Share on other sites

    Posted · Inside the Ultimaker 3 - Day 1 - GCode

    Nope, the USB booting is done after MMC2 booting (on which the bootloader is contained) so unless you mess up the bootloader, it will try to boot your system instead of the USB booting.

    And most likely, if you messed with python code, linux is starting fine. It's just that the display cannot run because other parts fail. As long as you don't mess up the griffin.system service, you should still be able to ssh into the machine and fix up your mistake.

  • Link to post
    Share on other sites

    Posted · Inside the Ultimaker 3 - Day 1 - GCode

    LOL daid, that's exactly the service I did mess up.

    And manual says usb otg can be ised to ssh by I wasn't able to do it so I bought the usb/serial one and got in to fix my error.

    Point 2.5.4 manual

    https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXIno-LIME2/resources/A20-OLinuXino-LIME2-UM.pdf#page12

  • Link to post
    Share on other sites

    Posted · Inside the Ultimaker 3 - Day 1 - GCode

    That won't work with our image, due to the USB port being configured differently. I thought you where talking about: http://linux-sunxi.org/FEL/USBBoot

    But do note that putting any image on an micro sd card and putting that in does boot from that. So that's always a recovery path. Even if you use the stock Olimex image to boot and fix our installation from there.

    • Like 1
    Link to post
    Share on other sites

    Posted · Inside the Ultimaker 3 - Day 1 - GCode

    Just did a minor correction, I misinterpreted information about shipping, shipping starts somewhere in November. So, no printers by Friday. Guess I was a bit too enthusiastic about things.

  • Link to post
    Share on other sites

    Posted · Inside the Ultimaker 3 - Day 1 - GCode

    :-) Not by Friday? Damn... and I thought the weekend is safe and I have to get again my wife out of the house for party... ;-)

    Great to have you back, Daid - missed you too...

  • Link to post
    Share on other sites

    Posted · Inside the Ultimaker 3 - Day 1 - GCode

    question!

    if i replace the stepper motors.. could I still do this:

    create a new gcode file, and insert

    M92 E492.45

    then M500 ?

    i could do this on the UM2..

  • Link to post
    Share on other sites

    Posted · Inside the Ultimaker 3 - Day 1 - GCode

    Nope, that is not supported. You need to change the machine configuration file for that.

  • Link to post
    Share on other sites

    Posted · Inside the Ultimaker 3 - Day 1 - GCode

    Nope, that is not supported. You need to change the machine configuration file for that.

     

    cool cool.. pretend i'm stupid and did not pay attention.. do i just SSH in and change a config file somewhere?

  • Link to post
    Share on other sites

    Posted · Inside the Ultimaker 3 - Day 1 - GCode

    Yes, the main config file is located at /usr/share/griffin/griffin/machines/jedi.json

  • Link to post
    Share on other sites

    Posted · Inside the Ultimaker 3 - Day 1 - GCode

    Yes, the main config file is located at /usr/share/griffin/griffin/machines/jedi.json

     

    i need to put my machine in developer mode to allow ssh right.

  • Link to post
    Share on other sites

    Posted (edited) · Inside the Ultimaker 3 - Day 1 - GCode

    Yea dev mode on and ssh root@your-ip password the name of the brand

    Edited by Guest
  • Link to post
    Share on other sites

    Posted · Inside the Ultimaker 3 - Day 1 - GCode

    Hey guys! So just to make sure I understood correctly. To change/turn off the LEDs I add the M142 RxxxGxxxBxxxTx code after the header (not in it).

  • Link to post
    Share on other sites

    Posted · Inside the Ultimaker 3 - Day 1 - GCode

    Hey guys! So just to make sure I understood correctly. To change/turn off the LEDs I add the M142 RxxxGxxxBxxxTx code after the header (not in it).

     

    Changing the color only works on UM3 as other UM's only have single color LEDs.

    .

  • Link to post
    Share on other sites

    Posted · Inside the Ultimaker 3 - Day 1 - GCode

    Hey guys! So just to make sure I understood correctly. To change/turn off the LEDs I add the M142 RxxxGxxxBxxxTx code after the header (not in it).

     

    doesn't matter where you put it, but put it after the header anyway.

    M142 is for the case leds. (has no T parameter) and has rgbw parameters (note: lowercase!)

    M143 is for the head leds.

    There is an API for the case leds that will work in future firmware version 3.5.x

  • Link to post
    Share on other sites

    Posted · Inside the Ultimaker 3 - Day 1 - GCode

     

    Hey guys! So just to make sure I understood correctly. To change/turn off the LEDs I add the M142 RxxxGxxxBxxxTx code after the header (not in it).

     

    doesn't matter where you put it, but put it after the header anyway.

    M142 is for the case leds. (has no T parameter) and has rgbw parameters (note: lowercase!)

    M143 is for the head leds.

    There is an API for the case leds that will work in future firmware version 3.5.x

     

    Alright! Thanks! So I'm guessing in order to turn off the LEDs just input the code for the color black, right?

  • Link to post
    Share on other sites

    Posted (edited) · Inside the Ultimaker 3 - Day 1 - GCode

    Yes. In the future, M142 will change to M142 H[hue] S[saturation] V[value]

    I've submitted that patch for review yesterday. Will be most likely in the December firmware update.

    As right now, the M142 bypasses the whole system and directly sets the leds. Which means the "led subsystem" as no idea that you did that. And the API values also do not update.

    We are using HSV instead of RGB because that is a more natural way to work with colors. And you can dim the lights without changing the color way more easily.

    Edited by Guest
    • Like 1
    Link to post
    Share on other sites

    Posted (edited) · Inside the Ultimaker 3 - Day 1 - GCode

    Yes, the main config file is located at /usr/share/griffin/griffin/machines/jedi.json

     

    Daid;

    if I change this file, will it be overwritten with a firmware update?

    also, if i wanted to reverse the feeder, is that possible?

    Edited by Guest
  • Link to post
    Share on other sites

    Posted · Inside the Ultimaker 3 - Day 1 - GCode

    also, if i wanted to reverse the feeder, is that possible?

     

    If not you can always do it hardware wise, just switching 2 wires on the stepper i believe.....

  • Link to post
    Share on other sites

    Posted (edited) · Inside the Ultimaker 3 - Day 1 - GCode

    if I change this file, will it be overwritten with a firmware update?

    also, if i wanted to reverse the feeder, is that possible?

     

     

    1. Yes it will be overwritten.

    2. we will probably have a way to override these files that is not overwritten when you update your machine in the future but be patient for that :)

    3. you can't reverse the direction from that file AFAIK (maybe we should add that... but for now that is still compiled into marlin)

     

    Edited by Guest
    • Like 1
    Link to post
    Share on other sites

    Posted · Inside the Ultimaker 3 - Day 1 - GCode

    The motor might reverse if you put in negative E steps. But that could also break things, didn't try that.

    Planning to make it easier to have a custom json file. This also helps us internally on various experimental machines. I took a quick look at doing this today, but the code was a bit more complex then a quick patch.

    • Like 2
    Link to post
    Share on other sites

    Posted (edited) · Inside the Ultimaker 3 - Day 1 - GCode

    The motor might reverse if you put in negative E steps. But that could also break things, didn't try that.

    Planning to make it easier to have a custom json file. This also helps us internally on various experimental machines. I took a quick look at doing this today, but the code was a bit more complex then a quick patch.

     

    you are the best. next time i'll bring you beer.

    also, is there a simple way I can get printer statistics ? like hours printed witha  core?

    also : is there a way to easily change the current to the stepper motors?

    Edited by Guest
  • Link to post
    Share on other sites

    Posted · Inside the Ultimaker 3 - Day 1 - GCode

    you are the best. next time i'll bring you beer.

    also, is there a simple way I can get printer statistics ? like hours printed witha  core?

    also : is there a way to easily change the current to the stepper motors?

     

    Printer stats will be added in the API on a firmware update. We are already collecting things, but they are not yet exposed.

    Currently the motor current is hard-coded in griffin/printer/controller.py

  • 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

    • Our picks

      • UltiMaker Cura 5.7 stable released
        Cura 5.7 is here and it brings a handy new workflow improvement when using Thingiverse and Cura together, as well as additional capabilities for Method series printers, and a powerful way of sharing print settings using new printer-agnostic project files! Read on to find out about all of these improvements and more. 
         
          • Like
        • 26 replies
      • S-Line Firmware 8.3.0 was released Nov. 20th on the "Latest" firmware branch.
        (Sorry, was out of office when this released)

        This update is for...
        All UltiMaker S series  
        New features
         
        Temperature status. During print preparation, the temperatures of the print cores and build plate will be shown on the display. This gives a better indication of the progress and remaining wait time. Save log files in paused state. It is now possible to save the printer's log files to USB if the currently active print job is paused. Previously, the Dump logs to USB option was only enabled if the printer was in idle state. Confirm print removal via Digital Factory. If the printer is connected to the Digital Factory, it is now possible to confirm the removal of a previous print job via the Digital Factory interface. This is useful in situations where the build plate is clear, but the operator forgot to select Confirm removal on the printer’s display. Visit this page for more information about this feature.
          • Like
        • 0 replies
    ×
    ×
    • Create New...