Welcome, Guest
Username: Password: Remember me

TOPIC: Using project for iOS and Android

Using project for iOS and Android 7 years 2 weeks ago #220

  • Schaapie333
  • Schaapie333's Avatar
I'm using OPCUA to a Siemens OPCUA S7 server.
Reading is working well to a Android device and iPhone
Writing is working well from the Android device but not from the iPhone. Possibly a datatype problem?
The connection is working well.
I have send a Wireshark capture as attachment.

In this capture:
.199 = OPCUA Server
.200 = iPhone
.201 = Android device

First I have send 2 commands from the Android Device.
After that I have send 2 commands from the iPhone.

it is striking that the message traffic to the iPhone is much higher than to the Android device.

Best regards,
Reinier
Attachments:
The administrator has disabled public write access.

Using project for iOS and Android 7 years 2 weeks ago #221

  • fatkhrus
  • fatkhrus's Avatar
  • Offline
  • Administrator
  • Posts: 826
  • Thank you received: 123
  • Karma: -107
It will be also very helpful if you send us your project .tsp. It seems that you use for one tag different Input and Output PV tags. If yes try uncheck "Output differs from Input" and try to use the same PV tag for Input and Output and try to write using iPhone. Do you still have the problem in writing?
Yes message traffic for the iPhone is higher. We use the different libraries for iPhone and Android. The library for iOS doesn't support Subscription at this moment and we use Read command for getting values.

Best regards,
Ruslan
The administrator has disabled public write access.

Using project for iOS and Android 7 years 2 weeks ago #222

  • Schaapie333
  • Schaapie333's Avatar
I'm still having the problem with writing from the iPhone. Attached are the project files (tsp2 and tsp2db).
Attachments:
The administrator has disabled public write access.

Using project for iOS and Android 7 years 2 weeks ago #223

  • fatkhrus
  • fatkhrus's Avatar
  • Offline
  • Administrator
  • Posts: 826
  • Thank you received: 123
  • Karma: -107
Is it possible to send new Wireshark file? In the old file I can't see where Commando tag with NodeId = ns=3;s=TestApp.db2.0,b is read. Maybe in the new project where you uncheck "Output differs from Input" checkbox I can see reading of this Tag. It seems that type of NodeId is defined incorrectly. In some reasons Byte type it defined like Bool. Where can I download the server you use? Is it free?

Best regards,
Ruslan
The administrator has disabled public write access.

Using project for iOS and Android 7 years 2 weeks ago #224

  • Schaapie333
  • Schaapie333's Avatar
I'm using the Simatic Net OPC UA Server (Version 13). It's not free and as far as I know not downloadable.
It really looks like a datatype problem.
I attached two picture. One with command (4) send from the Android device and one from the iPhone.
I changed the datatype and OPCUA item to Int32.
Another strange thing is that all the buttons from the iPhone gives the same value.
I also send the last version from my testprojects.
Attachments:
The administrator has disabled public write access.

Using project for iOS and Android 7 years 2 weeks ago #225

  • fatkhrus
  • fatkhrus's Avatar
  • Offline
  • Administrator
  • Posts: 826
  • Thank you received: 123
  • Karma: -107
Hello,

I didn't find Wireshark file in your last archive? To understand what happening it will be more helpful. As I understand now the value is changed after clicking button on iPhone, but it's changed incorrectly. It will be very if you send us Wireshark file.

Best regards,
Ruslan
The administrator has disabled public write access.
Go to top