EPICS Home

Experimental Physics and Industrial Control System


 
2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024  Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: "Invalid request" for simply "pvget ThePV" when all other requests seem fine
From: "Kasemir, Kay" <[email protected]>
To: "[email protected]" <[email protected]>
Date: Tue, 28 Aug 2018 14:06:03 +0000
Hi:

I'm updating some example PVA server code, https://github.com/kasemir/EPICSV4Sandbox, that was originally developed for base-3.15.4-pre1 & EPICS-CPP-4.5.0.2, to compile and run with base-7.0.1.1.

It does for the most part, but there is one field request related problem.
Before updating to EPICS 7, a plain "pvget" would function as if you had added "-r field()".
Now, I can perform all types of "pvget -r XXXX ThePV" but the simplest "pvget ThePV" fails.
What changed, what's missing in my PVA server code to again handle the simplest request?

As described in the README.md, the 'neutronsDemoServer' builds both into a standalone executable, or a PVA server that runs together with qsrv and CA in an IOC.
For the following, there's no difference, I get the same response to pvlist, pvinfo, pvget, so I use the standalone executable.

$ ./neutronServerMain 
...
neutronServer running

I can successfully find and access that "neutrons" channel in several ways:

$ pvlist 
GUID 0x2654855B00000000EF85FA22, version 1: tcp@[10.0.2.15:5075]

$ pvlist 0x2654855B00000000EF85FA22
neutrons
traceRecordPGRPC

$ pvinfo neutrons
CHANNEL  : neutrons
STATE    : CONNECTED
ADDRESS  : 10.0.2.15:5075
structure
    time_t timeStamp
        long secondsPastEpoch
        int nanoseconds
        int userTag
    epics:nt/NTScalar:1.0 proton_charge
        double value
    epics:nt/NTScalarArray:1.0 time_of_flight
        uint[] value
    epics:nt/NTScalarArray:1.0 pixel
        uint[] value

$ pvget -r pixel neutrons
neutrons
structure 
    epics:nt/NTScalarArray:1.0 pixel
        uint[] value [32860,32860,32860,32860,32860,32860,32860,32860,32860,32860]

$ pvget -r "proton_charge, pixel" neutrons
neutrons
structure 
    epics:nt/NTScalar:1.0 proton_charge
        double value 6e+08
    epics:nt/NTScalarArray:1.0 pixel
        uint[] value [51950,51950,51950,51950,51950,51950,51950,51950,51950,51950]

$ pvget -r "field(proton_charge, pixel)" neutrons
neutrons
structure 
    epics:nt/NTScalar:1.0 proton_charge
        double value 9e+08
    epics:nt/NTScalarArray:1.0 pixel
        uint[] value [58180,58180,58180,58180,58180,58180,58180,58180,58180,58180]

$ pvget -r "field()" neutrons
neutrons
structure 
    time_t timeStamp 2018-08-28T09:55:52.542 6162
    epics:nt/NTScalar:1.0 proton_charge
        double value 3e+08
    epics:nt/NTScalarArray:1.0 time_of_flight
        uint[] value [6162,6162,6162,6162,6162,6162,6162,6162,6162,6162]
    epics:nt/NTScalarArray:1.0 pixel
        uint[] value [61620,61620,61620,61620,61620,61620,61620,61620,61620,61620]


But here's the thing: If I try the simplest incantation of `pvget`, it fails:

$ pvget neutrons
[neutrons] failed to create channel get: Status [type=ERROR, message=invalid pvRequest]


Thanks,
Kay


Replies:
Re: "Invalid request" for simply "pvget ThePV" when all other requests seem fine Andrew Johnson

Navigate by Date:
Prev: Jenkins build is back to normal : epics-base-3.14-ios #201 APS Jenkins
Next: Re: "Invalid request" for simply "pvget ThePV" when all other requests seem fine Andrew Johnson
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Build failed in Jenkins: epics-7.0 » mac #68 APS Jenkins
Next: Re: "Invalid request" for simply "pvget ThePV" when all other requests seem fine Andrew Johnson
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024