File: solarpowerlog_shared_sim.conf

package info (click to toggle)
solarpowerlog 0.24-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,092 kB
  • ctags: 1,248
  • sloc: sh: 11,444; cpp: 8,898; ansic: 1,044; makefile: 118
file content (70 lines) | stat: -rw-r--r-- 1,672 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# This configuration files configures two sputnik simulators using a sharedconnection_type
# communication.


# To check it out, run in one shell
#   src/solarpowerlog -c tools/sputnik_simulator/solarpowerlog_shared.conf
# and in another
#  src/solarpowerlog -c example_confs/solarpowerlog_shared_sim.conf 
# and enjoy the show :-)

# (This file was created for debugging purpose of the shared comms,
# so only inverters are configured but no loggers.)

application:
{

    # what debuglevel should be used if not specified by any component
    # Choose out of ALL, TRACE, DEBUG, INFO, WARN, ERROR ,FATAL and NONE
    # optional. If not given, it defaults to "ERROR"
    # Note, if specified a logconfig file, the config file can override this
    # setting.
    dbglevel = "ALL";
};

inverter :
{
    inverters = (
    {
        name   = "Simulator";
        description = "Sputnik Simulator";
        manufactor =  "SPUTNIK_ENGINEERING";
        model ="Simulator";

        commadr = 1;
        ownadr = 0xfb;
        queryinterval= 5;

        comms = "SharedConnection";
        sharedconnection_type = "master";

        realcomms = {
            comms = "TCP/IP";
            tcpadr =  "127.0.0.1";
            tcpport = 12345;
            tcpmode = "server";
        };
    },
    {
        name   = "Simulator2";
        description = "Sputnik Simulator";
        manufactor =  "SPUTNIK_ENGINEERING";
        model ="Simulator";

        comms = "SharedConnection";
        sharedconnection_type = "slave";
        useconnection = "Simulator"

        commadr = 2;
        ownadr = 0xfb;
        queryinterval= 5;
    }
    );
};


logger:
{
	loggers = (
		);
};