• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
communication cycle as EtherCAT slave
#2
Well Tad,

I have never tested it myself how fast the communication over SPI and the netX serial port memory really is but a customer did.

He did the tests with our netHAT module, which is using the same netX51/52 chip type as netPI but is used on top of standard Raspberry PI and also communicates over SPI.

This is the forum where he posted his results: https://forum.hilscher.com/thread-603.html.

He expected latencies < 1msec, but this did not become true in this tests. He was becoming much more jitter. He did a lot of tests ... and finally he used a simple python script to measure the raw Linux SPI function by echoing the SPI-MISO signal to SPI-MOSI signal via a hardware bridge. This excludes the netX chip and its delay since he reads back what is writing by hardware. 

His result was


Quote:This code measure the time of writing and reading 32 bytes through the spi.
And I obtain results between 640us and 1.3ms


So just the raw Linux SPI functions he is using like spi.xfer and spi.readbytes function alone causing such a jitter. And now imagine that for a communication with netX chip (no HW mirroring any more) further jitter is added since netX has to interpret the written SPI command in its processor ... and put the SPI response command back. This is causing additional jitter. So finally as he said in his very first statement he lands in jitter values of 4-5msec.

Thx
Armin
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply


Messages In This Thread
communication cycle as EtherCAT slave - by tad - April-15th-2021, 12:23 PM
RE: communication cycle as EtherCAT slave - by Armin@netPI - April-15th-2021, 12:53 PM
RE: communication cycle as EtherCAT slave - by tad - April-20th-2021, 11:14 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  REST API server data communication MGharat 2 2,544 July-21st-2021, 07:01 AM
Last Post: MGharat
  Communication between PLC and Netpi Dipro 4 3,783 October-3rd-2020, 10:07 AM
Last Post: Dipro
  NodeRed and EtherCAT Schranz 3 6,250 September-23rd-2020, 08:01 AM
Last Post: Armin@netPI
  Ethercat master mapping SteP 1 2,376 March-2nd-2020, 12:42 PM
Last Post: Armin@netPI
  EtherCAT Master: any options? maiorfi 45 22,256 May-30th-2019, 07:55 PM
Last Post: Armin@netPI
  NetPi as Profinet slave with other slaves present Reimar 4 3,640 July-24th-2018, 02:52 PM
Last Post: Armin@netPI
  EtherCAT Slave OP mode (netPI RTE3) mauroriva 1 2,585 June-20th-2018, 08:38 AM
Last Post: Armin@netPI
  OPC UA communication - Cloud Stefano.sotelo 1 2,646 April-26th-2018, 10:21 AM
Last Post: Armin@netPI
  What is needed to be a PROFINET slave (RTE3) jkohlmann 1 2,766 March-7th-2018, 06:31 AM
Last Post: Armin@netPI
  Inter-container communication with help of DNS Armin@netPI 0 2,191 December-4th-2017, 07:02 PM
Last Post: Armin@netPI

Forum Jump:


Users browsing this thread: 1 Guest(s)