andyld97 / RControl

A console app which you can use to send commands/retrieve info using a Conrad 8-channel relay card.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Welcome to RControl

RControl is a little .NET-Console-App which (CLI) helps you to control your relay-card from command-line or even from other applications! Since this app is running on .NET Core it can be used on every platform, but you have to install .NET first! In the past I used it with mono to control my relay-card wit a linux server, but this isn't necessary anymore!

Based On

https://github.com/hb9fxq/RelayCard

Nuget

As of 07/11/2023 RControlLib is available as a nuget package here and can be used in other .NET Projects.
Since this is implemented in .NET Standard 2.0 it is compatible also with .NET Framework 4.8 or higher!

Example

Example screenshot

Documentation for RelayControl.exe v1.0.3

Basic Commands

Command Description
-h Shows the documentation
-p Port: Default port is /dev/ttyUSB0 for usage on Linux with Mono.
-s Switch all relays off on each card
-s -c 1...255 Switch all relays off on Card X
-t -r 1...8 Handle Relay r on Card1 as a Taster (Switch on and after a delay off)
-t -c 1...255 -r 1...8 Handle Relay r on Card c as a Taster (Switch on and after a delay off)

Simple swichting (must be always the first parameter)

Command Description
AAAAAAAA A bit sequence which will be sent to Card 1
X,AAAAAAAA A bit sequence which will be sent to Card X 1 <= X <= 255
0,AAAAAAAA Broadcast: This command will be sent and exceuted by each and every card
AAAAAAAABBBBBBBB A bit sequence which will be splitted and each byte send to card x. x = 1; increments

Getting state

Command Description
-a This command returns the state of all cards like AAAAAAAABBBBBBBB...
1 ... 255 This command returns the state of the selected card
No command returns always the state of card 1

About

A console app which you can use to send commands/retrieve info using a Conrad 8-channel relay card.

License:MIT License


Languages

Language:C# 100.0%