BadServiceUnsupported when try to connect any Server

Questions regarding the use of the UaExpert.

Moderator: uaexpert

Post Reply
rass92
Jr. Member
Jr. Member
Posts: 1
Joined: 20 Nov 2020, 08:14

BadServiceUnsupported when try to connect any Server

Post by rass92 »

Hello Community,

I am making a simple OPCUA Server and I am having problems to connect with the UAExpert Client. I am facing with all the examples from the open6241 examples, but I am trying the simple server and still happens

When I try to connect this is the error that I am facing "... failed (BadServiceUnsupported)..."

This is the code of the simple Server.

#include <open62541/plugin/log_stdout.h>
#include <open62541/server.h>
#include <open62541/server_config_default.h>

#include <signal.h>
#include <stdlib.h>

static volatile UA_Boolean running = true;
static void stopHandler(int sig) {
UA_LOG_INFO(UA_Log_Stdout, UA_LOGCATEGORY_USERLAND, "received ctrl-c");
running = false;
}

int main(void) {
signal(SIGINT, stopHandler);
signal(SIGTERM, stopHandler);

UA_Server *server = UA_Server_new();
UA_ServerConfig_setDefault(UA_Server_getConfig(server));

UA_StatusCode retval = UA_Server_run(server, &running);

UA_Server_delete(server);
return retval == UA_STATUSCODE_GOOD ? EXIT_SUCCESS : EXIT_FAILURE;

}

examples that I have tried

Simple server from open62541
tutorial_pubsub_publish
tutorial_server_firststeps

I am using Linux Mint

.$ cat /etc/os-release
NAME="Linux Mint"
VERSION="19.3 (Tricia)"
ID=linuxmint
ID_LIKE=ubuntu
PRETTY_NAME="Linux Mint 19.3"
VERSION_ID="19.3"
HOME_URL="https://www.linuxmint.com/"
SUPPORT_URL="https://forums.linuxmint.com/"
BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/"
PRIVACY_POLICY_URL="https://www.linuxmint.com/"
VERSION_CODENAME=tricia
UBUNTU_CODENAME=bionic

Used CMake options:

I have try with many examples compile with the following cmake flags
- UA_BUILD_EXAMPLES
- UA_ENABLE_PUBSUB
- UA_ENABLE_PUBSUB_ETH_UADP
- UA_ENABLE_PUBSUB_INFORMATIONMODEL
- UA_ENABLE_PUBSUB_INFORMATIONMODEL_METHODS
- UA_NAMESPACE_ZERO FULL



If you need more details or image you can go to this github post

https://github.com/open62541/open62541/issues/4021

User avatar
Support Team
Hero Member
Hero Member
Posts: 2607
Joined: 18 Mar 2011, 15:09

Re: BadServiceUnsupported when try to connect any Server

Post by Support Team »

Hello

why do you think that the error is in the UaExpert ? when you connect to the open62541 server getting "BadServiceNotSupported" ?

You probably know that the service API is implemented on the server side so it is obviously NOT a UaExpert issue.

It is more than obvious that this open source server implementation is buggy (and at least missing the service that is required). Therefore the best suggestion I can give you is: use commercial SDK for you server development, you may want to try one of the Unified Automation SDK, where all UA services are implemented and hence supported.

Second alternative is, contact open62541 and ask for support. The good part with open source is, that you can repair it yourself, good luck!
Please understand that we here at Unified Automation will not help repair nor support any opens source code.
Best regards
Unified Automation Support Team

Post Reply