Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Android OPC UA Server
January 5, 2017
15:13, EET
Avatar
kapsl
Member
Members
Forum Posts: 57
Member Since:
December 20, 2016
sp_UserOfflineSmall Offline

Hi,
I’m currently trying to get a server running on android. Currently my biggest problem is, that I can’t get the logging running. As explained here https://www.prosysopc.com/blog/developing-opc-ua-for-android/ I included org.slf4j:log4j-over-slf4j:1.7.21 but. I get a SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder” and no log output in the logcat.

lg Manu

January 5, 2017
16:10, EET
Avatar
kapsl
Member
Members
Forum Posts: 57
Member Since:
December 20, 2016
sp_UserOfflineSmall Offline

Ok – I did finally find out: If you additionally add
compile ‘org.slf4j:slf4j-android:1.7.21’
it works.

But now I have the next problem: A error message: org.xml.sax.SAXException: Can’t create default XMLReader; is system property org.xml.sax.driver set? seems like the normal sax parser is not working on android, but without code access I can’t change the parser initialization…

lg

January 5, 2017
16:38, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Yes, this is a known problem. Unfortunately, there is no workaround to this at the moment and the Nodeset.xml models cannot be loaded in Android. So in practice, the OPC UA Server is not available on Android.

What kind of usage do you have for running the server on Android?

January 5, 2017
16:48, EET
Avatar
kapsl
Member
Members
Forum Posts: 57
Member Since:
December 20, 2016
sp_UserOfflineSmall Offline

We are currently thinking about Industry 4.0 components, and there probably every system will have an OPC UA Server. So if the smartphone should be a I4.0 component we need a server on it…

January 5, 2017
18:20, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Yes, that might be necessary. We have investigated this issue in the past, but no simple solution was identified. The Android environment is not a full Java environment and the libraries are often too different to have all functionality included.

Open JDK 9 should come with support for Android (http://openjdk.java.net/projec…..droid.html), so hopefully that will help in future – if we just get the stack and SDK to support Java 9 first 🙂

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online:
64 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Heikki Tahvanainen: 402

hbrackel: 144

rocket science: 88

pramanj: 86

Francesco Zambon: 83

Ibrahim: 78

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

Member Stats:

Guest Posters: 0

Members: 737

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1524

Posts: 6450

Newest Members:

fannielima, kristiewinkle8, rust, christamcdowall, redaahern07571, nigelbdhmp, travistimmons, AnnelCib, dalenegettinger, howardkennerley

Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1026, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0

Administrators: admin: 1