EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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

Subject: RE: gateway problem
From: "Jeff Hill" <[email protected]>
To: "'Gasper Jansa'" <[email protected]>, "'Ralph Lange'" <[email protected]>
Cc: "'Yuichi ITOH'" <[email protected]>, "'EPICS Tech Talk'" <[email protected]>
Date: Wed, 29 Aug 2007 11:43:19 -0600
Thanks Gasper!

I reproduced the bug here and also verified the fix. I created Mantis entry
298 to track the issue and committed the patch to CVS. The fix will show up
in R3.14.10.

cvs diff -- casStrmClient.cc (in directory
C:hillR3.14.dll_hell_fixepicsbasesrccasgeneric)
Index: casStrmClient.cc
===================================================================
RCS file:
/net/phoebus/epicsmgr/cvsroot/epics/base/src/cas/generic/casStrmClient.cc,v
retrieving revision 1.92.2.14
diff -c -b -r1.92.2.14 casStrmClient.cc
*** casStrmClient.cc 18 Nov 2006 01:01:21 -0000 1.92.2.14
--- casStrmClient.cc 29 Aug 2007 17:17:04 -0000
***************
*** 2161,2167 ****
//
// install allocated area into the DD
//
! pDD->putRef ( pData, type, pDestructor );

//
// convert the data from the protocol buffer
--- 2161,2167 ----
//
// install allocated area into the DD
//
! pDD->putRef ( pData, bestWritePrimType, pDestructor );

//
// convert the data from the protocol buffer

Jeff

-----Original Message-----
From: [email protected] [mailto:[email protected]]
On Behalf Of Gasper Jansa
Sent: Wednesday, August 29, 2007 8:41 AM
To: Ralph Lange
Cc: Yuichi ITOH; EPICS Tech Talk
Subject: Re: gateway problem

Hi All

I checked also on gateway 2.0.0.0 with EPICS base 3.14.7 and it fails to 
do a caput -a  to waveform with FTVL set to DOUBLE.

I looks like the problem is in file casStrmClient.cc of generic ca server.

Primitive type is changed to aitEnumFixedString on line 2164 (EPICS 3.14.9)
pDD->putRef ( pData, type, pDestructor );

I changed this line to
pDD->putRef ( pData, bestWritePrimType, pDestructor );

and is working.

Best Regards
Gasper



Ralph Lange wrote:
> Hello Yuichi,
>
> could you be a bit more specific about the nature of the problem you 
> are experiencing?
>
> Regards,
> Ralph
>
>
> Yuichi ITOH wrote:
>> Hi
>>
>> I am trying to use gateway, and I have encountered with a problem.
>> The problem appeares when writing array data through gateway using 
>> "caput -a" command.
>> (Gateway2.0.2.1 built with Base3.14.9 on Scientific Linux 4.2)
>>
>> Writing a scalar data through gateway, it will successfully completed.
>> Writing array data without gateway, it will successfully completed.
>> Environment variable EPICS_CA_MAX_ARRAY_BYTES is correctly set, of 
>> course.
>>
>> Has anyone else encountered with this problem?
>>
>> Thanks,
>> Yuichi ITOH
>>
>>   
>
>


References:
gateway problem Yuichi ITOH
Re: gateway problem Ralph Lange
Re: gateway problem Gasper Jansa

Navigate by Date:
Prev: Re: gateway problem Noboru Yamamoto
Next: RE: Frame grabber and image analysis Emmanuel Mayssat
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: gateway problem Gasper Jansa
Next: Re: gateway problem Noboru Yamamoto
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Nov 2011 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·