Willy Lambert | 23 Apr 2012 16:09
Picon

Using rt_dev_send from user space

Hi,

The short story is that I tried to call rt_dev_send on a CAN RTDM
driver, and it fails with an EPERM (Operation not permited) return
code. It's as if I was using rtcansend without the "RT_TASK
rt_task_desc;".
Is it an intended behavior ?
Do I have a way to configure this to be accessible from user space ?
Do I have to call rt_task_shadow ?

The long story is that I have a fully operationnal robot communicating
over CAN with CanFestival with gluninux timers in the Orocos framework
(only compiled for gnulinux). As it is showing CAN loop delays
depending on CPU load, I am trying to switch CanFestival to xenomai in
order to have a primary mode CAN SYNC timer, keeping my Framework
Orocos out of xenomai (cause it is not stable in my version under
xenomai). The problem is (I think) that none of my tasks are in
xenomai primary mode, exept the CAN SYNC timer. As I would like to
avoid using xenomai much before this summer, I'm looking for a simple
way to send messages to rtcan driver from user space.
Willy Lambert | 25 Apr 2012 11:57
Picon

Re: Using rt_dev_send from user space

2012/4/23 Willy Lambert <lambert.willy <at> gmail.com>:
> Hi,
>
> The short story is that I tried to call rt_dev_send on a CAN RTDM
> driver, and it fails with an EPERM (Operation not permited) return
> code. It's as if I was using rtcansend without the "RT_TASK
> rt_task_desc;".
> Is it an intended behavior ?
> Do I have a way to configure this to be accessible from user space ?
> Do I have to call rt_task_shadow ?
>
> The long story is that I have a fully operationnal robot communicating
> over CAN with CanFestival with gluninux timers in the Orocos framework
> (only compiled for gnulinux). As it is showing CAN loop delays
> depending on CPU load, I am trying to switch CanFestival to xenomai in
> order to have a primary mode CAN SYNC timer, keeping my Framework
> Orocos out of xenomai (cause it is not stable in my version under
> xenomai). The problem is (I think) that none of my tasks are in
> xenomai primary mode, exept the CAN SYNC timer. As I would like to
> avoid using xenomai much before this summer, I'm looking for a simple
> way to send messages to rtcan driver from user space.

Sorry to bump this, but as it is a quite CAN related question should I
repost it on the socket can ML ? (related to some answers to an other
recent thread)

Gmane