Trace collected at: 2011-07-15 10:39:59.084000 ---------------------------------------------------------------------- ../GSEOS_scripts/General\b1_quick.py[13]: log('========================================', color=BLUE, attr=BOLD ) ../GSEOS_scripts/General\b1_quick.py[14]: log('B1 quick collection script running', color=BLUE, attr=BOLD ) ../GSEOS_scripts/General\b1_quick.py[15]: log('========================================', color=BLUE, attr=BOLD ) ../GSEOS_scripts/General\b1_quick.py[17]: timeout = 30 ../GSEOS_scripts/General\b1_quick.py[19]: scr.set_flashmod() ../GSEOS_scripts\set_flashmod.py[6]: """ ../GSEOS_scripts\set_flashmod.py[8]: from __main__ import APID_263 ../GSEOS_scripts\set_flashmod.py[9]: from efw import * ../GSEOS_scripts\set_flashmod.py[10]: import time ../GSEOS_scripts\set_flashmod.py[12]: def set_flash_recptr(addr): ../GSEOS_scripts\set_flashmod.py[21]: def module_to_addr(module): ../GSEOS_scripts\set_flashmod.py[33]: def main(module=None): ../GSEOS_scripts\set_flashmod.py[6]: """ ../GSEOS_scripts\set_flashmod.py[8]: from __main__ import APID_263 ../GSEOS_scripts\set_flashmod.py[9]: from efw import * ../GSEOS_scripts\set_flashmod.py[10]: import time ../GSEOS_scripts\set_flashmod.py[12]: def set_flash_recptr(addr): ../GSEOS_scripts\set_flashmod.py[21]: def module_to_addr(module): ../GSEOS_scripts\set_flashmod.py[33]: def main(module=None): ../GSEOS_scripts\set_flashmod.py[39]: if(module == None): ../GSEOS_scripts\set_flashmod.py[42]: days_since_1970 = int(time.time() / 86400) ../GSEOS_scripts\set_flashmod.py[43]: module = days_since_1970 % 64 ../GSEOS_scripts\set_flashmod.py[44]: log("Calculated %d days since 1970 corresponds to module %d" % (days_since_1970, module)) ../GSEOS_scripts\set_flashmod.py[50]: current_addr = APID_263.B1_RECPTR ../GSEOS_scripts\set_flashmod.py[51]: current_module = (current_addr / 4096) % 64 ../GSEOS_scripts\set_flashmod.py[52]: if(current_module == module): ../GSEOS_scripts\set_flashmod.py[58]: addr = module_to_addr(module) ../GSEOS_scripts\set_flashmod.py[22]: if(module != 0): ../GSEOS_scripts\set_flashmod.py[24]: if(0 <= module <= 63): ../GSEOS_scripts\set_flashmod.py[25]: addr = 4096 * module ../GSEOS_scripts\set_flashmod.py[31]: return(addr) ../GSEOS_scripts\set_flashmod.py[59]: log("Setting flash pointer to 0x%06x (module %d)" % (addr, module)) ../GSEOS_scripts\set_flashmod.py[60]: set_flash_recptr(addr) ../GSEOS_scripts\set_flashmod.py[14]: addrL = addr & 0xff ../GSEOS_scripts\set_flashmod.py[15]: addrH = (addr >> 8) & 0xff ../GSEOS_scripts\set_flashmod.py[16]: addrE = (addr >> 16) & 0xff ../GSEOS_scripts\set_flashmod.py[17]: cmd.efw_b1_setrecptrl(addrL) ../GSEOS_scripts\set_flashmod.py[18]: cmd.efw_b1_setrecptrh(addrH) ../GSEOS_scripts\set_flashmod.py[19]: cmd.efw_b1_setrecptre(addrE) ../GSEOS_scripts/General\b1_quick.py[22]: cmd.efw_tmkbps(60) ../GSEOS_scripts/General\b1_quick.py[25]: cmd.EFW_SSR_ENABLE(option=1) # B1 playback on ../GSEOS_scripts/General\b1_quick.py[26]: cmd.EFW_SSR_DISABLE(option=2) # B2 recording off ../GSEOS_scripts/General\b1_quick.py[27]: cmd.EFW_SSR_DISABLE(option=3) # B2 playback off ../GSEOS_scripts/General\b1_quick.py[30]: cmd.EFW_CMDS(0) ../GSEOS_scripts/General\b1_quick.py[31]: wait(APID_267, lambda: APID_267.CMDTOT==0, flTimeout=timeout) ../GSEOS_scripts/General\b1_quick.py[31]: wait(APID_267, lambda: APID_267.CMDTOT==0, flTimeout=timeout) ../GSEOS_scripts/General\b1_quick.py[31]: wait(APID_267, lambda: APID_267.CMDTOT==0, flTimeout=timeout) ../GSEOS_scripts/General\b1_quick.py[33]: start_ptr = APID_263.B1_RECPTR ../GSEOS_scripts/General\b1_quick.py[34]: print >> log, "B1 Start: B1_RECPTR: 0x%x" % (start_ptr) ../GSEOS_scripts/General\b1_quick.py[35]: cmd.EFW_SSR_ENABLE(option=0) # B1 recording on ../GSEOS_scripts/General\b1_quick.py[36]: wait(APID_267, lambda: APID_267.CMDTOT >= 0, flTimeout=timeout) ../GSEOS_scripts/General\b1_quick.py[36]: wait(APID_267, lambda: APID_267.CMDTOT >= 0, flTimeout=timeout) ../GSEOS_scripts/General\b1_quick.py[38]: cmd.EFW_SSR_DISABLE(option=0) # B1 recording off ../GSEOS_scripts/General\b1_quick.py[39]: cmd.EFW_CMDS(0) ../GSEOS_scripts/General\b1_quick.py[40]: wait(APID_267, lambda: APID_267.CMDTOT==0, flTimeout=timeout) ../GSEOS_scripts/General\b1_quick.py[31]: wait(APID_267, lambda: APID_267.CMDTOT==0, flTimeout=timeout) ../GSEOS_scripts/General\b1_quick.py[41]: end_ptr = APID_263.B1_RECPTR ../GSEOS_scripts/General\b1_quick.py[42]: print >> log, "B1 End: B1_RECPTR: 0x%x" % (end_ptr) ../GSEOS_scripts/General\b1_quick.py[43]: print >> log, "B1 Recording length: %d" % (end_ptr - start_ptr) ../GSEOS_scripts/General\b1_quick.py[46]: log('B1 quick collection Complete', color=BLUE, attr=BOLD ) ../GSEOS_scripts/General\b1_quick.py[47]: log('================END=====================', color=BLUE, attr=BOLD )