cms-gem-daq-project / reg_utils

0 stars 9 forks source link

Bug Report: gbt.py failing to program the GBTs from daq01 machine #23

Closed brentstone closed 6 years ago

brentstone commented 6 years ago

Brief summary of issue

gbt.py tool is failing to program the GBTs from daq01

Types of issue

Expected Behavior

Should not be throwing a NameError

Current Behavior

(py2.7)[bstone@gem904daq01 src]$ gbt.py 0 0 config /data/bigdisk/GEMDAQ_Documentation/system/OptoHybrid/V3/GBT_Files/OHv3c/20180717/GBTX_OHv3c_GBT_0__2018-07-17_FINAL.txt Traceback (most recent call last): File "/opt/reg_utils/bin/gbt.py", line 10, in if len(sys.argv) < 4: NameError: name 'sys' is not defined

Steps to Reproduce (for bugs)

  1. From the daq01 machine, set the virtual environment.
  2. Issue a link reset and ensure that the GBTs are in READY mode while all other registers are 0x0 from kw OH_LINKS.OH0.GBT
  3. Call the command gbt.py

Possible Solution (for bugs)

Context (for feature requests)

Your Environment

jsturdy commented 6 years ago

When was this tool last successfully used? It's missing an import sys so I would be curious if it was just lost when migrating to reg_utils or if it could have existed prior

brentstone commented 6 years ago

I definitely used this within the last 48 hours, possibly at some point yesterday too.

Brent

On Jul 18, 2018, 4:07 PM +0200, Jared Sturdy notifications@github.com, wrote:

When was this tool last successfully used? It's missing an import sys so I would be curious if it was just lost when migrating to reg_utils or if it could have existed prior

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/cms-gem-daq-project/reg_utils/issues/23#issuecomment-405943663, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AZoo4harhDlLx8duq9s3pBq2xzIjroM1ks5uH0EhgaJpZM4VUqN6.

jsturdy commented 6 years ago

@mexanick, looks like removing the rw_reg import caused this (sys is imported in rw_reg), as this version has never imported sys itself

mexanick commented 6 years ago

This is quite possible) eventually it was not tested well enough after refactoring. The import statements of course has to be re-checked.

bdorney commented 6 years ago

The import error can be solved pretty easily. However from the DAQ computer an RPC connection is not opened and trying to call this from the DAQ computer will not create an RPC connection presently.

Furthermore it will be the same issue as program-fpga with sca.py. Programming the GBT from the DAQ machine will take forever because it would presently result in the execution of 369 register write transactions.

Right now this tool should not be supported on the DAQ machine. Block write would need to be implemented (assuming it's even possible, e.g. are registers in question sequential).

bdorney commented 6 years ago

Closed by #24