Trace collected at: 2011-07-08 11:59:46.548000 ---------------------------------------------------------------------- ../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[53]: print >> log, "Not setting flash pointer because it is already on module %d (addr=0x%06x)" % (module, current_addr) ../GSEOS_scripts\set_flashmod.py[54]: return() ../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[40]: cmd.EFW_CMDS(0) ../GSEOS_scripts/General\b1_quick.py[41]: 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[42]: end_ptr = APID_263.B1_RECPTR ../GSEOS_scripts/General\b1_quick.py[43]: print >> log, "B1 End: B1_RECPTR: 0x%x" % (end_ptr) ../GSEOS_scripts/General\b1_quick.py[44]: print >> log, "B1 Recording length: %d" % (end_ptr - start_ptr) ../GSEOS_scripts/General\b1_quick.py[47]: log('B1 quick collection Complete', color=BLUE, attr=BOLD ) ../GSEOS_scripts/General\b1_quick.py[48]: log('================END=====================', color=BLUE, attr=BOLD ) Trace collected at: 2011-07-08 12:02:02.267000 ---------------------------------------------------------------------- ../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[53]: print >> log, "Not setting flash pointer because it is already on module %d (addr=0x%06x)" % (module, current_addr) ../GSEOS_scripts\set_flashmod.py[54]: return() ../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[40]: cmd.EFW_CMDS(0) ../GSEOS_scripts/General\b1_quick.py[41]: 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[42]: end_ptr = APID_263.B1_RECPTR ../GSEOS_scripts/General\b1_quick.py[43]: print >> log, "B1 End: B1_RECPTR: 0x%x" % (end_ptr) ../GSEOS_scripts/General\b1_quick.py[44]: print >> log, "B1 Recording length: %d" % (end_ptr - start_ptr) ../GSEOS_scripts/General\b1_quick.py[47]: log('B1 quick collection Complete', color=BLUE, attr=BOLD ) ../GSEOS_scripts/General\b1_quick.py[48]: log('================END=====================', color=BLUE, attr=BOLD )