diff --git a/pypcc/config/RECVTR_HB.yaml b/pypcc/config/RECVTR_HB.yaml index c55e1afe39e76a445bebec5dec519e1aa6180667..cade9a30e5d99894d072d0cc4c51cc50f5dbf6bf 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 3e2a1a67f588cd3be94556a28984c74fa23c5066..8123c04da879d39ad99a222cb59a10509321f0c7 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 f1b9d03683c5ec963aebb29a222e1d0cbacd60d1..4a1651bd647915f43ae79bbedc40ce88631d6d68 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])