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!
https://github.com/hb9fxq/RelayCard
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
!
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) |
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 |
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 |