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:31
--- Photometric ---
Phi (lm): 479.61
eta (lm/W): 57.05
CCT (K): 5654
Duv: 0.00553
--- Chromaticity ---
x: 0.3288 y: 0.3488
u: 0.2015 v: 0.3206
u': 0.2015 v': 0.4809
--- CRI ---
Ra: 83.0 SDCM: 4.71
R1=82, R2=94, R3=93, R4=76, R5=81, R6=89, R7=83, R8=64
R9=5, R10=84, R11=76, R12=60, R13=87, R14=97, R15=76
--- CIE 1931 ---
X: 661.955 Y: 702.217 Z: 648.778
TLCI-2012: 68
--- Radiometric ---
Phi_e (mW): 1491.409
Phi_eb (mW): 470.118
Phi_ey (mW): 679.660
Phi_er (mW): 331.025
Phi_efr (mW): 11.807
--- Electrical ---
Voltage (V): 230.30
Current (A): 0.0653
Power (W): 8.407
Frequency (Hz): 50.02
Power Factor: 0.5589
--- Sensor ---
Peak Signal: 53066
Dark Signal: 2246
Compensate: 2834
--- Spectrum (380-1050nm) ---
380.0nm: 0.0007 []
389.6nm: 0.1039 []
399.2nm: 0.3310 []
408.8nm: 0.7735 [##]
418.4nm: 1.6222 [####]
428.0nm: 3.0048 [########]
437.6nm: 5.1925 [##############]
447.2nm: 8.5847 [########################]
456.8nm: 12.6066 [####################################]
466.4nm: 13.6462 [#######################################]
476.0nm: 10.8482 [###############################]
485.6nm: 8.3167 [########################]
495.2nm: 6.7854 [###################]
504.8nm: 5.5031 [###############]
514.4nm: 4.7003 [#############]
524.0nm: 4.4902 [############]
533.6nm: 4.6031 [#############]
543.2nm: 4.8753 [##############]
552.8nm: 5.2749 [###############]
562.4nm: 5.6866 [################]
572.0nm: 6.0231 [#################]
581.6nm: 6.2593 [##################]
591.2nm: 6.4088 [##################]
600.8nm: 6.5298 [##################]
610.4nm: 6.6314 [###################]
620.0nm: 6.7770 [###################]
629.6nm: 6.9241 [###################]
639.2nm: 7.0596 [####################]
648.8nm: 7.1581 [####################]
658.4nm: 7.2321 [####################]
668.0nm: 7.2993 [#####################]
677.6nm: 7.3692 [#####################]
687.2nm: 7.4894 [#####################]
696.8nm: 7.5227 [#####################]
706.4nm: 7.4804 [#####################]
716.0nm: 7.3870 [#####################]
725.6nm: 7.2145 [####################]
735.2nm: 7.0141 [####################]
744.8nm: 6.7182 [###################]
754.4nm: 6.3698 [##################]
764.0nm: 5.9647 [#################]
773.6nm: 5.5730 [################]
783.2nm: 5.1334 [##############]
792.8nm: 4.7031 [#############]
802.3nm: 4.2776 [############]
811.9nm: 3.8751 [###########]
821.5nm: 3.4468 [#########]
831.1nm: 3.0270 [########]
840.7nm: 2.6591 [#######]
850.3nm: 2.2925 [######]
859.9nm: 1.9769 [#####]
869.5nm: 1.7079 [####]
879.1nm: 1.4541 [####]
888.7nm: 1.2449 [###]
898.3nm: 1.0430 [###]
907.9nm: 0.8654 [##]
917.5nm: 0.7167 [##]
927.1nm: 0.5787 [#]
936.7nm: 0.4744 [#]
946.3nm: 0.3864 [#]
955.9nm: 0.3180 []
965.5nm: 0.2400 []
975.1nm: 0.1895 []
984.7nm: 0.1487 []
994.3nm: 0.1197 []
1003.9nm: 0.0899 []
1013.5nm: 0.0693 []
1023.1nm: 0.0503 []
1032.7nm: 0.0345 []
1042.3nm: 0.0189 []