The data uploaded by the underlying device is a:00000000; if Va1 is alarmed, the uploaded data is a:00000001
Hello Debbie,
It would be helpful to know the data your device is sending.
Dirk
On 11.09.2018 09:49,
[email protected] wrote:
> Hi everyone,
> An IOC will have a device connected via Asyn+StreamDevice. The equipment
> is self-developed. The protocol is very simple,and the data is
> automatically uploaded. IOC compilation has no problems. But only one PV
> variable has a return value.
>
> The protocol file is as follows:
> Terminator = CR;
> get {
> in
> "%*c:%(\$8.VAL)c%(\$7.VAL)c%(\$6.VAL)c%(\$5.VAL)c%(\$4.VAL)c%(\$3.VAL)c%(\$2.VAL)c%c";
>
> }
>
>
> The db file is as follows:
>
> record(stringin,"Va1")
> {
> field(SCAN,"5 second")
> field(DTYP,"stream")
> field(INP, "@devLeak.proto get(a,Va8,Va7,Va6,Va5,Va4,Va3,Va2)
> $(Port) $(Addr)")
> }
>
> record(stringin,"Va2")
> {
> }
>
> record(stringin,"Va3")
> {
> }
>
> record(stringin,"Va4")
> {
> }
>
> record(stringin,"Va5")
> {
> }
>
> record(stringin,"Va6")
> {
> }
>
> record(stringin,"Va7")
> {
> }
>
> record(stringin,"Va8")
> {
> }
>
> During the test, only Va1 has a return value, but sometimes the return
> value of Va1 is reflected in Va3. Test record is as follows:
> [root@localhost devLeak]# camonitor Va1
> Va1 2018-09-11 08:58:08.420435 0
> Va1 2018-09-11 09:46:39.943368 *** disconnected
> CA.Client.Exception...............................................
> Warning: "Virtual circuit disconnect"
> Context: "localhost:5064"
> Source File: ../cac.cpp line 1214
> Current Time: Tue Sep 11 2018 09:46:39.943325761
> ..................................................................
> Va1 2018-09-11 09:47:16.571558 0
> Va1 2018-09-11 09:52:26.576883 1
> Va1 2018-09-11 10:12:26.598784 0
>
>
> --------------------------------------------------------------------------------------------------
>
>
> [root@localhost devLeak]# camonitor Va3
> Va3 2018-09-11 08:58:23.420664 0
> Va3 2018-09-11 09:02:03.424510 1
> Va3 2018-09-11 09:02:33.425080 0
> Va3 2018-09-11 09:46:39.943488 *** disconnected
> CA.Client.Exception...............................................
> Warning: "Virtual circuit disconnect"
> Context: "localhost:5064"
> Source File: ../cac.cpp line 1214
> Current Time: Tue Sep 11 2018 09:46:39.943456337
> ..................................................................
> Va3 <undefined> UDF INVALID
> Va3 2018-09-11 09:47:16.571506 0
>
> --------------------------------------------------------------------------------------------------
>
>
> [root@localhost devLeak]# camoitor Va6
> bash: camoitor: command not found
> [root@localhost devLeak]# camonitor Va6
> Va6 2018-09-11 08:58:48.421098 0
> Va6 2018-09-11 09:46:39.943463 *** disconnected
> CA.Client.Exception...............................................
> Warning: "Virtual circuit disconnect"
> Context: "localhost:5064"
> Source File: ../cac.cpp line 1214
> Current Time: Tue Sep 11 2018 09:46:39.943431255
> ..................................................................
> Va6 2018-09-11 09:47:21.571481 0
>
>
> Since there are no compilation errors or warnings, I can't find the
> problem.
>
> Regards, Debbie,IMP epics base R3.14.12.2 stream 2.6 asyn 4.30 linux-x86
>
>