Re: [etherlab-users] e1000e driver freeze on kernel 4.9.80 rtai 5.1

2018-09-25 Thread René Reimann

Hello,

we are experiencing the same problem with rtai 5.1 kernel 4.9.80 and 
rtai 5.0 kernel.
The system freezes randomly after several minutes with the e1000e and 
the unofficial patches.

Does somebody have an idea how to fix this?

Best Regards
René Reimann

On 23.09.2018 22:29, Gianluca Medini wrote:

Hi all, I've tested the driver e1000e on rtai 5.1 kernel 4.9.80.
I'm using Gavin Lambert unofficial patches set that includes patched 
drivers for 4.9.80.

The system  freezes randomly after some minutes.
The Igb driver on same configuration works perfectly.

Someone have experienced the same issue?
GM


___
etherlab-users mailing list
etherlab-users@etherlab.org
http://lists.etherlab.org/mailman/listinfo/etherlab-users

Email Signature
Logo 
René Reimann
Research Assistent
IALB - Institut for electrical drives, power electronics and devices
Otto-Hahn-Allee 1
28359 Bremen
Raum: S1390
Tel.: +49 421 218 62699
Fax: +49 421 218 98 62699
E-Mail: rreim...@ialb.uni-bremen.de 

www.ialb.uni-bremen.de 



---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus
___
etherlab-users mailing list
etherlab-users@etherlab.org
http://lists.etherlab.org/mailman/listinfo/etherlab-users


[etherlab-users] Read from/write to the slave's object dictionary using SDOs

2018-09-25 Thread Mohsen Alizadeh Noghani
Hello everyone.

How can I read from or write to an entry of a slave's object dictionary
using SDO? I'm going to do this before my real-time task.
For example, I would like to set the value of 0x6040 to 15 before my cyclic
task.

Best,
Mohsen
___
etherlab-users mailing list
etherlab-users@etherlab.org
http://lists.etherlab.org/mailman/listinfo/etherlab-users


Re: [etherlab-users] API for enabling/disabling sync managers of a slave

2018-09-25 Thread Mohsen Alizadeh Noghani
 Thanks Gavin.

1- Would
ecrt_slave_config_sync_manager(sc, 2, EC_DIR_OUTPUT, EC_WD_ENABLE )
enable Sync Manager 2 of slave sc?
2- How can I disable it then? I doesn't seems the function provides an
option to enable/disable.

Best,
Mohsen


On Tue, Sep 25, 2018 at 2:40 AM, Gavin Lambert 
wrote:

> You need to write an application, and then use
> ecrt_slave_config_sync_manager or ecrt_slave_config_pdos to configure the
> Sync Managers for each slave.
>
>
>
> *From:* Mohsen Alizadeh Noghani
> *Sent:* Tuesday, 25 September 2018 02:29
> *To:* etherlab-users@etherlab.org
> *Subject:* [etherlab-users] API for enabling/disabling sync managers of a
> slave
>
>
>
> Hello everyone.
>
>
>
> Is there a function call that I can use for enabling a particular sync
> manager of a slave?
>
> For example, I'd like to enable sync manager 2 of slave 1.
>
>
> Best,
>
> Mohsen
>
___
etherlab-users mailing list
etherlab-users@etherlab.org
http://lists.etherlab.org/mailman/listinfo/etherlab-users


Re: [etherlab-users] Read from/write to the slave's object dictionary using SDOs

2018-09-25 Thread Gavin Lambert
There’s a number of different ways to do it, depending on why and how you want 
to do it.

If this is a configuration setting (especially if it needs to be re-sent every 
time the slave reboots) that you can write (without needing to read anything), 
then you should use one of the ecrt_slave_config_sdo*() methods.  This will not 
do it immediately but will do it when you activate the master, and also if the 
slave reboots at any time while the master is active.

If it’s a one-off request/query which you only do before activating the master, 
then you should use one of the ecrt_master_sdo_*() methods.  This will execute 
immediately and wait for the response.

If you want to do it while the master is active, then you can either call 
ecrt_master_sdo_*() from a separate (non-realtime) thread (at the cost of a 
little extra latency on the realtime cycle), or you can use 
ecrt_slave_config_create_sdo_request() and related methods to perform polling 
on the realtime thread (for some extra code complexity).

If it’s just something you need to do during commissioning and then never again 
(eg. if you can save the setting to the slave permanently), then you can use 
the “ethercat download” command.

From: Mohsen Alizadeh Noghani
Sent: Wednesday, 26 September 2018 03:41
To: etherlab-users@etherlab.org
Subject: [etherlab-users] Read from/write to the slave's object dictionary 
using SDOs

Hello everyone.

