Hello, I recently acquired a uTracer 6 and would like to customize it by making it portable and adding some options.
To avoid manually drawing a label for each of my tubes, I plan to use a small thermal receipt printer (the idea is to print the same information as the "Quick Test" section of the uTracer software, and possibly a curve or two). I would then like to control the uTracer with a smartphone interface (via ESP32), again using simple data (quick test and a curve or two), so that the device is portable and can be taken with me to flea markets and swap meets.
Unfortunately, all software development around uTracer is closed ... (it's as if open source is scary ?). What a pity ! But, that's not the point...
I managed to use an "Arduino" to intercept and transcribe the data frames. Thanks to this, I can display the frames (and hide the echoes) to understand how the uTracer and the PC communicate. (Note, in the picture, that I will also use the Metrix U61 method for the tube holders and the selector, in order to avoid long cables and limit oscillations.)

I thought I could retrieve converted values from the uTracer to the PC, but unfortunately for me, these are raw values from the PIC's 10-bit ADC, and the calculations are done within the program. I managed to recover some values (like the supply voltage measurement) by deduction: (float Vpower = rawVpower * (5/1024.0f) * 11.0f * Calibration_Vsup; //Vref de 5V ? 11.0f pour 11K car R1 = 1K et R2 = 10K : (1K+10K)/1K). But I believe the task will not be so simple for Va, Vs, Ia, etc... Especially because of the use of PGA? And also, I seem to recall reading somewhere that for Va and Vs, Vpower had to be deduced.
I found the following information:
https://www.dos4ever.com/uTracer3/code_blocks1.txt,
https://www.dos4ever.com/uTracer3/code_blocks2.txt, but it seems to me that this information is for uTracer 3+, and I understand that you did things differently for uTracer 6 ?
I don't understand the relationship between Ia and Ia Comp, or Is and Is Comp (Comp. for compensation?).
Could you please help me implement the missing formulas and decode the returned voltages and currents ?

Have a good day and see you soon,
S3b