Re: [casper] Python katcp cannot connect FPGA

2013-05-21 Thread Haoxuan Zheng
Problem (semi) solved:
As David suggested, it is a version difference. I originally checked my version 
for corr, but not for katcp. It turns out that katcp 0.5.2 won't work with our 
ROACH2, but going back to katcp 0.3.4 worked. I say it's semi solved because I 
don't know how to fix the problem in 0.5.2.

As a side note, it seems that pip install katcp automatically gets 0.3.4, so 
I'm not sure how I got the evil 0.5.2 in the first place, most likely installed 
as a dependence for corr.

Thanks a million, guys (especially to Andy, David, and Jason)! And sorry for 
spamming so much.

Jeff

From: casper-boun...@lists.berkeley.edu [casper-boun...@lists.berkeley.edu] on 
behalf of Haoxuan Zheng [jef...@mit.edu]
Sent: Monday, May 20, 2013 12:01 PM
To: casper@lists.berkeley.edu
Subject: [casper] Python katcp cannot connect FPGA

Hi CASPER,
Sorry for the spam, but since my original message was sent at the worst hour of 
the week (Friday evening), I would like to give it another try:

Our lab just got a new server which will be our data taking computer, and it 
has trouble connecting to our ROACH 2 through python katcp. Whenever I do fpga 
= corr.katcp_wrapper.FpgaClient('10.0.0.200', 7147, timeout = 60), 
fpga.is_connected() always say False. Here are some clues:

1) When I run the above command, I see the following on a separate telnet 7147 
connection on the ROACH2 (which runs fine), and the client-disconnected message 
comes right after the client-connected message:

#log info 946685931331 raw new\_client\_connection\_10.0.0.11:44001
#client-connected 10.0.0.11:44001
#client-disconnected 10.0.0.11:44001

2) The new computer connects to the ROACH1s fine with python katcp.

3) All other computers connect to the ROACH2s fine with python katcp.

I'm not sure if anyone else has experienced similar issues? Any help would be 
greatly appreciated!

Thanks a lot!
Jeff


Re: [casper] Python katcp cannot connect FPGA

2013-05-21 Thread Haoxuan Zheng
Hi Andy,
Here are the tidied up versions.

Thank you so much!
Jeff

From: aml...@gmail.com [aml...@gmail.com] on behalf of Andrew Lutomirski 
[l...@mit.edu]
Sent: Tuesday, May 21, 2013 5:54 PM
To: Haoxuan Zheng
Cc: David MacMahon; casper@lists.berkeley.edu
Subject: Re: [casper] Python katcp cannot connect FPGA

The working one has lots of interleaved connections.  Can you make
sure that everything using katcp is off, then start capturing, then
start katcp again.

--Andy

