# Put your release notes or change log information
# in here.

BLD-R3-0-0:
       March 6, 2020
       Ernesto: Create branch, "BLD_EPICS7" and upgrade to EPICS R7.0.3.1-1.0
      
BLD-R2-10-1
	Bruce Hill: 2018-02-16 on git branch master
	Discovered that only a few BPM's were enabled in the eOrbits BLD packet.
	This release just enables the pv's to add the additional records
	needed to add the remaining BPM's to the eOrbits BLD packet.

BLD-R2-10-0
	Bruce Hill: 2018-02-16 on git branch master
	Added GDET BLD Rcvr to BldSender app and ioc-sys0-bd01
	Added checks to avoid crash if a BLD receiver can't be created.
	Restored BLDMCastReceiver files

BLD-R2-9-2
	Bruce Hill: 2017-05-24 on git branch master
	Tag made before master branch the BLD Rcvr commits were merged from dev branch.

BLD-R2-9-1
	Bruce Hill: 2016-08-17 on MAIN_TRUNK
	Replaced TS1 event codes w/ TS4 event codes and enabled VME IRQ for EC 40

BLD-R2-9-0
	Bruce Hill: 2016-08-11 on MAIN_TRUNK
	Updated ioc st.cmd files so ioc-sys0-bd01 sends both eBeam and eOrbits BLD
		and vioc-sys0-bd03 just sends dummy eBeam BLD to 254
	Updated to build RTEMS vs event-R4-2-4 and linux vs evrClient-R1-0-p7.
	Also updates to fcomUtil-R1-2-4 for duplicate timestamp checks on calls to fcomGetBlob()
	Modified to use udpComm instead of posix socket calls so we can send eOrbits BLD from RTEMS
	Reworked st.vmegeneric.cmd and st.fnetgeneric.b34.cmd to be compatible w/ envPaths being source in st.cmd
	Tweaked debug variables in vioc-b34-bd03/st.cmd and added an evr only vioc-sys0-bd03-test
	Added some timing diagnostics and fixed eOrbitsFcom.substitutions

BLD-R2-8-0
	Bruce Hill: 2016-06-19 on MAIN_TRUNK
	Adding support for sending eOrbits BLD packets.
	Includes new fcomUtil support for subscribing to FCOM via db files.
	CA connectionCallback added so CA PV's can reconnect as needed.
		Only works for new evrClient EVR driver on linux or linuxRT.
	Adding support for eOrbits BLD packets and allowing independent enable of eBeam and/or eOrbits BLD
	Adding new EORBITS support
	Updated to use new drvFcom support to allow testing in development environment
		with simulated FCOM traffic needed for eBeam and eOrbits BLD support.

BLD-R2-7-7:
	Bruce Hill: 27-May-2016: on MAIN_TRUNK
		Fixed several problems w/ VME IOC files from bad commit.

BLD-R2-7-6:
	Bruce Hill: 23-Mar-2016: on MAIN_TRUNK
		Having trouble w/ linuxRT system staying up, so changed
		vioc-sys0-bd03 back to 502 pv series and 239.255.24.254 mcast group.
		VME ioc-sys0-bd01 back to production 500 series pv's and eBeam BLDID.
		Set BLDMCAST_DST_IP from env var
		Added call to udpCommSetMCastTTL so our multicast BLD gets beyond local subnet.
		Also added a reset_dispersal_pvs.sh script

BLD-R2-7-5:
	Bruce Hill: 09-Mar-2016: on MAIN_TRUNK
		Added missing info autosaveFields for DSPR1, DSPR2, and FMTRX

BLD-R2-7-4:
	Bruce Hill: 02-Mar-2016: on MAIN_TRUNK
		Use an EPICS initHook to call BLDMCastStart() to avoid race condition when called from st.cmd

