Function Catalog

Release:3.1.0
Date:2015-11-19+01:00
Author:WG DA
Company:MOST Cooperation
Modifications
ChangeReason

FBlock Overview
FBlockIDName
0x03ConnectionMaster

ConnectionMaster (FBlockID = 0x03)

Release:3.1.0
Date:2015-11-19+01:00
Author:unknown
Company:unknown
Modifications
ChangeReason

Function Overview
FktIDNameOccurrence
0x200BuildConnectionMandatory

BuildConnection (0x200)

Occurrence: Mandatory

This method instructs the ConnectionMaster to build a streaming connection between sink and source.

Note: An implementation may include either the Ack OPTypes or the non-Ack OPTypes. They must not be mixed.

Format of Function

Function class: Sequence Method

FBlockFunctionOPTypeParameter
ConnectionMaster (0x03)BuildConnection (0x200)StartResultSourceFBlock, SourceInstID, SourceNr, SinkFBlock, SinkInstID, SinkNr
StartResultAckSenderHandle, SourceFBlock, SourceInstID, SourceNr, SinkFBlock, SinkInstID, SinkNr
ErrorAckSenderHandle, ErrorCode, ErrorInfo
ProcessingAckSenderHandle
Processing
ResultSourceFBlock, SourceInstID, SourceNr, SinkFBlock, SinkInstID, SinkNr
ResultAckSenderHandle, SourceFBlock, SourceInstID, SourceNr, SinkFBlock, SinkInstID, SinkNr
ErrorErrorCode, ErrorInfo

Parameter

SourceFBlock


FBlock ID of the streaming data source.

Basis data typeUnitExp.StepRange of valuesRange description
Unsigned Bytenone011...254

SourceInstID


Instance ID of the streaming data source.

Basis data typeUnitExp.StepRange of valuesRange description
Unsigned Bytenone011...254

SourceNr


Number of the data source within the source FBlock. 0x01 is used for the first source.

Basis data typeUnitExp.StepRange of valuesRange description
Unsigned Bytenone011...255

SinkFBlock


FBlockID of the streaming data sink.

Basis data typeUnitExp.StepRange of valuesRange description
Unsigned Bytenone011...254

SinkInstID


Instance ID of the streaming data sink.

Basis data typeUnitExp.StepRange of valuesRange description
Unsigned Bytenone011...254

SinkNr


Number of the data sink within the sink FBlock. 0x01 is used for the first sink.

Basis data typeUnitExp.StepRange of valuesRange description
Unsigned Bytenone011...255

SenderHandle


Unique identifier of the requesting task within the device.

Basis data typeUnitExp.Step
Unsigned Wordnone01

ErrorCode


(Refer to the MOST Specification, section "Structure of MOST Messages: OPType")

Basis data typeUnitExp.Step
Unsigned Bytenone01

ErrorInfo


Besides the error information provided in the MOST Specification, additional function specific error info values are specified here.

Basis data typeLengthConditionDescription
StreamErrorCode = 0x20Content: CMErrorCode, CMErrorInfo

ErrorInfo.CMErrorCode


Function specific error codes for the ConnectionMaster.

Basis data typeCodeNameDescription
Enum
(1 byte)
0x10NotEnoughBandwidthNot enough bandwidth
Not enough available bandwidth to build streaming connection.
0x11DeviceBusyDevice Busy
Source or sink is busy at the moment and no connection was built or removed.
0x12SourceErrorSource error
A persistent source error.
0x13SinkErrorSink error
A persistent sink error.
0x14SinkInUseSink in use
The sink is already in use and no connection was built.
0x15SourceSinkMismatchSource sink mismatch
The sink does not support the data format that is received from the source.

ErrorInfo.CMErrorInfo


Basis data typeLengthConditionDescription
StreamCMErrorCode = 0x10Content: AvailableBandwidth, RequiredBandwidth
CMErrorCode = 0x11...0x15No info.

CMErrorInfo.AvailableBandwidth


Available bandwidth.

Speed grade Parameter value range
MOST50 1...117
MOST150 0...372

Basis data typeUnitExp.Step
Unsigned WordByte01

CMErrorInfo.RequiredBandwidth


Required bandwidth.

Basis data typeUnitExp.Step
Unsigned WordByte01