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:
1 parent
3ac7cd243b
commit
54242da04b
79 files changed
+23340
-3246
No files matched your search
@@ -0,0 +1,113 @@
|
||||
Device: HPCS6500
|
||||
Date: 2026-02-04 Time: 15:38:14
|
||||
|
||||
--- Photometric ---
|
||||
Phi (lm): 483.74
|
||||
eta (lm/W): 57.40
|
||||
CCT (K): 5635
|
||||
Duv: 0.00561
|
||||
|
||||
--- Chromaticity ---
|
||||
x: 0.3293 y: 0.3494
|
||||
u: 0.2016 v: 0.3208
|
||||
u': 0.2016 v': 0.4813
|
||||
|
||||
--- CRI ---
|
||||
Ra: 82.9 SDCM: 4.84
|
||||
R1=82, R2=94, R3=94, R4=77, R5=81, R6=89, R7=83, R8=64
|
||||
R9=4, R10=84, R11=76, R12=60, R13=86, R14=97, R15=76
|
||||
|
||||
--- CIE 1931 ---
|
||||
X: 667.491 Y: 708.254 Z: 651.135
|
||||
TLCI-2012: 68
|
||||
|
||||
--- Radiometric ---
|
||||
Phi_e (mW): 1501.374
|
||||
Phi_eb (mW): 471.605
|
||||
Phi_ey (mW): 686.214
|
||||
Phi_er (mW): 333.961
|
||||
Phi_efr (mW): 11.231
|
||||
|
||||
--- Electrical ---
|
||||
Voltage (V): 230.29
|
||||
Current (A): 0.0654
|
||||
Power (W): 8.407
|
||||
Frequency (Hz): 50.02
|
||||
Power Factor: 0.5584
|
||||
|
||||
--- Sensor ---
|
||||
Peak Signal: 53279
|
||||
Dark Signal: 2154
|
||||
Compensate: 2834
|
||||
|
||||
--- Spectrum (380-1050nm) ---
|
||||
380.0nm: 0.0005 []
|
||||
389.6nm: 0.0876 []
|
||||
399.2nm: 0.3179 []
|
||||
408.8nm: 0.7661 [##]
|
||||
418.4nm: 1.6232 [####]
|
||||
428.0nm: 3.0322 [########]
|
||||
437.6nm: 5.2464 [###############]
|
||||
447.2nm: 8.7276 [########################]
|
||||
456.8nm: 12.7905 [####################################]
|
||||
466.4nm: 13.6955 [#######################################]
|
||||
476.0nm: 10.7966 [##############################]
|
||||
485.6nm: 8.2842 [#######################]
|
||||
495.2nm: 6.7507 [###################]
|
||||
504.8nm: 5.4679 [###############]
|
||||
514.4nm: 4.6912 [#############]
|
||||
524.0nm: 4.4910 [############]
|
||||
533.6nm: 4.6211 [#############]
|
||||
543.2nm: 4.9149 [##############]
|
||||
552.8nm: 5.3253 [###############]
|
||||
562.4nm: 5.7463 [################]
|
||||
572.0nm: 6.0899 [#################]
|
||||
581.6nm: 6.3225 [##################]
|
||||
591.2nm: 6.4763 [##################]
|
||||
600.8nm: 6.5981 [##################]
|
||||
610.4nm: 6.7011 [###################]
|
||||
620.0nm: 6.8460 [###################]
|
||||
629.6nm: 6.9854 [####################]
|
||||
639.2nm: 7.1199 [####################]
|
||||
648.8nm: 7.2257 [####################]
|
||||
658.4nm: 7.2971 [####################]
|
||||
668.0nm: 7.3692 [#####################]
|
||||
677.6nm: 7.4499 [#####################]
|
||||
687.2nm: 7.5612 [#####################]
|
||||
696.8nm: 7.5899 [#####################]
|
||||
706.4nm: 7.5444 [#####################]
|
||||
716.0nm: 7.4506 [#####################]
|
||||
725.6nm: 7.2796 [####################]
|
||||
735.2nm: 7.0827 [####################]
|
||||
744.8nm: 6.7888 [###################]
|
||||
754.4nm: 6.4305 [##################]
|
||||
764.0nm: 6.0190 [#################]
|
||||
773.6nm: 5.6257 [################]
|
||||
783.2nm: 5.1849 [##############]
|
||||
792.8nm: 4.7472 [#############]
|
||||
802.3nm: 4.3186 [############]
|
||||
811.9nm: 3.9139 [###########]
|
||||
821.5nm: 3.4785 [#########]
|
||||
831.1nm: 3.0552 [########]
|
||||
840.7nm: 2.6780 [#######]
|
||||
850.3nm: 2.3105 [######]
|
||||
859.9nm: 2.0011 [#####]
|
||||
869.5nm: 1.7210 [####]
|
||||
879.1nm: 1.4606 [####]
|
||||
888.7nm: 1.2518 [###]
|
||||
898.3nm: 1.0460 [##]
|
||||
907.9nm: 0.8661 [##]
|
||||
917.5nm: 0.7120 [##]
|
||||
927.1nm: 0.5761 [#]
|
||||
936.7nm: 0.4697 [#]
|
||||
946.3nm: 0.3787 [#]
|
||||
955.9nm: 0.3071 []
|
||||
965.5nm: 0.2300 []
|
||||
975.1nm: 0.1782 []
|
||||
984.7nm: 0.1421 []
|
||||
994.3nm: 0.1106 []
|
||||
1003.9nm: 0.0824 []
|
||||
1013.5nm: 0.0610 []
|
||||
1023.1nm: 0.0405 []
|
||||
1032.7nm: 0.0208 []
|
||||
1042.3nm: 0.0087 []
|
||||
Reference in new issue
Block a user