BLD-R2-7-3:
	Bruce Hill: 16-Oct-2015: on MAIN_TRUNK
		Switched BSA and received FCOM pv's from 502 to 500 for vioc-sys0-bd03
			so it can take over support for these PV's from ioc-sys0-bd01
		Changed ioc-sys0-bd01 from 500 to 502 and disabled BLD multicast so it
			can be run without conflicts in parallel w/ vioc-sys0-bd03 for
			diagnostic comparisons.
		Note:  Either ioc-sys0-bd01 should be retired or both vioc-sys0-bd03
			and ioc-sys-bd01 should run BLD-R2-7-3 in order to avoid conflicts.

BLD-R2-7-2:
	Bruce Hill: 16-Oct-2015: on MAIN_TRUNK
		Merged RT-devel branch to MAIN_TRUNK
		Effectively the same ioc as BLD-R2-7-1
		vioc-sys0-bd03 still using modified pv's and bld addr to avoid conflicts

BLD-R2-7-1:
	Bruce Hill: 16-Oct-2015: on RT-devel branch
		Fixed timing issues for linuxRT 
		Removed stale obsolete code
		Split fcom timeout status from tsMismatch status
		Added PV's for monitoring additional blobs for DMP_CH and XTCAV_AMP
		Modified bld_diagnostics screen to use emb-fcom-stats.edl for easier
			management and addition of new blobs.

BLD-R2-7-0:
	Bruce Hill: 30-Sep-2015: on RT-devel branch
		First release for linuxRT and vioc-sys0-bd03

BLD-R2-6-5:
	Shantha Condamoor: 4-May-2015:
        Added support for FEEGasDetEnergyReceiver MCAST address 239.255.24.2
		
	M BLDApp/Db/IOC-SYS0-BD02bsa.substitutions
	M BLDApp/Db/Makefile
	A BLDApp/Db/BLDMCastReceiverGdet.template
	A BLDApp/Db/BLDMCastReceiverGdets.substitutions
	A BLDApp/Db/bsaBLDReceiverGdetEdef.substitutions
	M BLDApp/src/BLDData.h
	M BLDApp/src/BLDMCastReceiver.c
	M BLDApp/src/BLDMCastReceiver.h
	M BLDApp/src/BLDMCastReceiverImb.h
	M BLDApp/src/BLDMCastReceiverPhaseCavity.c
	M BLDApp/src/BLDMCastReceiverPhaseCavity.h
	M BLDApp/src/Makefile
	M BLDApp/src/devBLDMCastReceiver.c
	M BLDApp/src/devBLDMCastReceiver.h
	A BLDApp/src/BLDMCastReceiverGdet.c
	A BLDApp/src/BLDMCastReceiverGdet.h
	M BLDApp/srcDisplay/ads_all_main.edl
	M BLDApp/srcDisplay/bld_diagnostics.edl
	M BLDApp/srcDisplay/bld_imb_diag.edl
	M BLDApp/srcDisplay/bld_pcav_diag.edl
	A BLDApp/srcDisplay/bld_gdet_diag.edl
	M iocBoot/ioc-sys0-bd02/st-dev.cmd
	M iocBoot/ioc-sys0-bd02/st.cmd		
			
BLD-R2-6-4:
	Shantha Condamoor: 1-Apr-2015:
        Added support for PhaseCavityTest MCAST address 239.255.24.254 to test Bruce Hill's new BAT2 algorithim
            that runs on VME/RTEMS

BLD-R2-6-3:
	Shantha Condamoor: 2-Feb-2015:
		Fix for etax in Photon Energy Calculation per PCD request. Version bumped to 0x7000f
		but no change to BL MCAST data structures.
