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>

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

◆ OceanServerReader()

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.

References reset().

Member Function Documentation

◆ read()

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

◆ reset()

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 gbxutilacfr::Tracer::debug(), gbxserialacfr::Serial::flush(), gbxserialacfr::Serial::readLine(), and gbxserialacfr::Serial::write().

Referenced by OceanServerReader().


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

Generated for GearBox by  doxygen 1.4.5