soem master requires super user access..

Hi all,
I am trying to use employ the Soem master component...
I have an up-to-date installation of orocos_toolchain_ros from git, and
32831 version of soem (i found in an old posts that newer versions has
some problems.)
I am able to run the test examples of the driver,in
/soem/soem_core/build/soem_core/src
but with sudo, as the slaveinfo program. Without sudo it gives me

No socket connection on eth0
Excecute as root

the same happen when trying to configure the SoemMaster component:

SoemMaster [U]> configure
No socket connection on eth0
Excecute as root
= false

I suppose there is some conflict in accessing the Ethernet card, how
can I solve it?

Thanks, Gianni.

soem master requires super user access..

> ________________________________________
> Van: orocos-users-bounces [..] ... [orocos-users-bounces [..] ...] namens gianni borghesan [Gianni [dot] Borghesan [..] ...]
> Verzonden: dinsdag 8 februari 2011 17:26
> Aan: orocos-users [..] ...
> Onderwerp: [Orocos-users] soem master requires super user access..
>
> Hi all,
> I am trying to use employ the Soem master component...
> I have an up-to-date installation of orocos_toolchain_ros from git, and
> 32831 version of soem (i found in an old posts that newer versions has
> some problems.)
> I am able to run the test examples of the driver,in
> /soem/soem_core/build/soem_core/src
> but with sudo, as the slaveinfo program. Without sudo it gives me
>
> No socket connection on eth0
> Excecute as root
>
> the same happen when trying to configure the SoemMaster component:
>
> SoemMaster [U]> configure
> No socket connection on eth0
> Excecute as root
> = false
>
> I suppose there is some conflict in accessing the Ethernet card, how
> can I solve it?
>
> Thanks, Gianni.
>

Koen Buys showed me how to do such a thing:

sudo setcap cap_net_raw+ep /location/of/deployer-gnulinux

Tim

soem master requires super user access..

On Wed, 2011-02-09 at 13:24 +0100, gianni borghesan wrote:
> Unlikely, is running...
>

Than I'm out of options.

Unlikely but may happen:

The slave requires a power supply for the stack itself and for the
outputs. Are they both connected? Otherwise the EtherCAT stack
functions, but cannot give power.

Tim

> Il giorno mer, 09/02/2011 alle 13.15 +0100, Tim Clephas ha scritto:
> > On Wed, 2011-02-09 at 12:49 +0100, gianni borghesan wrote:
> > > Thanks for the answer,
> > > The problem here, is that the the output module does not give any sign
> > > when trying to use Services,
> > > Slave_1002.switchOn(2)
> > > Does not make the relative output to change (neither the trough tester
> > > nor leds)...
> > > Thanks Gianni.
> >
> > Again, I had the same issue yesterday. Good timing!
> > The problem is most likely you did configure the SoemMaster but didn't
> > start it.
> >
> > Just type 'start' and then 'Slave_1002.switchOn(2)'.
> >
> > Tim
> >
> > >
> > > Il giorno mer, 09/02/2011 alle 11.52 +0100, Clephas, T.T.G. ha scritto:
> > > > > ______________________________________
> > > > > Van: gianni borghesan [Gianni [dot] Borghesan [..] ...]
> > > > > Verzonden: woensdag 9 februari 2011 11:30
> > > > > Aan: Clephas, T.T.G.
> > > > > Onderwerp: RE: [Orocos-users] soem master requires super user access..
> > > > >
> > > > > Thanks. it works!
> > > > >
> > > > > but other problems comes out, maybe you already faced it...
> > > > > when configureing the master, i get
> > > > > -----------------------------------
> > > > > SoemMaster [U]> configure
> > > > > ec_init on eth0 succeeded.
> > > > > 2 slaves found and configured.
> > > > > Request operational state for all slaves
> > > > > Operational state reached for all slaves.
> > > > > Could not create driver for EK1101: Unknown Driver Name
> > > > > Created driver for EL2124, with address 1002
> > > > > = true
> > > > > -----------------------------------
> > > > >
> > > > > The EK1101 is actually the interface from the ethercat to E-bus
> > > > > the EL2124 is a digital out.
> > > > > if i make ls
> > > > > -----------------------------------
> > > > > SoemMaster [S]> ls
> > > > >
> > > > > Listing TaskContext SoemMaster[S] :
> > > > >
> > > > > Configuration Properties:
> > > > > string ifname = eth0 (interface to which
> > > > > the ethercat device is connected)
> > > > >
> > > > > Provided Interface:
> > > > > Attributes : (none)
> > > > > Operations : activate cleanup configure error getPeriod
> > > > > inFatalError inRunTimeError isActive isConfigured isRunning setPeriod
> > > > > start stop trigger update
> > > > >
> > > > > Data Flow Ports:
> > > > > In(U) unknown_t Slave_1002_bits
> > > > >
> > > > > Services:
> > > > > Slave_1002 ( Services for Beckhoff EL2124 Dig. Output module )
> > > > > Slave_1002_bits ( No description set for this Port. Use .doc() to
> > > > > document it. )
> > > > >
> > > > > Requires Operations : (none)
> > > > > Requests Services : (none)
> > > > >
> > > > > Peers : (none)
> > > > > -----------------------------------
> > > > >
> > > > > so it actually does not recognize the type of the port (that should be )
> > > > > DigitalMsg...
> > > > > any idea on how to solve the problem?
> > > > > Thanks, Gianni.
> > > >
> > > > Coincidentaly I tried to solve this exact problem yesterday. I got it to work for other unknow types (for example geometry_msgs/twist). But never got the Beckhoff messages to work.
> > > > However everything still works on my side. It's just visually less good looking if it says unkown_t.
> > > >
> > > > Tim
> > > >
> > > > PS. I solved it by including <simple name="Import" type="string"><value>$(find rtt_ros_integration_geometry_msgs)/lib/orocos<value><simple> in the xml file. Doing the same thing for the Beckhoff messages didn't work.
> > > >
> > > > > Il giorno mar, 08/02/2011 alle 17.43 +0100, Clephas, T.T.G. ha scritto:
> > > > > > > ________________________________________
> > > > > > > Van: orocos-users-bounces [..] ... [orocos-users-bounces [..] ...] namens gianni borghesan [Gianni [dot] Borghesan [..] ...]
> > > > > > > Verzonden: dinsdag 8 februari 2011 17:26
> > > > > > > Aan: orocos-users [..] ...
> > > > > > > Onderwerp: [Orocos-users] soem master requires super user access..
> > > > > > >
> > > > > > > Hi all,
> > > > > > > I am trying to use employ the Soem master component...
> > > > > > > I have an up-to-date installation of orocos_toolchain_ros from git, and
> > > > > > > 32831 version of soem (i found in an old posts that newer versions has
> > > > > > > some problems.)
> > > > > > > I am able to run the test examples of the driver,in
> > > > > > > /soem/soem_core/build/soem_core/src
> > > > > > > but with sudo, as the slaveinfo program. Without sudo it gives me
> > > > > > >
> > > > > > > No socket connection on eth0
> > > > > > > Excecute as root
> > > > > > >
> > > > > > > the same happen when trying to configure the SoemMaster component:
> > > > > > >
> > > > > > > SoemMaster [U]> configure
> > > > > > > No socket connection on eth0
> > > > > > > Excecute as root
> > > > > > > = false
> > > > > > >
> > > > > > > I suppose there is some conflict in accessing the Ethernet card, how
> > > > > > > can I solve it?
> > > > > > >
> > > > > > > Thanks, Gianni.
> > > > > > >
> > > > > >
> > > > > > Koen Buys showed me how to do such a thing:
> > > > > >
> > > > > > sudo setcap cap_net_raw+ep /location/of/deployer-gnulinux
> > > > > >
> > > > > > Tim
> > > >
> > > >
> > >
> > >
> >
> >
>
>

