SHIP:Node:linkset

From Serious Documentation
Revision as of 14:55, 25 November 2012 by Admin (talk | contribs) (Examples)
Jump to: navigation, search

Within a given link, there may be one or more linkset nodes. Each linkset encompasses all the traffic between two endpoints in a link.

Parent Nodes

The following nodes are permitted to hold this node:

Child Nodes

The following nodes are permitted to exist within this node:

Properties

Property Name Description
name A unique linkset name within the link
id Some protocols require the endpoint to have an ID number assigned
channel A port name (e.g. UART0)

Examples

Example link with two linksets


For example, the following link binds a MODBUS_SLAVE_ASCII protocol to UART0 on a SIM110:

Property Value
name myModbusSlave
protocol MODBUS_SLAVE_ASCII
channel platform.UART0


Adding two linksets to our prior example might look like this:

Example link with two linksets

In this example, our GUI is acting as a Modbus Slave attached to UART0, potentially one of many on the communications channel. This physical channel could be, for instance, a multi-drop RS485 network with many slaves of which our SIM is only one. Our GUI, because it has the two linksets at ID #1 and #13 created, will respond as if it were two of those slaves on the network.