[etherlab-users] e1000e driver and kernel 3.2.31-rt47

2012-10-17 Thread Gavin Lambert
I'm trying to use the e1000e driver on kernel 3.2.31 with the PREEMPT_RT rt47 patches applied, but the driver is giving me an error. I'm using the latest hg source of the etherlab master (4151f6f4c3e1). The startup of the normal driver looks like this: e1000e: Intel(R) PRO/1000 Network Driver -

Re: [etherlab-users] e1000e driver and kernel 3.2.31-rt47

2012-10-23 Thread Gavin Lambert
Quoth Matthias Liermann: Do we need a new driver patch, or does anyone see another issue here? I tried repatching (generating a diff between the _orig and the _ethercat files, then updating the _orig to the ones from my 3.2 kernel, and reapplying the diff) but it didn't seem to fix this issue.

Re: [etherlab-users] e1000e driver and kernel 3.2.31-rt47

2012-10-24 Thread Gavin Lambert
Quoth Matthias Liermann: if you applied the changes correctly, the e1000e driver, which is currently in the 3.2 kernel repository is not the same as the one which was used for the previous patching. Correct, they are different. I suspect that the one in the etherlab repository was from

Re: [etherlab-users] EL2252: SII eeprom and XML config mismatch

2013-01-21 Thread Gavin Lambert
Just to be extra confusing, “output” and “input” are from the perspective of the master, but “RxPDO” and “TxPDO” are from the perspective of the slave. So “output” == “RxPDO”. This isn’t unique to Etherlab, BTW, these are the standard EtherCAT definitions, which I think may have been inherited

Re: [etherlab-users] Accessing same PDO for both read and write

2013-01-24 Thread Gavin Lambert
For some odd reason I didn't receive the message below, only the replies. But in any case: I haven't tested this myself, but I think you can still use it as read/write from a single domain. Remember that the EtherCAT main loop consists of: 1. Read previously received incoming packet.

Re: [etherlab-users] e1000e driver still not working with 3.2 kernel with latest stable-1.5 branch?

2013-02-04 Thread Gavin Lambert
in response to my message; I haven’t checked whether it includes the same fix or not). I haven’t had a chance to test the new version myself yet but maybe it will help in your case too? Regards, Gavin Lambert From: etherlab-users-boun...@etherlab.org [mailto:etherlab-users-boun

[etherlab-users] VoE message latency

2013-04-28 Thread Gavin Lambert
, but it'd be good to get confirmation.) Regards, Gavin Lambert ___ etherlab-users mailing list etherlab-users@etherlab.org http://lists.etherlab.org/mailman/listinfo/etherlab-users

Re: [etherlab-users] Calculation of time_diff in ec_fsm_master_dc_offset()

2013-04-29 Thread Gavin Lambert
Quoth Florian Pose: Am 23.01.2013 17:36, schrieb Jun Yuan: 1. I must call ecrt_master_application_time() once somewhere before my run loop, otherwise I'll get error No app_time received up to now, and ec_fsm_master_state_dc_read_offset will not be executed. The app time given to the

Re: [etherlab-users] Issues with starting ethercat master (with e1000e driver)

2013-06-13 Thread Gavin Lambert
Quoth Cor Meijneke: I ran into some trouble with e1000e driver (I think) while installing the ethercat master. I can't see anything in the trace you posted that suggests a driver issue. [ 6259.203384] EtherCAT ERROR 0-1: Failed to set SAFEOP state, slave refused state change (PREOP + ERROR).

Re: [etherlab-users] Cross Compile for ARM

2013-06-27 Thread Gavin Lambert
DESTDIR=/path/to/target/root/fs make install INSTALL_MOD_PATH=/path/to/target/root/fs make modules_install depmod -b /path/to/target/root/fs 3.2.46 From: Thomas Bitsky Jr [mailto:t...@automateddesign.com] Sent: Friday, 28 June 2013 11:04 To: Gavin Lambert; etherlab-users@etherlab.org

Re: [etherlab-users] Cross Compile for ARM

2013-06-30 Thread Gavin Lambert
I've always specified INSTALL_MOD_PATH prior to the make command name. I don't know if this actually makes a difference or not though. From: Thomas Bitsky Jr [mailto:t...@automateddesign.com] Sent: Saturday, 29 June 2013 10:36 To: Gavin Lambert; etherlab-users@etherlab.org Subject: RE

[etherlab-users] Mailbox handling of interleaving responses

2013-08-19 Thread Gavin Lambert
requests to improve performance, eg. to exchange SDOs while waiting for an FoE or EoE transfer to complete. (Though this might need a per-slave setting to enable/disable, as some slaves might not support interleaved requests.) Does that make sense, or have I missed something? Regards, Gavin Lambert

Re: [etherlab-users] ethercat device reset ???

2013-10-06 Thread Gavin Lambert
Quoth Ian Prochazka: does anybody figured out how to reset EtherCAT device through EtherCAT master? The master needs to send 3 consecutive register (0x40) write frames. There isn't any way to do that with the current master code. It would need specific support added for it.

Re: [etherlab-users] Looking for Slave firmware update example

2013-11-05 Thread Gavin Lambert
The change to OP seems wrong, but otherwise the procedure below looks about right. One thing to note is that the foe_write command takes two filenames – the other you’ve left unspecified (and so will default to the .efw filename) is the internal name sent to the device. You’ll have to check

Re: [etherlab-users] Looking for Slave firmware update example

2013-11-05 Thread Gavin Lambert
(not model-specific) instructions so you might be able to get away with skipping that step, or possibly just going to PREOP or something instead. From: Graeme Foot [mailto:graeme.f...@touchcut.com] Sent: Wednesday, 6 November 2013 11:39 To: Gavin Lambert Cc: etherlab-users@etherlab.org Subject: RE

Re: [etherlab-users] ec_e1000e driver not finding NIC? [SEC=UNCLASSIFIED]

2013-11-28 Thread Gavin Lambert
You can still include the standard one if you want to be able to swap between them. But you have to make sure that it's built as a module, not compiled in. (kernel config set =M, not =Y.) The service start script will automatically unload the standard module and replace it with the Etherlab

Re: [etherlab-users] How to only use one adapter for EtherCAT??

2014-02-27 Thread Gavin Lambert
Quoth Fredrik Viksten: How would I go about setting the system up so I can A) use NIC eth0 for normal network traffic and B) use an EtherCAT-optimized kernel driver for NIC eth1 when they are both using the same chipset? All you should need to do is to explicitly specify the MAC that you want

