Rewrite the driver in Rust; move the testbench tools out

The repository is now only the HPCS 6500 driver: a Rust library (serial
transport, every protocol command, block parsing, USBPcap captures, a
simulated instrument) and the hpcs6500 CLI with the flags of the former
hpcs6500.py, plus dump/capture for reverse engineering.

The lamp station, lamp export, TM-30, label printer and LED calibration
move to B4L/lamp-testbench. Golden tests pin the Rust output to the Python
driver's: parsed values bit-exact, report text, CSV and number formatting.
The Python driver is at tag python-final.
This commit is contained in:
grabowski committed 2026-10-22 17:01:47 +07:00
1 parent 3ac7cd243b
commit 54242da04b
79 files changed
+23340 -3246

No files matched your search

+113
View File
@@ -0,0 +1,113 @@
Device: HPCS6500
Date: 2026-02-04 Time: 16:04:22
--- Photometric ---
Phi (lm): 479.62
eta (lm/W): 57.10
CCT (K): 5655
Duv: 0.00551
--- Chromaticity ---
x: 0.3288 y: 0.3488
u: 0.2015 v: 0.3206
u': 0.2015 v': 0.4809
--- CRI ---
Ra: 83.1 SDCM: 4.69
R1=82, R2=94, R3=93, R4=76, R5=81, R6=90, R7=83, R8=64
R9=5, R10=84, R11=76, R12=60, R13=87, R14=97, R15=76
--- CIE 1931 ---
X: 662.007 Y: 702.221 Z: 648.987
TLCI-2012: 68
--- Radiometric ---
Phi_e (mW): 1491.544
Phi_eb (mW): 469.850
Phi_ey (mW): 679.956
Phi_er (mW): 331.674
Phi_efr (mW): 11.563
--- Electrical ---
Voltage (V): 230.29
Current (A): 0.0653
Power (W): 8.400
Frequency (Hz): 50.02
Power Factor: 0.5586
--- Sensor ---
Peak Signal: 53066
Dark Signal: 2236
Compensate: 2834
--- Spectrum (380-1050nm) ---
380.0nm: 0.0004 []
389.6nm: 0.0896 []
399.2nm: 0.3198 []
408.8nm: 0.7697 [##]
418.4nm: 1.6099 [####]
428.0nm: 2.9921 [########]
437.6nm: 5.1750 [##############]
447.2nm: 8.5520 [########################]
456.8nm: 12.5835 [####################################]
466.4nm: 13.6533 [#######################################]
476.0nm: 10.8713 [###############################]
485.6nm: 8.3388 [########################]
495.2nm: 6.7961 [###################]
504.8nm: 5.5178 [###############]
514.4nm: 4.7100 [#############]
524.0nm: 4.4835 [############]
533.6nm: 4.5955 [#############]
543.2nm: 4.8758 [##############]
552.8nm: 5.2754 [###############]
562.4nm: 5.6932 [################]
572.0nm: 6.0259 [#################]
581.6nm: 6.2639 [##################]
591.2nm: 6.4078 [##################]
600.8nm: 6.5338 [##################]
610.4nm: 6.6373 [###################]
620.0nm: 6.7757 [###################]
629.6nm: 6.9260 [####################]
639.2nm: 7.0568 [####################]
648.8nm: 7.1664 [####################]
658.4nm: 7.2312 [####################]
668.0nm: 7.2992 [#####################]
677.6nm: 7.3760 [#####################]
687.2nm: 7.4918 [#####################]
696.8nm: 7.5267 [#####################]
706.4nm: 7.4803 [#####################]
716.0nm: 7.3913 [#####################]
725.6nm: 7.2224 [####################]
735.2nm: 7.0243 [####################]
744.8nm: 6.7270 [###################]
754.4nm: 6.3784 [##################]
764.0nm: 5.9711 [#################]
773.6nm: 5.5765 [################]
783.2nm: 5.1446 [##############]
792.8nm: 4.7115 [#############]
802.3nm: 4.2878 [############]
811.9nm: 3.8857 [###########]
821.5nm: 3.4575 [#########]
831.1nm: 3.0392 [########]
840.7nm: 2.6646 [#######]
850.3nm: 2.2973 [######]
859.9nm: 1.9856 [#####]
869.5nm: 1.7133 [####]
879.1nm: 1.4529 [####]
888.7nm: 1.2538 [###]
898.3nm: 1.0436 [###]
907.9nm: 0.8680 [##]
917.5nm: 0.7157 [##]
927.1nm: 0.5790 [#]
936.7nm: 0.4731 [#]
946.3nm: 0.3838 [#]
955.9nm: 0.3139 []
965.5nm: 0.2378 []
975.1nm: 0.1854 []
984.7nm: 0.1477 []
994.3nm: 0.1152 []
1003.9nm: 0.0853 []
1013.5nm: 0.0633 []
1023.1nm: 0.0463 []
1032.7nm: 0.0285 []
1042.3nm: 0.0129 []