Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andyld97/rcontrol
A console app which you can use to send commands/retrieve info using a Conrad 8-channel relay card.
https://github.com/andyld97/rcontrol
8-channel net relay relaycard
Last synced: 8 days ago
JSON representation
A console app which you can use to send commands/retrieve info using a Conrad 8-channel relay card.
- Host: GitHub
- URL: https://github.com/andyld97/rcontrol
- Owner: andyld97
- License: mit
- Created: 2022-07-17T12:08:08.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-28T07:22:06.000Z (7 months ago)
- Last Synced: 2024-11-10T04:57:26.317Z (10 days ago)
- Topics: 8-channel, net, relay, relaycard
- Language: C#
- Homepage:
- Size: 43 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 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](https://www.nuget.org/packages/RControlLib) 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](https://user-images.githubusercontent.com/10423894/179399063-281553ab-76f7-4472-ab51-2083b61ca7e3.png)# 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 |