PROFINET IO Controller Stack 1.0.0
Modern C++ implementation of a PROFINET IO Controller stack
Loading...
Searching...
No Matches
profinet::CyclicCaptureTests Namespace Reference

Functions

 TEST (CyclicCaptureTests, PhoenixToAumaCaptureHasExpectedCyclicContract)
 
 TEST (CyclicCaptureTests, SetValveOpenContainsOneSecondOpenCommand)
 
 TEST (CyclicCaptureTests, SetValveCloseContainsOneSecondCloseCommand)
 
 TEST (CyclicCaptureTests, CapturesUseExpectedPhoenixAndAumaMacAddresses)
 
 TEST (CyclicCaptureTests, EveryCapturedCyclicRtFrameRoundTrips)
 
 TEST (CyclicCaptureTests, AumaGsdmlMatchesCapturedProcessData)
 
 TEST (CyclicCaptureTests, PhoenixGsdmlMatchesCapturedControllerIdentity)
 
 TEST (CyclicCaptureTests, CommandByteIsAtEthernetByteTwentyFive)
 
 TEST (CyclicCaptureTests, AumaGsdmlResolvesCompletePhoenixAumaSlotSet)
 
 TEST (CyclicCaptureTests, DISABLED_BuildIocrConfigsMatchesPhoenixAumaWireLayout)
 
 TEST (CyclicCaptureTests, DISABLED_WIPRtBuildIocrConfigsMatchesPhoenixAumaWireLayout)
 
 TEST (CyclicCaptureTests, CyclicControllerTransmitsCapturedCloseCommand)
 
 TEST (CyclicCaptureTests, CyclicControllerReceivesCapturedAumaPosition)
 
 TEST (CyclicCaptureTests, DISABLED_BuildInputIocrBlockMatchesPhoenixAumaCapture)
 
 TEST (CyclicCaptureTests, DISABLED_BuildOutputIocrBlockMatchesPhoenixAumaCapture)
 
 TEST (CyclicCaptureTests, BuildExpectedSubmoduleBlocksMatchPhoenixAumaCapture)
 

Function Documentation

◆ TEST() [1/16]

profinet::CyclicCaptureTests::TEST ( CyclicCaptureTests  ,
AumaGsdmlMatchesCapturedProcessData   
)
Test:
Verify the AUMA GSDML identity and process-data sizes used by the captures.

Definition at line 1026 of file test_cyclicCapture.cpp.

◆ TEST() [2/16]

profinet::CyclicCaptureTests::TEST ( CyclicCaptureTests  ,
AumaGsdmlResolvesCompletePhoenixAumaSlotSet   
)
Test:
Verify the AUMA GSDML resolves to the complete nine-submodule configuration used by CONNECT.

Definition at line 1082 of file test_cyclicCapture.cpp.

◆ TEST() [3/16]

profinet::CyclicCaptureTests::TEST ( CyclicCaptureTests  ,
BuildExpectedSubmoduleBlocksMatchPhoenixAumaCapture   
)
Test:
Verify BuildExpectedSubmoduleBlock reproduces the three captured expected-submodule blocks.

Definition at line 1548 of file test_cyclicCapture.cpp.

References profinet::rpc::BlockHeaderView::blockType, profinet::rpc::IOCRSetup::dataHoldFactor, profinet::ExpectedSubmoduleRequest, profinet::PNRPCHeader::Parse(), profinet::PNNRDData::Parse(), profinet::rpc::PeekBlockHeader(), profinet::rpc::IOCRSetup::reductionRatio, profinet::rpc::IOCRSetup::sendClockFactor, profinet::rpc::IOCRSetup::slots, and profinet::rpc::IOCRSetup::watchdogFactor.

+ Here is the call graph for this function:

◆ TEST() [4/16]

profinet::CyclicCaptureTests::TEST ( CyclicCaptureTests  ,
CapturesUseExpectedPhoenixAndAumaMacAddresses   
)
Test:
Verify both open and close captures contain stable Layer-2 addressing.

Definition at line 968 of file test_cyclicCapture.cpp.

◆ TEST() [5/16]

profinet::CyclicCaptureTests::TEST ( CyclicCaptureTests  ,
CommandByteIsAtEthernetByteTwentyFive   
)
Test:
Verify the captured open/close command bytes are exactly the cyclic IO command field.

Definition at line 1065 of file test_cyclicCapture.cpp.

◆ TEST() [6/16]

profinet::CyclicCaptureTests::TEST ( CyclicCaptureTests  ,
CyclicControllerReceivesCapturedAumaPosition   
)
Test:
Verify the real CyclicController RX path decodes the captured AUMA position.

Definition at line 1380 of file test_cyclicCapture.cpp.

References controller, and profinet::kInputFrameId.

◆ TEST() [7/16]