On Tue, May 21, 2013 at 2:41 PM, Haoxuan Zheng  wrote:
> Hi Andy,
> Here are the wireshark files from the working computer and non-working 
> computer. The working one does have many more [PSH, ACK] communications.
>
> Thanks a lot for your help!
> Jeff
> 
> From: aml...@gmail.com [aml...@gmail.com] on behalf of Andrew Lutomirski 
> [l...@mit.edu]
> Sent: Tuesday, May 21, 2013 5:12 PM
> To: Haoxuan Zheng
> Cc: David MacMahon; casper@lists.berkeley.edu
> Subject: Re: [casper] Python katcp cannot connect FPGA
>
> On Tue, May 21, 2013 at 1:36 PM, Haoxuan Zheng  wrote:
>> Hi David,
>> I tried everything you suggested, and here's what I got:
>> 1) I don't see any new messages with dmesg on ROACH2 after the attempted 
>> connection; maybe I did something wrong? I have never used dmesg before.
>> 2) I attached the wireshark screen shot comparing the working computer and 
>> the non-working on. Basically the non-working computer goes through all the 
>> processes that the working computer does, and then actively closes the 
>> connection with [FIN, ACK]. Does this give any clues?
>> 3) The non-working computer had 0.7.3 which was newer than the working 
>> 0.7.1, but uninstalling and installing 0.7.1 did not solve the problem.
>>
>
> It might be worth doing a "Follow TCP conversation" or sending a .pcap
> file from Wireshark.
>
> --Andy
>
>>
>> Thanks a lot!
>> Jeff
>>
>> 
>> From: David MacMahon [dav...@berkeley.edu] on behalf of David MacMahon 
>> [dav...@astro.berkeley.edu]
>> Sent: Monday, May 20, 2013 12:58 PM
>> To: Haoxuan Zheng
>> Cc: casper@lists.berkeley.edu
>> Subject: Re: [casper] Python katcp cannot connect FPGA
>>
>> Hi, Jeff,
>>
>> That sounds like a weird one!  Here are some ideas to try:
>>
>> 1) Check the output of "dmesg" on the roach2 after the problem occurs.
>>
>> 2) Watch the network traffic between the problematic machine and the roach2 
>> using tcpdump or wireshark.
>>
>> 3) Verify that the problematic computer is using the same python katcp 
>> version as the working computers.
>>
>> Please send a message to the list once you figure it out.  You'll likely 
>> make some CASPER mailing list archive reader very happy in the future! :-)
>>
>> Hope this helps,
>> Dave
>>
>> On May 20, 2013, at 9:01 AM, Haoxuan Zheng wrote:
>>
>>> Hi CASPER,
>>> Sorry for the spam, but since my original message was sent at the worst 
>>> hour of the week (Friday evening), I would like to give it another try:
>>>
>>> Our lab just got a new server which will be our data taking computer, and 
>>> it has trouble connecting to our ROACH 2 through python katcp. Whenever I 
>>> do fpga = corr.katcp_wrapper.FpgaClient('10.0.0.200', 7147, timeout = 60), 
>>> fpga.is_connected() always say False. Here are some clues:
>>>
>>> 1) When I run the above command, I see the following on a separate telnet 
>>> 7147 connection on the ROACH2 (which runs fine), and the 
>>> client-disconnected message comes right after the client-connected message:
>>>
>>> #log info 946685931331 raw new\_client\_connection\_10.0.0.11:44001
>>> #client-connected 10.0.0.11:44001
>>> #client-disconnected 10.0.0.11:44001
>>>
>>> 2) The new computer connects to the ROACH1s fine with python katcp.
>>>
>>> 3) All other computers connect to the ROACH2s fine with python katcp.
>>>
>>> I'm not sure if anyone else has experienced similar issues? Any help would 
>>> be greatly appreciated!
>>>
>>> Thanks a lot!
>>> Jeff
>>


katcp_nonworking
Description: katcp_nonworking


katcp_working
Description: katcp_working


Re: [casper] Python katcp cannot connect FPGA

2013-05-21 Thread Andrew Lutomirski
The working one has lots of interleaved connections.  Can you make
sure that everything using katcp is off, then start capturing, then
start katcp again.

--Andy