How can I read from or write to an entry of a slave's object dictionary using 
SDO? I'm going to do this before my real-time task.
For example, I would like to set the value of 0x6040 to 15 before my cyclic 
task.

Best,
Mohsen
___
etherlab-users mailing list
etherlab-users@etherlab.org
http://lists.etherlab.org/mailman/listinfo/etherlab-users


Re: [etherlab-users] API for enabling/disabling sync managers of a slave

2018-09-25 Thread Gavin Lambert
You typically don’t need to explicitly disable a sync manager; you simply don’t 
refer to it or any PDOs it contains, and then it will not be included in the 
domain’s data.

Alternatively, you can configure the sync manager but then list zero PDOs for 
it, to explicitly set the PDO Assign register for that SM to 0 (for slaves that 
support flexible assignment).  Note that you should not enable the SM watchdog 
if you’re setting it to have zero PDOs.

It sounds like you should probably read the documentation for the EtherCAT 
protocol and for the Etherlab master in particular.

From: Mohsen Alizadeh Noghani 
Sent: Wednesday, 26 September 2018 04:52
To: Gavin Lambert ; etherlab-users@etherlab.org
Subject: Re: [etherlab-users] API for enabling/disabling sync managers of a 
slave

Thanks Gavin.

1- Would
ecrt_slave_config_sync_manager(sc, 2, EC_DIR_OUTPUT, EC_WD_ENABLE )
enable Sync Manager 2 of slave sc?
2- How can I disable it then? I doesn't seems the function provides an option 
to enable/disable.

Best,
Mohsen


On Tue, Sep 25, 2018 at 2:40 AM, Gavin Lambert 
mailto:gavin.lamb...@tomra.com>> wrote:
You need to write an application, and then use ecrt_slave_config_sync_manager 
or ecrt_slave_config_pdos to configure the Sync Managers for each slave.

From: Mohsen Alizadeh Noghani
Sent: Tuesday, 25 September 2018 02:29
To: etherlab-users@etherlab.org
Subject: [etherlab-users] API for enabling/disabling sync managers of a slave

Hello everyone.

Is there a function call that I can use for enabling a particular sync manager 
of a slave?
For example, I'd like to enable sync manager 2 of slave 1.

Best,
Mohsen

___
etherlab-users mailing list
etherlab-users@etherlab.org
http://lists.etherlab.org/mailman/listinfo/etherlab-users


Re: [etherlab-users] e1000e driver freeze on kernel 4.9.80 rtai 5.1

2018-09-25 Thread Gavin Lambert
One of the first things you should try is to triage the patches by rolling them 
back and then adding them one at a time and testing until you find which patch 
appears to introduce the problem (or whether it exists in the baseline without 
any patches).  In most cases you can then try skipping that patch and applying 
subsequent ones until you find more problematic patches or you successfully 
apply the remainder.

Please share your findings so that we know where to look for the culprit.

(Also, if it manages to write some information to the syslog before freezing 
then that could be helpful.)

FWIW, I’ve been using PREEMPT_RT kernel 4.9.51 with e1000e for a long while 
without issues.

From: René Reimann
Sent: Tuesday, 25 September 2018 19:28
To: Gianluca Medini ; etherlab-users@etherlab.org
Subject: Re: [etherlab-users] e1000e driver freeze on kernel 4.9.80 rtai 5.1

Hello,

we are experiencing the same problem with rtai 5.1 kernel 4.9.80 and rtai 5.0 
kernel.
The system freezes randomly after several minutes with the e1000e and the 
unofficial patches.
Does somebody have an idea how to fix this?

Best Regards
René Reimann
On 23.09.2018 22:29, Gianluca Medini wrote:
Hi all, I've tested the driver e1000e on rtai 5.1 kernel 4.9.80.
I'm using Gavin Lambert unofficial patches set that includes patched drivers 
for 4.9.80.
The system  freezes randomly after some  minutes.
The Igb driver on same configuration works perfectly.

Someone have experienced the same issue?
GM




___

etherlab-users mailing list

etherlab-users@etherlab.org

http://lists.etherlab.org/mailman/listinfo/etherlab-users
[Logo]

René Reimann
Research Assistent

IALB - Institut for electrical drives, power electronics and devices
Otto-Hahn-Allee 1
28359 Bremen
Raum: S1390
Tel.: +49 421 218 62699
Fax: +49 421 218 98 62699
E-Mail: rreim...@ialb.uni-bremen.de

www.ialb.uni-bremen.de


[https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif]

Virenfrei. 
www.avast.com


___
etherlab-users mailing list
etherlab-users@etherlab.org
http://lists.etherlab.org/mailman/listinfo/etherlab-users