Port BUSACCESS - FLX-OnlineLogging ๐ยถ
Access to FlexRay in the test case, with recording on the PC
Stimulationยถ
This port supports all features described in Stimulation control.
Properties ๐ยถ
Name |
Available if |
Default value |
Valid values |
Type |
Description |
|---|---|---|---|---|---|
Channel number |
โ1โ |
string |
Selection of channel number if there is more than one controller of same type. |
||
Bus-DB |
string |
||||
Placeholder value for automatic E2E calculation |
int |
Whenever this value is specified for an E2E signal (e.g. CRC), upon transmission ecu.test automatically replaces it with the correct, calculated value. The purpose of this option is to allow transmission of arbitrary fixed values (unequal to the value chosen here). Leaving this option empty completely disables the feature. |
|||
Automatic start/stop |
โTest executionโ |
[โTest executionโ, โConfiguration start/stopโ, โNeverโ] |
string |
This option affects whether the FlexRay controller will be started and stopped automatically. If โNeverโ is chosen, the controller must be started and stopped explicitly using the port Job โSwitchBusStateโ. Caution: all timestamps (e.g. in ASC traces) are relative to the time of the controller start. |
Jobs ๐ยถ
ClearFrameยถ
Erases the receiving buffer of given frame
Parameterization
Parameter
Name |
Available if |
Default value |
Valid values |
Type |
Description |
|---|---|---|---|---|---|
Channel |
โAโ |
[โAโ, โBโ, โ*โ] |
string |
FlexRay Channel (A, B or *) |
|
CycleRepetition |
int |
Cycle repetition |
|||
SlotId |
int |
Frame ID |
|||
StartCycle |
int |
Start cycle |
DeregisterFrameForInboxยถ
Ungeristers a frame that is being streamed to an inbox
Parameterization
Parameter
Name |
Available if |
Default value |
Valid values |
Type |
Description |
|---|---|---|---|---|---|
Channel |
โAโ |
[โAโ, โBโ, โ*โ] |
string |
FlexRay Channel (A, B or *) |
|
CycleRepetition |
int |
Cycle repetition |
|||
Inbox |
object |
Existing inbox |
|||
SlotId |
int |
Frame ID |
|||
StartCycle |
int |
StartCycle (cycle offset) |
GetFirstValueยถ
Reads the first received value of the given signal
Parameterization
Parameter
Name |
Available if |
Default value |
Valid values |
Type |
Description |
|---|---|---|---|---|---|
FrameName |
string |
Frame name |
|||
NodeName |
string |
Name of the electronic control unit |
|||
RawValue |
False |
[False, True] |
bool |
If โTrueโ, the Raw value is returned. |
|
reset |
False |
[False, True] |
bool |
If โTrueโ the first received value will be deleted after it has been read |
|
SignalName |
string |
Signal name |
InitFrameยถ
Initializes the given frame
Parameterization
Parameter
Name |
Available if |
Default value |
Valid values |
Type |
Description |
|---|---|---|---|---|---|
Channel |
โAโ |
[โAโ, โBโ, โ*โ] |
string |
FlexRay Channel (A, B or *) |
|
CycleRepetition |
int |
Cycle repetition |
|||
DataLength |
int |
Length in words |
|||
SlotId |
int |
Frame ID |
|||
StartCycle |
int |
StartCycle (cycle offset) |
ReadFrameยถ
Reads the given frame (use InitFrame before!)
Parameterization
Parameter
Name |
Available if |
Default value |
Valid values |
Type |
Description |
|---|---|---|---|---|---|
Channel |
โAโ |
[โAโ, โBโ, โ*โ] |
string |
FlexRay Channel (A, B or *) |
|
CycleRepetition |
int |
Cycle repetition |
|||
doDelete |
False |
[False, True] |
bool |
Deletes the Frame after reading if โTrueโ |
|
SlotId |
int |
Frame ID |
|||
StartCycle |
int |
StartCycle (cycle offset) |
Return value
Name |
Available if |
Default value |
Valid values |
Type |
Description |
|---|---|---|---|---|---|
result |
ByteStream |
ByteStream |
ReadFrameExยถ
Reads the given frame (use InitFrame before!)
Parameterization
Parameter
Name |
Available if |
Default value |
Valid values |
Type |
Description |
|---|---|---|---|---|---|
Channel |
โAโ |
[โAโ, โBโ, โ*โ] |
string |
FlexRay Channel (A, B or *) |
|
CycleRepetition |
int |
Cycle repetition |
|||
doDelete |
False |
[False, True] |
bool |
Deletes the Frame after reading if โTrueโ |
|
SlotId |
int |
Frame ID |
|||
StartCycle |
int |
StartCycle (cycle offset) |
Return value
Name |
Available if |
Default value |
Valid values |
Type |
Description |
|---|---|---|---|---|---|
result |
object |
FlexRayFrame |
RegisterFrameForInboxยถ
Registers a frame to be streamed to an inbox.
Parameterization
Parameter
Name |
Available if |
Default value |
Valid values |
Type |
Description |
|---|---|---|---|---|---|
Channel |
โAโ |
[โAโ, โBโ, โ*โ] |
string |
FlexRay Channel (A, B or *) |
|
CycleRepetition |
int |
Cycle repetition |
|||
Inbox |
object |
Existing inbox |
|||
saveAsFlxFrame |
False |
[False, True] |
bool |
If True, the frame is saved as a FlexRayFrame object, else as a ByteStream |
|
SlotId |
int |
Frame ID |
|||
StartCycle |
int |
StartCycle (cycle offset) |
ResetFirstValueยถ
Erases the first received value of the given signal
Parameterization
Parameter
Name |
Available if |
Default value |
Valid values |
Type |
Description |
|---|---|---|---|---|---|
FrameName |
string |
Frame name |
|||
NodeName |
string |
Name of the electronic control unit |
|||
SignalName |
string |
Signal name |
SetFlowControlCTSยถ
Activates to always send a Flow Control โContinueToSendโ message in response to a segmented request. Also new values can be assigned to the internal parameters BlockSize, MNPC and SCexp.
Parameterization
Parameter
Name |
Available if |
Default value |
Valid values |
Type |
Description |
|---|---|---|---|---|---|
BlockSize |
int |
Block size in bytes; maximum number of bytes that may be transmitted in the following consecutive frames before the sender has to wait for another flow control frame. - Integer If None the most recent setting from the test configuration, the OpenDiagSession job or the previous SetFlowControlCTS call is kept. |
|||
MNPC |
int |
MNPC specifies how many consecutive frames the receiver can process within one FlexRay cycle. With MNPC set to 0 the sender can utilize the maximum possible band width. - Integer If None the most recent setting from the test configuration, the OpenDiagSession job or the previous SetFlowControlCTS call is kept. |
|||
SCexp |
int |
SC defines the minimum distance in cycles until the sender is allowed to send the next consecutive frame. SC = 2^SCexp - 1 - Integer If None the most recent setting from the test configuration, the OpenDiagSession job or the previous SetFlowControlCTS call is kept. |
|||
SessionId |
object |
Handle of the diagnostic session. This can be either the name of the SUT specified in the TCF, the handle returned by the OpenDiagSession job or None (can only be used if there is one SUT specified). |
SetFlowControlWaitยถ
Activates to always send a Flow Control โWaitโ messages in response to a segmented request. Note: While activated no segmented message can be received. Use the Job SetFlowControlCTS to reset this behaviour.
Parameterization
Parameter
Name |
Available if |
Default value |
Valid values |
Type |
Description |
|---|---|---|---|---|---|
SessionId |
object |
Handle of the diagnostic session. This can be either the name of the SUT specified in the TCF, the handle returned by the OpenDiagSession job or None (can only be used if there is one SUT specified). |
|||
WaitTimeInterval |
0 |
int |
Wait time interval in ms. If set to 0, Flow Control โWaitโ messages are only sent once, to respond to a segmented request. If set to a value greater than 0, Flow Control โWaitโ messages will be sent periodically with the given interval in between. |
SwitchBusStateยถ
Switches the FlexRay controller on or off.
Caution: switching the controller on will reset the ASC timestamps. Recording during the stop and start of the controller may result in an ASC file which violates the monotony of timestamps.
Parameterization
Parameter
Name |
Available if |
Default value |
Valid values |
Type |
Description |
|---|---|---|---|---|---|
State |
โOffโ |
[โOffโ, โOnโ] |
string |
New state of the bus |