Hi Janardhan,

AFAIK all sensors with uORB support can work with apps/testing/sensortest
support.

I prefer to use simple char driver sensors to avoid overhead and make
things simple, maybe Xiang can give your more help about your
multi-application usage.

Also you can take a look how it is done on the PX4 project, since uORB came
from them.

BR,

Alan

On Thu, Jun 13, 2024 at 2:18 PM Janardhan Silwal <
janardhansil...@outlook.com> wrote:

> Hi Alan,
>
> Thanks for the path!
>
> I saw the uorb libraries as well as the sensor drivers for uorb.
>
> I am currently working with a magnetometer (Lis3mdl), i did not find a
> driver, uorb, for the sensor and used another sensor driver gyroscope
> (l3gd20_uorb.c) as a example and edited the driver.
>
> sensor registration and opening are successful, but there have been some
> issues.
>
>
>   1.
> I haven't been able to get the data out when calling the read() function,
> looking at the debugger I can see that the sensor_open() successfully calls
> the driver and the driver retrieves data from the sensor, but somewhere in
> the middle it return -1 error.
>
>
>   1.
> how do I link the sensor driver, and my custom application, to retrieve
> data from a sensor and publish it via uorb for other applications to
> subscribe to and use?
>
> Is there an example of uorb usage with a sensor device that includes
> multiple applications that subscribe and advertises in a set interval?
>
>
> Thank you
>
> Best Regards,
> Janardhan
>
>
> ________________________________
> From: Alan C. Assis <acas...@gmail.com>
> Sent: Wednesday, June 12, 2024 19:22
> To: dev@nuttx.apache.org <dev@nuttx.apache.org>
> Subject: Re: Inter-task communication example / uORB implentation
>
> Hi Janardhan,
>
> uORB is used for example in the NuttX sensors subsystem and also please
> take a look at apps/system/uorb
>
> BR,
>
> Alan
>
> On Wed, Jun 12, 2024 at 10:17 AM Janardhan Silwal <
> janardhansil...@outlook.com> wrote:
>
> > Hi community,
> >
> > I have trying to get a inter-task message exchange, a sub/pub to work on
> > my board.
> >
> > Being specific I would like to get uORB, the one used in PX4 on nuttx. I
> > could find much of usable example of that combing through.
> >
> > I was wondering if any of you have implemented uORB on nuttx or something
> > similar. It would be great help if you share a linknor something that I
> > could refer to and get working on my code.
> >
> > Thank you.
> >
> > Best regards,
> > Janardhan
> >
> >
>

Reply via email to