Skip to main content



      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 03:28 Go to next message
Eclipse UserFriend
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 03:31 Go to previous messageGo to next message
Eclipse UserFriend
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 03:36 Go to previous messageGo to next message
Eclipse UserFriend
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 03:36 Go to previous messageGo to next message
Eclipse UserFriend
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 03:53 Go to previous messageGo to next message
Eclipse UserFriend
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 07:12 Go to previous messageGo to next message
Eclipse UserFriend
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 02:12 Go to previous messageGo to next message
Eclipse UserFriend
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 02:13 Go to previous message
Eclipse UserFriend
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: Sat Jul 05 11:21:38 EDT 2025

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

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

Back to the top