Skip to main content



      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] Thu, 07 December 2017 20:52 Go to next message
Eclipse UserFriend
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 173 times)
Re: Issue with communication between Publisher/Subscriber FBs. [message #1778024 is a reply to message #1778016] Fri, 08 December 2017 04:46 Go to previous messageGo to next message
Eclipse UserFriend
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 05:15 Go to previous messageGo to next message
Eclipse UserFriend
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 14:46 Go to previous messageGo to next message
Eclipse UserFriend
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 17:34 Go to previous messageGo to next message
Eclipse UserFriend
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 17:08 Go to previous message
Eclipse UserFriend
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: Sun Jul 06 17:08:12 EDT 2025

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

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

Back to the top