During work on ReCube there was one point which was unclear to me: How to find material and color codes used in cartridge memory?
Cartridge is using 2 banks of its memory. First is for general cartridge info (max amount, material and color type) second is for current filament amount status. For me more interesting was first bank.
Red rectangle show material and color code of my cartridge with is Dark Grey PLA. Of course at the beginning it was not known for me that this part of memory is description of color and material, I have found it doing decompilation of “Cube Print.exe”, original slicer for Cube3.
At https://github.com/0xd4d/dnSpy you can find very useful 🙂 tool for decompilation of .net exe files. dnSpy have many features like debugger and assembly editor and what is important it is FREE.
So start dnSpy and drag&drop our “Cube Print.exe” into main window. After a wile you will see Cube Print disassembled and additionally all dependency files which are used by Cube Print.
Lets check what is Cube Print doing at startup:
We see that it starting main process and after Possible upgrade checks it performs initialization of constants – CubifyConstants.CubifyConstantsIntialize();. Lets check this method, so CTRL+right mouse and we are in. That what is showing to us:
Mine 101 means:
MaterialTypes = CubifyConstants.MaterialTypes.PLA,
ColorHexCode = “#FF53565A”,
ColorEnum = 101,
In this document are collected all pairs color and material type which are supported by ReCube Pro: Material&Colors
Generally if you go deeper into Cube Print construction you can find more information not only regarding material types but also Cube3/Cube Pro communication protocol and output file (*.cube3) construction.
I also recommend to play a bit, similar way with “Cubeit_Dir\cubeit.exe” file you can find there something like this:
Have fun 😉
I think you just found the solution to the EKO printers. You should be able to change the material types of Cube 3 cartridges to make them EKO cartridges. I’ve seen a couple of users of the EKO printer looking for solutions. Thanks for the tip on looking into the Cube Print s/w.
I have to take a look to eko printer firmware, the problem is that eko printer could have different secret code for memory management. I already prepared version for Cube Pro but I have no printer to test if it is working correctly.
Tomuro, great work. I had been mapping out the cartridge color codes (from Wireshark sessions, Mac OS application hexdumps, and closed eBay sales) prior to discovering your site and you filled in many gaps. Thanks for providing this publicly and thanks for your efforts cracking the cartridge 1-wire chip security. I haven’t looked at your code and design yet in detail, but do you feel like your programming method would allow us to use entirely new DS28E01 (or derivative) chips from a parts supplier? This approach would of course be paired with 3rd party filament.
After reading further, it looks as if the answer is “yes”, with ReCube Pro, but that you aren’t encouraging using new chips so as to keep the reduced supply available.
The problem is availability of entirely new chip. I am not able to buy any on the market.
Regarding your question, yes I am able to prepare software to be able program fresh (or used from other project) DS28E01 for Cube3/CubePro/Ekocycle.
The main reason I ask is since cartridges are still generally well over $30USD and I damaged my second cartridge chip. 🙂 Seems like a minimum of four programmed chips would be ideal for any combination of PLA or ABS from both cartridge locations (two PLA feeds during a build, two ABS, or a cross between the two), possibly more for other filament types. I suppose if the demand isn’t there, no need, but for those of us who modified our cartridge feeds and use custom extruder guides, use of non-standard chips is easy.
I salvage materials from CubePro and Cube2 cartridges. That will yield a chip ready for reprogramming with ReCube Pro. You want ABS that has a date code no older than 4 years and PLA starts to gets brittle within 2 years. Cube2 yields about the same amount of material as Cube3 and CubePro/X yields 2.5x Cube3 capacity.
I got ReCube Pro working and will offer some of my spare chips for sale if you like.
Quick note: The missing key entry (4) in material type is noted in Cubify config files as RSS ; Removable Support Structure. This is the Infinity Rinse material.