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 » tcp comm, forte crashes(sending large string over tcp crashes forte)
tcp comm, forte crashes [message #1849289] Tue, 11 January 2022 13:50 Go to next message
David Pf is currently offline David PfFriend
Messages: 3
Registered: January 2022
Junior Member
Hi,

i try to send a string bigger than 1500 bytes over tcp (usually strings). I use the Server Client FBs and standard encoding/fbdk (tried it also with raw[]). When i send the message with my client, forte on Server side crashes. I'm connecting two raspberryPi4 with a switch.
Is there something i am missing? Is the problem the MTU with TCP? It runs fine with strings smaller than 1500 bytes. I also implemented a commLayer with ZeroMQ, which works with larger strings (with fbdk encoding).

Maybe someone knows this problem or can tell me what i'm doing wrong :-).

Thanks,
David
Re: tcp comm, forte crashes [message #1849291 is a reply to message #1849289] Tue, 11 January 2022 15:32 Go to previous messageGo to next message
David Pf is currently offline David PfFriend
Messages: 3
Registered: January 2022
Junior Member
Additional Info:

I see the message with wireshark. It seems the connection works. The problem must be the Server FB?
I sent 2048 bytes.

Best regards,
David

Re: tcp comm, forte crashes [message #1849296 is a reply to message #1849291] Tue, 11 January 2022 21:33 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1589
Registered: January 2014
Senior Member

unfurtunately yes the problem is on the server side. currently the tcp layer works with a statically allocated buffer. you can configure the buffer size in cmake under the option FORTE_IPLayerRecvBufferSize. The default is 1500. In order to set this option you need to tick the advanced check box in cmake. I hope this helps.

Cheers,
Alois
Re: tcp comm, forte crashes [message #1849307 is a reply to message #1849296] Wed, 12 January 2022 12:16 Go to previous message
David Pf is currently offline David PfFriend
Messages: 3
Registered: January 2022
Junior Member
It works now. Thank you very much for your help.
Previous Topic:Run at Composite Function Block
Next Topic:Literal Validation and VirtualDNS in 2.0.0
Goto Forum:
  


Current Time: Thu May 09 06:27:56 GMT 2024

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

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

Back to the top