A call to read_raw( )  eventually flows execution to within the method 
called  def katcprequest( )  located in the following file,  (236)   

https://github.com/casper-astro/casperfpga/blob/master/src/transport_katcp.py

Therein, self.blocking_request()  is called at 261.   The returned 'reply' 
raises the exception on line 266. 

- File 
"/home/xpswhite/cfpga/casper_venv/lib/python3.8/site-packages/casperfpga-0.4.4.dev1336+py38.276ee44-py3.8-linux-x86_64.egg/casperfpga/transport_katcp.py",
 
line 297, in katcprequest
-     raise KatcpRequestFail(
- casperfpga.transport_katcp.KatcpRequestFail: Request write on host 
xxx.177.143.xxx failed.
-         Request: ?write counted_capt_buffer_ctrl 0 \0\0\0\0
-         Reply: !write fail

I am currently using a tcpborphserver3 listening on port 7130.   This 
differs from the default port of 7147 

- $ ps aux | grep tcp
- root         497  1.0  0.0   5804  3108 ?        Ss   May25   5:24 
/bin/tcpborphserver3 -b /lib/firmware
- root        1087  0.0  0.0   3692  1896 ?        Ss   00:45   0:00 
/bin/tcpborphserver3 -b /lib/firmware -p 7130
- casper      1319  0.0  0.0   5832   684 ttyPS0   S+   03:24   0:00 grep 
--color=auto tcp

If the above write error is suppressed,  the code errors in the same place 
with reads.  The client is able to connect just fine to port 7130,  but 
these reads and writes to software registers fail in the following way 
shown above.  The content of the request "looks" to be just fine.   During 
reads, it actually returns the number 4 in the reply, which is correct.  So 
something else is populating errors in re   

A possible fix here is to inform the blocking_request() call with the new 
port I am using.  Is there a way to inform this call with the particular 
port?   

Another possible fix is that port 7130 must be let through a firewall on 
the SoC board.  

Your thoughts?  

-- 
You received this message because you are subscribed to the Google Groups 
"casper@lists.berkeley.edu" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to casper+unsubscr...@lists.berkeley.edu.
To view this discussion visit 
https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/79eb0468-fe39-44a4-86f2-4fd9dcef47d5n%40lists.berkeley.edu.

Reply via email to