From c3162c269e643c6f7782478b96cb83faa7277c3e Mon Sep 17 00:00:00 2001 From: kruger <kruger@astron.nl> Date: Tue, 4 Mar 2025 14:59:38 +0100 Subject: [PATCH] DANTE readback working --- pypcc/config/RECVTR_HB.yaml | 12 ++++++------ scripts/AHBAT_test.py | 1 + scripts/Ant_Pwr.py | 10 ++++++++-- 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/pypcc/config/RECVTR_HB.yaml b/pypcc/config/RECVTR_HB.yaml index c55e1af..cade9a3 100644 --- a/pypcc/config/RECVTR_HB.yaml +++ b/pypcc/config/RECVTR_HB.yaml @@ -195,8 +195,8 @@ device_registers: - {name: SW_version,address: 0x0C} - {name: config,address: 0x10} - {name: config2,address: 0x18} - - {name: PCB_version,address: 0x24} - - {name: PCB_number,address: 0x32} + - {name: PCB_version,address: 0x20} + - {name: PCB_number,address: 0x30} - {name: ADC,address: 0x50} - {name: Vref,address: 0x1c} @@ -846,13 +846,13 @@ variables: dim2: [16,96] endian: "<" mask: AHBAT_mask - wait: 700 + wait: 600 - name: AHBAT_PCB_version description: DANTE PCB version driver: I2C_AHBAT devreg: [AHBAT1.PCB_version,AHBAT2.PCB_version,AHBAT3.PCB_version] - width: 80 + width: 128 rw: ro dtype: string dim: 1536 @@ -864,7 +864,7 @@ variables: description: DANTE PCB number driver: I2C_AHBAT devreg: [AHBAT1.PCB_number,AHBAT2.PCB_number,AHBAT3.PCB_number] - width: 80 + width: 128 rw: ro dtype: string dim: 1536 @@ -895,7 +895,7 @@ variables: dim: 96 dim2: [1,96] mask: AHBAT_mask - wait: 700 + wait: 200 - name: AHBAT_dummy description: nothing diff --git a/scripts/AHBAT_test.py b/scripts/AHBAT_test.py index 3e2a1a6..8123c04 100644 --- a/scripts/AHBAT_test.py +++ b/scripts/AHBAT_test.py @@ -34,6 +34,7 @@ if False: set_value("AHBAT_Vref_RW",[0x04]*96) wait_not_busy(busy,timeout_sec=4) + if False: print("Configuration:") callmethod("AHBAT_update") diff --git a/scripts/Ant_Pwr.py b/scripts/Ant_Pwr.py index f1b9d03..4a1651b 100644 --- a/scripts/Ant_Pwr.py +++ b/scripts/Ant_Pwr.py @@ -2,8 +2,8 @@ from test_common import * name="RCU_PWR_ANT_on" RCU=[0]; -On=[False,True,False] -#On=[False,False,False] +On=[True,False,False] +Off=[False,False,False] #Att=[10,10,10] #RCU=[1,2,3]; #Att=[0,0,0] @@ -13,6 +13,12 @@ setAntmask(RCU) att=get_value(name+"_R") print("Att old:",att[:18]) + +for r in RCU: + att[3*r:3*r+3]=Off +print("Att set:",att[:18]) +set_value(name+"_RW",att) +time.sleep(1) for r in RCU: att[3*r:3*r+3]=On print("Att set:",att[:18]) -- GitLab