Wir-1186M 865Mhz Wireless Module With Robust Full-Mesh Stack
Wir-1186M 865Mhz Wireless Module With Robust Full-Mesh Stack
in
[email protected] Page 1 of 13
wired.co.in robokits.co.in
Table of Contents
Summary ....................................................................................................................................................... 4
Features ......................................................................................................................................................... 5
Pin-outs and Pin description ......................................................................................................................... 5
Specifications................................................................................................................................................. 5
Hardware ................................................................................................................................................... 5
Communication Network .......................................................................................................................... 6
LED Indications .......................................................................................................................................... 6
Warnings ....................................................................................................................................................... 6
WIR-METERING Mesh ................................................................................................................................... 7
Introduction............................................................................................................................................... 7
Concept ..................................................................................................................................................... 7
32-bit UNIQUE HARDWARE ID .................................................................................................................. 7
8-bit NETWORK ID ..................................................................................................................................... 7
Self-Forming and Self-Healing ................................................................................................................... 8
Data Collision, Network Jamming and Data Drop Recovery ..................................................................... 8
128–bit Advanced Encryption Standard (AES) .......................................................................................... 8
Setup ............................................................................................................................................................. 9
Basic Communication (Gateway to Router/Endpoint) .............................................................................. 9
Gateway-To-Point Communication (Gateway to specific Router/Endpoint) ............................................ 9
Configuring the parameters of the modules ............................................................................................. 9
Appendix .....................................................................................................................................................10
Range Testing Results..............................................................................................................................10
Command List and Parameter Settings (version 1.2, Oct 2013) .............................................................11
Air Data Rate .......................................................................................................................................12
UART Baud Rate ..................................................................................................................................12
Carrier Frequency ................................................................................................................................12
Mesh Node Configuration ...................................................................................................................12
RF Transmit Power Level .....................................................................................................................12
Route RSSI Limit ..................................................................................................................................13
Verbose Mode .....................................................................................................................................13
Deep Sleep Mode ................................................................................................................................13
[email protected] Page 2 of 13
wired.co.in robokits.co.in
[email protected] Page 3 of 13
wired.co.in robokits.co.in
Summary
The WIR-1186M module is a low-power wireless communication solution that is ideal for Smart Grid,
home automation, smart lighting, industrial sensor data acquisition and remote control applications.
This module integrates SPIRIT1, an extremely low-power sub-GHz transceiver, an MCU for wireless
network control and hardware interface, a PCB antenna and matching circuitry. The integrated solution
offers an out-of-the-box solution that can quickly be integrated to existing device hardware.
The WIR-1186M modules support a full-mesh communication network topology called WIR-METERING
with features like data-hopping, listen-before-talk with random back-off algorithm, end-to-end
acknowledgement system, node addressing, network addressing, 128-bit AES Encryption and packet
CRC. At the center of the mesh network is a gateway node, usually the node that acts as a gateway to
the internet or central control server or machine. All data from the internet or the control server is
routed through the gateway node to the rest of the network. Data from any of the nodes are routed to
the internet or server via the gateway. The nodes in the mesh network can act purely as endpoints or as
endpoint with data-routing capabilities. The mesh network uses the router nodes to hop the data over
to the endpoints and routers that are not in the wireless range of the gateway node. This mesh network
configuration allows for low-power RF transmission without the limitation of wireless range. It has a
small 24mm x 36mm form-factor for easy integration.
[email protected] Page 4 of 13
wired.co.in robokits.co.in
Features
• RF center frequency of 865MHz to 869MHz (Indian license free band 865MHz – 867MHz)
• Small 24mm x 36mmx3mm form factor. Can fit into almost anything.
• Standard UART interface with hardware flow-control (Clear-to-Send CTS)
• Easy to integrate into current devices that support RS-485, RS-232, RS-422 or TTL serial data
• Integrated helical PCB antenna with optimized matched circuitry for plastic enclosures
• Robust full-mesh network protocol
• Listen-before-talk and random back-off algorithm
• Unique 32bit node address and configurable 8-bit network address via configure mode
• Settable gateway-to-point address for single device communication
• Settable channels, baud-rate, air-data rate and RF transmit power
• 128-bit transparent AES Encryption with encryption configurable key
• The protocol is transparent and may carry, application layers like for instance Wireless M-Bus
(European norm), MODBUS, DLMS/COSEM and KNX RF
Specifications
Hardware
Parameter Units Min Typ Max
Channel Frequency MHz 865 Settable 869
Supply Voltage Volt 4.8V 5V 12V
Current (TX) mA 35 40 45
Current (RX/idle) mA 22 23 24
Air Data Rate kbps 38.4 Settable 100
RF Transmit Power dBm -10 Settable +14
UART baud-rate kbaud 9.6 Settable 115.2
VIH Volt 2
VIL Volt 0.4
VOH Volt 3 3.2 3.4
VOL Volt 0 0.05 0.1
IO impedance Ohm 1000
OTA Range* Meter 1km 2km
[email protected] Page 5 of 13
wired.co.in robokits.co.in
*Note – Range measurement made at max power of +14dBm, line-of-sight, 10m from ground with 20% Packet Error Rate (PER)
Communication Network
Parameter Units Min Typ Max
Route Forming ms 200 - 20000
Route Healing Time ms 20000
Hop Limit - 0 - 100
RSSI Limit dBm -70 - -100
Ack fail retry limit - - - 5
TX Back-off limit - - - 5
Length Network ID byte 1
Length Node ID byte 4
Length Des. ID byte 4
Packet Preamble byte 4
Packet Sync Word byte 4
Packet Length Field byte 4
RF Packet Payload byte 0 16*
Packet CRC byte 2 (16-bit)
Mesh Header byte 13
*This is the RF payload only. The module data packet size can be up to 128 bytes without flow control.
With flow-control correctly implemented by the application processor payload lengths can be infinitely
long.
LED Indications
There are two LEDs for user feedback on each WIR-1186 modules.
• The RED led depicts the status of the RF channel. If the RF channel is busy the RED led will be
activated
• The GREEN led depicts whether the module is performing a packet transmission or reception
process
Warnings
• The maximum allowable voltage on any of the interface pins with respect to GND is 5V
• The maximum input voltage VCC with respect to GND is 10V
• The baud rate setting in configure mode is fixed 9600bps
• To not leave the UART_TX input pin of the module open. The module will send junk data on the
wireless channel. It must be pulled up to VCC if not used.
[email protected] Page 6 of 13
wired.co.in robokits.co.in
WIR-METERING Mesh
Introduction
WIR-METERING mesh software stack is designed as a robust, simple to deploy platform for devices
requiring wireless data transfer and acquisition. The combination of the self-forming and dynamic
routing network features, and an efficient medium range and high quality of the WIR-1186 series sub-
GHz 865MHz-869MHz modules makes a perfect match for metering, lighting and automation systems.
WIR-METERING enabled WIR-1186 modules offer a standard TTL serial interface and simple command
structure for configuring desired network. The WIR-METERING enabled WIR-1186 modules come pre-
configured with a unique hardware address, RF settings and default network parameters for network
forming and routing and thus are ready to deploy out of the box.
Concept
WIR-METERING mesh network requires two kinds of nodes
• A Gateway node which is a gateway to the internet or a central acquisition and control server.
• A router node that and receive data from the gateway and forwards it to other router nodes
creating a multi-hop network or and sends data to the gateway.
• A router node can also be configured as an endpoint. This will disable the routing of data thus
reducing network congestion in the RF channel.
The concept of this mesh network is to extend the range of the network by routing data to nodes that
are not within the RF range of the gateway. The gateway is the center of the mesh with all data to and
from the network going through the gateway. The gateway can broadcast data received by it from a
DCU or control server to all the nodes within the network or can choose to send the data to a specific
node within the network by setting a 32bit destination address that must match the UNIQUE
HARDWARE ID of the node. Data from a node in the network is received wirelessly only at the gateway
node. End-points and routers within the network cannot communicate with each other. An end-point or
router node must be dynamically configured as a gateway to allow it to talk to other endpoints or
routers.
8-bit NETWORK ID
WIR-METERING offers a transparent data connection between the gateway and any node on the same
network as the gateway. The network is identified by a NETWORK ID that can be modified on all nodes
over the configure mode interface. Nodes will communicate with other nodes having a similar
NETWORK ID. This allows multiple networks to co-exist within the same geographical area and to be
able to limit the network’s reach to a subset of defined nodes.
[email protected] Page 7 of 13
wired.co.in robokits.co.in
The ROUTE REFORM packets can also hold payloads. This allows for dynamic route changing and healing
during simultaneous data transfer over the network. Router nodes can be configured as endpoints to
restrict them from routing packets forward and thus limiting the number of routers within a certain
geographical region. Router nodes can optionally be configured with a HOP LIMIT. This restricts the
router from forwarding packets if it is already a certain number (HOP LIMIT) away from the gateway.
This setting allows the user to limit the latency in the system. The default value for this is 5 and the hard
limit is set at 100.
Another optional configuration is limiting the signal strength of the ROUTE_REFORM packets so that
weak requests are not accepted by the router or endpoint. This is very helpful tool to manually
intervene in the route formation process to limit certain nodes to a specific router.
As the ROUTE_REFORM requests are sent every two seconds, a disruption in the network will be
resolved within two seconds. An ongoing data transfer will automatically resume if there is a break in
the network. This is the network’s self-healing capability during router failures or other physical
disruptions.
WIR- METERING modules additionally adopt a full end-to-end acknowledgement system. Data sent from
a gateway to a specific node is acknowledged by the node once it presents the data on its serial output
line. Similarly, the gateway acknowledges all data directed to it from the nodes. Data packets are resent
if acknowledgements are not received within specific time-outs. The numbers of retries are limited.
[email protected] Page 8 of 13
wired.co.in robokits.co.in
Setup
Basic Communication (Gateway to Router/Endpoint)
1. Connect the UART-TX and UART-RX lines of the module to the hardware device, either data
concentrator for gateway or router/endpoints for meter device
2. Connect a stable and regulated power supply to the GND and Vin pins
3. Notice that the on board Green LED will blink every 2 sec. This means that the module is
operating normally.
4. Once the gateway node is configured and powered up it will send out ROUTE FORM packets.
This will cause the RED leds on the modules to blink as the channel is in use.
5. Connect other module in the similar fashion as described in steps 1 to 3. Please note that the
NETWORK ID, if configured, should be identical on all nodes that must form a network
6. Transmit serial data with configured baud-rate to a gateway node. The data will be wirelessly
transferred and then presented at the serial output of all the router/endpoints.
7. Transmit serial data with configured baud-rate to a router/endpoint node. The data will be
wirelessly transferred and then presented at the serial output of the gateway in the same
network.
[email protected] Page 9 of 13
wired.co.in robokits.co.in
Appendix
Range Testing Results
The WIR-1186 module and design have been tested for half duplex communication and reliability in
multiple indoor and outdoor settings. Indoor settings and settings involving construction, concrete and
metal can vary the results considerably. The Figure below describes range data acquired for a 1m, 10m
and 30m height placement for the transmitter and receiver operating at 9600bps and under concrete
road condition.
[email protected] Page 10 of 13
wired.co.in robokits.co.in
Destination ID, Network ID and Hardware ID are 32-bit numbers displayed in hexadecimal
representation. This means that the hexadecimal number is converted to ASCII before printed on a
terminal. Similarly, when a value is entered in an ASCII format it is converted to hexadecimal and stored
as a 32-bit number.
For Example: If Hardware ID is 0x000100AA, when the “S?\r\n” string is sent to the module, at 9600bps
in command mode, it will display 000100AA on a terminal screen. This would be eight bytes sent and in
decimal it would read as below. These are the ASCII values for these characters.
Byte1: 48
Byte2: 48
Byte3: 48
Byte4: 49
Byte5: 48
Byte6: 48
Byte7: 65
Byte8: 65
[email protected] Page 11 of 13
wired.co.in robokits.co.in
While writing the Destination ID to 0x000100BB the string”D=000100BB\r\n” must be sent to the
module in command mode at 9600bps.
Carrier Frequency
Value Stored Setting
0 865MHz
3 865.5MHz
6 866MHz
9 866.5MHz
24 869MHz
[email protected] Page 12 of 13
wired.co.in robokits.co.in
Verbose Mode
Value Stored Setting
0 No Network Mesh Data Display
1 Display Routing Data on Terminal*
*Note-This mode should not be used during data transfer. It is only used to check the route formation
and healing process and to debug any problems with the network
Discovery Start
If a 1 is written using the ‘Y’ command the Gateway will issue a discovery request from all nodes in the
network. The routers and endpoints that received this request will automatically respond by sending
their unique ID’s and hop numbers within the mesh. This data will be printed out on the serial output of
the Gateway. This command is useful to get a list of nodes within and area when the gateway is mobile.
The Router/Endpoints will send their data in the following format. 32bit Unique ID and Hop Number.
Note that each response will be preceded with a newline and carriage return character.
XXXXXXXX:XX
[email protected] Page 13 of 13