Skip to main content



      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 15:10 Go to next message
Eclipse UserFriend
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 15:25 Go to previous messageGo to next message
Eclipse UserFriend
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 15:49 Go to previous messageGo to next message
Eclipse UserFriend
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 86 times)
  • Attachment: publish.JPG
    (Size: 71.42KB, Downloaded 79 times)
Re: Need help Communiction protocols [message #1847427 is a reply to message #1847426] Tue, 26 October 2021 16:13 Go to previous messageGo to next message
Eclipse UserFriend
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 92 times)
  • Attachment: publish.JPG
    (Size: 94.32KB, Downloaded 87 times)
Re: Need help Communiction protocols [message #1847428 is a reply to message #1847427] Tue, 26 October 2021 16:17 Go to previous messageGo to next message
Eclipse UserFriend
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 02:10 Go to previous message
Eclipse UserFriend
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: Mon Jul 07 23:00:41 EDT 2025

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

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

Back to the top