profinet::CyclicCaptureTests::TEST ( CyclicCaptureTests  ,
CyclicControllerTransmitsCapturedCloseCommand   
)
Test:
Verify the real CyclicController TX path produces a captured AUMA close command.

Definition at line 1329 of file test_cyclicCapture.cpp.

References frame, profinet::kOutputFrameId, and profinet::rt::ParseEthernetFrame().

+ Here is the call graph for this function:

◆ TEST() [8/16]

profinet::CyclicCaptureTests::TEST ( CyclicCaptureTests  ,
DISABLED_BuildInputIocrBlockMatchesPhoenixAumaCapture   
)
Test:
Validate BuildIocrBlock against the captured 43-byte input IOCR request.

Definition at line 1435 of file test_cyclicCapture.cpp.

References profinet::rpc::IOCRSetup::dataHoldFactor, profinet::IoCrRequest, profinet::kInputFrameId, profinet::PNRPCHeader::Parse(), profinet::PNNRDData::Parse(), profinet::PNIOCRBlockReqHeader::Parse(), profinet::rpc::IOCRSetup::reductionRatio, profinet::rpc::IOCRSetup::sendClockFactor, profinet::rpc::IOCRSetup::slots, and profinet::rpc::IOCRSetup::watchdogFactor.

+ Here is the call graph for this function:

◆ TEST() [9/16]

profinet::CyclicCaptureTests::TEST ( CyclicCaptureTests  ,
DISABLED_BuildIocrConfigsMatchesPhoenixAumaWireLayout   
)
Test:
Validate BuildIocrConfigs against the 43-byte input and 40-byte output wire layouts.

Definition at line 1119 of file test_cyclicCapture.cpp.

References profinet::rt::BuildIocrConfigs(), profinet::rt::IODataObject::frameOffset, profinet::kInputFrameId, profinet::kOutputFrameId, and profinet::rt::IODataObject::offsetIOCS.

+ Here is the call graph for this function:

◆ TEST() [10/16]

profinet::CyclicCaptureTests::TEST ( CyclicCaptureTests  ,
DISABLED_BuildOutputIocrBlockMatchesPhoenixAumaCapture   
)
Test:
Validate BuildIocrBlock against the captured 40-byte output IOCR request.

Definition at line 1498 of file test_cyclicCapture.cpp.

References profinet::rpc::IOCRSetup::dataHoldFactor, profinet::IoCrRequest, profinet::PNRPCHeader::Parse(), profinet::PNNRDData::Parse(), profinet::PNIOCRBlockReqHeader::Parse(), profinet::rpc::IOCRSetup::reductionRatio, profinet::rpc::IOCRSetup::sendClockFactor, profinet::rpc::IOCRSetup::slots, and profinet::rpc::IOCRSetup::watchdogFactor.

+ Here is the call graph for this function:

◆ TEST() [11/16]

profinet::CyclicCaptureTests::TEST ( CyclicCaptureTests  ,
DISABLED_WIPRtBuildIocrConfigsMatchesPhoenixAumaWireLayout   
)

◆ TEST() [12/16]

profinet::CyclicCaptureTests::TEST ( CyclicCaptureTests  ,
EveryCapturedCyclicRtFrameRoundTrips   
)
Test:
Verify the production RT parser can round-trip every captured cyclic frame.

Definition at line 993 of file test_cyclicCapture.cpp.

◆ TEST() [13/16]

profinet::CyclicCaptureTests::TEST ( CyclicCaptureTests  ,
PhoenixGsdmlMatchesCapturedControllerIdentity   
)
Test:
Verify the Phoenix GSDML identity of the controller used by the captures.

Definition at line 1054 of file test_cyclicCapture.cpp.

◆ TEST() [14/16]

profinet::CyclicCaptureTests::TEST ( CyclicCaptureTests  ,
PhoenixToAumaCaptureHasExpectedCyclicContract   
)
Test:
Verify the baseline Phoenix-to-AUMA cyclic connection capture.

Definition at line 780 of file test_cyclicCapture.cpp.

References frame, profinet::kInputFrameId, and profinet::kOutputFrameId.

◆ TEST() [15/16]

profinet::CyclicCaptureTests::TEST ( CyclicCaptureTests  ,
SetValveCloseContainsOneSecondCloseCommand   
)
Test:
Verify the one-second AUMA closing command sequence from the real capture.

Definition at line 914 of file test_cyclicCapture.cpp.

◆ TEST() [16/16]

profinet::CyclicCaptureTests::TEST ( CyclicCaptureTests  ,
SetValveOpenContainsOneSecondOpenCommand   
)
Test:
Verify the one-second AUMA opening command sequence from the real capture.

Definition at line 839 of file test_cyclicCapture.cpp.

References frame, profinet::kInputFrameId, and profinet::kOutputFrameId.