Component | Version |
---|---|
Rocrail | 2.1.2552+ |
WIOesp | 559+ |
WIOpi | 2.1.2552+ |
Per default WIO connects to the Rocrail server over TCP, which is a 1:1 connection.
WIO over UDP Multicast can be compared with CAN, in which every connected Node can read all the traffic and is loosely connected to a Rocrail Server.
With multicast communication it would be possible to react in Node X to an event from Node Y.
This can be established with IOScript.
Rocrail can process both communication types parallel, but WIO must be set to TCP or Multicast.
Every command/event/response packet has a NodeID in its header, and WIO Nodes will normally only process the one's addressed to it. NodeID zero is a broadcast which every node will evaluate.
With both communication types the commands and events will be acknowledged if a Rocrail Server is active.
Notes:
Both options:
must be enabled, and needs a Server restart.
The Multicast address MUST be set to 224.0.1.20:8051 which is also the default.
The ID can be left empty, and has no use in case of WIO RASCII.
To enable Multicast:
*r2rnet=1<enter>
To disable Multicast:
*r2rnet=0<enter>
In both cases the WIO must be rebooted.