Re: [etherlab-users] DC-Synchronization - Sync signal generation

2014-04-02 Thread Gavin Lambert
On 2 April 2014 22:40, quoth Jun Yuan: But there is a reason why we all put the ecrt_master_application_time() outside the loop. Because we all got burned by the error No app_time received up to now, but master already active., which is a timing bug in Etherlab. I've resolved the problem

Re: [etherlab-users] DC-Synchronization - Sync signal generation

2014-04-07 Thread Gavin Lambert
at close to -1ms). Subsequent runs always seem to be better, although sometimes it takes 2-5 runs to get it “right”. Regards, Gavin Lambert From: Jun Yuan [mailto:j.y...@rtleaders.com] Sent: Friday, 4 April 2014 21:00 To: Gavin Lambert Cc: etherlab-users@etherlab.org Subject: Re: [etherlab

Re: [etherlab-users] DC-Synchronization - Sync signal generation

2014-04-07 Thread Gavin Lambert
Lambert From: Jun Yuan [mailto:j.y...@rtleaders.com] Sent: Friday, 4 April 2014 21:00 To: Gavin Lambert Cc: etherlab-users@etherlab.org Subject: Re: [etherlab-users] DC-Synchronization - Sync signal generation Hi, that's all right. I'm using Xenomai. I just want to demonstrate the idea

Re: [etherlab-users] Domain offset overlap

2014-04-09 Thread Gavin Lambert
It also returns an error if something does not byte-align and you provide NULL for the bit_position argument. So you shouldn't see any overlapping offsets as a result of this unless you're throwing away data. From: etherlab-users-boun...@etherlab.org

Re: [etherlab-users] Domain offset overlap

2014-04-09 Thread Gavin Lambert
. The master library will do the right things to get that data to the slaves and back. Regards, Gavin Lambert From: etherlab-users-boun...@etherlab.org [mailto:etherlab-users-boun...@etherlab.org] On Behalf Of Steve Hartmann Sent: Thursday, 10 April 2014 09:52 To: etherlab-users@etherlab.org

[etherlab-users] Error reassigning removed PDO

2014-04-22 Thread Gavin Lambert
hard-code the full mappings, instead of fetching the mappings from the slave? Or is this something missing from the library at present? Regards, Gavin Lambert ___ etherlab-users mailing list etherlab-users@etherlab.org http://lists.etherlab.org

[etherlab-users] Maximum mailbox size?

2014-05-20 Thread Gavin Lambert
of mailbox sizes. Regards, Gavin Lambert ___ etherlab-users mailing list etherlab-users@etherlab.org http://lists.etherlab.org/mailman/listinfo/etherlab-users

Re: [etherlab-users] Error reassigning removed PDO

2014-05-29 Thread Gavin Lambert
:40 To: Gavin Lambert Cc: etherlab-users@etherlab.org Subject: Re: [etherlab-users] Error reassigning removed PDO Hello Gavin, for that specific part of the CoE transfer problem you mentioned, I may have observed the same problem, and I did some analysis on it. This is actually a big problem

Re: [etherlab-users] ep2338

2014-06-04 Thread Gavin Lambert
On 5 June 2014, quoth Javier: I am a beginer and want start turning on a led in the EP2338 box from ethercat master command line. Typically you cannot do that sort of thing from the command line, as without an application the devices will remain in PREOP state, and outputs are normally not

Re: [etherlab-users] Error reassigning removed PDO

2014-06-04 Thread Gavin Lambert
the master should already know at that point. (Although that’s an optimisation missing from the current PDO configuration code as well.) Regards, Gavin Lambert From: Jun Yuan [mailto:j.y...@rtleaders.com] Sent: Saturday, 31 May 2014 04:24 To: Gavin Lambert Cc: etherlab-users@etherlab.org

Re: [etherlab-users] CoE mailbox problem: Received unknown response while uploading SDO

2014-06-05 Thread Gavin Lambert
wasn’t expecting stale replies, a la #26). Regards, Gavin Lambert From: etherlab-users-boun...@etherlab.org [mailto:etherlab-users-boun...@etherlab.org] On Behalf Of Jun Yuan Sent: Friday, 6 June 2014 08:56 To: Frank Heckenbach Cc: etherlab-users@etherlab.org Subject: Re: [etherlab-users

Re: [etherlab-users] Maximum mailbox size?

2014-07-07 Thread Gavin Lambert
On 7 July 2014, quoth Dave Page: On 2014-05-20 22:00, etherlab-users-requ...@etherlab.org wrote: what is the limit for the maximum supported mailbox size? Either in EtherCAT in general or in EtherLab in particular? ETG1000.5 V1i02 page 43 indicates that the mailbox can be from 38 to

Re: [etherlab-users] Maximum mailbox size?

2014-07-07 Thread Gavin Lambert
On 8 July 2014, quoth Dave Page: A brief look at the SSC suggests the master is responsible for specifying the mailbox size each transfer via the Length parameter in the mailbox header. The FMMU mailbox protocol requires the last mailbox byte to be accessed to hand over the mailbox

Re: [etherlab-users] how to get slave count from userspace ?

2014-07-27 Thread Gavin Lambert
On 26 July 2014, quoth Sebastien Blanchet: I would like to know which is the right way to get the number of slaves on the EtherCAT bus in a usespace program. I have tried 3 ways: // way #1: ec_master_info_t masterInfo; ec_master_t* master = ecrt_request_master(0);

Re: [etherlab-users] Using Ethernet Over Ethercat (EoE)

2014-12-08 Thread Gavin Lambert
On 3 December 2014 22:38, quoth Luca Ma: Basically I don't understand how the Master decides to forward a certain Ethernet frame to a certain EtherCAT slave. [...] How the Master knows to which slave it has to send the EtherCAT datagrams containing the EoE fragments? I haven't used EoE

Re: [etherlab-users] API function to check that all object dictionaries are read and the sdos fetched

2014-12-08 Thread Gavin Lambert
On 4 December 2014 23:45, quoth WIEGAND Ralf: we are using the etherlabmaster 1.5.1 with RTAI in our system and we are searching for an API function or a workaround to check that all object dictionaries of the slaves are read and the SDOs are fetched. In detail, during boot of our system the

Re: [etherlab-users] SDO upload during initialization

2014-12-11 Thread Gavin Lambert
On 12 December 2014 11:12, quoth Derrill Vezina: I have been working with the EL6021 card for some time now with no issues regarding communications for RS485 using the default PDO/SDO parameters that come stock with the firmware version 04 (thanks to the communities help). Beckhoff has

Re: [etherlab-users] master fsm datagram

2014-12-11 Thread Gavin Lambert
On 12 December 2014 19:01, quoth Peter P: does anybody know how the master-fsm exactly works? The master fsm datagram in my program times out/gets skipped even before I activate the slave. I assume it has something to do with the ec_fsm_master in the fsm_masater.h, is that correct? How

Re: [etherlab-users] SKIPPED datagram using Igh EtherCAT master porting for Linux OS on CyconeV SoC

2015-02-16 Thread Gavin Lambert
Are you using the generic ethernet driver or one of the provided EtherCAT-enabled drivers? What HZ is your kernel using? On standard x86 hardware, you’re unlikely to get much better than 4 ms cycle rates even on Linux+PREEMPT_RT if you’re using the generic driver. Since you’re using more

Re: [etherlab-users] Redundancy support

2015-03-05 Thread Gavin Lambert
Yesterday, I quoth: Possibly some of this is related to the weird linked-but-not-linked behaviour when the backup link is connected but unneeded (described in my prior email). Well, I've fixed that now (it was an incorrect assumption in the EtherCAT driver mods), but it hasn't helped the delay

Re: [etherlab-users] Redundancy support

2015-03-04 Thread Gavin Lambert
Yesterday, I quoth: 2. There appear to be a few things that only seem to work on the main link, not the backup link (unless I'm missing something). Register requests (maybe only some types?) seem to be one of them, and I'm dubious about the DC sync behaviour as well -- I don't think the RMW

Re: [etherlab-users] Redundancy support

2015-03-03 Thread Gavin Lambert
On 27 February 2015 22:06, quoth Richard Hacker: I have a question regarding support for cable redundancy in the stable-1.5 branch. I know that it has options for enabling a backup network port on the PC and connecting the end of a single chain to this port. Presumably this is mostly

Re: [etherlab-users] Twincat Sync Units equivalent for etherlab?

2015-03-23 Thread Gavin Lambert
On 24 March 2015 06:01, quoth ronaldo.merc...@diamond.ac.uk: I recently learned that when using Twincat there is the option to separate sets of slaves to address them in different frames. Twincat calls these Sync Units. Is there an analogous facility in etherlab? They're called domains

Re: [etherlab-users] EtherLab with Omron Accurax PREOP- OP fail

2015-05-10 Thread Gavin Lambert
On 9 May 2015 02:29, quoth Fredriek Vanneste: If the same thing occurs when you try to run your application code, then you need to check that you're calling ecrt_slave_config_dc and passing it the correct parameters (as specified by the slave vendor). I get the same problem as with the

Re: [etherlab-users] Bus Scan

2015-06-07 Thread Gavin Lambert
I've posted some patches in the past that make some additional information available to the master application. But in general to detect errors you look at the error_flag from ecrt_master_get_slave() or ecrt_slave_config_state(). There are also some patches (made by others) that dramatically

Re: [etherlab-users] Twincat communicate with yaskawa SGDV alarm A12 (Sync Error)

2015-06-01 Thread Gavin Lambert
FWIW, while I could be wrong about this, as far as I know it’s generally a bad idea to explicitly set the reference clock slave. It defaults to being the first DC-capable slave on the network, and you shouldn’t set it to any other slave because of the way the DC sync datagrams work.

Re: [etherlab-users] Twincat communicate with yaskawa SGDV alarm A12 (Sync Error)

2015-06-01 Thread Gavin Lambert
, and reactivate the master without having to stop the realtime thread (although that requires some care and another patch, if using the usermode library). From: Graeme Foot [mailto:graeme.f...@touchcut.com] Sent: Tuesday, 2 June 2015 13:41 To: Gavin Lambert Cc: etherlab-users@etherlab.org

Re: [etherlab-users] write_sdo() function

2015-07-27 Thread Gavin Lambert
It's not that easy - even the read in the example is oversimplified (it assumes you always want to read), and reads are quite different from writes. I'm not sure where you got ec_sdo_request_copy_data from, but the correct way to access the data memory of a request is with

Re: [etherlab-users] Beckhoff 6731-0010 initialization

2015-10-29 Thread Gavin Lambert
Most likely, there is something invalid in the parameters for the SDO configuration functions. You’ll need to post all of the related code if you want help in locating it. From: etherlab-users [mailto:etherlab-users-boun...@etherlab.org] On Behalf Of David Jiménez Mejías Sent: Thursday, 29

Re: [etherlab-users] Beckhoff 6731-0010 initialization

2015-11-01 Thread Gavin Lambert
shouldn’t have that sort of code anyway, since it’s all constant data in the first place. Change the global definitions from a string to a byte array. From: David Jiménez Mejías [mailto:david.jime...@gtc.iac.es] Sent: Friday, 30 October 2015 23:13 To: Gavin Lambert <gavin.l

Re: [etherlab-users] Failed to register PDO entry: No such file or directory

2015-09-11 Thread Gavin Lambert
Registering 0x6000:11 doesn’t work because the actual value is at 0x6000:0x11. (Note hex vs. decimal.) Registering 0x6000:2 doesn’t work because the value is not at bit 0, so you have to pass a non-NULL pointer as the final parameter to receive the bit offset of the value, which you must

Re: [etherlab-users] EL6688 SDOs

2015-12-17 Thread Gavin Lambert
SDOs are just objects that can be accessed via acyclic (mailbox) transfers. Typically (if the slave supports CoE) all PDOs can be accessed as SDOs (though usually there’s little point) but only some SDOs can be accessed as PDOs. Most of the time SDOs are used purely for configuration –

Re: [etherlab-users] puzzle about check slave configuration

2015-11-22 Thread Gavin Lambert
The ecrt_master_slave_config* family of functions are for defining what you are expecting to see on the network. You only get errors if you define something inconsistent with itself �C eg. if you say that device 0:5 has two different product ids. You do not get any errors at this point if you

Re: [etherlab-users] slave not change to op state

2015-11-22 Thread Gavin Lambert
Have you called ecrt_master_activate? Note that it may take a few cycles before the slave actually transitions to OP after calling this. Otherwise, check the syslog (possibly with ethercat debug 1) to see if there are any errors reported by the slave. It may be refusing to transition from

Re: [etherlab-users] I cannot proceed with configuration of PDOs using Libethercat.

2016-06-15 Thread Gavin Lambert
ecrt_master_activate and then immediately release the master and exit if you like, but to actually accomplish anything useful you need an application loop.) From: j.sikor...@utwente.nl [mailto:j.sikor...@utwente.nl] Sent: Thursday, 16 June 2016 00:06 To: Gavin Lambert <gavin.lamb...@compacsort.com&

Re: [etherlab-users] Multi-threading and calling the cyclic task issue

2016-01-27 Thread Gavin Lambert
On 28 January 2016 08:54, quoth Paul Mulligan: > When using multi-threading, such that the function which calls the > cyclic_task() is running in a separate detached thread from the main > thread, the pause function blocks forever and a signal is never > received as below. [...] > Also, I

Re: [etherlab-users] etherlab-users Digest, Vol 104, Issue 1

2016-02-01 Thread Gavin Lambert
It is possible to have the master PC connect via standard switch to a standard Ethernet network, one connection of which is the entire EtherCAT slave network. (It is not possible to have standard Ethernet devices interleaved with EtherCAT devices, at least not without dedicated bridge slaves

Re: [etherlab-users] Distributed Clocks

2016-03-08 Thread Gavin Lambert
[Repost to list due to incorrect email address.] On 9 March 2016 05:09, quoth Thomas Bitsky Jr: > I have tried this on two pieces of hardware. They run the same > operating system and configuration, same EtherLAB master version, same > Ethernet driver. > > System 1 (Intel i3 NUC, 1 Intel

Re: [etherlab-users] AL Status Code Reads 0x00 0x00 even when 'PREOP + E' is reported

2016-04-10 Thread Gavin Lambert
That is the AL State (note this is different from the AL Status Code, which is typically only logged by Etherlab and isn't retrievable by the application unless you read the registers directly). The AL State can be read from the al_state field in ec_slave_info_t, via ecrt_master_get_slave.

Re: [etherlab-users] 答复: [SPAM] etherlab-users Digest, Vol 106, Issue 6

2016-04-14 Thread Gavin Lambert
On Friday, 15 April 2016 13:49, quoth shouqiang@scbd.com.cn: > When I use the interface function: ecrt_slave_config_dc(sc1, 0x0730, > 25, 0, 175, 0); > > I can't understand the parameter "SYNC0 shift time" used in the master > module, in the master modules code , the "SYNC0 shift

Re: [etherlab-users] EoE with MTU 1500 Octets

2016-08-07 Thread Gavin Lambert
On 7 August 2016 00:12, quoth Nir Geller: > I can supply more details about traffic capture and our thoughts from > analysing the code, but before that, I would like to know if any one was able > to work successfully with the EoE with MTU size larger than 200 bytes? Are > there any known patches

Re: [etherlab-users] Intermittent Large number of datagrams UNMATCHED

2016-07-03 Thread Gavin Lambert
On Monday, 4 July 2016 15:20, quoth Graeme Foot: > You could track down if it's a problem with a link between two particular slaves > by checking each slaves Link Lost Counter and CRC Bad Counter values. > - Lost Link Counter Register (0x0310:0x0313) > - RX Error Counter Register (0x0300:0x0307)

Re: [etherlab-users] Twincat XML description file to Matlab

2017-02-20 Thread Gavin Lambert
No. That command is used to generate a file containing the PDO structure of an existing slave on the network for consumption by the EtherLab higher-level MATLAB/Simulink app (not the master itself). It’s not an input file. The Etherlab master does not support use of ENI or ESI XML files in

Re: [etherlab-users] Sniff the network

2017-02-13 Thread Gavin Lambert
The CU2508 has been brought up a few times - it is definitely not compatible with Etherlab (or Linux in general, as far as I know). It would be nice if it were, but nobody has put time in to write a custom driver for it yet. From: Graeme Foot Sent: Tuesday, 14 February 2017 10:34 To: Lander

Re: [etherlab-users] EtherCAT data size compatibility issue

2017-02-13 Thread Gavin Lambert
[mailto:eshwarkha...@gmail.com] Sent: Tuesday, 14 February 2017 06:06 To: Gavin Lambert <gavin.lamb...@compacsort.com> Subject: Re: [etherlab-users] EtherCAT data size compatibility issue Hi, Thanks for your response, yes there are macros available for 64 bit read/write in ecrt.h. one qu

Re: [etherlab-users] EtherCAT data size compatibility issue

2017-02-09 Thread Gavin Lambert
64-bit macros are already defined in ecrt.h, so just use them. In general though, if you want to deal with other data sizes, have a look at how the macros are defined, and define your own versions. They’re just wrappers around standard conditional byte-swapping calculations. Data on

Re: [etherlab-users] DC question: "Failed to get reference clock time: Input/Output error"?

2017-01-15 Thread Gavin Lambert
On 14 January 2017 06:02, quoth Jiarui Lian: > I tried to synchronize master clock to a reference-slave-EK1100 (due to > Master clock jitter): > * Based on the example of "examples/rtai_rtdm_dc". > * I modified the example, since I am using RT-Preempt instead of RTAI. > * But I got error: "Failed

Re: [etherlab-users] Errors and warning when realtime timer starts

2017-02-26 Thread Gavin Lambert
It sounds like the slave has incorrect SII data and/or defective firmware. It's claiming to support PDO Configuration (see the output of "ethercat slaves -v") but the PDO Configuration objects are read-only. It should either not claim support for that or should tolerate writes where the written

Re: [etherlab-users] EL9800 PIC interface configuration problem

2016-08-31 Thread Gavin Lambert
On 1 September 2016 03:45, quoth Tommaso: > I am trying to configure the EL9800 board using SSC tool and TwinCAT in order > to create an EtherLab application with PIC. EtherLab is a specific EtherCAT master library, which is different from TwinCAT or SSC. Since your question is not related to

Re: [etherlab-users] Regarding SDOs

2016-09-15 Thread Gavin Lambert
Although if slaves actually have SDOs (ie. support CoE) then they’re required to provide an online CoE dictionary, which “ethercat sdos” will read and display even if the slave does not define any in its SII. (Although not all vendors obey the rules.) If the slave doesn’t support CoE then

Re: [etherlab-users] Etherlab and UDP

2016-10-26 Thread Gavin Lambert
On 27 October 2016 01:09, quoth Lucas Spreiter: > But when I try to run the executable on my linux system I always get the error > "could not open library: libmwnetworkdevice.so". I already copied the > libmwnetworkdevice.so to /lib and used ldconfig, so that linux finds the library > now, but

Re: [etherlab-users] Invalid watchdog configuration

2016-10-19 Thread Gavin Lambert
On 20 October 2016 02:57, quoth Mathias Thiele: DcOn DC active #x0300 0 0 … ecrt_slave_config_dc(sc, 0x0300, 0, 0, 0, 0); This is not a correct translation of that configuration. “Factor=1” means that the DC cycle time is expected to match your SM cycle time, ie. the rate

Re: [etherlab-users] Problem with rescan of slave(s)

2016-11-24 Thread Gavin Lambert
On 25 November 2016 06:47, quoth Frank Jeschke: > Hello, we are using the etherlab master 1.5.2 and face a problem when nodes > restart > (here: after a firmware update). It looks like the fsm_master statemachine > hangs while > waiting for any kind of reply (at least this is what I could figure

Re: [etherlab-users] Problems initializing Omron system

2017-03-28 Thread Gavin Lambert
On 28 March 2017 23:21, quoth Asier Tamayo: > After some debug, we have finally got the system working properly. We had > to define EC_SII_ASSIGN in the config.h file and recompile the EtherLab > master. The right way to define this is not to modify config.h directly, but to specify

Re: [etherlab-users] Beginner: Modifying the example code "user"

2017-04-03 Thread Gavin Lambert
You’re halfway there. You also need to update the domain1_regs to reflect the layout of your network (type and position of all slave devices) and to define variables to receive the offsets into domain memory to use for transferring the corresponding PDOs. From: Justin Hunt Sent: Tuesday, 4

Re: [etherlab-users] Beginner: Modifying the example code "user"

2017-04-05 Thread Gavin Lambert
put in there.) From: Justin Hunt [mailto:jphu...@asu.edu] Sent: Wednesday, 5 April 2017 13:32 To: Gavin Lambert <gavin.lamb...@compacsort.com> Cc: etherlab-users@etherlab.org Subject: Re: [etherlab-users] Beginner: Modifying the example code "user" Hi Gavin, Thank you

Re: [etherlab-users] DC sync1 shift time

2017-03-12 Thread Gavin Lambert
On 10 March 2017 22:23, quoth Philippe Leuba: > We can read from documentation that the parameter sync1_shift of > ecrt_slave_config_dc is ignored. > > Does this mean that we can not use terminal like the Beckhoff EL2522 that > require both SYNC0 and SYNC1 shift times ? According to the

Re: [etherlab-users] DC sync1 shift time

2017-03-13 Thread Gavin Lambert
ch] Sent: Tuesday, 14 March 2017 01:18 To: Gavin Lambert <gavin.lamb...@compacsort.com> Cc: etherlab-users@etherlab.org Subject: Re: [etherlab-users] DC sync1 shift time Hello, I probably misunderstood something, but I take these inputs from the Beckhoff EL2522 XML file: DC

Re: [etherlab-users] Master0 dead

2017-04-18 Thread Gavin Lambert
The "waiting for devices" state means that no network devices are available for EtherCAT yet. You need to check your configuration file (if you're using SysV /etc/init.d/ethercat then the file is /etc/sysconfig/ethercat; if you're using SystemD ethercat.service then the file is

Re: [etherlab-users] experience with CU1128 | EtherCAT junction

2017-04-18 Thread Gavin Lambert
I have one in a test system (though not using it in production) and it works fine. As Graeme said it basically just works without configuration, though if you're specifying devices by network position then you need to be careful about the ordering, since it will appear at three different places

Re: [etherlab-users] ethercat commands

2017-08-22 Thread Gavin Lambert
On 23 August 2017 08:15, quoth Rahul Deshpande: > > I wanted to know where I can find the list of all ethercat diagnostic > commands (ethercat slave, ethercat master, ethercat debug 1 etc). The usual way: ethercat --help ___ etherlab-users

Re: [etherlab-users] Stuck with simulink model/EtherCAT master

2017-05-24 Thread Gavin Lambert
This error means that the version of the master kernel module does not agree with the version of the libethercat library (the library is older). Make sure that you’ve built and installed all components from the same sources. From: Syrine Cherif Sent: Thursday, 25 May 2017 03:29 To:

Re: [etherlab-users] "Slave does not support CoE!" An error occurs.

2017-06-02 Thread Gavin Lambert
Basic slaves have a fixed layout of PDOs. Complex slaves sometimes allow you to select alternate layouts or in rare cases even build your own layout. Complex slaves require CoE to do that configuration. The error you are getting indicates that the configuration doesn't match, so Etherlab

Re: [etherlab-users] how to implement EoE example?

2017-05-07 Thread Gavin Lambert
[mailto:crazylinux...@gmail.com] Sent: Saturday, 6 May 2017 02:53 To: Gavin Lambert <gavin.lamb...@compacsort.com> Cc: etherlab-users@etherlab.org Subject: Re: [etherlab-users] how to implement EoE example? Thanks for your reply. You mean I no need to write kernel module for EoE, even

Re: [etherlab-users] how to implement EoE example?

2017-05-08 Thread Gavin Lambert
May 2017 03:00 To: Gavin Lambert <gavin.lamb...@compacsort.com> Cc: etherlab-users@etherlab.org Subject: Re: [etherlab-users] how to implement EoE example? Thanks! I read beckhoff EL6614 document carefully again. As I understood, data is transferred by mailbox. So can I just use SDO t

Re: [etherlab-users] how to implement EoE example?

2017-05-04 Thread Gavin Lambert
I don’t use EoE myself, but as I understand it the kernel component of the master (which exists even if your application is only in userspace) creates regular Linux ethernet devices for the EoE ports of the slaves, and takes care of the message relaying itself. So your application doesn’t need

Re: [etherlab-users] ec_e1000e not compatible with Intel I218-LM NIC

2017-09-17 Thread Gavin Lambert
Check which standard kernel module is loaded for that card when using the generic driver (or without using EtherCAT at all), either with lsmod or lspci -k. I don’t know whether this applies to that specific card or not, but some of the newer gigabit cards require the igb driver rather than

Re: [etherlab-users] ecrt_slave_config_dc sync0_shift

2017-08-30 Thread Gavin Lambert
You can see the calculations in fsm_slave_config.c's ec_fsm_slave_config_state_dc_sync_check. Enabling "ethercat debug 1" will also print some diagnostic information to the syslog on activation which may be of interest. There will always be some jitter in the SM2/SYNC0 timing, as it's subject

Re: [etherlab-users] Multiple SDO requests

2017-08-29 Thread Gavin Lambert
First off, note that using printfs inside your cyclic task is going to kill your latency. By itself this shouldn’t cause any issues with SDOs, unless it’s sufficient to trigger the timeout. The master does support a limited number of concurrent SDO requests, provided that they are always

Re: [etherlab-users] How to make ipk/deb package for IgH EtherCAT Master?

2017-12-03 Thread Gavin Lambert
Sorry, that should have been "make modules_install". From: Gavin Lambert Sent: Monday, 4 December 2017 11:49 To: 'Jiarui Lian' <je...@bertec.com>; etherlab-users@etherlab.org Subject: Re: [etherlab-users] How to make ipk/deb package for IgH EtherCAT Master? There isn't any

Re: [etherlab-users] How to make ipk/deb package for IgH EtherCAT Master?

2017-12-03 Thread Gavin Lambert
There isn't any built-in support for this. However it's a fairly standard autotools package so you can follow generic instructions for building a deb or whatever from an autotools makefile, for the most part. Bear in mind that you need to make sure to build against the kernel headers from the

Re: [etherlab-users] Trouble with SDB-40-100

2017-12-13 Thread Gavin Lambert
Don't write to those objects. Not even with ecrt_slave_config_sdoXX. Read the documentation. From: Frank, Matthias [mailto:matthias.fr...@tq-group.com] Sent: Wednesday, 13 December 2017 20:26 To: Gavin Lambert <gavin.lamb...@compacsort.com>; etherlab-users@etherlab.org Subject: AW: T

Re: [etherlab-users] Trouble with SDB-40-100

2017-12-12 Thread Gavin Lambert
Don't try to write to 0x16xx, 0x1Axx, or 0x1C1x. This is what ecrt_slave_config_pdos and ecrt_domain_reg_pdos do for you internally (among other things). See the examples. From: etherlab-users [mailto:etherlab-users-boun...@etherlab.org] On Behalf Of Frank, Matthias Sent: Wednesday, 13

Re: [etherlab-users] DC Bus-Shift

2017-10-29 Thread Gavin Lambert
On 28 October 2017 06:00, quoth Greier, Thomas: > Does the ethercat master stack support a bus-shift mode of > Distributed Clocks? Our application is currently using a > master-shift, where the master clock is adjusted to match the > reference slave device. Is there sample code for the reverse,

Re: [etherlab-users] Slave DC start time calculation

2018-05-17 Thread Gavin Lambert
The SYNC1 Cycle register (0x09A4) is a little weird; it acts as both a cycle and shift in one register, depending on the value of the SYNC0 Cycle (0x09A0). * Where SYNC0 Cycle is X and SYNC1 Cycle is 0, SYNC0 and SYNC1 occur at the same time – thus same cycle, no shift. * Where SYNC0

Re: [etherlab-users] Slave DC start time calculation

2018-05-17 Thread Gavin Lambert
. In theory (completely untested air code) something like this might be more correct: cycle = sync0->cycle_time + sync1->cycle_time – (sync1->cycle_time % sync0->cycle_time); From: Philippe Leuba [mailto:ple...@swissonline.ch] Sent: Friday, 18 May 2018 16:34 To: Gavin Lambert <gavin.la

Re: [etherlab-users] Slave DC start time calculation

2018-05-20 Thread Gavin Lambert
without a SYNC0 cycle time. From: Graeme Foot [mailto:graeme.f...@touchcut.com] Sent: Monday, 21 May 2018 12:36 To: Gavin Lambert <gavin.lamb...@tomra.com>; Philippe Leuba <ple...@swissonline.ch> Cc: etherlab-users@etherlab.org Subject: RE: [etherlab-users] Slave DC start time cal

Re: [etherlab-users] Slave DC start time calculation

2018-05-20 Thread Gavin Lambert
Why are you adjusting dc_sync[0] from sync1_*? That doesn’t seem like it would ever be a sensible thing to do, unless I’m missing something. From: Graeme Foot [mailto:graeme.f...@touchcut.com] Sent: Monday, 21 May 2018 11:20 To: Philippe Leuba <ple...@swissonline.ch>; Gavin Lambert <g

Re: [etherlab-users] How to perform DC time synchronisation the right way?

2018-05-15 Thread Gavin Lambert
On 16 May 2018 4:34 a.m., quoth Michael Ruder: > Now I want to have the slaves also synchronized to this time frame and have > the following dilemma: > > - normally, I would like to call > > // cycle begins > > ecrt_master_receive(master); > ecrt_domain_process(domain1); > > // do a lot of

Re: [etherlab-users] How to reboot a slave

2018-06-12 Thread Gavin Lambert
On 12 June 2018 19:33, quoth Joye Laurent: > Here are my questions: > - Should it be possible to reboot a slave by writing 3 times in the related > register? If no, is it possible to reboot a slave by using your library? It is generally not possible to reboot a slave by using register requests

Re: [etherlab-users] How to "upload/download" SDOs in application(*.c file)?

2018-06-18 Thread Gavin Lambert
There are a few different kinds of API to do SDO transfers, depending on how and when you want to do them. (But in short: no, that code is probably not correct.) ecrt_master_sdo_download/upload are blocking APIs; they are intended to be called before activating the master. It is still

Re: [etherlab-users] How to reboot a slave

2018-06-14 Thread Gavin Lambert
On 12 June 2018 20:41, quoth Joye Laurent: > And do you have any idea why the command reboot doesn't work in the > case my own application is running? As noted, the three register writes must be received on three consecutive frames, otherwise the ESC will ignore them. (Also, some

Re: [etherlab-users] How to "upload/download" SDOs in application(*.c file)?

2018-06-20 Thread Gavin Lambert
urn -1; cycle_task(); ... - What could be wrong? Thanks again! Jerry On Mon, Jun 18, 2018 at 7:25 PM, Gavin Lambert mailto:gavin.lamb...@tomra.com>> wrote: There are a

  1   2   >