Hi,

Until now I even can't fix this problem.So I can't download the bof file 
throuth python, because the NFS can not setup, and I just using such linux 
command  nc -w 2 -q 2 192.168.40.60 7146 < name.bof to download the bof file. I 
thin if you fixed the NFS problem all the python download problem will be fixed.

Best Regards.

Oliver Wang


> -----原始邮件-----
> 发件人: "Andrea Mattana" <matt...@ira.inaf.it>
> 发送时间: 2014年12月3日 星期三
> 收件人: "Wang Jinqing" <jqw...@shao.ac.cn>
> 抄送: "casper list" <casper@lists.berkeley.edu>
> 主题: Re: [casper] about download the tut3.bof
> 
> Hi Caspers and Wang,
> 
> I got the same errors reported on this email and we have found a
> possible fix (not sure if skipping this step could be an issue).
> 
> We have installed the corr and katcp (0.5.5) packages few days ago
> (latest versions), and updated the git repository of roach-2_nfs_boot
> (tcpborphserver3 last commit about 2 weeks ago). We were able to
> telnet the roach2 to the port 7147 and to communicate with the server:
> 
> Escape character is '^]'.
> #version alpha-6-g0b8dd54
> #build-state 2012-10-24T10:04:56
> #version-connect katcp-library alpha-6-g0b8dd54 2012-10-24T10:04:56
> #version-connect katcp-protocol 4.9-M
> #version-connect kernel 3.7.0-rc2+ #21\_Mon\_Nov\_19\_09:30:32\_SAST\_2012
> 
> but when trying to connect via the python corr I got this message:
> 
> In [17]: c = corr.katcp_wrapper.FpgaClient("roach-2-a", logger=logger)
> DEBUG:med:Starting thread Thread-5
> In [18]: DEBUG:med:#version alpha-6-g0b8dd54
> DEBUG:med:#build-state 2012-10-24T10:04:56
> DEBUG:med:#version-connect katcp-library alpha-6-g0b8dd54 2012-10-24T10:04:56
> DEBUG:med:#version-connect katcp-protocol 4.9-M
> ERROR:med:Protocol Version Error: Inform received from server
> indicating a katcp protocol revision inconsistent with the previously
> detected version. Disconnecting in disgust. Previous version: '4.0'.
> Inform received: '#version-connect katcp-protocol 4.9-M'
> DEBUG:med:#version-connect kernel 3.7.0-rc2+
> #21\_Mon\_Nov\_19\_09:30:32\_SAST\_2012
> DEBUG:med:Stopping thread Thread-5
> 
> and of course the method ping() fails and is_connected() reports False.
> 
> We have found the protocol version check in katcp/client.py (line 168)
> and changed as follow:
>         # protocol_flags = ProtocolFlags(4, 0, '')
>         protocol_flags = ProtocolFlags(4, 9, 'M')
> 
> This fix works, or better, the check has been by-passed.
> 
> We have done the same test using the katcp version 0.5.4 as Wang and
> got the same messages. Previous katcp versions are dated 2013 and we
> didn't test them. We have also tested the previous version of
> tcpborphserver3 with the same result.
> 
> Do you have experience on this?
> 
> Cheers,
> Andrea Mattana and Marco Bartolini
> 
> 
> 
> 2014-10-24 3:47 GMT+02:00 Wang Jinqing <jqw...@shao.ac.cn>:
> > Hi:
> > I have compiled the tut3 and got the bof file.Then I want to download the
> > bof file to the roach2 fpga. But errors show like below,it seem that the
> > tut3.py used the katcp version is not consist to the roach2's that result in
> > the download failed. How to fix this problem?
> > the tut3.py I used see the appendix.
> >
> > Best Regards.
> > Oliver Wang
> >
> >
> > FAILURE DETECTED. Log entries:
> > 192.168.40.60: Starting thread Thread-1
> > 192.168.40.60: #version test-584-g9ebe0bd-dirty
> > 192.168.40.60: #build-state 2012-06-26T09:26:06
> > 192.168.40.60: #version-connect katcp-library test-584-g9ebe0bd-dirty
> > 2012-06-26T09:26:06
> > 192.168.40.60: #version-connect katcp-protocol 4.9-M
> > 192.168.40.60: Protocol Version Error: Inform received from server
> > indicating a katcp protocol revision inconsistent with the previously
> > detected version. Disconnecting in disgust. Previous version: '4.0'. Inform
> > received: '#version-connect katcp-protocol 4.9-M'
> > 192.168.40.60: #version-connect kernel 3.4.0-rc3+
> > #14\_Tue\_May\_29\_17:05:02\_SAST\_2012
> > 192.168.40.60: Stopping thread Thread-1
> > None
> > FAILURE DETECTED. Log entries:
> > 192.168.40.60: Starting thread Thread-1
> > 192.168.40.60: #version test-584-g9ebe0bd-dirty
> > 192.168.40.60: #build-state 2012-06-26T09:26:06
> > 192.168.40.60: #version-connect katcp-library test-584-g9ebe0bd-dirty
> > 2012-06-26T09:26:06
> > 192.168.40.60: #version-connect katcp-protocol 4.9-M
> > 192.168.40.60: Protocol Version Error: Inform received from server
> > indicating a katcp protocol revision inconsistent with the previously
> > detected version. Disconnecting in disgust. Previous version: '4.0'. Inform
> > received: '#version-connect katcp-protocol 4.9-M'
> > 192.168.40.60: #version-connect kernel 3.4.0-rc3+
> > #14\_Tue\_May\_29\_17:05:02\_SAST\_2012
> > 192.168.40.60: Stopping thread Thread-1
> > None
> > Traceback (most recent call last):
> >   File "./tut3.py", line 141, in <module>
> >     exit_fail()
> >   File "./tut3.py", line 21, in exit_fail
> >     fpga.stop()
> >   File "/usr/local/lib/python2.7/dist-packages/corr/katcp_wrapper.py", line
> > 613, in stop
> >     super(FpgaClient,self).stop()
> >   File
> > "/usr/local/lib/python2.7/dist-packages/katcp-0.5.4-py2.7.egg/katcp/client.py",
> > line 1258, in stop
> >     super(CallbackClient, self).stop(*args, **kwargs)
> >   File
> > "/usr/local/lib/python2.7/dist-packages/katcp-0.5.4-py2.7.egg/katcp/client.py",
> > line 644, in stop
> >     raise RuntimeError("Attempt to stop client that wasn't running.")
> > RuntimeError: Attempt to stop client that wasn't runnin g.
> > root@laobaoqiang-RS100-E7-PI2-RS100-E7-PI2:/opt/mlib_devel/tut3/bit_files#
> >
> >
> >
> >
> >
> >
> >
> 
> 
> 
> -- 
> Andrea Mattana
> 
> I.N.A.F. - Istituto di Radioastronomia
> Radiotelescopi di Medicina
> Via Fiorentina, 3513 - 40059 Medicina (Bo)
> Tel. 051/6965834      Fax. 051/6965810



Reply via email to