INTRODUCTION
Overview
Download and Install
Documentation
Publications

REPOSITORY
Libraries

DEVELOPER
Dev Guide
Dashboard

PEOPLE
Contributors
Users

SourceForge.net Logo
Project
Download
Mailing lists

 

         

gbxsmartbatteryacfr::OceanServerReader Class Reference

#include <oceanserverreader.h>

List of all members.

Public Member Functions

 OceanServerReader (const std::string &serialPort, gbxutilacfr::Tracer &tracer)
void read (OceanServerSystem &system)
void reset ()


Detailed Description

Class to read data from the oceanserver battery system: (1) connects to the serial port (2) reads from the serial port and parses data

Author:
Tobias Kaupp

Constructor & Destructor Documentation

gbxsmartbatteryacfr::OceanServerReader::OceanServerReader ( const std::string &  serialPort,
gbxutilacfr::Tracer tracer 
)

Connects to the serial port (e.g. /dev/ttyS0) and checks whether we are connected to an OceanServer system. Throws a HardwareReadingException if any of the above goes wrong.


Member Function Documentation

void gbxsmartbatteryacfr::OceanServerReader::read ( OceanServerSystem system  ) 

void gbxsmartbatteryacfr::OceanServerReader::reset (  ) 

Resets the reader:

  • tells the OceanServer system to spit out hex data
  • tries to find the beginning of a new record

References gbxserialacfr::Serial::flush(), and gbxserialacfr::Serial::write().


The documentation for this class was generated from the following files:
 

Generated for GearBox by  doxygen 1.4.5