On Tue, May 21, 2013 at 2:41 PM, Haoxuan Zheng  wrote:
> Hi Andy,
> Here are the wireshark files from the working computer and non-working 
> computer. The working one does have many more [PSH, ACK] communications.
>
> Thanks a lot for your help!
> Jeff
> 
> From: aml...@gmail.com [aml...@gmail.com] on behalf of Andrew Lutomirski 
> [l...@mit.edu]
> Sent: Tuesday, May 21, 2013 5:12 PM
> To: Haoxuan Zheng
> Cc: David MacMahon; casper@lists.berkeley.edu
> Subject: Re: [casper] Python katcp cannot connect FPGA
>
> On Tue, May 21, 2013 at 1:36 PM, Haoxuan Zheng  wrote:
>> Hi David,
>> I tried everything you suggested, and here's what I got:
>> 1) I don't see any new messages with dmesg on ROACH2 after the attempted 
>> connection; maybe I did something wrong? I have never used dmesg before.
>> 2) I attached the wireshark screen shot comparing the working computer and 
>> the non-working on. Basically the non-working computer goes through all the 
>> processes that the working computer does, and then actively closes the 
>> connection with [FIN, ACK]. Does this give any clues?
>> 3) The non-working computer had 0.7.3 which was newer than the working 
>> 0.7.1, but uninstalling and installing 0.7.1 did not solve the problem.
>>
>
> It might be worth doing a "Follow TCP conversation" or sending a .pcap
> file from Wireshark.
>
> --Andy
>
>>
>> Thanks a lot!
>> Jeff
>>
>> 
>> From: David MacMahon [dav...@berkeley.edu] on behalf of David MacMahon 
>> [dav...@astro.berkeley.edu]
>> Sent: Monday, May 20, 2013 12:58 PM
>> To: Haoxuan Zheng
>> Cc: casper@lists.berkeley.edu
>> Subject: Re: [casper] Python katcp cannot connect FPGA
>>
>> Hi, Jeff,
>>
>> That sounds like a weird one!  Here are some ideas to try:
>>
>> 1) Check the output of "dmesg" on the roach2 after the problem occurs.
>>
>> 2) Watch the network traffic between the problematic machine and the roach2 
>> using tcpdump or wireshark.
>>
>> 3) Verify that the problematic computer is using the same python katcp 
>> version as the working computers.
>>
>> Please send a message to the list once you figure it out.  You'll likely 
>> make some CASPER mailing list archive reader very happy in the future! :-)
>>
>> Hope this helps,
>> Dave
>>
>> On May 20, 2013, at 9:01 AM, Haoxuan Zheng wrote:
>>
>>> Hi CASPER,
>>> Sorry for the spam, but since my original message was sent at the worst 
>>> hour of the week (Friday evening), I would like to give it another try:
>>>
>>> Our lab just got a new server which will be our data taking computer, and 
>>> it has trouble connecting to our ROACH 2 through python katcp. Whenever I 
>>> do fpga = corr.katcp_wrapper.FpgaClient('10.0.0.200', 7147, timeout = 60), 
>>> fpga.is_connected() always say False. Here are some clues:
>>>
>>> 1) When I run the above command, I see the following on a separate telnet 
>>> 7147 connection on the ROACH2 (which runs fine), and the 
>>> client-disconnected message comes right after the client-connected message:
>>>
>>> #log info 946685931331 raw new\_client\_connection\_10.0.0.11:44001
>>> #client-connected 10.0.0.11:44001
>>> #client-disconnected 10.0.0.11:44001
>>>
>>> 2) The new computer connects to the ROACH1s fine with python katcp.
>>>
>>> 3) All other computers connect to the ROACH2s fine with python katcp.
>>>
>>> I'm not sure if anyone else has experienced similar issues? Any help would 
>>> be greatly appreciated!
>>>
>>> Thanks a lot!
>>> Jeff
>>



Re: [casper] Python katcp cannot connect FPGA

2013-05-21 Thread Haoxuan Zheng
Hi Andy,
Here are the wireshark files from the working computer and non-working 
computer. The working one does have many more [PSH, ACK] communications.

Thanks a lot for your help!
Jeff

From: aml...@gmail.com [aml...@gmail.com] on behalf of Andrew Lutomirski 
[l...@mit.edu]
Sent: Tuesday, May 21, 2013 5:12 PM
To: Haoxuan Zheng
Cc: David MacMahon; casper@lists.berkeley.edu
Subject: Re: [casper] Python katcp cannot connect FPGA

On Tue, May 21, 2013 at 1:36 PM, Haoxuan Zheng  wrote:
> Hi David,
> I tried everything you suggested, and here's what I got:
> 1) I don't see any new messages with dmesg on ROACH2 after the attempted 
> connection; maybe I did something wrong? I have never used dmesg before.
> 2) I attached the wireshark screen shot comparing the working computer and 
> the non-working on. Basically the non-working computer goes through all the 
> processes that the working computer does, and then actively closes the 
> connection with [FIN, ACK]. Does this give any clues?
> 3) The non-working computer had 0.7.3 which was newer than the working 0.7.1, 
> but uninstalling and installing 0.7.1 did not solve the problem.
>

It might be worth doing a "Follow TCP conversation" or sending a .pcap
file from Wireshark.

--Andy

