Merge branch 'master' of mz-automation.de:libiec61850

This commit is contained in:
Michael Zillgith 2015-06-05 07:28:14 +02:00
commit 29d53cbc08
4 changed files with 11 additions and 5 deletions

View file

@ -17,7 +17,7 @@
#define DEBUG_COTP 0
#define DEBUG_ISO_SERVER 0
#define DEBUG_ISO_CLIENT 0
#define DEBUG_IED_SERVER 1
#define DEBUG_IED_SERVER 0
#define DEBUG_IED_CLIENT 0
#define DEBUG_MMS_CLIENT 0
#define DEBUG_MMS_SERVER 0

View file

@ -54,7 +54,10 @@ int main(int argc, char** argv) {
MmsValue* ctlValOff = MmsValue_newBoolean(false);
if (!ControlObjectClient_operate(controlLED1, ctlValOff, 0)) goto control_error;
ControlObjectClient_select(controlLED2);
if (!ControlObjectClient_operate(controlLED2, ctlValOff, 0)) goto control_error;
if (!ControlObjectClient_operate(controlLED4, ctlValOff, 0)) goto control_error;
while (1) {
@ -63,10 +66,15 @@ int main(int argc, char** argv) {
Thread_sleep(1000);
if (!ControlObjectClient_operate(controlLED1, ctlValOff, 0)) goto control_error;
ControlObjectClient_select(controlLED2);
if (!ControlObjectClient_operate(controlLED2, ctlValOn, 0)) goto control_error;
Thread_sleep(1000);
ControlObjectClient_select(controlLED2);
if (!ControlObjectClient_operate(controlLED2, ctlValOff, 0)) goto control_error;
if (!ControlObjectClient_operate(controlLED3, ctlValOn, 0)) goto control_error;
Thread_sleep(1000);

View file

@ -66,8 +66,6 @@ performCheckHandler(void* parameter, MmsValue* ctlVal, bool test, bool interlock
if (test)
return CONTROL_TEMPORARILY_UNAVAILABLE;
printf("controllingClient: %p connection: %p\n", controllingClient, connection);
/* If there is already another client that controls the device reject the control attempt */
if (controllingClient == connection)
return CONTROL_ACCEPTED;

View file

@ -6,8 +6,8 @@
#define BEAGLEBONE_LEDS_H_
#define SIMULATED 1
/* set to 1 if you want to run the demo on a PC */
//#define SIMULATED 1
#if 0
#define LED1 "/sys/class/leds/beaglebone::usr0"