Skip to main content

MVB smartCORE module

Description

The "mvb" module reads data from duagon MVB interfaces and produces them in smartCHANNELs. The supported interfaces include

  • the D503 MVB to Ethernet Box (external via UDP)
  • the generic transmission of MVB ports via UDP

Interfaces & protocols used

  • Multifunctional Vehicle Bus (MVB)

JSON configuration

The following section describes the entire JSON configuration of the module and explains the individual parameters.

Example configuration (minimal / UDP)

An MVB example configuration with a UDP interface is shown below:

    {
"module": "MVB",
"factory": "mvb",
"config":{
"udpInterfaces":[
{
"name": "udp0",
"udpDestinationPort":12345,
"mvbPorts":[
{
"address":79,
"size":32,
"cycleTime":256
}
]
}
],
"channels":[
{
"name": "some value",
"mvbPort":79,
"dataType": "uint32",
"bitOffset":32,
"bitLength":32,
"imageType": "unsigned"
}
]
}
}

Example configuration (maximum / UDP)

An MVB example configuration with a UDP interface is shown below:

    {
"module": "MVB",
"factory": "mvb",
"config":{
"namespace":["directory", "subDirectory"],
"channelPrefix": "MVB__",
"rtPriority":80,
"outBufferSize":1024,
"readFreshDataOnly":true,
"produceOnChangeOnly":true,
"udpInterfaces":[
{
"name": "udp0",
"type": "generic",
"udpDestinationPort":12345,
"mvbPorts":[
{
"address":79,
"size":32,
"cycleTime":256
}
]
}
],
"channels":[
{
"name": "Mileage",
"mvbPort":79,
"dataType": "uint32",
"bitOffset":32,
"bitLength":32,
"imageType": "unsigned",
"physicalDimension":"",
"physicalUnit": "km",
"scale":1,
"offset":0
}
]
}
}

Global module parameters

Parameter nameRequiredData typeMeaningful value rangeDefaultDescription
rtPriorityNoINT1 - 8080Priority of the read thread
outBufferSizeNoINT1 -1024Buffer size of the created channels
channelPrefixNoSTRINGChannel prefix (useful if several DBC modules are used and the DBC files have overlapping channel names)
namespaceNoARRAY [ STRING ]Channel prefix in the form of hierarchically linked namespaces
readFreshDataOnlyNoBOOLtrueRead only current data from MVB bus
produceOnChangeOnlyNoBOOLtrueProduction only on data change
udpInterfacesYESJSON ArrayConfiguration of the UDP interfaces (see below)
channelsYESJSON arrayconfiguration of smartCHANNELs (see below)

Configuration UDP interfaces

Parameter NameRequiredData TypeMeaningful Value RangeDefaultDescription
nameYESSTRINGName of the MVB interface
typeYESSTRING"generic"Type of MVB interface
udpDestinationPortYESINT0 - 65535Port for MVB UDP packet reception
mvbPortsYESJSON ArraySpecification of the MVB ports to be received

Configuration MVB Ports

Parameter NameRequiredData TypeMeaningful Value RangeDefaultDescription
addressYESUINT160 - 65535MVB port address
sizeYESUINT81 - 32MVB port size in bytes
cycleTimeYESUINT160 - 65535

Configuration Channels

Parameter nameRequiredData typeMeaningful value rangeDefaultDescription
nameYESSTRINGunique channel namechannel name
dataTypeYESSTRINGvalid channel data type(target) data type (see below)
outBufferSizeNoINT1 -1024Buffer size of the created channel
physicalDimensionNoSTRINGPhysical dimension
physicalUnitNoSTRINGPhysical unit
scaleNoFLOAT> 0.01.0Value scaling
offsetNoFLOAT0.0value offset
mvbPortYESINT0 - 4095MVB Port
bitOffsetYESINT0 -Offset of the value in the MVB port
bitLengthYESINT1 -Length of the value in the MVB port (0 for variable length, e.g. bytearray or string))
imageTypeYESSTRINGvalid source data typesee below

Source data types "imageType"

The following data types can be extracted from the MVB port.

NameDescription
signedsigned integer of the length of "bitLength" BITS
unsignedunsigned integer of the length of "bitLength" BITS, Boolean values can be regarded as "unsigned" of the length of 1 bit
floatfloating point number either single ("bitLength==32") or double precision ("bitLength==64")
bytearraybinary data of length "bitLength"
stringstrings of length "bitLength"
timedate48MVB-specific TIMEDATE48 timestamp
time64MVB-specific TIME64 timestamp
unipolar<<M>>>.<<N>>MVB-specific UNIPOLAR<<M>>.<<N>> data type, where <<M>>> and <<N>>> are integers
bipolar<<M>>>.<<N>>>MVB-specific BIPOLAR<<M>>.<<N>>> data type, where <<M>>> and <<N>>> are integers

Channel data types "dataType"

The following channel data types (target data types) are supported

NameDescription
bytearraybinary data of any given length
stringNUL terminated string of any length encoded as UTF-8
boolBoolean value
doubleFloating point number of double precision of the total length of 64-bit
floatsingle precision floating point number of 32-bit total length
int64signed integer of 64-bit length
int32signed integer of 32-bit length
int16signed integer of 16-bit length
int8signed integer with a length of 8-bit
uint64unsigned integer of 64-bit length
uint32unsigned integer of 32-bit length
uint16unsigned integer of 16-bit length
uint8unsigned integer of length 8-bit

Module information

InformationValue
AuthorsoptiMEAS Measurement and Automation Systems GmbH
since smartCORE0.2
Module typeProducer
DependenciesSupported MVB Adapter