diff --git a/config/RECVTR_HB.yaml b/config/RECVTR_HB.yaml index 49dc714610c8da5e5ff5c57772da17d4c2cd6f68..47088dc96da97ac7f57efc4d2335522a08501005 100644 --- a/config/RECVTR_HB.yaml +++ b/config/RECVTR_HB.yaml @@ -16,7 +16,7 @@ drivers: type: hba1 #Special driver to manage HBAT1s. parent: I2C_RCU devreg: [0x40.0x10] #I2C broadcast register - parameters: [15] #PPS GPIO pin + parameters: [24] #PPS GPIO pin - name: I2Cbb1 type: i2cbitbang1 #I2C bitbang via GPIO expander devreg: [IO3.GPIO2,IO3.GPIO2,IO3.CONF2] @@ -486,7 +486,7 @@ variables: dim: 3072 dim2: [32,96] mask: ANT_mask - wait: 100 #ms + wait: PPS #1500 #ms neads to readback after send, which is after next PPS - name: [HBAT_LED_on,HBAT_PWR_on,HBAT_PWR_LNA_on] description: HBA frontend control diff --git a/i2cserv/hba1.py b/i2cserv/hba1.py index a0d1e2be7290733b0b2d3f65ea8db993a9768337..bd99fcdd2a7e1547f04ebeb6ef93a39ec42a567c 100644 --- a/i2cserv/hba1.py +++ b/i2cserv/hba1.py @@ -30,11 +30,12 @@ class hba1(hwdev): self.conf['parentcls'].SetGetVarValueMask(var1,data,mask,getalso=False) #Wait for PPS if required else wait a bit if var1.get('wait')=="PPS": +# logging.info("HBA wait PPS") channel=GPIO.wait_for_edge(self.pin,GPIO.RISING,timeout=1500) self.conf['parentcls'].i2csetget(self.addr,[self.reg]) if channel is None: - logging.info("PPS not received!"); - sleep(0.6) + logging.warning("PPS not received!"); + sleep(1.0) # return False; elif var1.get('wait'): logging.debug("Wait %i ms",var1.get('wait'))