It turns out that tcpborphserver had become defunct. After I restarted it, I got an very encouraging response: kuiper@roachnest:/opt/CASPER/tutorials_devel/workshop_2010/roach_tut3_wideband_spec$ sudo ./spectrometer.py roach1 -b r_spec_2048_r105_2010_Jul_26_1205.bof
Connecting to server roach1 on port 7147... ok

------------------------
Programming FPGA with r_spec_2048_r105_2010_Jul_26_1205.bof... done
Configuring accumulation period... done
Resetting counters... done
Setting digital gain of all channels to 4294967295... done
X11 connection rejected because of wrong authentication.
FAILURE DETECTED. Log entries:
roach1: Starting thread Thread-1
roach1: #version raw-0.1
roach1: #build-state tcpborphserver-2.3398
roach1: ?progdev r_spec_2048_r105_2010_Jul_26_1205.bof

roach1: !progdev ok 545
roach1: Programming FPGA with r_spec_2048_r105_2010_Jul_26_1205.bof... ok.
roach1: ?write acc_len 0 \0\0\0

roach1: !write ok
roach1: ?read acc_len 0 4

roach1: !read ok \0\0\0
roach1: Write 40000 to register acc_len at offset 0 ok.
roach1: ?write cnt_rst 0 \0\0\0

roach1: !write ok
roach1: ?read cnt_rst 0 4

roach1: !read ok \0\0\0
roach1: Write 1 to register cnt_rst at offset 0 ok.
roach1: ?write cnt_rst 0 \0\0\0\0

roach1: !write ok
roach1: ?read cnt_rst 0 4

roach1: !read ok \0\0\0\0
roach1: Write 0 to register cnt_rst at offset 0 ok.
roach1: ?write gain 0 ����

roach1: !write ok
roach1: ?read gain 0 4

roach1: !read ok ����
roach1: Write ffffffff to register gain at offset 0 ok.

It failed at this point because
_tkinter.TclError: couldn't connect to display "localhost:10.0"
which I will figure out. (I'm tunneling through the JPL firewall from home.)

Thanks to all for the advice.

Tom


On 03/03/2012 12:05 PM, Tom Kuiper wrote:
On 03/02/2012 03:24 PM, David MacMahon wrote:
    Here are a couple of things to check: Does the bof file have execute 
permissions?  Is it in the right directory?
So as I already wrote, I had not copied the bof file into
roachnest:/var/roach1_root/boffiles/.  I did that and the permissions are:
-rwxr-xr-x 1 kuiper kuiper 4469216 Feb 29 09:22
r_spec_2048_r105_2010_Jul_26_1205.bof
However, I still get the same timeout error message.

I assume that tcpborphserver is running because  I can telnet to port
4147.  It doesn't respond to
?help
though, which is probably related to the timeout problem.


Reply via email to