Devlog #10
Overview
I did a lot of work. And I can proudly say that software is finished! Now I can connect to it via USB and read all the stats: uptime, voltage on power rails and heater current. And of course I can manage all the calibration data and everything else.
Interface
I made it as a CLI-like interface. Code is well… it works. It’s not my best piece of code but if it works then don’t touch it. The problem is that I can’t really type in commands. Every line must be sent as continuous stream. Currently I do it by copying lines from a file and pasting them into picocom. I will write a proper helper program in c++ with a proper gui, but it’s out of scope for this project.
Calibration
In order to calibrate the device you must use following command:
BEGIN CAL
<hex number representing value of binary trim network>
<voltage before calibration>
<date of calibration>
END
It will automatically fill the uptime and temperature fields.
Initial calibration is a little different. It is only meant to be done once, and does not contain fields like normal calibration, therefore normal cal still must be done after initial cal.
BEGIN INIT_CAL
<LM399 Serial Number>
<Date of calibration>
<LM399 Voltage>
END
It also has some other commands.
INIT_FULL - resets calibration header to default settings
CLEAR_STATS - clears uptime
RESET - resets the MCU
GET_INFO - returns the calibration header
GET_INIT_CAL - returns initial calibration
GET - returns basic stats (uptime, voltages on power rails, heater current, temp)
returns calibration at specific index
BEGIN GET_CAL
<cal index>
END
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.