Originally posted by boilcoil
View Post
Broadly speaking there is a new technique in programming using AI that I will call "CONTEXT ENGINEERING" ... this has evolved from so called "vibe programming". In CE you give the AI the correct context so it can apply its vast programming "knowledge".
AI s have no desires or motives, they are just vast probability machines that will give you the ( most probable ) right solution .... if you ask the right question(s) ... this is the context.
In this case the AI looked at the hexdump and regenerated all the raw machine code.
It then was told that the code is a metal detector and shown the schematic.
So it matched code functionality to the pin signals ( LCD, ADC, digital io etc etc )
Then it was shown the user manual for the MXT ... so the AI had information regarding the use ( ie controls and displays ).
The AI I use already has a very good knowledge of how VLF detectors work ... so now I told it to extract the obvious stuff like VDI, ground balance.
Then I told the AI to simulate the code ... with stubs attached to present the correct inputs to the detector loop.
All of this is context ... its how you present it ( the order of questions and context 0 that will determine your success or not.
This may be all moot ... I do have a fully commented assembly file here that the AI generated. Its identified all the algorithms, math routines, ground tracking etc and It compiles, runs and all the maths, ground trac, VDI etc works.
The AI even ported it to the 876 chip ( flash version ) because its pin for pin the same as the MXT orgininal.
HOWEVER
If Garrett do own the rights to the MXT firmware then it is a copyrighted work under the law.
If you publish, distribute, or sell your modified firmware, you are likely creating an unauthorized "derivative work". This frequently violates both the original manufacturer's copyright.
I dunno if Garrett read this forum ... but putting up a fully reverse engineered copy of the source code would be a copyright infringement IMHO.
Maybe Carl knows ....
but I can publish snippets ( for edumacational usage )
eg :

Back in the day, I even redrew the whole thing from the PCB. That said, a lot of the circuits in it are quite outdated now, so copying it 1:1 probably isn't worth it. Conceptually though, if you modernize all the stages especially the transmitter (the original runs with too little current) and a few other sections you could end up with a really solid, high-performance detector.
Leave a comment: