import serial import logging from data import read_file_one_line # dbus configuration CONNECTION = 'Modbus RTU' PRODUCT_NAME = 'FIAMM 48TL Series Battery' PRODUCT_ID = 0xB012 # assigned by victron DEVICE_INSTANCE = 1 SERVICE_NAME_PREFIX = 'com.victronenergy.battery.' # driver configuration SOFTWARE_VERSION = '3.0.0' UPDATE_INTERVAL = 2000 # milliseconds LOG_LEVEL = logging.INFO #LOG_LEVEL = logging.DEBUG # battery config V_MAX = 54.2 V_MIN = 42 R_STRING_MIN = 0.125 R_STRING_MAX = 0.250 I_MAX_PER_STRING = 15 AH_PER_STRING = 40 # modbus configuration BASE_ADDRESS = 999 NO_OF_REGISTERS = 56 MAX_SLAVE_ADDRESS = 25 # RS 485 configuration PARITY = serial.PARITY_ODD TIMEOUT = 0.1 # seconds BAUD_RATE = 115200 BYTE_SIZE = 8 STOP_BITS = 1 MODE = 'rtu' # InnovEnergy IOT configuration INSTALLATION_NAME = read_file_one_line('/data/innovenergy/openvpn/installation-name') INNOVENERGY_SERVER_IP = '10.2.0.1' INNOVENERGY_SERVER_PORT = 8134 INNOVENERGY_PROTOCOL_VERSION = '48TL200V3'