All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: "s.rawat" <imsaurabhrawat@gmail.com>,
	Jonathan Cameron <jic23@jic23.retrosnub.co.uk>,
	"linux-iio@vger.kernel.org" <linux-iio@vger.kernel.org>
Subject: Re: Regarding generic_buffer.c Application for Android
Date: Thu, 09 Apr 2015 18:56:51 +0100	[thread overview]
Message-ID: <5526BD63.3080509@kernel.org> (raw)
In-Reply-To: <CALwa49vRGN_VaJ147PVF8Cf+8vnBotWVh7hmxLj=jaAba5QTTw@mail.gmail.com>

On 31/03/15 17:36, s.rawat wrote:
> Hi Jonathan,
> 
> I have tested and used the generic_buffer.c application and found it
> to be good for testing the IIO drivers.I tried it on one of the
> android system and found it to be failing.(Android System has CPU ABI
> armv7-eabi )
> 
> Here is a short summary to investigate why it didnt work on
> Andorid.Can you plz provide your comments:
> 
> I have two system having different kernel version and drivers(IIO) on
> which I can run the
> generic_buffer.c(http://lxr.free-electrons.com/source/drivers/staging/iio/Documentation/generic_buffer.c)
> application .On one system it works(kernel 3.18.15) fine but on the
> other(3.10.20) it does not give the input reports data.I have already
> applied the attached patch to it.
> 
> I have checked that the system on which it is working has the
> following sysfs under /sys/bus/iio/devices/iio:deviceX (where X is
> 1,2,3...)
> 
> buffer
> 
> dev
> 
> in_accel_hysteresis
> 
> in_accel_offset
> 
> in_accel_sampling_frequency
> 
> in_accel_scale
> 
> in_accel_x_raw
> 
> in_accel_y_raw
> 
> in_accel_z_raw
> 
> name
> 
> power
> 
> scan_elements
> 
> subsystem
> 
> trigger
> 
> uevent
> 
>  
> 
> This is for accelerometer, similarly for magnetometer (in_magn_x_raw,_y_raw,z_raw etc) and for Gyrometer ( in_anglvel_x_raw,in_anglvel_y_raw,in_anglvel_z_raw )
> 
>  and the one on which it is not working has the below sysfs under /sys/bus/iio/devices/iio:deviceX (where X is 1,2,3...) :
> 
>  buffer
> 
> dev
> 
> in_accel_hysteresis
> 
> in_accel_offset
> 
> in_accel_sampling_frequency
> 
> in_accel_scale
> 
> name
> 
> power
> 
> scan_elements
> 
> subsystem
> 
> trigger
> 
> uevent
> 
>  
> 
> Is the missing *_x_raw,_y_raw and _z_raw* component main reason for not working of the app?If yes how can I enable it? –
Not as such. However it is certainly curious that you have them missing. 
These provide direct sysfs access to the accelerations. 

We did at one point make it a requirement for the iio_chan_spec to explicitly include the IIO_CHAN_INFO_RAW bit
rather than using the prior separate callbacks for that.  Perhaps it is missing in your driver?

What is the actual driver in question?

> 
> Additionally, the system on which it doesn’t works  is the Android System for which I have cross compiled the generic_buffer.c
> 
>  
> 
> *[1] + stopped (signal) ./generic buffer –c 10 –n accel_3d (*basically waits at some point in the application and then  some illegal termination may be)**
> 
>  
> 
> Plz let me know your  comments on this.I need to run the same app for the Android system.
> 
> 
> Many Thanks in advance !
> 
> Best Rgds,
> 
> Saurabh
> 


       reply	other threads:[~2015-04-09 17:56 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CALwa49vRGN_VaJ147PVF8Cf+8vnBotWVh7hmxLj=jaAba5QTTw@mail.gmail.com>
2015-04-09 17:56 ` Jonathan Cameron [this message]
2015-04-10  4:18   ` Regarding generic_buffer.c Application for Android s.rawat
2015-04-10  6:19     ` Jonathan Cameron
2015-04-13  3:40       ` s.rawat
2015-04-13  6:26         ` Jonathan Cameron
2015-04-13  9:49           ` s.rawat
2015-04-13  9:51           ` s.rawat
2015-04-13 10:05           ` s.rawat
2015-04-20 10:34             ` s.rawat
2015-06-09  4:09               ` s.rawat

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5526BD63.3080509@kernel.org \
    --to=jic23@kernel.org \
    --cc=imsaurabhrawat@gmail.com \
    --cc=jic23@jic23.retrosnub.co.uk \
    --cc=linux-iio@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.