Jump to content
Daid

Inside the Ultimaker 3 - Day 1 - GCode

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)

Share this post


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

Share this post


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.

Share this post


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

Share this post


Link to post
Share on other sites
Posted · Inside the Ultimaker 3 - Day 1 - GCode

Hi Daid, welcome back I have missed you too :)

And many thanks for the time you put into this. It is greatly appreciated!

Share this post


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.

Share this post


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...

Share this post


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..

Share this post


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.

Share this post


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?

Share this post


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

Share this post


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.

Share this post


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

Share this post


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).

Share this post


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.

.

Share this post


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

Share this post


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?

Share this post


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

Share this post


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

Share this post


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.....

Share this post


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

Share this post


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

Share this post


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

Share this post


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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Our picks

    • Ultimaker Cura 4.0 | Stable available!
      Ultimaker Cura 4.0 is mainly focused on the improved user interface and cloud integration.
      As always, we want to collect your user feedback for this release. If there are any improvements you can think of, feel free to mention it here and help us to shape the next release.
      • 98 replies
×
×
  • Create New...

Important Information

Welcome to the Ultimaker Community of 3D printing experts. Visit the following links to read more about our Terms of Use or our Privacy Policy. Thank you!