This commit is contained in:
2026-02-11 19:46:46 +01:00
parent 86bc6505c8
commit 4ec6e645ba
24 changed files with 710 additions and 146 deletions

View File

@@ -3,8 +3,8 @@ import time
from hil_lib import SCD30_HIL_Lib
# Device paths from your environment
EMULATOR = '/dev/i2c_emulator'
TARGET = '/dev/esp_sensor_test'
EMULATOR = 'COM11'#'/dev/i2c_emulator'
TARGET = 'COM10'#'/dev/esp_sensor_test'
LOG_FILE = 'hil_validation_results.csv'
# Initialize HIL
@@ -32,7 +32,7 @@ with open(LOG_FILE, mode='w', newline='') as f:
if hil.process_bridge(co2, 24.0, 50.0):
data_served = True
break
#time.sleep(4)
if not data_served:
print("Error: Target didn't request data within 10s.")
continue