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 » how to send msg by tcp? help pls(tcp communication)
how to send msg by tcp? help pls [message #1842036] Tue, 08 June 2021 02:50 Go to next message
overmas zhang is currently offline overmas zhangFriend
Messages: 12
Registered: June 2021
Junior Member
I want to use 4diac to connect to server by 4diac and send/recv raw msg.
If I use client_1 FB, the msg send/recv will change to ASN.1 format. But what I need is to send / recv in origin format without change.
Can anyone help to answer this question? thx a lot!
Re: how to send msg by tcp? help pls [message #1842073 is a reply to message #1842036] Tue, 08 June 2021 13:08 Go to previous messageGo to next message
Martin Melik Merkumians is currently offline Martin Melik MerkumiansFriend
Messages: 117
Registered: March 2016
Senior Member
Hi,

you need to configure the correct layer over the ID input. the raw[] layer takes in a string and sends it unchanged. If you want to send via IP you have to enter raw[].ip[<InsertIpAddressAndPort>]
Re: how to send msg by tcp? help pls [message #1842093 is a reply to message #1842073] Wed, 09 June 2021 03:27 Go to previous message
overmas zhang is currently offline overmas zhangFriend
Messages: 12
Registered: June 2021
Junior Member
thx a lot. i test this before, but i use the wrong data type(not STRING, but WSTRING), the question is finished. thank you!
Previous Topic:questions about FBDK
Next Topic:mqtt question, help pls
Goto Forum:
  


Current Time: Sat Apr 27 22:47:06 GMT 2024

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

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

Back to the top