openv / vcontrold

:fire: vcontrold Daemon for control and logging of Viessmann® type heating devices
https://github.com/openv/openv/wiki
GNU General Public License v3.0
101 stars 54 forks source link

vcontrold in Cygwin-shell returns "Parse error: Found no blanks: RECVC" #31

Open t4qjXH8N opened 6 years ago

t4qjXH8N commented 6 years ago

At the moment I am trying to use vcontrold on Windows10 64-bit in a Cygwin-shell. In this Cygwin-shell the vcontrold is compiled by issuieing the following commands in the given order (partially following the instructions from https://github.com/openv/openv/wiki/Vcontrold-Kompilieren):

  1. Installation of Cygwin64-bit with some additional packages like libxml2-devel (2.9.4-2) and adding paths to the system environment. $ uname -a gives CYGWIN_NT-10.0 SurfacePro3 2.10.0(0.325/5/3) 2018-02-02 15:16 x86_64 Cygwin

  2. Cloning the latest release of vcontrold from https://github.com/openv/vcontrold.git by $ git clone https://github.com/openv/vcontrold.git $ cd vcontrold and switching to the latest release by $ git checkout -b v0.98.5

  3. Preparing the build with $ mkdir build; cd build $ cmake -MANPAGES=OFF .. returns

    -- The C compiler identification is GNU 6.4.0
    -- Check for working C compiler: /usr/bin/cc
    -- Check for working C compiler: /usr/bin/cc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Found LibXml2: /usr/lib/libxml2.dll.a (found version "2.9.4")
    -- Found rst2man: /cygdrive/c/Anaconda3/Scripts/rst2man.py
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/Christian/vcontrold/build
  4. Then issue make by cmake --build . returns

    Scanning dependencies of target UpdateVersion
    [  5%] Updating version header.
    -- Updating version information to 0.98.5-4-g7106a53 ...
    [  5%] Built target UpdateVersion
    Scanning dependencies of target vcontrold
    [ 10%] Building C object CMakeFiles/vcontrold.dir/src/io.c.o
    [ 15%] Building C object CMakeFiles/vcontrold.dir/src/common.c.o
    [ 20%] Building C object CMakeFiles/vcontrold.dir/src/xmlconfig.c.o
    [ 25%] Building C object CMakeFiles/vcontrold.dir/src/parser.c.o
    [ 30%] Building C object CMakeFiles/vcontrold.dir/src/socket.c.o
    [ 35%] Building C object CMakeFiles/vcontrold.dir/src/semaphore.c.o
    [ 40%] Building C object CMakeFiles/vcontrold.dir/src/framer.c.o
    [ 45%] Building C object CMakeFiles/vcontrold.dir/src/unit.c.o
    [ 50%] Building C object CMakeFiles/vcontrold.dir/src/arithmetic.c.o
    [ 55%] Building C object CMakeFiles/vcontrold.dir/src/vcontrold.c.o
    [ 60%] Linking C executable vcontrold.exe
    [ 60%] Built target vcontrold
    Scanning dependencies of target vclient
    [ 65%] Building C object CMakeFiles/vclient.dir/src/common.c.o
    [ 70%] Building C object CMakeFiles/vclient.dir/src/socket.c.o
    [ 75%] Building C object CMakeFiles/vclient.dir/src/io.c.o
    [ 80%] Building C object CMakeFiles/vclient.dir/src/client.c.o
    [ 85%] Building C object CMakeFiles/vclient.dir/src/vclient.c.o
    [ 90%] Linking C executable vclient.exe
    [ 90%] Built target vclient
    Scanning dependencies of target man
    [ 95%] Converting vcontrold.rst from ReStructuredText into manpage vcontrold.1.gz
    C:\Anaconda3\python.exe: can't open file '/cygdrive/c/Anaconda3/Scripts/rst2man.py': [Errno 2] No such file or directory
    [100%] Converting vclient.rst from ReStructuredText into manpage vclient.1.gz
    C:\Anaconda3\python.exe: can't open file '/cygdrive/c/Anaconda3/Scripts/rst2man.py': [Errno 2] No such file or directory
    [100%] Built target man
  5. Testing vcontrold with $ vcontrold -x ../xml/300/vcontrold.xml yields a bunch of these errors

    ...
    [3396] Sat Feb 17 10:59:34 2018 : Parse error: Found no blanks: RECV3
    [3396] Sat Feb 17 10:59:34 2018 : Parse error: Found no blanks: RECV3
    [3396] Sat Feb 17 10:59:34 2018 : Parse error: Found no blanks: RECVC
    [3396] Sat Feb 17 10:59:34 2018 : Unit SC not defined

    With debug mode enabled the result looks like this $ vcontrold -x ../xml/300/vcontrold.xml -g yields (excerpt)

    [9236] Sat Feb 17 11:02:44 2018 :         Token: 3 Hexlen: 5, Unit:
    [9236] Sat Feb 17 11:02:44 2018 :         Token: 5 Hexlen: 1, Unit: UN
    [9236] Sat Feb 17 11:02:44 2018 :         Token: 2 Hexlen: 1, Unit: SR
    [9236] Sat Feb 17 11:02:44 2018 :         Token: 0 Hexlen: 0, Unit:
    [9236] Sat Feb 17 11:02:44 2018 :         Token: 2 Hexlen: 13, Unit:
    [9236] Sat Feb 17 11:02:44 2018 : BuildByteCode: SEND 00 01 37 D4 01;RECV 1 ST
    [9236] Sat Feb 17 11:02:44 2018 :         Token: 3 Hexlen: 5, Unit:
    [9236] Sat Feb 17 11:02:44 2018 :         Token: 2 Hexlen: 1, Unit: ST
    [9236] Sat Feb 17 11:02:44 2018 :         Token: 0 Hexlen: 0, Unit:
    [9236] Sat Feb 17 11:02:44 2018 : Parse error: Found no blanks: RECV3

The same parse errors occur when I use the files from a working vcontrold on a raspberry pi. Any ideas?

dominikbenner commented 4 years ago

Hi @t4qjXH8N !

Have you ever resolved this problem ? I have exact the same problem and dont know what to do....

br