User Tools

Site Tools


wio:wiohub-en

WIOhub

WIO Overview

Work In Progress


Introduction

The WIOhub scans WIO's, or compatibles, connected to the USB and will communicate with those WIO's serial instead of over WiFi.
The WIOhub uses the same WIO library as the Rocrail server and can be used on another PC in the same LAN.
WIOhub will try to connect to de Rocrail Server as WIO client, and distribute commands to the USB connected WIO's and scan them for events which will be forwarded to the Rocrail server. (Gateway)

USB can be an alternative if WiFi is not wanted/possible and for none WiFi microcontrollers.


Install

The WIOhub is a program found in the bin directory of the installer ZIP.
It depends on de wio.so/dll/dylib library also found in this bin directory.


Command Line Options

Option Description Remark
-l <path> Path where to find the wio.so/dll/dylib Default is '.'
-id <number> WIO ID Default is 256 and should be greater then 255
-server <hostname/ip> Rocrail server
-console Accept console commands


Console Commands

Command Description
q<enter> Shutdown the WIOhub
5<enter> Query serial devices


Start Example

./wiohub -l . -id 4711 -console

The wio.so/dll/dylib is expected in the startup directory.

Pinout Arduino

Bank 1 Pin Nr. Uno/Nano Mega
IO1 2 D2 D2
IO2 3 D3 D3
IO3 4 D4 D4
IO4 5 D5 D5
IO5 6 D6 D6
IO6 7 D7 D7
IO7 8 D8 D8
IO8 9 D9 D9
Bank 2 Pin Nr. Uno/Nano Mega
IO9 10 D10 D10
IO10 11 D11 D11
IO11 12 D12 D12
IO12 14 A0 D14
IO13 15 A1 D15
IO14 16 A2 D16
IO15 17 A3 D17
IO16 18 A4 D18
Bank 3 Pin Nr. Uno/Nano Mega
IO17 20 - D20
IO18 21 - D21
IO19 22 - D22
IO20 23 - D23
IO21 24 - D24
IO22 25 - D25
IO23 26 - D26
IO24 27 - D27
Bank 4 Pin Nr. Uno/Nano Mega
IO25 28 - D28
IO26 29 - D29
IO27 30 - D30
IO28 31 - D31
IO29 32 - D32
IO30 33 - D33
IO31 34 - D34
IO32 35 - D35


Pinout Nano

wio/wiohub-en.txt · Last modified: 2022/12/24 10:25 by babbel