Re: [Emc-developers] [RTAI] rtapi_get_time() returns a constant

2018-07-31 Thread Miceli Jean-Pierre
Hi all,


I finally found the root cause of my problem: it was rtapi_print_msg() which 
printed a constant (why I don't know, but I guess it is due to the "%lld" 
format).

Using a simple printk in my code for debug and all goes well.


Sorry for this false issue.


Have a nice day

J-P


From: Miceli Jean-Pierre 
Sent: Wednesday, July 25, 2018 4:01:50 PM
To: emc-developers@lists.sourceforge.net
Subject: Re: [Emc-developers] [RTAI] rtapi_get_time() returns a constant

Hi Bari, hi Nicklas


Many thanks for your help/proposals.


I did some more experiments: I created a RTAI module (with no LinuxCNC code). 
This module only does:

  *   Create a RTAI task, call rt_get_real_time_ns() and log this time


This way I can see the time changing. It means RTAI setup is fine and my issue 
is with LCNC HAL or the LCNC HAL module I use (LCEC).


I will try to create a simple RT HAL module with the same feature as above and 
so determine where the issue is located.


J-P


From: bari 
Sent: Tuesday, July 24, 2018 9:08:46 PM
To: emc-developers@lists.sourceforge.net
Subject: Re: [Emc-developers] [RTAI] rtapi_get_time() returns a constant

J-P,

Ask Paolo on the RTAI mailing list.

https://mail.rtai.org/cgi-bin/mailman/listinfo/rtai

-Bari

On 07/24/2018 11:26 AM, Miceli Jean-Pierre wrote:
> Hi all,
>
>
> I'm J-P working for the REDS institute (Reconfigurable  & Embedded Digital 
> Systems) from the HEIG-VD (School of Management and Engineering Vaud), 
> Switzerland.
>
>
> I started a project with LinuxCNC. As initial ramp-up with the src code, I 
> try to integrate the support for Beckhoff EL2252 digital outputs (EtherCAT 
> module, using LCEC HAL module).
>
>
> After some experiments, I found that RTAPI (rtapi_get_time) or RTAI 
> (rt_get_time() timer related functions are not working on my setup: they 
> return a constant value. I checked if the RT Timer was started (using RTAPI 
> and RTAI functions), all seems OK.
>
>
> Most probably, the configuration of the used HW timer is not correct.
>
> Didi you already have this kind of issue ? Did you have any hints on how to 
> fix it ?
>
>
> Setup:
>
>   *   LinuxCNC 2.7.13 install from the live CD
>   *   machine: Linux A23PC05-linuxCNC 3.4-9-rtai-686-pae #1 SMP PREEMPT 
> Debian 3.4.55-4linuxcnc i686 GNU/Linux
>
>
> Many thanks for your help
> J-P
>
>
>
>
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Emc-developers mailing list
> Emc-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-developers


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] [RTAI] rtapi_get_time() returns a constant, Ethercat mor generally

2018-07-27 Thread Nicklas Karlsson
I know there in scilab called ethercos and even though used for other purposes 
there might be useful information. My myself are on the path with soem/soes but 
currently working with hardware since I discovered drawbacks with the first 
chip i tried.


On Tue, 24 Jul 2018 16:26:30 +
Miceli Jean-Pierre  wrote:

> Hi all,
> 
> 
> I'm J-P working for the REDS institute (Reconfigurable  & Embedded Digital 
> Systems) from the HEIG-VD (School of Management and Engineering Vaud), 
> Switzerland.
> 
> 
> I started a project with LinuxCNC. As initial ramp-up with the src code, I 
> try to integrate the support for Beckhoff EL2252 digital outputs (EtherCAT 
> module, using LCEC HAL module).
> 
> 
> After some experiments, I found that RTAPI (rtapi_get_time) or RTAI 
> (rt_get_time() timer related functions are not working on my setup: they 
> return a constant value. I checked if the RT Timer was started (using RTAPI 
> and RTAI functions), all seems OK.
> 
> 
> Most probably, the configuration of the used HW timer is not correct.
> 
> Didi you already have this kind of issue ? Did you have any hints on how to 
> fix it ?
> 
> 
> Setup:
> 
>   *   LinuxCNC 2.7.13 install from the live CD
>   *   machine: Linux A23PC05-linuxCNC 3.4-9-rtai-686-pae #1 SMP PREEMPT 
> Debian 3.4.55-4linuxcnc i686 GNU/Linux
> 
> 
> Many thanks for your help
> J-P
> 
> 
> 
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Emc-developers mailing list
> Emc-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-developers

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] [RTAI] rtapi_get_time() returns a constant

2018-07-25 Thread Miceli Jean-Pierre
Hi Bari, hi Nicklas


Many thanks for your help/proposals.


I did some more experiments: I created a RTAI module (with no LinuxCNC code). 
This module only does:

  *   Create a RTAI task, call rt_get_real_time_ns() and log this time


This way I can see the time changing. It means RTAI setup is fine and my issue 
is with LCNC HAL or the LCNC HAL module I use (LCEC).


I will try to create a simple RT HAL module with the same feature as above and 
so determine where the issue is located.


J-P


From: bari 
Sent: Tuesday, July 24, 2018 9:08:46 PM
To: emc-developers@lists.sourceforge.net
Subject: Re: [Emc-developers] [RTAI] rtapi_get_time() returns a constant

J-P,

Ask Paolo on the RTAI mailing list.

https://mail.rtai.org/cgi-bin/mailman/listinfo/rtai

-Bari

