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 » Issue with communication between Publisher/Subscriber FBs.
Issue with communication between Publisher/Subscriber FBs. [message #1778016] Fri, 08 December 2017 01:52 Go to next message
Awais Tanveer is currently offline Awais TanveerFriend
Messages: 21
Registered: April 2016
Junior Member
Hello,

I am trying to run through a simple publisher/subscriber example. I have deployed two instances of FORTE on a single but remote raspberry pi. Publisher and subscriber IDs are the same i.e. a multicast address and a port. Although FBs deployed on both FORTE instances run fine but they do not seem to be communicating. I have check that multicast is enabled on the ethernet interface. I have also checked through tcpdump that no multicast packets get transferred when I trigger REQ. The result of which no data gets transferred between publisher and subscriber. Attached is the configuration of my simple application deployed on separate FORTE instances on the remote raspberry pi.

Am I missing something? Any help would be appreciated.
  • Attachment: pubsub.png
    (Size: 85.35KB, Downloaded 61 times)
Re: Issue with communication between Publisher/Subscriber FBs. [message #1778024 is a reply to message #1778016] Fri, 08 December 2017 09:46 Go to previous messageGo to next message
Ben Schneider is currently offline Ben SchneiderFriend
Messages: 23
Registered: February 2017
Junior Member
Hi,

you could try to configure an explicit route for UDP multicast messages like follows:

route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0


Cheers,
Ben
Re: Issue with communication between Publisher/Subscriber FBs. [message #1778027 is a reply to message #1778024] Fri, 08 December 2017 10:15 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 617
Registered: January 2014
Senior Member
Hi, it also looks that you are not correctly initializing your fbs. Especially the Subscriber has not got any initialization event. Maybe that is the issue. On the Publisher side I don't see where the init event is coming from. But it is in general not a good idea to do it in the same way as the REQ. The better setup is to do initialization separate to the control flow.
Re: Issue with communication between Publisher/Subscriber FBs. [message #1778063 is a reply to message #1778016] Fri, 08 December 2017 19:46 Go to previous messageGo to next message
Martin Melik-Merkumians is currently offline Martin Melik-MerkumiansFriend
Messages: 45
Registered: March 2016
Member
I had a similar issue on raspberry pi, although not with forte, but with multicast communication. Check if you have a default gateway configured, as at least in my case Raspbian was not able to send multicast messages without it.
Re: Issue with communication between Publisher/Subscriber FBs. [message #1778118 is a reply to message #1778063] Sun, 10 December 2017 22:34 Go to previous messageGo to next message
Awais Tanveer is currently offline Awais TanveerFriend
Messages: 21
Registered: April 2016
Junior Member
Thanks for the help. I will get back here after I try the solutions suggested.
Re: Issue with communication between Publisher/Subscriber FBs. [message #1778205 is a reply to message #1778118] Mon, 11 December 2017 22:08 Go to previous message
Awais Tanveer is currently offline Awais TanveerFriend
Messages: 21
Registered: April 2016
Junior Member
I have been able to make my solution work after adding a route in raspberry pi and also initializing pub and sub separately as advised by Alois. Thanks a lot for the help.
Previous Topic:Eclipse Neo Scada
Next Topic:Array deceleration returns BAD_PARAMS
Goto Forum:
  


Current Time: Fri Aug 17 15:20:45 GMT 2018

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

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

Back to the top