Giter VIP home page Giter VIP logo

tracertools's Introduction

Tracer solar charger monitoring and control tools

(on Linux and possible other POSIX-compatible operating systems)

This project intially started by reverse engineering the communication protocol of the Tracer solar charge controller.

Fortunately EP Solar hinted to look at the Tracer-MT-5 protocol (111213).doc file and searching for that I found a Python and Arduino library for the Communication Interface for Tracer MT-5. Great to see there is more people hacking these controllers! And even got something not entirely unlike a datasheet

I initially made two tools written in C, meant to probe/fuzz and experiment with captured communication logs. Now that became a single tool which is useful to output the status information of the Tracer and switch the load power on/off.

tracerstat allows sending MT-5 (pseudo-ModBus) requests via a serial port to the device and translates the result into various useful output formats.

  • -o one-line output (no newline, useful for syslog)
  • -c comma seperated output
  • -j JSON output

tracerstat automatically outputs in collectd's expected format if called from collectd's Exec plugin.

LoadPlugin exec
<Plugin exec>
	Exec "daemon:uucp" "/usr/bin/tracerstat" "/dev/ttyUSB1"
</Plugin>

When called with parameter -I or -O, the load output is switched according to the parameter.

To query the status of your controller on the command line, call tracerstat without any parameters assuming that the controller is connected to your host via /dev/ttyUSB0.

If using a serial port device other than /dev/ttyUSB0, simply put the device node filename as a paramter.

Thanks and have fun!

tracertools's People

Contributors

dangowrt avatar neheb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

tracertools's Issues

Tracer A-Series

Hello,

i am unable to get your tool to work with a Tracer 1210A. If i run ./tracerstats it takes a few seconds and i am back in my shell. No error or another output. The Traver A-Series should work with the MT-5 Display ( i have already tested it ) so your tool should also work i think? Is there a way to check it?

Thank you for your work!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.