Re: [casper] Fwd: ROACH 2 First Use

2014-06-05 Thread Roelof Burger
Thanx for the info.

Took me some time to install corr and all the libraries.

Now i open a Python session in Ubuntu Terminal.

import corr   : working
f=corr.katcp_wrapper.FpgaClient('roach020701')  : This line gives an error.
It says the name roach020701 is not defined, but this is my roach serial
number?

What will cause this or am I doing something wrong.

Thank you
Roelof Burger

-- 


*- Disclaimer *
**

*This email and any attachments to it are confidential and are intended 
solely for the use of the individual to whom it is addressed. Any views or 
opinions expressed are solely those of the author and do not necessarily 
represent those of Cherry Creek Trading 61 C.C.*

*If you are not the intended recipient of this email, you must neither take 
any action based upon its contents, nor copy or show it to anyone.*

 *Please contact the sender if you believe you have received this email in 
error.*


Re: [casper] Fwd: ROACH 2 First Use

2014-06-05 Thread Roelof Burger
Sorry,

Scrap my previous message. I forgot the ' ' syntax.

The next function: upload_program_bof('r2_switch_tst_aux_2014_Apr_01_
1551.bof.gz',6).

HOw does it work. Where do I specify the path from anf to where?

Thanx

-- 


*- Disclaimer *
**

*This email and any attachments to it are confidential and are intended 
solely for the use of the individual to whom it is addressed. Any views or 
opinions expressed are solely those of the author and do not necessarily 
represent those of Cherry Creek Trading 61 C.C.*

*If you are not the intended recipient of this email, you must neither take 
any action based upon its contents, nor copy or show it to anyone.*

 *Please contact the sender if you believe you have received this email in 
error.*


Re: [casper] Fwd: ROACH 2 First Use

2014-06-04 Thread Jason Manley
I suggest you use corr to do this for you. It makes life easy. Enter a python 
session, and then:

In [1]: import corr
In [2]: f=corr.katcp_wrapper.FpgaClient('roach020934')
In [3]: f.upload_program_bof('r2_switch_tst_aux_2014_Apr_01_1551.bof.gz',6)

Jason Manley
CBF Manager
SKA-SA

Cell: +27 82 662 7726
Work: +27 21 506 7300

On 04 Jun 2014, at 11:19, Roelof Burger roe...@eflex.co.za wrote:

 Thanx for the assistance.
 
 I am still struggling to transfer files over csp or WinSCP to the roach 2.
 
 In a telnet session i run the command ?help upload.
 
 It returns: #help upload 
 upload\_a\_compresses\_bitstream\_to\_device\_(?upload\_port)
 
 How do I execute this command to upload a file?
 
 Does someone have a very basic good explanation of transferring a file onto 
 the roach 2? I am totally lost for 2 days now.
 
 Thank you
 
 
 On 3 June 2014 16:29, Marc Welz m...@ska.ac.za wrote:
 On Tue, Jun 3, 2014 at 1:23 PM, Roelof Burger roe...@eflex.co.za wrote:
  Hi John,
 
  Thanx for the quick response.
 
  I can ping the ROACH from my windows and UBUNTU machines. They are on the
  same domains
 
  I left a TELNET session open just now, and when i run the command:  ssh -p
  7147 root@ip_address command from UBUNTU
 
  i see the following on the TELNET session: #log info 946781856113 raw
  new\_client\_connection\_ip_address:57673
 
  #client-connected ip_address:57673
 
  Does this mean the connection was good? How do I transfer the.bof file now?
 
 There are a number of commands to upload a file on that control connection
 (use ?help to see them)
 
 These commands will open another port (I think by default 7146) which
 can then receive the bof file. Either you send it across using your own code,
 or you can use something like netcat or socat.
 
 From memory
 
 nc -w 2 -q 2 roachip 7146  yourboffile.bof
 
 (aside: this isn't that different how ftp works, internally - the ftp
 client just hides it from you)
 
 If you have kcpcmd installed that can do all that in one go, and set
 up an alias for it
 
 regards
 
 marc
 
 
 
 
 
 -- 
 Regards,
 
 Roelof Burger
 
 Cherry Creek
 Electronic Engineer
 Eflex Technology Group
 
 - Disclaimer 
 
 
 This email and any attachments to it are confidential and are intended solely 
 for the use of the individual to whom it is addressed. Any views or opinions 
 expressed are solely those of the author and do not necessarily represent 
 those of Cherry Creek Trading 61 C.C.
 
 If you are not the intended recipient of this email, you must neither take 
 any action based upon its contents, nor copy or show it to anyone.
 
 
 Please contact the sender if you believe you have received this email in 
 error.
 




Re: [casper] Fwd: ROACH 2 First Use

2014-06-04 Thread Roelof Burger
Good day,

Thank you, should I do this from my Linux Machine, my windows machine or
directly on the serial link to the roach board?

Roelof Burger

-- 


*- Disclaimer *
**

*This email and any attachments to it are confidential and are intended 
solely for the use of the individual to whom it is addressed. Any views or 
opinions expressed are solely those of the author and do not necessarily 
represent those of Cherry Creek Trading 61 C.C.*

*If you are not the intended recipient of this email, you must neither take 
any action based upon its contents, nor copy or show it to anyone.*

 *Please contact the sender if you believe you have received this email in 
error.*


Re: [casper] Fwd: ROACH 2 First Use

2014-06-04 Thread John Ford
 Good day,

 Thank you, should I do this from my Linux Machine, my windows machine or
 directly on the serial link to the roach board?

From your Linux machine, IMO, but it might run on Windows Python, I don't
know...  You have to install the package into your python installation. 
As Jason says, it makes life much easier.  You need it to set and collect
information from the registers and brams on the board, too.

John

.
 Roelof Burger

 --


 *- Disclaimer *
 **

 *This email and any attachments to it are confidential and are intended
 solely for the use of the individual to whom it is addressed. Any views or
 opinions expressed are solely those of the author and do not necessarily
 represent those of Cherry Creek Trading 61 C.C.*

 *If you are not the intended recipient of this email, you must neither
 take
 any action based upon its contents, nor copy or show it to anyone.*

  *Please contact the sender if you believe you have received this email in
 error.*






Re: [casper] Fwd: ROACH 2 First Use

2014-06-03 Thread John Ford
 Hi John,

 Thanx for the quick response.

 I can ping the ROACH from my windows and UBUNTU machines. They are on the
 same domains

 I left a TELNET session open just now, and when i run the command:  ssh -p
 7147 root@ip_address command from UBUNTU

 i see the following on the TELNET session: #log info 946781856113 raw
 new\_client\_connection\_ip_address:57673


  #client-connected ip_address:57673

 Does this mean the connection was good? How do I transfer the.bof file
 now?

When in the telnet window, can you execute the help command and see the
available commands?  Is there an uploadbof command?  On my system there
is, but we don't use it so I can't say for sure how it works...

?help uploadbof
#help uploadbof
upload\_a\_(possibly\_compressed)\_boffile\_(?uploadbof\_port\_filename\_[length\_[timeout]])
!help ok 1



 I was trying with scp -p 7147 file_location/file.bof root@
 ip_address:/usr/bof

 But this does nothing and nothing happens on the TELNET session

No, that's not going to work.

Port 7147 is the port to the tcpborphserver that understands the KATCP
protocol.  It doesn't speak scp

I would try it all through the telnet interface first, I think, then use
ssh later if you must.  I am not familiar with how that works, though.

I think your system is workin





Re: [casper] Fwd: ROACH 2 First Use

2014-06-03 Thread Marc Welz
On Tue, Jun 3, 2014 at 1:23 PM, Roelof Burger roe...@eflex.co.za wrote:
 Hi John,

 Thanx for the quick response.

 I can ping the ROACH from my windows and UBUNTU machines. They are on the
 same domains

 I left a TELNET session open just now, and when i run the command:  ssh -p
 7147 root@ip_address command from UBUNTU

 i see the following on the TELNET session: #log info 946781856113 raw
 new\_client\_connection\_ip_address:57673

 #client-connected ip_address:57673

 Does this mean the connection was good? How do I transfer the.bof file now?

There are a number of commands to upload a file on that control connection
(use ?help to see them)

These commands will open another port (I think by default 7146) which
can then receive the bof file. Either you send it across using your own code,
or you can use something like netcat or socat.

From memory

nc -w 2 -q 2 roachip 7146  yourboffile.bof

(aside: this isn't that different how ftp works, internally - the ftp
client just hides it from you)

If you have kcpcmd installed that can do all that in one go, and set
up an alias for it

regards

marc