1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 <2023> 2024 2025 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 <2023> 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | EPICS 7.0.4.1. Gettings Started under Windows 10 WSYS2 MinGW UCRT 64, Problem with camonitor |
From: | Alexander Kessler via Tech-talk <tech-talk at aps.anl.gov> |
To: | tech-talk at aps.anl.gov |
Date: | Mon, 8 May 2023 21:20:21 +0200 |
Dear Community,
I am new to EPICS and need some start up help.After that I have build the test application. I work in the MSYS2
shell. When I start the TestIOC I get the following output:
$ ../../bin/windows-x64-mingw/test st.cmd #!../../bin/windows-x64-mingw/test < envPaths epicsEnvSet("IOC","ioctest") epicsEnvSet("TOP","C:/Users/AlexK/work/epics/testioc") cd "C:/Users/AlexK/work/epics/testioc" ## Register all support components dbLoadDatabase "dbd/test.dbd" test_registerRecordDeviceDriver pdbbase Warning: IOC is booting with TOP = "C:/Users/AlexK/work/epics/testioc" but was built with TOP = "/c/Users/AlexK/work/epics/testioc" ## Load record instances dbLoadRecords("db/test.db","user=AlexK") cd "C:/Users/AlexK/work/epics/testioc/iocBoot/ioctest" iocInit Starting iocInit ############################################################################ ## EPICS R7.0.4.1 ## Rev. 2023-05-03T15:03+0200 ############################################################################ Warning: Duplicate EPICS CA Address list entry "192.168.56.255:5065" discarded iocRun: All initialization complete ## Start any sequence programs #seq sncxxx,"user=AlexK" epics> epics> dbl test:add test:pv1 test:pv2
So far so good. When I clone the shell session with mintty & and start camonitor, I get:
$ camonitor.exe test:add
test:add *** Not connected (PV not found)
CAC: Unable to connect because "WINSOCK Error 10051"
CA.Client.Exception...............................................
Warning: "Virtual circuit disconnect"
Context: "0.0.0.1:5"
Source File: ../cac.cpp line 1237
Current Time: Mon May 08 2023 20:59:00.391220265
So I wanted to get rid of the warnings about duplicate addresses.
I have tried to set the environment variables EPICS_CA_AUTO_ADDR_LIST
and EPICS_CA_ADDR_LIST in various ways. Among others, in
the testioc\iocBoot\ioctest\envPaths with epicsEnvSet() ,
and in the shell with export and setx commands.
But no matter what I do, the behaviour does not change.
My dev PC has two ethernet cards. The second one has multiple IP4 addresses for communication with lab network and local test equipment.
Windows-IP-Konfiguration Ethernet-Adapter Ethernet 3: ..... ..... ..... IPv4-Adresse . . . . . . . . . . : my uni net IP 4 Subnetzmaske . . . . . . . . . . : the subnet mask ... .... Ethernet-Adapter Ethernet 2: Verbindungsspezifisches DNS-Suffix: Beschreibung. . . . . . . . . . . : National Instruments GigE Vision Adapter Physische Adresse . . . . . . . . : 00-1B-21-3A-27-43 DHCP aktiviert. . . . . . . . . . : Nein Autokonfiguration aktiviert . . . : Ja Verbindungslokale IPv6-Adresse . : fe80::7ebe:1e43:828e:2e48%10(Bevorzugt) IPv4-Adresse . . . . . . . . . . : 192.168.2.222(Bevorzugt) Subnetzmaske . . . . . . . . . . : 255.255.255.0 IPv4-Adresse . . . . . . . . . . : 192.168.11.222(Bevorzugt) Subnetzmaske . . . . . . . . . . : 255.255.255.0 IPv4-Adresse . . . . . . . . . . : 192.168.50.222(Bevorzugt) Subnetzmaske . . . . . . . . . . : 255.255.255.0 IPv4-Adresse . . . . . . . . . . : 192.168.55.222(Bevorzugt) Subnetzmaske . . . . . . . . . . : 255.255.255.0 Standardgateway . . . . . . . . . : 192.168.50.3 DHCPv6-IAID . . . . . . . . . . . : 124257738 DHCPv6-Client-DUID. . . . . . . . : 00-01-00-01-26-CF-F0-B5-18-66-DA-08-54-53 DNS-Server . . . . . . . . . . . : 192.168.50.3 NetBIOS über TCP/IP . . . . . . . : Aktiviert Ethernet-Adapter Ethernet 4: Verbindungsspezifisches DNS-Suffix: Beschreibung. . . . . . . . . . . : VirtualBox Host-Only Ethernet Adapter Physische Adresse . . . . . . . . : 0A-00-27-00-00-07 DHCP aktiviert. . . . . . . . . . : Nein Autokonfiguration aktiviert . . . : Ja Verbindungslokale IPv6-Adresse . : fe80::5129:dd7d:57d7:4fe0%7(Bevorzugt) IPv4-Adresse . . . . . . . . . . : 192.168.56.100(Bevorzugt) Subnetzmaske . . . . . . . . . . : 255.255.255.0 Standardgateway . . . . . . . . . : DHCPv6-IAID . . . . . . . . . . . : 470417447 DHCPv6-Client-DUID. . . . . . . . : 00-01-00-01-26-CF-F0-B5-18-66-DA-08-54-53 DNS-Server . . . . . . . . . . . : fec0:0:0:ffff::1%1 fec0:0:0:ffff::2%1 fec0:0:0:ffff::3%1 NetBIOS über TCP/IP . . . . . . . : Aktiviert Ethernet-Adapter VirtualBox Host-Only Network #2: Verbindungsspezifisches DNS-Suffix: Beschreibung. . . . . . . . . . . : VirtualBox Host-Only Ethernet Adapter #2 Physische Adresse . . . . . . . . : 0A-00-27-00-00-09 DHCP aktiviert. . . . . . . . . . : Nein Autokonfiguration aktiviert . . . : Ja Verbindungslokale IPv6-Adresse . : fe80::7e21:9f3a:57ab:49c7%9(Bevorzugt) IPv4-Adresse . . . . . . . . . . : 192.168.56.2(Bevorzugt) Subnetzmaske . . . . . . . . . . : 255.255.255.0 Standardgateway . . . . . . . . . : DHCPv6-IAID . . . . . . . . . . . : 537526311 DHCPv6-Client-DUID. . . . . . . . : 00-01-00-01-26-CF-F0-B5-18-66-DA-08-54-53 DNS-Server . . . . . . . . . . . : fec0:0:0:ffff::1%1 fec0:0:0:ffff::2%1 fec0:0:0:ffff::3%1 NetBIOS über TCP/IP . . . . . . . : Aktiviert
The set of EPICS env. variables looks like this:
$ printenv | grep EPICS
EPICS_CA_ADDR_LIST=192.168.50.222:5065
EPICS_HOST_ARCH=windows-x64-mingw
EPICS_CA_AUTO_ADDR_LIST=NO
EPICS_BASE=C:\Users\AlexK\work\epics\base-R7.0.4.1
I think I am close to the target, but somewhere I have a
thinking error. I assume this is related to the handling of the
environment variables in MSYS2 Shell and EPICS.
Best wishes and thank for reading this long e-mail :-)
AlexK
-- Alexander Kessler Helmholtz-Institut-Jena Fröbelstieg 3, 07743 Jena phone: +49-3641-947296 fax: +49-3641-947299 email: alexander.kessler at uni-jena.de web: http://www.rlp-ioq.uni-jena.de/ http://www.hi-jena.de Facility for Antiproton and Ion Research in Europe GmbH (FAIR GmbH) GSI Helmholtzzentrum für Schwerionenforschung GmbH Planckstraße 1, 64291 Darmstadt, Germany, www.fair-center.eu, www.gsi.de Commercial Register / Handelsregister: FAIR: Amtsgericht Darmstadt, HRB 89372 GSI: Amtsgericht Darmstadt, HRB 1528 Managing Directors / Geschäftsführung: Professor Dr. Paolo Giubellino, Jörg Blaurock Chairman of the GSI Supervisory Board / Vorsitzender des GSI-Aufsichtsrats: Ministerialdirigent Dr. Volkmar Dietz
Attachment:
OpenPGP_0x46F738458AEA89FF.asc
Description: OpenPGP public key
Attachment:
OpenPGP_signature
Description: OpenPGP digital signature