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',60000)

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.
> 


Reply via email to