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 » Need help Communiction protocols
Need help Communiction protocols [message #1847423] Tue, 26 October 2021 19:10 Go to next message
Naser Bekhiet is currently offline Naser BekhietFriend
Messages: 8
Registered: October 2021
Junior Member
I was wondering if someone can help me to make two automation devices communicate between each other with Subscribe and Publish.

In the 4diac example with 2 FORTE on the ame local host, I cann't change the port fro 499 to 500, because the executable FORTE runs only on por 499 .

In the documentation it says by clicking on the Delploy respitive on the upper right corner, change port for second device and download but in 4dica IDE v2.0.0 I don't see this icon and hence can not change port for second device.

I changed the 2 FORTE devices by 2 phyisccal Raspberry at 2 differnet IPs on the same Wifi network.

I downloaded the application in both devices and I can go online on them and they are running perfectly the app except the Subscribe and Publish not communicating with the ID in the exmple..

How can I make them communication with UPD or other proctocols?


Thanks
Re: Need help Communiction protocols [message #1847425 is a reply to message #1847423] Tue, 26 October 2021 19:25 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1584
Registered: January 2014
Senior Member

can you tell us what ID parameter values you used for your publish and subscribe blocks? Do you get an output on the pbulish and subscribe block?
Re: Need help Communiction protocols [message #1847426 is a reply to message #1847425] Tue, 26 October 2021 19:49 Go to previous messageGo to next message
Naser Bekhiet is currently offline Naser BekhietFriend
Messages: 8
Registered: October 2021
Junior Member
ID:
"239.0.0.1:61000" for both resources.

Yes Publish give output correctly and status is OK for both but Subscribe output is not changing..

Please see attached screen shot
  • Attachment: subscribe.JPG
    (Size: 62.55KB, Downloaded 59 times)
  • Attachment: publish.JPG
    (Size: 71.42KB, Downloaded 60 times)
Re: Need help Communiction protocols [message #1847427 is a reply to message #1847426] Tue, 26 October 2021 20:13 Go to previous messageGo to next message
Naser Bekhiet is currently offline Naser BekhietFriend
Messages: 8
Registered: October 2021
Junior Member
I found the error, it was my mistake in the Publish interconnection .. it was a miss, sorry..

Now it works very nice, .. please see attached screen shot after correction.


thanks for your help and for the great job ..

Regards
  • Attachment: app.JPG
    (Size: 50.21KB, Downloaded 64 times)
  • Attachment: publish.JPG
    (Size: 94.32KB, Downloaded 60 times)
Re: Need help Communiction protocols [message #1847428 is a reply to message #1847427] Tue, 26 October 2021 20:17 Go to previous messageGo to next message
Naser Bekhiet is currently offline Naser BekhietFriend
Messages: 8
Registered: October 2021
Junior Member
One more question regrding Raspberry, is there any example to read and write the IO for the Raspberry from the 4Diac IDE App?

Thanks
Re: Need help Communiction protocols [message #1847434 is a reply to message #1847428] Wed, 27 October 2021 06:10 Go to previous message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1584
Registered: January 2014
Senior Member

Great that you can make it work. I feared that the cause was your network setup. Which is always hard to debug.

Regarding the IOs for the raspi. Currently this is hidden in the SysFS module. More info can be found here: https://www.eclipse.org/4diac/en_help.php?helppage=html/parameters/parameters.html#sysfs
Previous Topic:Deserialize a json message from an mqtt topic
Next Topic:Ethernet/IP
Goto Forum:
  


Current Time: Wed Apr 24 16:24:28 GMT 2024

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

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

Back to the top