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-05 Time: 17:57:56
--- Photometric ---
Phi (lm): 182.62
eta (lm/W): 0.00
CCT (K): 4937
Duv: 0.00214
--- Chromaticity ---
x: 0.3474 y: 0.3577
u: 0.2106 v: 0.3253
u': 0.2106 v': 0.4880
--- CRI ---
Ra: 83.5 SDCM: 1.52
R1=82, R2=90, R3=95, R4=82, R5=82, R6=84, R7=87, R8=67
R9=13, R10=75, R11=81, R12=54, R13=84, R14=97, R15=76
--- CIE 1931 ---
X: 259.640 Y: 267.378 Z: 220.377
TLCI-2012: 71
--- Radiometric ---
Phi_e (mW): 558.636
Phi_eb (mW): 152.549
Phi_ey (mW): 257.969
Phi_er (mW): 144.279
Phi_efr (mW): 5.738
--- Electrical ---
Voltage (V): 0.00
Current (A): 0.0000
Power (W): 0.000
Frequency (Hz): 0.00
Power Factor: 0.0000
--- Sensor ---
Peak Signal: 55124
Dark Signal: 2518
Compensate: 2834
--- Spectrum (380-1050nm) ---
380.0nm: 0.0128 []
389.6nm: 0.0556 []
399.2nm: 0.1567 [#]
408.8nm: 0.3618 [##]
418.4nm: 0.7370 [#####]
428.0nm: 1.3826 [##########]
437.6nm: 2.5671 [####################]
447.2nm: 4.3754 [##################################]
456.8nm: 5.0546 [#######################################]
466.4nm: 3.6483 [############################]
476.0nm: 2.4748 [###################]
485.6nm: 1.9566 [###############]
495.2nm: 1.4662 [###########]
504.8nm: 1.1959 [#########]
514.4nm: 1.2093 [#########]
524.0nm: 1.3289 [##########]
533.6nm: 1.5025 [###########]
543.2nm: 1.7276 [#############]
552.8nm: 1.9439 [###############]
562.4nm: 2.1145 [################]
572.0nm: 2.2373 [#################]
581.6nm: 2.3242 [##################]
591.2nm: 2.3852 [##################]
600.8nm: 2.4435 [###################]
610.4nm: 2.5010 [###################]
620.0nm: 2.5665 [####################]
629.6nm: 2.6256 [####################]
639.2nm: 2.6859 [####################]
648.8nm: 2.7312 [#####################]
658.4nm: 2.7605 [#####################]
668.0nm: 2.7875 [#####################]
677.6nm: 2.8117 [#####################]
687.2nm: 2.8452 [######################]
696.8nm: 2.8615 [######################]
706.4nm: 2.8705 [######################]
716.0nm: 2.8641 [######################]
725.6nm: 2.8432 [######################]
735.2nm: 2.8032 [#####################]
744.8nm: 2.7383 [#####################]
754.4nm: 2.6451 [####################]
764.0nm: 2.5241 [###################]
773.6nm: 2.3959 [##################]
783.2nm: 2.2367 [#################]
792.8nm: 2.0679 [################]
802.3nm: 1.8961 [##############]
811.9nm: 1.7246 [#############]
821.5nm: 1.5452 [############]
831.1nm: 1.3706 [##########]
840.7nm: 1.2060 [#########]
850.3nm: 1.0473 [########]
859.9nm: 0.9111 [#######]
869.5nm: 0.7856 [######]
879.1nm: 0.6734 [#####]
888.7nm: 0.5791 [####]
898.3nm: 0.4811 [###]
907.9nm: 0.4019 [###]
917.5nm: 0.3368 [##]
927.1nm: 0.2715 [##]
936.7nm: 0.2226 [#]
946.3nm: 0.1786 [#]
955.9nm: 0.1472 [#]
965.5nm: 0.1139 []
975.1nm: 0.0910 []
984.7nm: 0.0706 []
994.3nm: 0.0585 []
1003.9nm: 0.0451 []
1013.5nm: 0.0379 []
1023.1nm: 0.0298 []
1032.7nm: 0.0207 []
1042.3nm: 0.0151 []