>
> Thanks a lot!
> Jeff
>
> 
> From: David MacMahon [dav...@berkeley.edu] on behalf of David MacMahon 
> [dav...@astro.berkeley.edu]
> Sent: Monday, May 20, 2013 12:58 PM
> To: Haoxuan Zheng
> Cc: casper@lists.berkeley.edu
> Subject: Re: [casper] Python katcp cannot connect FPGA
>
> Hi, Jeff,
>
> That sounds like a weird one!  Here are some ideas to try:
>
> 1) Check the output of "dmesg" on the roach2 after the problem occurs.
>
> 2) Watch the network traffic between the problematic machine and the roach2 
> using tcpdump or wireshark.
>
> 3) Verify that the problematic computer is using the same python katcp 
> version as the working computers.
>
> Please send a message to the list once you figure it out.  You'll likely make 
> some CASPER mailing list archive reader very happy in the future! :-)
>
> Hope this helps,
> Dave
>
> On May 20, 2013, at 9:01 AM, Haoxuan Zheng wrote:
>
>> Hi CASPER,
>> Sorry for the spam, but since my original message was sent at the worst hour 
>> of the week (Friday evening), I would like to give it another try:
>>
>> Our lab just got a new server which will be our data taking computer, and it 
>> has trouble connecting to our ROACH 2 through python katcp. Whenever I do 
>> fpga = corr.katcp_wrapper.FpgaClient('10.0.0.200', 7147, timeout = 60), 
>> fpga.is_connected() always say False. Here are some clues:
>>
>> 1) When I run the above command, I see the following on a separate telnet 
>> 7147 connection on the ROACH2 (which runs fine), and the client-disconnected 
>> message comes right after the client-connected message:
>>
>> #log info 946685931331 raw new\_client\_connection\_10.0.0.11:44001
>> #client-connected 10.0.0.11:44001
>> #client-disconnected 10.0.0.11:44001
>>
>> 2) The new computer connects to the ROACH1s fine with python katcp.
>>
>> 3) All other computers connect to the ROACH2s fine with python katcp.
>>
>> I'm not sure if anyone else has experienced similar issues? Any help would 
>> be greatly appreciated!
>>
>> Thanks a lot!
>> Jeff
>


katcp_nonworking
Description: katcp_nonworking


katcp_working
Description: katcp_working


Re: [casper] Python katcp cannot connect FPGA

2013-05-21 Thread Andrew Lutomirski
On Tue, May 21, 2013 at 1:36 PM, Haoxuan Zheng  wrote:
> Hi David,
> I tried everything you suggested, and here's what I got:
> 1) I don't see any new messages with dmesg on ROACH2 after the attempted 
> connection; maybe I did something wrong? I have never used dmesg before.
> 2) I attached the wireshark screen shot comparing the working computer and 
> the non-working on. Basically the non-working computer goes through all the 
> processes that the working computer does, and then actively closes the 
> connection with [FIN, ACK]. Does this give any clues?
> 3) The non-working computer had 0.7.3 which was newer than the working 0.7.1, 
> but uninstalling and installing 0.7.1 did not solve the problem.
>

It might be worth doing a "Follow TCP conversation" or sending a .pcap
file from Wireshark.

--Andy

>
> Thanks a lot!
> Jeff
>
> 
> From: David MacMahon [dav...@berkeley.edu] on behalf of David MacMahon 
> [dav...@astro.berkeley.edu]
> Sent: Monday, May 20, 2013 12:58 PM
> To: Haoxuan Zheng
> Cc: casper@lists.berkeley.edu
> Subject: Re: [casper] Python katcp cannot connect FPGA
>
> Hi, Jeff,
>
> That sounds like a weird one!  Here are some ideas to try:
>
> 1) Check the output of "dmesg" on the roach2 after the problem occurs.
>
> 2) Watch the network traffic between the problematic machine and the roach2 
> using tcpdump or wireshark.
>
> 3) Verify that the problematic computer is using the same python katcp 
> version as the working computers.
>
> Please send a message to the list once you figure it out.  You'll likely make 
> some CASPER mailing list archive reader very happy in the future! :-)
>
> Hope this helps,
> Dave
>
> On May 20, 2013, at 9:01 AM, Haoxuan Zheng wrote:
>
>> Hi CASPER,
>> Sorry for the spam, but since my original message was sent at the worst hour 
>> of the week (Friday evening), I would like to give it another try:
>>
>> Our lab just got a new server which will be our data taking computer, and it 
>> has trouble connecting to our ROACH 2 through python katcp. Whenever I do 
>> fpga = corr.katcp_wrapper.FpgaClient('10.0.0.200', 7147, timeout = 60), 
>> fpga.is_connected() always say False. Here are some clues:
>>
>> 1) When I run the above command, I see the following on a separate telnet 
>> 7147 connection on the ROACH2 (which runs fine), and the client-disconnected 
>> message comes right after the client-connected message:
>>
>> #log info 946685931331 raw new\_client\_connection\_10.0.0.11:44001
>> #client-connected 10.0.0.11:44001
>> #client-disconnected 10.0.0.11:44001
>>
>> 2) The new computer connects to the ROACH1s fine with python katcp.
>>
>> 3) All other computers connect to the ROACH2s fine with python katcp.
>>
>> I'm not sure if anyone else has experienced similar issues? Any help would 
>> be greatly appreciated!
>>
>> Thanks a lot!
>> Jeff
>