On 07/24/2018 11:26 AM, Miceli Jean-Pierre wrote:
> Hi all,
>
>
> I'm J-P working for the REDS institute (Reconfigurable  & Embedded Digital 
> Systems) from the HEIG-VD (School of Management and Engineering Vaud), 
> Switzerland.
>
>
> I started a project with LinuxCNC. As initial ramp-up with the src code, I 
> try to integrate the support for Beckhoff EL2252 digital outputs (EtherCAT 
> module, using LCEC HAL module).
>
>
> After some experiments, I found that RTAPI (rtapi_get_time) or RTAI 
> (rt_get_time() timer related functions are not working on my setup: they 
> return a constant value. I checked if the RT Timer was started (using RTAPI 
> and RTAI functions), all seems OK.
>
>
> Most probably, the configuration of the used HW timer is not correct.
>
> Didi you already have this kind of issue ? Did you have any hints on how to 
> fix it ?
>
>
> Setup:
>
>   *   LinuxCNC 2.7.13 install from the live CD
>   *   machine: Linux A23PC05-linuxCNC 3.4-9-rtai-686-pae #1 SMP PREEMPT 
> Debian 3.4.55-4linuxcnc i686 GNU/Linux
>
>
> Many thanks for your help
> J-P
>
>
>
>
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Emc-developers mailing list
> Emc-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-developers


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] [RTAI] rtapi_get_time() returns a constant

2018-07-24 Thread bari
J-P,

Ask Paolo on the RTAI mailing list.

https://mail.rtai.org/cgi-bin/mailman/listinfo/rtai

-Bari

On 07/24/2018 11:26 AM, Miceli Jean-Pierre wrote:
> Hi all,
>
>
> I'm J-P working for the REDS institute (Reconfigurable  & Embedded Digital 
> Systems) from the HEIG-VD (School of Management and Engineering Vaud), 
> Switzerland.
>
>
> I started a project with LinuxCNC. As initial ramp-up with the src code, I 
> try to integrate the support for Beckhoff EL2252 digital outputs (EtherCAT 
> module, using LCEC HAL module).
>
>
> After some experiments, I found that RTAPI (rtapi_get_time) or RTAI 
> (rt_get_time() timer related functions are not working on my setup: they 
> return a constant value. I checked if the RT Timer was started (using RTAPI 
> and RTAI functions), all seems OK.
>
>
> Most probably, the configuration of the used HW timer is not correct.
>
> Didi you already have this kind of issue ? Did you have any hints on how to 
> fix it ?
>
>
> Setup:
>
>   *   LinuxCNC 2.7.13 install from the live CD
>   *   machine: Linux A23PC05-linuxCNC 3.4-9-rtai-686-pae #1 SMP PREEMPT 
> Debian 3.4.55-4linuxcnc i686 GNU/Linux
>
>
> Many thanks for your help
> J-P
>
>
>
>
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Emc-developers mailing list
> Emc-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-developers


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] [RTAI] rtapi_get_time() returns a constant --> rtai, networking?

2018-07-24 Thread Nicklas Karlsson
> Hi all,
> 
> 
> I'm J-P working for the REDS institute (Reconfigurable  & Embedded Digital 
> Systems) from the HEIG-VD (School of Management and Engineering Vaud), 
> Switzerland.
> 
> 
> I started a project with LinuxCNC. As initial ramp-up with the src code, I 
> try to integrate the support for Beckhoff EL2252 digital outputs (EtherCAT 
> module, using LCEC HAL module).
> 
> 
> After some experiments, I found that RTAPI (rtapi_get_time) or RTAI 
> (rt_get_time() timer related functions are not working on my setup: they 
> return a constant value. I checked if the RT Timer was started (using RTAPI 
> and RTAI functions), all seems OK.
> 
> 
> Most probably, the configuration of the used HW timer is not correct.
> 
> Didi you already have this kind of issue ? Did you have any hints on how to 
> fix it ?

I tried to use rt a while ago but have not yet get rtnet up and running. I have 
however tried soem Ethercat master and soes Ethercat slave and they work. I run 
soem Ethercat master within linuxcnc. I should solder and try another board 
before I continue with the hardware for the Ethercat board.

I discovered then using ordinary rt kernel that scheduling is good enough but 
then logging times of messages sent with Wireshark there sometimes is a delay 
of up to 5-10 milli seconds.

You got rtai and rtnet up and running?


> Many thanks for your help
No help right now, only new questions.



Regards Nicklas Karlsson

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


[Emc-developers] [RTAI] rtapi_get_time() returns a constant

2018-07-24 Thread Miceli Jean-Pierre
Hi all,


I'm J-P working for the REDS institute (Reconfigurable  & Embedded Digital 
Systems) from the HEIG-VD (School of Management and Engineering Vaud), 
Switzerland.


I started a project with LinuxCNC. As initial ramp-up with the src code, I try 
to integrate the support for Beckhoff EL2252 digital outputs (EtherCAT module, 
using LCEC HAL module).


After some experiments, I found that RTAPI (rtapi_get_time) or RTAI 
(rt_get_time() timer related functions are not working on my setup: they return 
a constant value. I checked if the RT Timer was started (using RTAPI and RTAI 
functions), all seems OK.


Most probably, the configuration of the used HW timer is not correct.

Didi you already have this kind of issue ? Did you have any hints on how to fix 
it ?


Setup:

  *   LinuxCNC 2.7.13 install from the live CD
  *   machine: Linux A23PC05-linuxCNC 3.4-9-rtai-686-pae #1 SMP PREEMPT Debian 
3.4.55-4linuxcnc i686 GNU/Linux


Many thanks for your help
J-P




--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers