EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: send a file to IOC
From: <[email protected]>
To: <[email protected]>, <[email protected]>
Cc: [email protected]
Date: Tue, 7 Apr 2015 19:27:32 +0000
The PSI/Diamond power supply interface does a similar thing by using waveforms to contain the binary and device driver manages the transfer of the binary to the target controller. We have a python client tool that reads the file from the file-system and crunches it into binary 'blobs' and then writes to the waveform(s) (this is necessary due to the architecture of the serial I/O handler in the target embedded software), but the principle is the same as below.
________________________________________
From: [email protected] [[email protected]] on behalf of Andrew Johnson [[email protected]]
Sent: Tuesday, April 07, 2015 7:38 PM
To: [email protected]; [email protected]
Subject: Re: send a file to IOC

On 04/07/2015 12:22 PM, [email protected] wrote:
> I'm developing a run control / slow control system with EPICS
> and a feature of this system is FPGA reprogramming by XSVF file;
>
> is it possible to define a PV (or something else) in order to
> receive a binary file sent by remote (e.g. by CSS) ?

Eric Norum developed something like that for programming flash memory
chips through CA when he was working here at the APS. The IOC it ran on
didn't have a lot of RAM, so it comes with a CA client program that
writes the data file (in this case it expects S-record format) to a
waveform record on the IOC one flash page at a time. On the IOC side the
code is an Asyn Octet driver.

You can find the code for it in the mcf5282 module here:
  http://www.aps.anl.gov/epics/modules/instrument/mcf5282/index.html
Note that there is other stuff in this module which will not be relevant
to you, but studying the files in mcf5282Sup/src with flash in their
name might give you a good starting point. Send questions here.

- Andrew

--
Light thinks it travels faster than anything but it is wrong.
No matter how fast light travels, it finds the darkness has
always got there first, and is waiting for it.
    -- Terry Pratchett, Reaper Man

-- 
This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd. 
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom



References:
send a file to IOC [email protected]
Re: send a file to IOC Andrew Johnson

Navigate by Date:
Prev: Re: send a file to IOC [email protected]
Next: Re: support for DTM-151? Jesus Vasquez
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: send a file to IOC [email protected]
Next: StreaDevice formating problem Jörn Wüstenfeld
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 16 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·