linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to address a latency issue in a data acquisition system (IIO based)?
@ 2016-01-12 15:50 Julio Cruz
  2016-01-14  8:29 ` Julio Cruz
  0 siblings, 1 reply; 3+ messages in thread
From: Julio Cruz @ 2016-01-12 15:50 UTC (permalink / raw)
  To: linux-iio

Hi,

I'm running an acquisition system @1KHz sampling frequency (27
bytes/sample) with libiio as interface between the application and the
IIO driver (SPI based). The network and local context are working as
expected.

However, the system have some data loss at SPI level (confirmed by
scope) even if the data is not pushed to the buffer
(iio_push_to_buffers). The scope show that every 1.4 sec (aprox), the
handler is not called. It seem other process is taking priority over
this.

I'm trying to find the process that is taking over the SPI/IRQ handlers.

- My system is running in ext4 (on SD) and maybe this could be the
problem (journal)?
- Implement a RT and review interrupt context as suggested by Xander
(http://marc.info/?l=linux-iio&m=143933412720586&w=2)?
- I would like to implement a DMA buffer as suggested by Lars (two
month ago) but I'm not sure this will help in this case
(http://marc.info/?l=linux-iio&m=144475305426138&w=2), for now.

In any case, any advice to address this problem is welcome.

Thanks

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-01-16 12:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-12 15:50 How to address a latency issue in a data acquisition system (IIO based)? Julio Cruz
2016-01-14  8:29 ` Julio Cruz
2016-01-16 12:25   ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).