rasProject_01 / weSweetHome  R. 77 2025-03-07
process control       /     RasPi software         by   weinert-automation
Loading...
Searching...
No Matches
minTerm.c File Reference

A console program for a RS232 UART on the Pi. More...

#include "weSerial.h"
#include <errno.h>
#include <getopt.h>
#include <pthread.h>
#include <modbus-private.h>
#include <modbus.h>
#include "weUtil.h"
#include "weModbusBC.h"
#include <dirent.h>

Functions

void progPrepare ()
 

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...
 

Detailed Description

A console program for a RS232 UART on the Pi.

Copyright (c) 2019 2025 Albrecht Weinert
weinert-automation.de a-weinert.de
/ / /\
/ /___ / \ |
\ /____\ /____\ | _|__
\ /\ / \ / \| |
\/ \/ \__/ \__/|_

Revision history

Rev. 76 26.02.2025
Rev. 204 28.06.2019 : new; first step just for testing UART
Rev. 270 07.11.2024 : the old include before meterpi crash ("BC")
Rev. 76 21.02.2024 : sched_yield() instead of pthread_yield()

Program functions

This program offers very basic communication and Modbus usage with Raspberry's serial interface for testing and developing.

Library usage

This program uses libmodbus.

Build

make PROGRAM=minTerm TARGET=growPi clean all
make PROGRAM=minTerm TARGET=growPi progapp
make PROGRAM=minTerm clean
winscp.com /script=progTransWin /parameter sweet:0123 meterPi bin minTerm

Function Documentation

◆ progPrepare()

void progPrepare ( )

20.0220.25

Variable Documentation

◆ prgNamPure

char const prgNamPure[]

The pure program name.

To be provided in the application's / program's source.

See also
progNam() progNamB()

◆ prgSVNrev

char const prgSVNrev[]

The complete SVN revision string.

To be provided in the application's / program's source.

See also
progRev()

◆ prgSVNdat

char const prgSVNdat[]

The complete SVN date string.

To be provided in the application's / program's source.

See also
progDat()