How to create a custom CommFB? [message #1841275] |
Mon, 10 May 2021 13:57  |
Eclipse User |
|
|
|
Hi,
I want to communicate with an external program via socket.
The external program doesn't understand the encoding that the CommFB uses with default parameters (just addr:port).
I also tried raw[].ip[addr:port], but the status of the CommFB goes immediately Terminated->No socket.
The data I'm trying to send is the first n bytes of a byte array. A message may contain 0x00 value bytes. The encoding I wish to use is just a header of 4 bytes that contains the length of the payload.
I am trying to learn how the Forte network stack is used, and create a custom encoding layer for a CommFB.
I've read the documentation (https://www.eclipse.org/4diac/en_help.php?helppage=html/development/forte_communicationArchitecture.html), but I do not understand the scope in which the layers operate.
I would really appreciate an example or explanation that shows how to create and use the comm layers.
1. Where do I create the layer instances? Are they declared inside the CommFB instance that uses them?
2. If I have several instances of a CommFB, do they share the comm stack? Is there just a single instance of each layer, or does each FB have its own layers?
Thanks in advance for your time.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06922 seconds