• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Simulation of Powerlink Devices
#5
(September-8th-2020, 03:14 PM)Armin@netPI Wrote: The communciation interface beetween a netX chip and the Host chip is SPI. Next to the 4 standard SPI signal a 5th signal is needed which is the chip select signal.

For example with netHAT module the pin 24 is used and hardwired to operate as chip select. If you now would operate two netHATs the same both modules would use pin 24 as chip select and hence both modules would get addressed by the Raspberry Pi CPU the same time which causes a conflict. What you would need are multiple netHAT modules that differ in the pinout and would user other free pins for the chip select. So there is no possibility since such modules no not exist. Or you build your own modules ...

The driver indeed has a parameter which SPI interface to use. You specify the Linux "/dev/spidevx.x." in a configuration file like  "/dev/spidev0.1" or "/dev/spidev0.2" or "/dev/spidev0.3" etc. Today the driver just looks a single time to the single configuration file. There is no feature to get multiple driver instances running.
On a basic understanding, we can conect more than one spi device to raspberry pi: Raspberry pi 4 with more spi devices
but the driver cannot handle more than one devices?
With a Nucleo Board and a netShield, it is better possible to use more than one device?
Or could the driver be changed to support more than one device?

(September-8th-2020, 03:14 PM)Armin@netPI Wrote: What exactly do you mean with CrossLink time? Do you mean the time to exchange POWERLINK data located the netX buffers with an application running on Linux? A customer measures the SPI overall performance and came to the result that it costs you 300us to 1.5ms until you have exchange the IO buffers from netX with a Linux application.

Yes, thats the right interpretation. I understand, in worst case, the exchange time could be about 1.5ms or perhaps more? And I think: if the application is a little bit more complex, about copying more data, it could be longer?
There is no garantied maximum (small) time, because the basic linux is not realtime?
With a Nucleo Board and a netShield, it is better possible to realize a fast "gateway" ?

Stefan
  Reply


Messages In This Thread
Simulation of Powerlink Devices - by stefan_luik - September-8th-2020, 01:42 PM
RE: Simulation of Powerlink Devices - by Armin@netPI - September-8th-2020, 02:00 PM
RE: Simulation of Powerlink Devices - by stefan_luik - September-8th-2020, 02:25 PM
RE: Simulation of Powerlink Devices - by Armin@netPI - September-8th-2020, 03:14 PM
RE: Simulation of Powerlink Devices - by stefan_luik - September-8th-2020, 04:17 PM
RE: Simulation of Powerlink Devices - by Armin@netPI - September-8th-2020, 04:46 PM
RE: Simulation of Powerlink Devices - by stefan_luik - September-9th-2020, 08:55 AM
RE: Simulation of Powerlink Devices - by Armin@netPI - September-9th-2020, 09:09 AM
RE: Simulation of Powerlink Devices - by stefan_luik - September-9th-2020, 02:38 PM
RE: Simulation of Powerlink Devices - by Armin@netPI - September-9th-2020, 02:53 PM
RE: Simulation of Powerlink Devices - by stefan_luik - September-9th-2020, 03:41 PM
RE: Simulation of Powerlink Devices - by Armin@netPI - September-9th-2020, 04:00 PM
RE: Simulation of Powerlink Devices - by stefan_luik - September-9th-2020, 04:15 PM
RE: Simulation of Powerlink Devices - by stefan_luik - September-8th-2021, 02:14 PM
RE: Simulation of Powerlink Devices - by Armin@netPI - September-8th-2021, 03:57 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  netPI as simulator for PROFINET "shared devices" reiboh 1 3,208 January-15th-2018, 05:29 PM
Last Post: Armin@netPI

Forum Jump:


Users browsing this thread: 1 Guest(s)