Table of Contents

French VersionEnglish Version

WIO Multicast

WIO Overview


Requirements

Component Version
Rocrail 2.1.2552+
WIOesp 559+
WIOpi 2.1.2552+


Introduction

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.

This diagram shows the difference between the two communication methods:
wio-tcp-vs-umc-2.jpg

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:


Setup Rocrail

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.


Setup WIO

Serial Monitor

To enable Multicast:

*r2rnet=1<enter>

To disable Multicast:

*r2rnet=0<enter>

In both cases the WIO must be rebooted.


WIO Setup

Select the wanted Communication Type:

The WIO must be rebooted.


Maintenance

Activate Options4→R2RNet for Multicast or deactivate it for TCP.

The WIO must be rebooted.