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:58:53
|
||||
|
||||
--- Photometric ---
|
||||
Phi (lm): 479.83
|
||||
eta (lm/W): 57.09
|
||||
CCT (K): 5656
|
||||
Duv: 0.00552
|
||||
|
||||
--- 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.70
|
||||
R1=82, R2=94, R3=93, R4=77, 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: 662.277 Y: 702.533 Z: 649.290
|
||||
TLCI-2012: 68
|
||||
|
||||
--- Radiometric ---
|
||||
Phi_e (mW): 1491.942
|
||||
Phi_eb (mW): 469.864
|
||||
Phi_ey (mW): 679.651
|
||||
Phi_er (mW): 330.758
|
||||
Phi_efr (mW): 11.142
|
||||
|
||||
--- Electrical ---
|
||||
Voltage (V): 230.30
|
||||
Current (A): 0.0653
|
||||
Power (W): 8.405
|
||||
Frequency (Hz): 50.02
|
||||
Power Factor: 0.5587
|
||||
|
||||
--- Sensor ---
|
||||
Peak Signal: 53051
|
||||
Dark Signal: 2228
|
||||
Compensate: 2834
|
||||
|
||||
--- Spectrum (380-1050nm) ---
|
||||
380.0nm: 0.0000 []
|
||||
389.6nm: 0.0838 []
|
||||
399.2nm: 0.3137 []
|
||||
408.8nm: 0.7712 [##]
|
||||
418.4nm: 1.6204 [####]
|
||||
428.0nm: 3.0103 [########]
|
||||
437.6nm: 5.1952 [###############]
|
||||
447.2nm: 8.5932 [########################]
|
||||
456.8nm: 12.6190 [####################################]
|
||||
466.4nm: 13.6409 [#######################################]
|
||||
476.0nm: 10.8421 [###############################]
|
||||
485.6nm: 8.3131 [########################]
|
||||
495.2nm: 6.7764 [###################]
|
||||
504.8nm: 5.5052 [###############]
|
||||
514.4nm: 4.6985 [#############]
|
||||
524.0nm: 4.4838 [############]
|
||||
533.6nm: 4.5985 [#############]
|
||||
543.2nm: 4.8779 [##############]
|
||||
552.8nm: 5.2744 [###############]
|
||||
562.4nm: 5.6922 [################]
|
||||
572.0nm: 6.0260 [#################]
|
||||
581.6nm: 6.2605 [##################]
|
||||
591.2nm: 6.4065 [##################]
|
||||
600.8nm: 6.5303 [##################]
|
||||
610.4nm: 6.6307 [###################]
|
||||
620.0nm: 6.7723 [###################]
|
||||
629.6nm: 6.9229 [###################]
|
||||
639.2nm: 7.0529 [####################]
|
||||
648.8nm: 7.1562 [####################]
|
||||
658.4nm: 7.2298 [####################]
|
||||
668.0nm: 7.2981 [#####################]
|
||||
677.6nm: 7.3778 [#####################]
|
||||
687.2nm: 7.4896 [#####################]
|
||||
696.8nm: 7.5259 [#####################]
|
||||
706.4nm: 7.4780 [#####################]
|
||||
716.0nm: 7.3868 [#####################]
|
||||
725.6nm: 7.2144 [####################]
|
||||
735.2nm: 7.0180 [####################]
|
||||
744.8nm: 6.7219 [###################]
|
||||
754.4nm: 6.3660 [##################]
|
||||
764.0nm: 5.9605 [#################]
|
||||
773.6nm: 5.5733 [################]
|
||||
783.2nm: 5.1339 [##############]
|
||||
792.8nm: 4.7023 [#############]
|
||||
802.3nm: 4.2764 [############]
|
||||
811.9nm: 3.8736 [###########]
|
||||
821.5nm: 3.4459 [#########]
|
||||
831.1nm: 3.0290 [########]
|
||||
840.7nm: 2.6555 [#######]
|
||||
850.3nm: 2.2888 [######]
|
||||
859.9nm: 1.9765 [#####]
|
||||
869.5nm: 1.7011 [####]
|
||||
879.1nm: 1.4485 [####]
|
||||
888.7nm: 1.2418 [###]
|
||||
898.3nm: 1.0371 [##]
|
||||
907.9nm: 0.8565 [##]
|
||||
917.5nm: 0.7085 [##]
|
||||
927.1nm: 0.5742 [#]
|
||||
936.7nm: 0.4662 [#]
|
||||
946.3nm: 0.3787 [#]
|
||||
955.9nm: 0.3092 []
|
||||
965.5nm: 0.2320 []
|
||||
975.1nm: 0.1777 []
|
||||
984.7nm: 0.1411 []
|
||||
994.3nm: 0.1086 []
|
||||
1003.9nm: 0.0792 []
|
||||
1013.5nm: 0.0565 []
|
||||
1023.1nm: 0.0397 []
|
||||
1032.7nm: 0.0197 []
|
||||
1042.3nm: 0.0046 []
|
||||
Reference in new issue
Block a user