Re: [casper] Python katcp cannot connect FPGA

2013-05-21 Thread David MacMahon
I understand you are running the same Python/KATCP version, but are you also 
running the same Python version on both a working and the non-working machines?

Are you running the same Linux distro on both a working and the non-working 
machines?

Dave

On May 21, 2013, at 2:01 PM, Haoxuan Zheng wrote:

> Hi David,
> Direct telnet works fine, and I get this message on telnet terminal when I 
> try the python katcp connect:
> #log info 946685931331 raw new\_client\_connection\_10.0.0.11:44001
> #client-connected 10.0.0.11:44001
> #client-disconnected 10.0.0.11:44001
> 
> I did make sure the version is the same.
> 
> Thanks a lot!
> Jeff
> 
> From: David MacMahon [dav...@berkeley.edu] on behalf of David MacMahon 
> [dav...@astro.berkeley.edu]
> Sent: Tuesday, May 21, 2013 4:56 PM
> To: Haoxuan Zheng
> Cc: casper@lists.berkeley.edu
> Subject: Re: [casper] Python katcp cannot connect FPGA
> 
> Hi, Jeff,
> 
> No clues yet.  How about if you telnet from the non-working computer to the 
> ROACH2 using port 7147:
> 
> telent 10.0.0.200 7147
> 
> Does it connect and stay connected?  If it stays connected, does it return a 
> bunch of help text when you enter this command:
> 
> ?help
> 
> If that all works over telnet from the non-sorking computer, then it must be 
> some sort of weird Python or Python/KATCP issue.  Are you running the same 
> Python version on both working and non-working machines?
> 
> I don't know how to use the logger option of Python/KATCP.
> 
> Dave
> 
> On May 21, 2013, at 1:36 PM, Haoxuan Zheng wrote:
> 
>> Hi David,
>> I tried everything you suggested, and here's what I got:
>> 1) I don't see any new messages with dmesg on ROACH2 after the attempted 
>> connection; maybe I did something wrong? I have never used dmesg before.
>> 2) I attached the wireshark screen shot comparing the working computer and 
>> the non-working on. Basically the non-working computer goes through all the 
>> processes that the working computer does, and then actively closes the 
>> connection with [FIN, ACK]. Does this give any clues?
>> 3) The non-working computer had 0.7.3 which was newer than the working 
>> 0.7.1, but uninstalling and installing 0.7.1 did not solve the problem.
>> 
>> 
>> Thanks a lot!
>> Jeff
>> 
>> ____________
>> From: David MacMahon [dav...@berkeley.edu] on behalf of David MacMahon 
>> [dav...@astro.berkeley.edu]
>> Sent: Monday, May 20, 2013 12:58 PM
>> To: Haoxuan Zheng
>> Cc: casper@lists.berkeley.edu
>> Subject: Re: [casper] Python katcp cannot connect FPGA
>> 
>> Hi, Jeff,
>> 
>> That sounds like a weird one!  Here are some ideas to try:
>> 
>> 1) Check the output of "dmesg" on the roach2 after the problem occurs.
>> 
>> 2) Watch the network traffic between the problematic machine and the roach2 
>> using tcpdump or wireshark.
>> 
>> 3) Verify that the problematic computer is using the same python katcp 
>> version as the working computers.
>> 
>> Please send a message to the list once you figure it out.  You'll likely 
>> make some CASPER mailing list archive reader very happy in the future! :-)
>> 
>> Hope this helps,
>> Dave
>> 
>> On May 20, 2013, at 9:01 AM, Haoxuan Zheng wrote:
>> 
>>> Hi CASPER,
>>> Sorry for the spam, but since my original message was sent at the worst 
>>> hour of the week (Friday evening), I would like to give it another try:
>>> 
>>> Our lab just got a new server which will be our data taking computer, and 
>>> it has trouble connecting to our ROACH 2 through python katcp. Whenever I 
>>> do fpga = corr.katcp_wrapper.FpgaClient('10.0.0.200', 7147, timeout = 60), 
>>> fpga.is_connected() always say False. Here are some clues:
>>> 
>>> 1) When I run the above command, I see the following on a separate telnet 
>>> 7147 connection on the ROACH2 (which runs fine), and the 
>>> client-disconnected message comes right after the client-connected message:
>>> 
>>> #log info 946685931331 raw new\_client\_connection\_10.0.0.11:44001
>>> #client-connected 10.0.0.11:44001
>>> #client-disconnected 10.0.0.11:44001
>>> 
>>> 2) The new computer connects to the ROACH1s fine with python katcp.
>>> 
>>> 3) All other computers connect to the ROACH2s fine with python katcp.
>>> 
>>> I'm not sure if anyone else has experienced similar issues? Any help would 
>>> be greatly appreciated!
>>> 
>>> Thanks a lot!
>>> Jeff
>> 
>> 
> 




