Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 4DIAC - Framework for Distributed Industrial Automation and Control » problems in using client and server(DATA_TYPE_ERROR)
problems in using client and server [message #1779957] Tue, 16 January 2018 08:28 Go to next message
Barry wan is currently offline Barry wanFriend
Messages: 40
Registered: July 2017
Member
hi, I have a problem in using CLIENT and SERVER FBs. Both of them can send msg successfully , however, when I sent msg to them they always appear DATA_TYPE_ERROR as followed picture. The data type of RD_1 is ANY.
So what should the msg received like? or how to solve this problem?
thankyou!
Re: problems in using client and server [message #1779958 is a reply to message #1779957] Tue, 16 January 2018 08:31 Go to previous messageGo to next message
Martin Melik Merkumians is currently offline Martin Melik MerkumiansFriend
Messages: 117
Registered: March 2016
Senior Member
You need to typify ANY outputs, because the FB does not now which type the ANY out will have. The solution is therefore to connect a TYPE2TYPE FB of the desired type at the outputs of the SERVER and CLIENT FBs

Cheers,
Martin
Re: problems in using client and server [message #1779959 is a reply to message #1779958] Tue, 16 January 2018 08:36 Go to previous messageGo to next message
Barry wan is currently offline Barry wanFriend
Messages: 40
Registered: July 2017
Member
Martin,
thank you for your reply in time.
it works now.
Re: problems in using client and server [message #1779960 is a reply to message #1779957] Tue, 16 January 2018 08:36 Go to previous messageGo to next message
Jose Maria Jesus Cabral Lassalle is currently offline Jose Maria Jesus Cabral LassalleFriend
Messages: 199
Registered: February 2016
Senior Member
You need to connect some FB with a defined type (not something that has "any") to your RD_* and SD_* to let the runtime know what type it should use.
In your case, it looks like you are testing the client and server FBs. I would recommend to put another WSTRING2WSTRING FB for each RD_1 (one for the client, and one for the server) and then connect the RD_1 to the IN data input of the corresponding WSTRING2WSTRING. You could also connect the IND to the REQ to see the value also in the WSTRING2WSTRING.
Re: problems in using client and server [message #1779963 is a reply to message #1779960] Tue, 16 January 2018 08:53 Go to previous messageGo to next message
Barry wan is currently offline Barry wanFriend
Messages: 40
Registered: July 2017
Member
Thank you for your help, it is worked both server and client are used in 4diac environment . But when I use the third socket test tools as server, clientFB in 4diac as client, the same Error appears as followed.
client in 4diac send "hello" and the server can recieve, however, the client can not.
Re: problems in using client and server [message #1779989 is a reply to message #1779963] Tue, 16 January 2018 12:12 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1582
Registered: January 2014
Senior Member

The problem is that the packet you are responding does not conform to the Compliance Profile for Feasibility Demonstration's ASN.1 format [1]. Please have a look there on how a packet needs to be structured.

[1] http://www.holobloc.com/doc/ita/index.htm
Re: problems in using client and server [message #1780071 is a reply to message #1779989] Wed, 17 January 2018 07:12 Go to previous messageGo to next message
Barry wan is currently offline Barry wanFriend
Messages: 40
Registered: July 2017
Member
Dear Prof. Alois Zoitl
Thank you for your reply. I will have a look on the packet structure。
Re: problems in using client and server [message #1780072 is a reply to message #1779989] Wed, 17 January 2018 07:13 Go to previous message
Barry wan is currently offline Barry wanFriend
Messages: 40
Registered: July 2017
Member
Dear Prof. Alois Zoitl
Thank you for your reply. I will have a look on the packet structure.
Previous Topic:Measurement of time interval with KOP?
Next Topic:OPCUA_Handler getNodeForPath fail with my custom opcua server
Goto Forum:
  


Current Time: Fri Apr 19 10:59:40 GMT 2024

Powered by FUDForum. Page generated in 0.02331 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top