BLD-R2-6-2:
	Shantha Condamoor: 18-Nov-2014:
		Fix for typo in INP field for UND_ANG_X, UND_ANG_Y, UND_POS_X, UN_POS_Y reported by Jim Turner
		Modified file: BLDApp/Db/BLDMCast.db
	Shantha Condamoor: 11-Nov-2014
		L.Piccoli moved Und Launch Feeback to FB05:RF05. FBCK:FB03:TR05:STATES changed to FBCK:FB05:TR05:STATES
		configure/RELEASE: Use latest event, udpComm, fcom, fcomUtil modules:
			event-R4-1-3
			udpComm-R2-5-7
			fcom-R1-3-26
			fcomUtil-R1-1-29
	Shantha Condamoor: 18-Jul-2014
		Bug fix for Receiver ioc-sys0-bd02; Payload packets were not getting populated.

BLD-R2-6-1: Shantha Condamoor: 10-Jul-2014
	Photon Energy Calc: etax changed from 0.125 to 125 per PCD
	Added 10 more BLD data to waveform device support BLDApp/src/devBLDMCastWfRecv.c

BLD-R2-6-0: Shantha Condamoor: 9-Jul-2014 (PAMM)
	eBeam MCAST BLD version 6
	Replaced Receiver message queue with double buffer scheme recommended by T.straumann
	Swapped nsec/sec fields for both Receiver and Sends apps per PCD Request
	Added Shot-to-shot photon energy to eBeam data.

BLD-R2-5-5: Shantha Condamoor: 25-Jun-2014 (POMM)
	Cleaned up BLDSender and BLDRcvr applications..
	Timestamp for Receiver device support from BLD packet header->tv_nsec and header->tv_sec fields.
	PCD swapped nsec/sec fields - accommodate this change.
	Cleaaned up time-counters.

BLD-R2-5-4: Shantha Condamoor: 18-Jun-2014 (POMM)
	Split BLD application into BLDSender and BLDReceiver.
	Timestamp for Receiver device support from BLD packet header->tv_nsec and header->tv_sec fields
	Added late_bld_pulse counter. Keeps track of time wrt to EVG time and network received time.

BLD-R2-5-3: Shantha Condamoor: 10-Jun-2014 (POMM)
	Added generic scripts in iocBoot
	Added ioc-sys0-bd02
	Added one more multicasting IMB packet receiver support

BLD-R2-5-2: Shantha Condamoor: 28-May-2014 (PAMM)
	Added ai and sub records to get the pulseid and corresponding timestamp from PATT:SYS0:1:PULSEID for diagnostics.
	Set the latest received BLD packet header's timestamp to above timestamp for the matching pulseid.

BLD-R2-5-1: Shantha Condamoor: 27-May-2014
	Added more diagnostics records
	Set the BLD header timestamp to when the BLD packet was received
	Reset the TSE fields to -1 for BSA.
	Priority of Imb and PhaseCavity Receiver threads set to epicsThreadPriorityHigh-1

BLD-R2-5-0: Shantha Condamoor: 28-Apr-2014
	Added IMB BLD Packet receiver support

BLD-R2-4-6:
  o Addition of code that prevents BLDCast task from being spawned
    if the code is not running on ioc-sys0-bd01

BLD-R2-4-5:
  o Found bug created by adding more FCOM PVs/Blobs. Code is missing
    checks to make sure arrays are not overrun -> Must review/refactor the
    BLDMCast code.

BLD-R2-4-4:
  o Fix for XTCAV Phase/Ampl - previous code requested one blob for
    each, but both properties arrive in the same blob

BLD-R2-4-3:
  o Added check that enables BLD broadcast only if the hostname is
    ioc-sys0-bd01 in production

BLD-R2-4-2:
  o Fixed wrong BLD IP address in multicast BLD receiver - dbior bug fix

BLD-R2-4-1:
  o Minor diagnostics change

BLD-R2-4-0: (Started at the BLD-R2-0-0-BR branch -> got merged back to MAIN_TRUNK)
  o Addition of these PVs to eBeam BLD:

	TCAV:DMP1:360:AV
	TCAV:DMP1:360:PV
	BPMS:DMP1:502:TMIT

  o Change in outgoing data packet
    Version from 0x4000f to 0x5000f
    Addition of 3 extra words (for the above information)

