Skip to content

Commit

Permalink
Updated license information and added donation information
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmucde committed Mar 13, 2021
1 parent 7e85a8d commit 919fcdf
Show file tree
Hide file tree
Showing 13 changed files with 178 additions and 31 deletions.
6 changes: 6 additions & 0 deletions DLTRelais.pro
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,9 @@ TRANSLATIONS += \
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

DISTFILES += \
.gitignore \
DLTRelais_en_DE.ts \
LICENSE \
README.md
53 changes: 52 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,52 @@
# DLTMultimeter
# DLTRelais

The SW DLTRelais is used to control Relais for Test Automation.
It is based on a SW for the Arduino SW for the Wemos Mini D1 platform.
It provides an interface to DLT for Logging and Test Automation.

For further information about DLT visit the DLT Viewer project:

https://github.com/GENIVI/dlt-viewer

## Donation

If you find my SW useful and you want to donate my work please select one of the following donations:

Github Sponsors:

https://github.com/sponsors/alexmucde

Paypal Donation:

https://www.paypal.com/donate?hosted_button_id=YBWSNXYWJJP2Q

## Ardunio SW

The currently sused Arduino SW can be found in the folder Arduino/DLTRelais/DLTRelais.ino

The Arduino SW is based on the Wemos Library.

https://github.com/alexmucde/WemosLibrary

Copy the Wemos Library into the Arduino Libraries folder before compiling the DLTRelais.ino sketch.

## Installation

To build this SW the Qt Toolchain must be used.

## Usage

DLTRelais.exe


## Contributing

Contibutions are always welcome! Please provide a Pull Request on Github.

https://github.com/alexmucde/DLTRelais

## Copyright

Alexander Wenzel <[email protected]>

This code is licensed under GPLv3.
100 changes: 100 additions & 0 deletions arduino/DLTRelais/DLTRelais.ino
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
#include <WButton.h>
#include <WLed.h>
#include <WRelais.h>
#include <WSerial.h>

WButton button;
WLed led;
WRelais relais1(D1);
WRelais relais2(D2);
WRelais relais3(D6);
WSerial serial;

void setup()
{
serial.setup();
button.setup();
led.setup();
relais1.setup();
relais2.setup();
relais3.setup();
}

void loop()
{
relais1.loop();
relais2.loop();
relais3.loop();

switch(button.event())
{
case WButton::Pressed:
led.on();
break;
case WButton::ShortPress:
relais1.trigger(500);
break;
case WButton::LongPress:
relais2.toggle();
break;
case WButton::Released:
led.off();
break;
}

switch(serial.event())
{
case WSerial::Line:
String text = serial.line();
if(text[0]=='D')
{
if(text[1]=='1')
{
if(text[2]=='0')
{
relais1.off();
}
else if(text[2]=='1')
{
relais1.on();
}
else if(text[2]=='T')
{
relais1.trigger(500);
}
}
if(text[1]=='2')
{
if(text[2]=='0')
{
relais2.off();
}
else if(text[2]=='1')
{
relais2.on();
}
else if(text[2]=='T')
{
relais2.trigger(500);
}
}
if(text[1]=='6')
{
if(text[2]=='0')
{
relais3.off();
}
else if(text[2]=='1')
{
relais3.on();
}
else if(text[2]=='T')
{
relais3.trigger(500);
}
}
}
break;
}

}
5 changes: 2 additions & 3 deletions dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@
*
* This file is part of the DLT Relais project.
*
* \copyright
* See LICENSE file.
* \copyright This code is licensed under GPLv3.
*
* \author Alexander Wenzel <alexander.wenzel@eli2.de> 2021
* \author Alexander Wenzel <alex@eli2.de>
*
* \file dialog.cpp
* @licence end@
Expand Down
5 changes: 2 additions & 3 deletions dialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@
*
* This file is part of the DLT Relais project.
*
* \copyright
* See LICENSE file.
* \copyright This code is licensed under GPLv3.
*
* \author Alexander Wenzel <alexander.wenzel@eli2.de> 2021
* \author Alexander Wenzel <alex@eli2.de>
*
* \file dialog.h
* @licence end@
Expand Down
5 changes: 2 additions & 3 deletions dltminiserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@
*
* This file is part of the DLT Relais project.
*
* \copyright
* See LICENSE file.
* \copyright This code is licensed under GPLv3.
*
* \author Alexander Wenzel <alexander.wenzel@eli2.de> 2021
* \author Alexander Wenzel <alex@eli2.de>
*
* \file dltminiserver.h
* @licence end@
Expand Down
5 changes: 2 additions & 3 deletions dltminiserver.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@
*
* This file is part of the DLT Relais project.
*
* \copyright
* See LICENSE file.
* \copyright This code is licensed under GPLv3.
*
* \author Alexander Wenzel <alexander.wenzel@eli2.de> 2021
* \author Alexander Wenzel <alex@eli2.de>
*
* \file dltminiserver.h
* @licence end@
Expand Down
5 changes: 2 additions & 3 deletions dltrelais.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@
*
* This file is part of the DLT Relais project.
*
* \copyright
* See LICENSE file.
* \copyright This code is licensed under GPLv3.
*
* \author Alexander Wenzel <alexander.wenzel@eli2.de> 2021
* \author Alexander Wenzel <alex@eli2.de>
*
* \file dltrelais.h
* @licence end@
Expand Down
5 changes: 2 additions & 3 deletions dltrelais.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@
*
* This file is part of the DLT Relais project.
*
* \copyright
* See LICENSE file.
* \copyright This code is licensed under GPLv3.
*
* \author Alexander Wenzel <alexander.wenzel@eli2.de> 2021
* \author Alexander Wenzel <alex@eli2.de>
*
* \file dltrelais.h
* @licence end@
Expand Down
5 changes: 2 additions & 3 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@
*
* This file is part of the DLT Relais project.
*
* \copyright
* See LICENSE file.
* \copyright This code is licensed under GPLv3.
*
* \author Alexander Wenzel <alexander.wenzel@eli2.de> 2021
* \author Alexander Wenzel <alex@eli2.de>
*
* \file main.h
* @licence end@
Expand Down
5 changes: 2 additions & 3 deletions settingsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@
*
* This file is part of the DLT Relais project.
*
* \copyright
* See LICENSE file.
* \copyright This code is licensed under GPLv3.
*
* \author Alexander Wenzel <alexander.wenzel@eli2.de> 2021
* \author Alexander Wenzel <alex@eli2.de>
*
* \file dsettingsdialog.h
* @licence end@
Expand Down
5 changes: 2 additions & 3 deletions settingsdialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@
*
* This file is part of the DLT Relais project.
*
* \copyright
* See LICENSE file.
* \copyright This code is licensed under GPLv3.
*
* \author Alexander Wenzel <alexander.wenzel@eli2.de> 2021
* \author Alexander Wenzel <alex@eli2.de>
*
* \file settingsdialog.h
* @licence end@
Expand Down
5 changes: 2 additions & 3 deletions version.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@
*
* This file is part of the DLT Relais project.
*
* \copyright
* See LICENSE file.
* \copyright This code is licensed under GPLv3.
*
* \author Alexander Wenzel <alexander.wenzel@eli2.de> 2021
* \author Alexander Wenzel <alex@eli2.de>
*
* \file version.h
* @licence end@
Expand Down

0 comments on commit 919fcdf

Please sign in to comment.