Thursday, April 4, 2013

Apr.4 4DIAC Communication

The 4DIAC-IDE downloads the FBs to the device to start the application.
However Java does run will on RPi so downloading from Laptop using Publish/Subscribe.
First  simple test is X+3 TestApplication distributed with 4DIAC via the workspace.

[NEXT: DIO (digital input/output) SIFB for RPi]

X+3 TestApplication 

Distributed with 4DIAC via the workspace
2 Devices: 
PC for VISualisation; 
MICROCONTROLLER to do the CALCulation remotely.
  1. Laptop displays Input / Output in frame via FBDK
  2. Request published to RPi Subscribe
  3. RPI will do the calculation of X+3
  4. Result published to Laptop Subscribe
  5. Laptop displays result

ApplicationTest as-is assumes the same computer is used for both devices.
Want two physically different devices on a LAN: Laptop and RaspberryPi
System Configuration with Devices
[Update: using 224.x.x.x IP address was needed due firewall restrictions, 
regular LAN device IP address will normally work fine.] Broadcast IP address 224.0.1.1: worked for both Publish and Subscribe to RPi.
IP address use must be included in class.  (typo for MICROCONTROLLER corrected 4/5 2:30PM in Vienna)
Test Results with various Publish/Subscribe Broadcast IP addresses




Multicast References: 

No comments:

Post a Comment