corbolais / gotracer

Go package to communicate with the EPsolar Tracer*BN series solar charge controllers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gotracer

Go package to communicate with the EPsolar Tracer*BN series solar charge controllers.

It has been tested with an EPsolar Tracer4215BN solar charge controller. Connected to a computer using the EPsolar provided RJ45 to USB cable. As of today I've only gotten the cable driver for Windows to work.

Example

This example reads the status from the Tracer and displays in on the screen. The example is running on Windows. The only change on Mac OS X and Linux is the serial device name, COM16 in this example.

package main

import (
	"fmt"
	"log"

	"github.com/spagettikod/gotracer"
)

func main() {
	status, err := gotracer.Status("COM16")
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(status)
}

Roadmap

  • Add missing status information: PV Working State, Charging State, Battery State and Controller Working State
  • Turn load on and off
  • Read device information: model, software version and serial number
  • Read device parameters
  • Set device parameters
  • Read device time
  • Set device time

About

Go package to communicate with the EPsolar Tracer*BN series solar charge controllers


Languages

Language:Go 100.0%