BLD-R2-3-0: (BLD-R2-0-0-BR branch)
  o Addition of Fast Undulator Launch feedback states

  o Change in outgoing data packet
    Version from 0x3000f to 0x4000f
    Addition of 4 extra words (for the Fast Und. Launch feedback)


BLD-R2-2-0: (BLD-R2-0-0-BR branch)
  o Addition of BLD receiver - phase cavity

  o Phase cavity data are available via BSA:

	BLD:SYS0:500:CHARGE1
	BLD:SYS0:500:CHARGE2
	BLD:SYS0:500:FITTIME1
	BLD:SYS0:500:FITTIME2

    There are also a couple of BSA PVs to provide
    PULSEID and STATUS information:

	BLD:SYS0:500:PULSEID
	BLD:SYS0:500:STATUS

    The Phase Cavity BLD is always *at least* one
    PULSEID behind. The PULSEID BSA PV must be
    checked to make sure data from other devices line
    up correctly.

BLD-R2-1-1: (BLD-R2-0-0-BR branch)
  o Addition of Db file with BSA records

  o Change in startup script to allow individual PVs
    (e.g. BLD:SYS0:500:CHARGE) to be updated on
    "I/O Intr". This is required in order to have
    BSA records working.

  o FLNK fields were added to individual PVs, pointing
    to the BSA records.

BLD-R2-1-0: (BLD-R2-0-0-BR branch)
  o Addition of extra fields:
    BC2Energy - BPMS:LI24:801:X (in mm)
    BC1Charge - BLEN:LI21:265:AIMAX (in amps)
    BC1Energy - BPMS:LI21:233:X (in mm)

  o Change EBEAMINFO.ebeamBunchLen to EBEAMINFO.ebeamBC2Current

  o Change in outgoing data packet
    Version from 0x1000f to 0x2000f
    Addition of 3 extra words (for the energy/charge above)

  o Modification of bldgen helper code (not tested)

  o Addition of PVs (used only if code runs with CA only):
    BLD:SYS0:500:BC1CHARGE
    BLD:SYS0:500:BC1ENERGY
    BLD:SYS0:500:BC2CHARGE
    BLD:SYS0:500:BC2ENERGY

  o Extension of waveform containing new values

  o Updated BLD Diagnostics panel

  o Addition os PVs to count errors for the new values

BLD-R2-0-0:
  o Read fast data from FCOM.
  o Send BLD multicast data using udpComm/lanIpBasic.
  o Many internal changes (consult 'ChangeLog' for details).
  o Diagnostic waveform devsup reading BLD data from
    multicast network into wf record.
  o Statistics
  o EDM display

BLD-R1-5:
Add bunch length

TODO: Somehow ca_context_destroy causes problem
      Takes long time to connect to a external PV
      Local PV callback has wrong number of elements and wrong value
      Some CA env does not work
      Multicast on RTEMS

BLD-R1-4:
Add drive device support
Add records to read calc result
Move start into drvSup
More beam code for rate less than 30Hz

R1-3:
Clean up, print full array with printf in camon.c
Add more comments, add diagnostics info, add ca_clear_channel for epicsExit and fix bug by init dataAvailable = TRUE
Copy ebeamInfoPreFill into ebeamInfo everytime to correct binvert behaviour
The first version in production.

R1-2:
Enable the second Ethernet port with BSD stack
Clean up camon.c
Fix typo of error message. Add ca_flush_io just in case. Add option for monitoring pulsePVs
Add byte-order swap
Add option to use ca_add_event
Use original PVs rather than BSA PVs

R1-1:
Add PINI YES to local PVs
Add iocAdmin and EVR db
Add delay for CA
Make timer delay longer and changable on console
Add more debug info and organize level 4 for 120Hz, level 3 for 30Hz
Remove connection callback and access right callback
Compile against RTEMS 4.9.1

R1-0:
The first release.

R0-9:
Release candidate.
TODO: Add autoSaveRestore.
