rasProject_01 / weSweetHome
R. 240
process control / RasPi software by weinert-automation
|
A console program to co-operate with hometersControl. More...
#include "sweetHome.h"
#include "weUtil.h"
#include "weModbus.h"
#include "weShareMem.h"
#include <errno.h>
#include <getopt.h>
Functions | |
int | main (int argc, char **argv) |
The program. More... | |
Variables | |
char const | prgNamPure [] |
The pure program name. More... | |
char const | prgSVNdat [] |
The complete SVN date string. More... | |
char const | prgSVNrev [] |
The complete SVN revision string. More... | |
A console program to co-operate with hometersControl.
This program gets values from hometersControl.c via shared memory and displays them on console. This is mainly for local test. The operational HMI is by (Apache 2.4) web interface via CGI and AJAX by meteRead.c.
Revision history
Client functions
This program gets values from hometersControl via shared memory synchronised by a set of semaphores: sem # 0: exclusive (short!) lock of shared memory sem # 1: signal from from hometersControl to (this) hometersConsol sem # 2: signal from from hometersControl to other (CGI etc.) programs
Library usage
The program uses the libraries (lib...): pthread, pigpiod_if2 and modbus The (weRasp/..c, include/..h) weModbus, weGPIOd and sysUtil libraries are linked in. They may be converted to and used as (.so) library, also.
cross-compile by:
program respectively transfer to target machine by:
The building of this application is governed by the make include makeProg_hometersConsol_settings.mk:
int main | ( | int | argc, |
char ** | argv | ||
) |
The program.
run by: hometersConsol [options
for help: hometersConsol -h
char const prgNamPure[] |
The pure program name.
To be provided in the application's / program's source.
char const prgSVNrev[] |
The complete SVN revision string.
To be provided in the application's / program's source.
char const prgSVNdat[] |
The complete SVN date string.
To be provided in the application's / program's source.