Re: [RFP] iio: Support of gesture sensor as a standard IIO sensor

From: Pandruvada, Srinivas
Date: Sat Jan 27 2018 - 17:55:40 EST


On Sat, 2018-01-27 at 23:09 +0100, Pavel Machek wrote:
> On Sat 2018-01-20 20:31:23, Pandruvada, Srinivas wrote:
> >
> > On Sat, 2018-01-20 at 15:19 +0000, Jonathan Cameron wrote:
> > >
> > > On Thu, 18 Jan 2018 23:40:26 +0100
> > > Pavel Machek <pavel@xxxxxx> wrote:
> > >
> > > >
> > > >
> > > > Hi!
> > > >
> > > > >
> > > > >
> > > > > From an IIO sensor point of view A Gesture sensor:
> > > > > Outputs
> > > > > A pre defined activity type
> > > > > WAKE
> > > > > TILT
> > > > > GLANCE
> > > > > PICK_UP
> > > > > Â&
> > > > > Âmore
> > > > >
> > > > > A user defined activity type as "string"ÂÂ
> > > > Pre-defined activities are easy.
> > > >
> > > > But what about user-defined activities? We'd really like common
> > > > interface across different hardware...Â
> > > Nasty to handle indeed.ÂÂÂIt may be the best we can do initially
> > > at least is user_definedN or similar.ÂÂNo way of constraining
> > > users from uploading something really odd that we can't define
> > > an interface for (hopping whilst holding a phone in
> > > their teeth?)
> > That's what I think also. We pre define few USER defined activities
> > Ids.
> Ok, so this is really device for human interaction -- input device.
>
> >
> > >
> > > >
> > > > >
> > > > > Inputs
> > > > > A raw binary cdev interface to download
> > > > > templates/patternsÂÂ
> > > > ....and "raw binary" will not work across different hardware :-
> > > > (.
> > > Sadly there probably isn't much we can do about the format being
> > > custom.
> > > Best bet would ultimately be if there was at least a standard
> > > tool
> > > to generate the files for different devices...
> > >
> > Correct. This will depend on Âthe firmware expected format . I
> > think
> > ultimately it will be standardized.
> Is it fair to say that "expected" format is some kind of bytecode for
> CPU in the gesture sensor?
Not necessarily a byte code to execute on the CPU in the gesture
sensor, but a format the code running on that CPU understands the way
gestures are formatted.
But it can be byte code for some manufacturers, so idea is just pass to
the firmware and let it process it an opaque format.

Thanks,
Srinivas

>
> We have similar problem with smart LED devices...
>
>
> Pavel