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,219 @@
|
||||
Device: HPCS6500
|
||||
Date: 2026-02-04 Time: 16:50:38
|
||||
|
||||
--- Photometric ---
|
||||
Phi (lm): 0.00
|
||||
eta (lm/W): 0.00
|
||||
CCT (K): 0
|
||||
Duv: 0.00000
|
||||
|
||||
--- Chromaticity ---
|
||||
x: 0.0000 y: 0.0000
|
||||
u: 0.0000 v: 0.0000
|
||||
u': 0.0000 v': 0.0000
|
||||
|
||||
--- CRI ---
|
||||
Ra: 0.0 SDCM: 0.00
|
||||
R1=0, R2=0, R3=0, R4=0, R5=0, R6=0, R7=0, R8=0
|
||||
R9=0, R10=0, R11=0, R12=0, R13=0, R14=0, R15=0
|
||||
|
||||
--- CIE 1931 ---
|
||||
X: 0.000 Y: 0.000 Z: 0.000
|
||||
TLCI-2012: 0
|
||||
|
||||
--- Radiometric ---
|
||||
Phi_e (mW): 0.000
|
||||
Phi_eb (mW): 0.000
|
||||
Phi_ey (mW): 0.000
|
||||
Phi_er (mW): 0.000
|
||||
Phi_efr (mW): 0.000
|
||||
|
||||
--- Electrical ---
|
||||
Voltage (V): 0.00
|
||||
Current (A): 0.0000
|
||||
Power (W): 0.000
|
||||
Frequency (Hz): 0.00
|
||||
Power Factor: 0.0000
|
||||
UThd (%): 0.8692
|
||||
AThd (%): 116.7091
|
||||
|
||||
--- Voltage Harmonics (%) ---
|
||||
H 1: 100.0000
|
||||
H 2: 0.3466
|
||||
H 3: 0.5529
|
||||
H 4: 0.1935
|
||||
H 5: 0.1009
|
||||
H 6: 0.1319
|
||||
H 7: 0.1455
|
||||
H 8: 0.0709
|
||||
H 9: 0.3610
|
||||
H10: 0.0452
|
||||
H11: 0.2558
|
||||
H12: 0.0099
|
||||
H13: 0.1471
|
||||
H14: 0.0182
|
||||
H15: 0.0881
|
||||
H16: 0.0119
|
||||
H17: 0.0439
|
||||
H18: 0.0054
|
||||
H19: 0.0441
|
||||
H20: 0.0039
|
||||
H21: 0.0444
|
||||
H22: 0.0038
|
||||
H23: 0.0419
|
||||
H24: 0.0070
|
||||
H25: 0.0277
|
||||
H26: 0.0086
|
||||
H27: 0.0180
|
||||
H28: 0.0038
|
||||
H29: 0.0168
|
||||
H30: 0.0031
|
||||
H31: 0.0085
|
||||
H32: 0.0042
|
||||
H33: 0.0141
|
||||
H34: 0.0039
|
||||
H35: 0.0050
|
||||
H36: 0.0076
|
||||
H37: 0.0172
|
||||
H38: 0.0017
|
||||
H39: 0.0135
|
||||
H40: 0.0122
|
||||
H41: 0.0075
|
||||
H42: 0.0091
|
||||
H43: 0.0079
|
||||
H44: 0.0052
|
||||
H45: 0.0028
|
||||
H46: 0.0063
|
||||
H47: 0.0106
|
||||
H48: 0.0055
|
||||
H49: 0.0066
|
||||
H50: 0.0032
|
||||
|
||||
--- Current Harmonics (%) ---
|
||||
H 1: 100.0000
|
||||
H 2: 1.3069
|
||||
H 3: 79.6826
|
||||
H 4: 1.6782
|
||||
H 5: 62.0099
|
||||
H 6: 1.8375
|
||||
H 7: 43.0251
|
||||
H 8: 1.4561
|
||||
H 9: 27.1434
|
||||
H10: 0.8638
|
||||
H11: 16.3288
|
||||
H12: 0.8914
|
||||
H13: 10.5836
|
||||
H14: 0.8186
|
||||
H15: 7.8296
|
||||
H16: 0.6092
|
||||
H17: 7.1998
|
||||
H18: 0.5320
|
||||
H19: 6.8390
|
||||
H20: 0.7901
|
||||
H21: 5.9471
|
||||
H22: 0.8641
|
||||
H23: 5.4131
|
||||
H24: 0.7893
|
||||
H25: 5.4738
|
||||
H26: 0.6972
|
||||
H27: 5.4525
|
||||
H28: 0.6923
|
||||
H29: 4.8222
|
||||
H30: 0.7761
|
||||
H31: 4.3909
|
||||
H32: 0.7792
|
||||
H33: 4.3903
|
||||
H34: 0.7458
|
||||
H35: 4.3602
|
||||
H36: 0.7061
|
||||
H37: 3.9436
|
||||
H38: 0.6865
|
||||
H39: 3.6134
|
||||
H40: 0.6928
|
||||
H41: 3.4965
|
||||
H42: 0.7969
|
||||
H43: 3.1709
|
||||
H44: 0.7282
|
||||
H45: 2.8721
|
||||
H46: 0.6770
|
||||
H47: 2.6774
|
||||
H48: 0.6486
|
||||
H49: 2.6343
|
||||
H50: 0.6855
|
||||
|
||||
--- Sensor ---
|
||||
Peak Signal: 0
|
||||
Dark Signal: 0
|
||||
Compensate: 0
|
||||
|
||||
--- Spectrum (380-1050nm) ---
|
||||
380.0nm: 0.0000 []
|
||||
389.6nm: 0.0000 []
|
||||
399.2nm: 0.0000 []
|
||||
408.8nm: 0.0000 []
|
||||
418.4nm: 0.0000 []
|
||||
428.0nm: 0.0000 []
|
||||
437.6nm: 0.0000 []
|
||||
447.2nm: 0.0000 []
|
||||
456.8nm: 0.0000 []
|
||||
466.4nm: 0.0000 []
|
||||
476.0nm: 0.0000 []
|
||||
485.6nm: 0.0000 []
|
||||
495.2nm: 0.0000 []
|
||||
504.8nm: 0.0000 []
|
||||
514.4nm: 0.0000 []
|
||||
524.0nm: 0.0000 []
|
||||
533.6nm: 0.0000 []
|
||||
543.2nm: 0.0000 []
|
||||
552.8nm: 0.0000 []
|
||||
562.4nm: 0.0000 []
|
||||
572.0nm: 0.0000 []
|
||||
581.6nm: 0.0000 []
|
||||
591.2nm: 0.0000 []
|
||||
600.8nm: 0.0000 []
|
||||
610.4nm: 0.0000 []
|
||||
620.0nm: 0.0000 []
|
||||
629.6nm: 0.0000 []
|
||||
639.2nm: 0.0000 []
|
||||
648.8nm: 0.0000 []
|
||||
658.4nm: 0.0000 []
|
||||
668.0nm: 0.0000 []
|
||||
677.6nm: 0.0000 []
|
||||
687.2nm: 0.0000 []
|
||||
696.8nm: 0.0000 []
|
||||
706.4nm: 0.0000 []
|
||||
716.0nm: 0.0000 []
|
||||
725.6nm: 0.0000 []
|
||||
735.2nm: 0.0000 []
|
||||
744.8nm: 0.0000 []
|
||||
754.4nm: 0.0000 []
|
||||
764.0nm: 0.0000 []
|
||||
773.6nm: 0.0000 []
|
||||
783.2nm: 0.0000 []
|
||||
792.8nm: 0.0000 []
|
||||
802.3nm: 0.0000 []
|
||||
811.9nm: 0.0000 []
|
||||
821.5nm: 0.0000 []
|
||||
831.1nm: 0.0000 []
|
||||
840.7nm: 0.0000 []
|
||||
850.3nm: 0.0000 []
|
||||
859.9nm: 0.0000 []
|
||||
869.5nm: 0.0000 []
|
||||
879.1nm: 0.0000 []
|
||||
888.7nm: 0.0000 []
|
||||
898.3nm: 0.0000 []
|
||||
907.9nm: 0.0000 []
|
||||
917.5nm: 0.0000 []
|
||||
927.1nm: 0.0000 []
|
||||
936.7nm: 0.0000 []
|
||||
946.3nm: 0.0000 []
|
||||
955.9nm: 0.0000 []
|
||||
965.5nm: 0.0000 []
|
||||
975.1nm: 0.0000 []
|
||||
984.7nm: 0.0000 []
|
||||
994.3nm: 0.0000 []
|
||||
1003.9nm: 0.0000 []
|
||||
1013.5nm: 0.0000 []
|
||||
1023.1nm: 0.0000 []
|
||||
1032.7nm: 0.0000 []
|
||||
1042.3nm: 0.0000 []
|
||||
Reference in new issue
Block a user