This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM5728: PRU-ICSS with TTS enabled

Part Number: AM5728
Other Parts Discussed in Thread: AM3359

Tool/software: Linux

Hello,

I am trying to enable TTS. And I assume that the interrupt mode is configured correctly with the following messages.

0000000006: EC-Master V3.0.1.18 (Protected) for Linux_armv6-vfp-eabihf Copyright acontis technologies GmbH @ 2018
[ 3014.595778] atemsys: atemsys_of_map_irq_to_virq: device tree node 'fsl,etsec2':2 not found.
[ 3014.604367] atemsys: atemsys_of_map_irq_to_virq: device tree node 'gianfar':2 not found.
[ 3014.612675] atemsys: atemsys_of_map_irq_to_virq: device tree node 'cdns,gem-ethercat':2 not found.
[ 3014.621916] atemsys: intcon: Use IRQ (471) from OF Device Tree
[ 3014.627931] atemsys: intcon: IRQ 471 connected
0000006012: EtherCAT network adapter MAC: 00-00-00-00-00-00
0000006028: Protected version, stop sending ethernet frames after 60 minutes if not licensed!
0000006028: =====================

However, TTS does not help reduce jitters from "us" to "ns". I attached the result of jitters w/ and w/o TTS in the end. Can you please give some comments?

Regards,
Hungwei

the result with TTS enabled:

the result with TTS disabled:

  • Hi Hungwei, Which sniffer are you using? In my case I use Beckhoff ET2000. With ET2000 I have to enable "ESL" protocol in Wireshark in order to see "EtherCAT Switch Link information". About wireshark I recall, once I had some issues with a relative new release w.r.t to ESL, but and old one  (1.10.8 https://wireshark-portable.en.uptodown.com/windows/download/67675) always have work for me =).

    Which filter are you using? In my case it looked something similar to "eth.src == cc:00:05:80:88:1b && ecat.cmd == LRW" could you please attach your wireshark?

    thank you,

    Paula

     

  • Hello Paula,

    Sorry for the late reply because I didn't receive mail notification.

    Regards,

    Hungwei

  • Hello Paula,

    Sorry for the late reply because I didn't receive mail notification.

    >Which sniffer are you using?

    I use Wireshark v2.6.4 at first. I have changed to use Wirfeshark 1.10.8, but the result seems no different...

    >Which filter are you using?

    eth.src == 02:00:00:00:00:00 && ecat.cmd==LWR

    >could you please attach your wireshark?

    Please see the following picture.

    Regards,
    Hungwei

  • Hi Hungwei, could you clary for me your network topology? Below my guess

    AM57x IDK as EC-Master -> Sniffer (maybe ET2000? or a TAP? if so, which one?) -> IO slaves (how many? which topology?)

    1) Please send my your wireshark file. Also the complete UART console printf
    2) What is the behavior if you increase the cycle time (say 10ms), same?

    thank you,
    Paula
  • Hello Paula,

    >Could you clary for me your network topology?

    I connect three devices including:

    1. my Windows PC with Wireshark installed
    2. AM57x IDK
    3. AM3359 ICE

    into a ASUS hub. One of my colleague said I have to use hub instead of switch.

    The following is my topology:

    Windows PC -----> ASUS pure hub <------- AM57X IDK
                          /|\
                           |-----------  AM3359 ICE

    >What is the behavior if you increase the cycle time (say 10ms), same?

    Yes. The jitter seems larger than several tens of us.

    >Please send my your wireshark file. Also the complete UART console printf  

    Please refer to the following files including:

    1. 10ms.pcapng -------------> wireshark file for 10ms cycle time
    2. 2ms.pcapng ---------------> wireshark file for 2ms cycle time
    3. 10ms.log -------------------> the UART console printf

    for paula.zip                          

  • Hungwei, I opened your wiresharks and indeed jitter is big. I don't think a hub should be used. I don't think a hub can do "on the fly" processing main idea of EtherCAT technology, and not sure how fast and with which jitter ASUS hub forward the packets. In summary the jitter could be introduced there. Plus other questions, is this hub half-duplex? which speed uses? etc. I think in order to be sure of EtherCAT network jitter you need to use an industrial sniffer or TAP. I uses Beckhoff ET2000. Some colleagues have recommended me Kunbus 2100 TAP. Kunbus TAP is completely transparent to the packets, so it is even better and can work for different other industrial protocols. Beckhoff is not totally transparent, and add a small "ESL" information to the packets, but for EtherCAT it works great.

    I will mark this E2E as completed, but please let me know if after using an industrial TAP/Sniffer you still see a huge jitter.

    have a wonderful new year,

    Paula

  • Hello Paula,

    >I don't think a hub can do "on the fly" processing main idea of EtherCAT technology, and not sure how fast and with which jitter ASUS hub forward the packets. In summary the jitter could be introduced there.

    I will forward this information to the colleague who lent me the ASUS hub.

    >I think in order to be sure of EtherCAT network jitter you need to use an industrial sniffer or TAP

    I am trying another industrial sniffer : hilscher netANALYZER to measure jitters. I will create another thread and let you know if the jitters is as big as before.

    And happy new year!

    Hungwei