Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
embedded_systems:ethercat:test_acontis_stack [2018-12-18 11:05] – angelegt mgehrig2 | embedded_systems:ethercat:test_acontis_stack [2024-01-25 11:43] (aktuell) – Urs Graf | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
====== Test Acontis Stack ====== | ====== Test Acontis Stack ====== | ||
- | ===== Run a Test Application | + | ===== Run demo application classB |
+ | {{: | ||
+ | < | ||
+ | cd < | ||
+ | sudo ./ | ||
+ | </ | ||
+ | **Syntax**: | ||
+ | * **-f** Use given ENI file | ||
+ | * **-i8254x** Use LinkLayer "// | ||
+ | * **1** < | ||
+ | * **1** < | ||
+ | * Mode 0 = Interrupt mode | ||
+ | * Mode 1 = Polling mode | ||
+ | * **-perf** enables performance measurements (Enable max. and average time measurement in μs for all EtherCAT jobs) | ||
- | ===== Measure Stack Performance ===== | + | More detailed explanation {{: |
+ | This demo will initialize the EtherCAT master. | ||
+ | To stop the demo press '' | ||
+ | The demo will output some performance benchmark. | ||
+ | |||
+ | In the following example the maximal "Cycle Time" is 1005.2usec. | ||
+ | This means, the max jitter is 5.2usec (very good) | ||
+ | |||
+ | < | ||
+ | Full command line: -f " | ||
+ | |||
+ | 000002 : Run demo now with cycle time 1000 usec | ||
+ | 000002 : Using AuxClock | ||
+ | 000002 : Calibrate tsc measurement... done: 3392 MHz===== Software ===== | ||
+ | 003003 : ========================== | ||
+ | 003003 : Initialize EtherCAT Master | ||
+ | 003003 : ========================== | ||
+ | 003003 : EC-Master V2.9.1.06 (Protected) for Linux_x64 Copyright acontis technologies GmbH @ 2016 | ||
+ | 003003 : OsGetLinkLayerRegFunc: | ||
+ | 003004 : PCI: device 00:19.0 found | ||
+ | 007178 : Unlicensed version, stop sending ethernet frames after 60 minutes! | ||
+ | 007178 : EtherCAT network adapter MAC: 90-B1-1C-8C-C5-C1 | ||
+ | |||
+ | 007178 : ===================== | ||
+ | 007178 : Start EtherCAT Master | ||
+ | 007178 : ===================== | ||
+ | 007218 : Bus scan successful - 2 slaves found===== Software ===== | ||
+ | 007223 : Master state changed from < | ||
+ | 007257 : Master state changed from < | ||
+ | 011985 : DCM in sync Cur=" -10370", | ||
+ | 012038 : Cyclic command WKC error on LRW - Address: 0x10000000 - WKC act/set=2/6 | ||
+ | 012038 : Master state changed from < | ||
+ | 012080 : Master state changed from < | ||
+ | 012080 : | ||
+ | 012080 : Job times during startup < | ||
+ | 012080 : ================================================================ | ||
+ | 012080 : PerfMsmt ' | ||
+ | 012080 : PerfMsmt ' | ||
+ | 012080 : PerfMsmt ' | ||
+ | 012080 : PerfMsmt ' | ||
+ | 012080 : PerfMsmt 'Cycle Time ' (avg/max) [usec]: | ||
+ | 012080 : PerfMsmt ' | ||
+ | 012080 : | ||
+ | ^C034306 : 1 identical messages skipped | ||
+ | 034306 : Job times before shutdown | ||
+ | 034306 : ================================================================ | ||
+ | 034306 : PerfMsmt ' | ||
+ | 034306 : PerfMsmt ' | ||
+ | 034306 : PerfMsmt ' | ||
+ | 034306 : PerfMsmt ' | ||
+ | 034306 : PerfMsmt 'Cycle Time ' (avg/max) [usec]: | ||
+ | 034306 : PerfMsmt ' | ||
+ | 034306 : ======================== | ||
+ | 034306 : Shutdown EtherCAT Master | ||
+ | 034306 : ======================== | ||
+ | 034318 : Master state changed from <OP> to < | ||
+ | 035384 : EcMasterDemo stop.===== Software ===== | ||
+ | </ | ||
+ | |||
+ | If the output looks similar to the example above, then the demo runs successfully. | ||
+ | |||
+ | ==== Possible problems ==== | ||
+ | See troubleshooting process [[embedded_systems: | ||
+ | |||
+ | ===== Run demo application classA ===== | ||
+ | Before you run this demo make sure, you can run the classB demo successfully. | ||
+ | |||
+ | < | ||
+ | cd < | ||
+ | sudo ./ | ||
+ | </ | ||
+ | |||
+ | The demo will output the maximal cycle time every second. | ||
+ | You can terminate the demo with '' | ||
+ | |||
+ | |||
+ | ==== Possible problems ==== | ||
+ | See troubleshooting process [[embedded_systems: |