soem master requires super user access..

On Wed, 2011-02-09 at 14:14 +0100, gianni borghesan wrote:
> MMMMMM
> This is an interesting option.
> At the moment i have only a 24Volt supply (pin 1 =24V and pin 5=0V), the
> other six pins are free...
> I cannot find a doc on how correctly setup these things...
> How i should mount it to get it working?
>
> Thanks a lot!
>

Documentation is here: http://beckhoff.com/EK1101/

You should connect 'Coupler supply' and 'Input for power contacts'

Tim

>
> Il giorno mer, 09/02/2011 alle 13.48 +0100, Tim Clephas ha scritto:
> > On Wed, 2011-02-09 at 13:24 +0100, gianni borghesan wrote:
> > > Unlikely, is running...
> > >
> >
> > Than I'm out of options.
> >
> > Unlikely but may happen:
> >
> > The slave requires a power supply for the stack itself and for the
> > outputs. Are they both connected? Otherwise the EtherCAT stack
> > functions, but cannot give power.
> >
> > Tim
> >
> > > Il giorno mer, 09/02/2011 alle 13.15 +0100, Tim Clephas ha scritto:
> > > > On Wed, 2011-02-09 at 12:49 +0100, gianni borghesan wrote:
> > > > > Thanks for the answer,
> > > > > The problem here, is that the the output module does not give any sign
> > > > > when trying to use Services,
> > > > > Slave_1002.switchOn(2)
> > > > > Does not make the relative output to change (neither the trough tester
> > > > > nor leds)...
> > > > > Thanks Gianni.
> > > >
> > > > Again, I had the same issue yesterday. Good timing!
> > > > The problem is most likely you did configure the SoemMaster but didn't
> > > > start it.
> > > >
> > > > Just type 'start' and then 'Slave_1002.switchOn(2)'.
> > > >
> > > > Tim
> > > >
> > > > >
> > > > > Il giorno mer, 09/02/2011 alle 11.52 +0100, Clephas, T.T.G. ha scritto:
> > > > > > > ______________________________________
> > > > > > > Van: gianni borghesan [Gianni [dot] Borghesan [..] ...]
> > > > > > > Verzonden: woensdag 9 februari 2011 11:30
> > > > > > > Aan: Clephas, T.T.G.
> > > > > > > Onderwerp: RE: [Orocos-users] soem master requires super user access..
> > > > > > >
> > > > > > > Thanks. it works!
> > > > > > >
> > > > > > > but other problems comes out, maybe you already faced it...
> > > > > > > when configureing the master, i get
> > > > > > > -----------------------------------
> > > > > > > SoemMaster [U]> configure
> > > > > > > ec_init on eth0 succeeded.
> > > > > > > 2 slaves found and configured.
> > > > > > > Request operational state for all slaves
> > > > > > > Operational state reached for all slaves.
> > > > > > > Could not create driver for EK1101: Unknown Driver Name
> > > > > > > Created driver for EL2124, with address 1002
> > > > > > > = true
> > > > > > > -----------------------------------
> > > > > > >
> > > > > > > The EK1101 is actually the interface from the ethercat to E-bus
> > > > > > > the EL2124 is a digital out.
> > > > > > > if i make ls
> > > > > > > -----------------------------------
> > > > > > > SoemMaster [S]> ls
> > > > > > >
> > > > > > > Listing TaskContext SoemMaster[S] :
> > > > > > >
> > > > > > > Configuration Properties:
> > > > > > > string ifname = eth0 (interface to which
> > > > > > > the ethercat device is connected)
> > > > > > >
> > > > > > > Provided Interface:
> > > > > > > Attributes : (none)
> > > > > > > Operations : activate cleanup configure error getPeriod
> > > > > > > inFatalError inRunTimeError isActive isConfigured isRunning setPeriod
> > > > > > > start stop trigger update
> > > > > > >
> > > > > > > Data Flow Ports:
> > > > > > > In(U) unknown_t Slave_1002_bits
> > > > > > >
> > > > > > > Services:
> > > > > > > Slave_1002 ( Services for Beckhoff EL2124 Dig. Output module )
> > > > > > > Slave_1002_bits ( No description set for this Port. Use .doc() to
> > > > > > > document it. )
> > > > > > >
> > > > > > > Requires Operations : (none)
> > > > > > > Requests Services : (none)
> > > > > > >
> > > > > > > Peers : (none)
> > > > > > > -----------------------------------
> > > > > > >
> > > > > > > so it actually does not recognize the type of the port (that should be )
> > > > > > > DigitalMsg...
> > > > > > > any idea on how to solve the problem?
> > > > > > > Thanks, Gianni.
> > > > > >
> > > > > > Coincidentaly I tried to solve this exact problem yesterday. I got it to work for other unknow types (for example geometry_msgs/twist). But never got the Beckhoff messages to work.
> > > > > > However everything still works on my side. It's just visually less good looking if it says unkown_t.
> > > > > >
> > > > > > Tim
> > > > > >
> > > > > > PS. I solved it by including <simple name="Import" type="string"><value>$(find rtt_ros_integration_geometry_msgs)/lib/orocos<value><simple> in the xml file. Doing the same thing for the Beckhoff messages didn't work.
> > > > > >
> > > > > > > Il giorno mar, 08/02/2011 alle 17.43 +0100, Clephas, T.T.G. ha scritto:
> > > > > > > > > ________________________________________
> > > > > > > > > Van: orocos-users-bounces [..] ... [orocos-users-bounces [..] ...] namens gianni borghesan [Gianni [dot] Borghesan [..] ...]
> > > > > > > > > Verzonden: dinsdag 8 februari 2011 17:26
> > > > > > > > > Aan: orocos-users [..] ...
> > > > > > > > > Onderwerp: [Orocos-users] soem master requires super user access..
> > > > > > > > >
> > > > > > > > > Hi all,
> > > > > > > > > I am trying to use employ the Soem master component...
> > > > > > > > > I have an up-to-date installation of orocos_toolchain_ros from git, and
> > > > > > > > > 32831 version of soem (i found in an old posts that newer versions has
> > > > > > > > > some problems.)
> > > > > > > > > I am able to run the test examples of the driver,in
> > > > > > > > > /soem/soem_core/build/soem_core/src
> > > > > > > > > but with sudo, as the slaveinfo program. Without sudo it gives me
> > > > > > > > >
> > > > > > > > > No socket connection on eth0
> > > > > > > > > Excecute as root
> > > > > > > > >
> > > > > > > > > the same happen when trying to configure the SoemMaster component:
> > > > > > > > >
> > > > > > > > > SoemMaster [U]> configure
> > > > > > > > > No socket connection on eth0
> > > > > > > > > Excecute as root
> > > > > > > > > = false
> > > > > > > > >
> > > > > > > > > I suppose there is some conflict in accessing the Ethernet card, how
> > > > > > > > > can I solve it?
> > > > > > > > >
> > > > > > > > > Thanks, Gianni.
> > > > > > > > >
> > > > > > > >
> > > > > > > > Koen Buys showed me how to do such a thing:
> > > > > > > >
> > > > > > > > sudo setcap cap_net_raw+ep /location/of/deployer-gnulinux
> > > > > > > >
> > > > > > > > Tim
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>