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
Not able to connect to OPC UA server from android client
September 11, 2019
10:16, EET
Avatar
Galla
Member
Members
Forum Posts: 4
Member Since:
September 11, 2019
sp_UserOfflineSmall Offline

Hi ..

I am trying to communicate with OPC UA sever though android client.
I created server and one client application with the help of following link : https://github.com/lucazanrosso/OPCUAClient/blob/master/OPCUAClient%20guide.pdf

Server is running in the windows(windows 10) desktop.

First i ran my application android emulator, that time i could able to connect the server and read /write the data.
Next same application i ran in my android device and tested that time i am getting connection exception.
com.prosysopc.ua.client.ConnectException: Failed to retrieve endpoints. The server is not available: opc.tcp://BLSL00926.ties.com:53530/opcserver ServiceResult=Bad_ConnectionRejected (0x80AC0000) “Could not establish a network connection to remote server.”

Both sever and client are connected to same network (same router).

Can any one provide your inputs…

Thanks in advance!!

September 11, 2019
13:08, EET
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 417
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Hi,

The error message means the connection cannot be made, i.e. nothing replies on the other side. You will need to check that network works between the 2, i.e. firewalls, port forwarding on the router etc.

Based on the exception message I would assume you are using our Java SDK, but the linked Github repo uses the raw stack level. So I sort of would need more explanation how that has anything to do with this.

September 12, 2019
10:18, EET
Avatar
Galla
Member
Members
Forum Posts: 4
Member Since:
September 11, 2019
sp_UserOfflineSmall Offline

Hi ,
Thanks for the reply!!
now i am getting different exception i just changed tcp url DSN name with server device IP address once it’s connected and worked. next agin i tried in different system. now i am getting the following error.

org.opcfoundation.ua.common.ServiceResultException: Bad_ConnectionRejected (code=0x80AC0000, description=”2158755840, socket failed: EACCES (Permission denied)”)
can you please help me on this .

September 12, 2019
11:59, EET
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 417
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Please note that this is not a general programming help forum, i.e. we do not generally cover basic java or android programming.
As this is not related to this application but for the SDK (sort of, but generally this is basic android programming question), better place would be in https://forum.prosysopc.com/forum/opc-ua-java-sdk/.

The error has something to do with android permissions, see e.g. https://stackoverflow.com/questions/11273197/error-message-java-net-socketexception-socket-failed-eacces-permission-denie or https://stackoverflow.com/questions/27687808/android-java-net-socketexceptionsocket-failed-eacces-permission-denied

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 81

Currently Online: dpto.informatica
14 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 91

pramanj: 86

ibrahim: 68

kapsl: 57

gjevremovic: 49

TimK: 41

Fransua33: 39

fred: 36

Rainer Versteeg: 32

peterrob45: 25

Member Stats:

Guest Posters: 0

Members: 894

Moderators: 12

Admins: 1

Forum Stats:

Groups: 3

Forums: 14

Topics: 897

Posts: 3779

Newest Members:

dpto.informatica, nolazky8119, peter.jakubik, amaralesbeltateresa@yahoo.com, amaralesbeltateresa@gmail.com, esbeltateresaamaral@yahoo.com.br, doanphan111, Jeremy Morgan, stefan.bck, ypidig

Moderators: Jouni Aro: 833, Otso Palonen: 32, Tuomas Hiltunen: 5, janimakela: 0, Pyry: 1, Terho: 0, Petri: 0, Bjarne Boström: 417, Heikki Tahvanainen: 402, Jukka Asikainen: 1, Teppo Uimonen: 16, Markus Johansson: 1

Administrators: admin: 0