Become a Patron!

Cuboid firmware hackers?

mgalyan

Member For 3 Years
Member For 2 Years
Member For 1 Year
Wondering if it would be possible to re write the Cuboid firmware to allow for raw voltage setting. Would love that since mine can't read resistance consistently.
 

Vapomizer

Silver Contributor
Member For 4 Years
Member For 3 Years
Member For 2 Years
Member For 1 Year
It is a very complex process, you need to decrypt the firmware, decompile it, and then use Nuvoton's ICP or ISP programming which requires a dedicated hardware to be connected to your computer while writing the code because there is no embedded emulator for x86 architecture that i know of, in short it is one hell of a task, not like reversing a PE file at all.
 

mgalyan

Member For 3 Years
Member For 2 Years
Member For 1 Year
I know a lot about PC's and some programming but that does sound very daunting. Maybe Joyetech would be willing to do it directly. I'll email them if I can find a good address.
 

Vapomizer

Silver Contributor
Member For 4 Years
Member For 3 Years
Member For 2 Years
Member For 1 Year
I know a lot about PC's and some programming but that does sound very daunting. Maybe Joyetech would be willing to do it directly. I'll email them if I can find a good address.
You need to know a lot about embedded systems programming not "PCs" in order to perform this successfully and even then it will require a lot of work and a dedicated hardware, some people have undertaken similar projects on Reddit with the VTC Mini and the Cuboid, and there is even an SDK on GitHub for that https://github.com/ReservedField/evic-sdk

The most they could do is increase the wattage limit or give the ability for a custom logo and such trivial thing, but if you are hoping to do more, then it could be much more complex than you would like for the achieved benefit.
 

mgalyan

Member For 3 Years
Member For 2 Years
Member For 1 Year
Yeah that's beyond my ability. I figured it could just be de-compiled and then figure out the language. I'll just email tech support.
 

Vapomizer

Silver Contributor
Member For 4 Years
Member For 3 Years
Member For 2 Years
Member For 1 Year
Yeah that's beyond my ability. I figured it could just be de-compiled and then figure out the language. I'll just email tech support.
No it is not like reversing a windows PE file at all where you decompile or deassemble a file and then do some tracing and editing, it is a different workflow, mainly because Nuvoton's embedded code does not run on x86 and there is no software emulator for it, so you have to code and debug on the actual chip, Joyetech or any other Chinese company do not usually add features per customers' request, i tried that before a few times and nothing gets implemented except when they see the feature as a proper fit for the mass market, and if they decide to do it, it is very slow, takes months to see the light.
 

mgalyan

Member For 3 Years
Member For 2 Years
Member For 1 Year
That sounds like a very unintuitive way of writing code. If I were to make a mod I'd just make it open source and use something easy like java.

It's probably a lot more complicated than I'm giving it credit. Just wondering if it's necessary.
 

Vapomizer

Silver Contributor
Member For 4 Years
Member For 3 Years
Member For 2 Years
Member For 1 Year
That sounds like a very unintuitive way of writing code. If I were to make a mod I'd just make it open source and use something easy like java.
:D Java is not the best fit for embedded systems, it is heavy and bloated because it compiles into bytecode that runs on a Java virtual machine (JVM) and the Nuvoton chips in these mods are very limited.

They use something like an ARM Cortex M0 MCU USB Series with a frequency of 72 MHz, 128 KB of flash memory, 16 KB of SRAM and 4 KB of Data Flash and a USB 2.0 interface http://www.nuvoton.com/hq/products/...us/nuc120-122-123-220-usb-series/?__locale=en . nothing that you can run Java on.

The general Nuvoton ISP (In-System Programming), ICP (In-Circuit Programming) and IAP (In-Application Programming) Programmer Software Tools are actually open source and can be obtained here http://www.nuvoton.com/hq/support/tool-and-software/software?__locale=en

You still need a dedicated ICP board, and to learn embedded programming, then decrypt and reverse the original firmware to start modifying it, do you actually feel you are up to that? :)
 

mgalyan

Member For 3 Years
Member For 2 Years
Member For 1 Year
Nope. :)

You know a tremendous amount of information about the Cuboid!

An ARM chip would make sense to me. Low power requirements. Reasonable cross compatibility. Cheap enough.
 

Vapomizer

Silver Contributor
Member For 4 Years
Member For 3 Years
Member For 2 Years
Member For 1 Year
Nope. :)

You know a tremendous amount of information about the Cuboid!

An ARM chip would make sense to me. Low power requirements. Reasonable cross compatibility. Cheap enough.
I know coz i went that route before you and then said, heck it is not worth the hassle, it is faster to write my own firmware from scratch for a generic Nuvoton chip than to modify someone else's firmware especially when it is encrypted, yes an ARM chip makes sense for all the reasons you mentioned.

BTW resistance inconsistency is more commonly caused by the tank not the mod, in most cases, i had the same issue with my Griffin last week, resistance started jumping around, i suspected the mod at first and performed all known fixes, but situation did not improve, shifted my attention to the tank, installed new coils, noticed one post screw was stripped and not well tightened, replaced that screw as well and made sure all four are nice a tight, still the issue was not resolved, then i figured that the positive pin/screw was a bit loose from rotating the tank back and forth to close juice channels when filling, tightened that positive screw all the way so that it makes a perfect connection and since then the resistance has been rock solid, not a bit of play and TC works very consistently all the time, same thing happened with a Subtank and it was the tank at fault as well.
 

Vapomizer

Silver Contributor
Member For 4 Years
Member For 3 Years
Member For 2 Years
Member For 1 Year
What do you mean by voltage setting? in power mode or temp mode? in power mode you can actually set voltage indirectly by adjusting wattage and you get the voltage applied displayed on the screen, are you looking to achieve something different?
 

mgalyan

Member For 3 Years
Member For 2 Years
Member For 1 Year
Yeah I want to be able to set a specific voltage (eg mimic a mech mod @4.2v). Has tons of practical uses especially if you have a finicky mod atomizer combination.
 

mgalyan

Member For 3 Years
Member For 2 Years
Member For 1 Year
I know you can use the ohm calculation built in. But it would be great to have the ability to circumvent it and specify a voltage.
 

VU Sponsors

Top