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: 1010
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: 1010
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: 518

Currently Online:
9 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 77

Ibrahim: 76

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

fred: 41

Member Stats:

Guest Posters: 0

Members: 682

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6261

Newest Members:

digitechroshni, LouieWreve, Kickbiche, karrimacvitie5, graciela2073, sagarchau, elviralangwell4, Donnavek, Eddiefauth, DonaldPooma

Moderators: Jouni Aro: 1010, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 983, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 26, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 321, Lusetti: 0, Ari-Pekka Soikkeli: 5

Administrators: admin: 1