Re: [casper] Python katcp cannot connect FPGA

2013-05-21 Thread Haoxuan Zheng
Hi David,
Direct telnet works fine, and I get this message on telnet terminal when I try 
the python katcp connect:
#log info 946685931331 raw new\_client\_connection\_10.0.0.11:44001
#client-connected 10.0.0.11:44001
#client-disconnected 10.0.0.11:44001

I did make sure the version is the same.

Thanks a lot!
Jeff

From: David MacMahon [dav...@berkeley.edu] on behalf of David MacMahon 
[dav...@astro.berkeley.edu]
Sent: Tuesday, May 21, 2013 4:56 PM
To: Haoxuan Zheng
Cc: casper@lists.berkeley.edu
Subject: Re: [casper] Python katcp cannot connect FPGA

Hi, Jeff,

No clues yet.  How about if you telnet from the non-working computer to the 
ROACH2 using port 7147:

telent 10.0.0.200 7147

Does it connect and stay connected?  If it stays connected, does it return a 
bunch of help text when you enter this command:

?help

If that all works over telnet from the non-sorking computer, then it must be 
some sort of weird Python or Python/KATCP issue.  Are you running the same 
Python version on both working and non-working machines?

I don't know how to use the logger option of Python/KATCP.

Dave

On May 21, 2013, at 1:36 PM, Haoxuan Zheng wrote:

> Hi David,
> I tried everything you suggested, and here's what I got:
> 1) I don't see any new messages with dmesg on ROACH2 after the attempted 
> connection; maybe I did something wrong? I have never used dmesg before.
> 2) I attached the wireshark screen shot comparing the working computer and 
> the non-working on. Basically the non-working computer goes through all the 
> processes that the working computer does, and then actively closes the 
> connection with [FIN, ACK]. Does this give any clues?
> 3) The non-working computer had 0.7.3 which was newer than the working 0.7.1, 
> but uninstalling and installing 0.7.1 did not solve the problem.
>
>
> Thanks a lot!
> Jeff
>
> 
> From: David MacMahon [dav...@berkeley.edu] on behalf of David MacMahon 
> [dav...@astro.berkeley.edu]
> Sent: Monday, May 20, 2013 12:58 PM
> To: Haoxuan Zheng
> Cc: casper@lists.berkeley.edu
> Subject: Re: [casper] Python katcp cannot connect FPGA
>
> Hi, Jeff,
>
> That sounds like a weird one!  Here are some ideas to try:
>
> 1) Check the output of "dmesg" on the roach2 after the problem occurs.
>
> 2) Watch the network traffic between the problematic machine and the roach2 
> using tcpdump or wireshark.
>
> 3) Verify that the problematic computer is using the same python katcp 
> version as the working computers.
>
> Please send a message to the list once you figure it out.  You'll likely make 
> some CASPER mailing list archive reader very happy in the future! :-)
>
> Hope this helps,
> Dave
>
> On May 20, 2013, at 9:01 AM, Haoxuan Zheng wrote:
>
>> Hi CASPER,
>> Sorry for the spam, but since my original message was sent at the worst hour 
>> of the week (Friday evening), I would like to give it another try:
>>
>> Our lab just got a new server which will be our data taking computer, and it 
>> has trouble connecting to our ROACH 2 through python katcp. Whenever I do 
>> fpga = corr.katcp_wrapper.FpgaClient('10.0.0.200', 7147, timeout = 60), 
>> fpga.is_connected() always say False. Here are some clues:
>>
>> 1) When I run the above command, I see the following on a separate telnet 
>> 7147 connection on the ROACH2 (which runs fine), and the client-disconnected 
>> message comes right after the client-connected message:
>>
>> #log info 946685931331 raw new\_client\_connection\_10.0.0.11:44001
>> #client-connected 10.0.0.11:44001
>> #client-disconnected 10.0.0.11:44001
>>
>> 2) The new computer connects to the ROACH1s fine with python katcp.
>>
>> 3) All other computers connect to the ROACH2s fine with python katcp.
>>
>> I'm not sure if anyone else has experienced similar issues? Any help would 
>> be greatly appreciated!
>>
>> Thanks a lot!
>> Jeff
>
> 




Re: [casper] Python katcp cannot connect FPGA

2013-05-21 Thread David MacMahon
Hi, Jeff,

No clues yet.  How about if you telnet from the non-working computer to the 
ROACH2 using port 7147:

telent 10.0.0.200 7147

Does it connect and stay connected?  If it stays connected, does it return a 
bunch of help text when you enter this command:

?help

If that all works over telnet from the non-sorking computer, then it must be 
some sort of weird Python or Python/KATCP issue.  Are you running the same 
Python version on both working and non-working machines?

I don't know how to use the logger option of Python/KATCP.

Dave

On May 21, 2013, at 1:36 PM, Haoxuan Zheng wrote:

> Hi David,
> I tried everything you suggested, and here's what I got:
> 1) I don't see any new messages with dmesg on ROACH2 after the attempted 
> connection; maybe I did something wrong? I have never used dmesg before.
> 2) I attached the wireshark screen shot comparing the working computer and 
> the non-working on. Basically the non-working computer goes through all the 
> processes that the working computer does, and then actively closes the 
> connection with [FIN, ACK]. Does this give any clues?
> 3) The non-working computer had 0.7.3 which was newer than the working 0.7.1, 
> but uninstalling and installing 0.7.1 did not solve the problem.
> 
> 
> Thanks a lot!
> Jeff
> 
> 
> From: David MacMahon [dav...@berkeley.edu] on behalf of David MacMahon 
> [dav...@astro.berkeley.edu]
> Sent: Monday, May 20, 2013 12:58 PM
> To: Haoxuan Zheng
> Cc: casper@lists.berkeley.edu
> Subject: Re: [casper] Python katcp cannot connect FPGA
> 
> Hi, Jeff,
> 
> That sounds like a weird one!  Here are some ideas to try:
> 
> 1) Check the output of "dmesg" on the roach2 after the problem occurs.
> 
> 2) Watch the network traffic between the problematic machine and the roach2 
> using tcpdump or wireshark.
> 
> 3) Verify that the problematic computer is using the same python katcp 
> version as the working computers.
> 
> Please send a message to the list once you figure it out.  You'll likely make 
> some CASPER mailing list archive reader very happy in the future! :-)
> 
> Hope this helps,
> Dave
> 
> On May 20, 2013, at 9:01 AM, Haoxuan Zheng wrote:
> 
>> Hi CASPER,
>> Sorry for the spam, but since my original message was sent at the worst hour 
>> of the week (Friday evening), I would like to give it another try:
>> 
>> Our lab just got a new server which will be our data taking computer, and it 
>> has trouble connecting to our ROACH 2 through python katcp. Whenever I do 
>> fpga = corr.katcp_wrapper.FpgaClient('10.0.0.200', 7147, timeout = 60), 
>> fpga.is_connected() always say False. Here are some clues:
>> 
>> 1) When I run the above command, I see the following on a separate telnet 
>> 7147 connection on the ROACH2 (which runs fine), and the client-disconnected 
>> message comes right after the client-connected message:
>> 
>> #log info 946685931331 raw new\_client\_connection\_10.0.0.11:44001
>> #client-connected 10.0.0.11:44001
>> #client-disconnected 10.0.0.11:44001
>> 
>> 2) The new computer connects to the ROACH1s fine with python katcp.
>> 
>> 3) All other computers connect to the ROACH2s fine with python katcp.
>> 
>> I'm not sure if anyone else has experienced similar issues? Any help would 
>> be greatly appreciated!
>> 
>> Thanks a lot!
>> Jeff
> 
> 




Re: [casper] Python katcp cannot connect FPGA

2013-05-20 Thread David MacMahon
Hi, Jeff,

That sounds like a weird one!  Here are some ideas to try:

1) Check the output of "dmesg" on the roach2 after the problem occurs.

2) Watch the network traffic between the problematic machine and the roach2 
using tcpdump or wireshark.

3) Verify that the problematic computer is using the same python katcp version 
as the working computers.

Please send a message to the list once you figure it out.  You'll likely make 
some CASPER mailing list archive reader very happy in the future! :-)

Hope this helps,
Dave

On May 20, 2013, at 9:01 AM, Haoxuan Zheng wrote:

> Hi CASPER,
> Sorry for the spam, but since my original message was sent at the worst hour 
> of the week (Friday evening), I would like to give it another try:
> 
> Our lab just got a new server which will be our data taking computer, and it 
> has trouble connecting to our ROACH 2 through python katcp. Whenever I do 
> fpga = corr.katcp_wrapper.FpgaClient('10.0.0.200', 7147, timeout = 60), 
> fpga.is_connected() always say False. Here are some clues:
> 
> 1) When I run the above command, I see the following on a separate telnet 
> 7147 connection on the ROACH2 (which runs fine), and the client-disconnected 
> message comes right after the client-connected message:
> 
> #log info 946685931331 raw new\_client\_connection\_10.0.0.11:44001
> #client-connected 10.0.0.11:44001
> #client-disconnected 10.0.0.11:44001
> 
> 2) The new computer connects to the ROACH1s fine with python katcp.
> 
> 3) All other computers connect to the ROACH2s fine with python katcp.
> 
> I'm not sure if anyone else has experienced similar issues? Any help would be 
> greatly appreciated!
> 
> Thanks a lot!
> Jeff




[casper] Python katcp cannot connect FPGA

2013-05-20 Thread Haoxuan Zheng
Hi CASPER,
Sorry for the spam, but since my original message was sent at the worst hour of 
the week (Friday evening), I would like to give it another try:

Our lab just got a new server which will be our data taking computer, and it 
has trouble connecting to our ROACH 2 through python katcp. Whenever I do fpga 
= corr.katcp_wrapper.FpgaClient('10.0.0.200', 7147, timeout = 60), 
fpga.is_connected() always say False. Here are some clues:

1) When I run the above command, I see the following on a separate telnet 7147 
connection on the ROACH2 (which runs fine), and the client-disconnected message 
comes right after the client-connected message:

#log info 946685931331 raw new\_client\_connection\_10.0.0.11:44001
#client-connected 10.0.0.11:44001
#client-disconnected 10.0.0.11:44001

2) The new computer connects to the ROACH1s fine with python katcp.

3) All other computers connect to the ROACH2s fine with python katcp.

I'm not sure if anyone else has experienced similar issues? Any help would be 
greatly appreciated!

Thanks a lot!
Jeff


[casper] Python katcp cannot connect FPGA

2013-05-18 Thread Haoxuan Zheng
Hi CASPER,
Our lab just got a new server which will be our data taking computer, and it 
has trouble connecting to our ROACH 2 through python katcp. Whenever I do fpga 
= corr.katcp_wrapper.FpgaClient('10.0.0.200', 7147, timeout = 60), 
fpga.is_connected() always say False. Here's some clues:

1) When I run the above command, I see the following on a separate telnet 7147 
connection on the ROACH2 (which runs fine), and disconnect comes right after 
connect:
#log info 946685931331 raw new\_client\_connection\_10.0.0.11:44001
#client-connected 10.0.0.11:44001
#client-disconnected 10.0.0.11:44001

2) The new computer connects to the ROACH1s fine with python katcp.

3) All other computers connect to this ROACH2 fine with python katcp.

I'm not sure if anyone else has experienced similar issues? Any help would be 
greatly appreciated!

Thanks a lot!
Jeff