matrix_df hotmail wrote:
> Hello
> 
> 
>>
>> matrix_df hotmail wrote:
>> > Hello Jan
>> >
>> > Just a question to your output of your test program
>> >> cycle #3500, time 1155262131.598494530 s, offset 3309740011269 ns
>> >
>> > Is the time printed the exact cycle time on local host or the output of
>> > a gettime function (which one)?
>>
>> See the example code: its the local time + the master clock offset.
> Which example code?
> Can I read t he offset from user mode?  How?
> 
>>
>> > How can I get the the exact time of a cycle start?
>>
>> Mmm, only by extending rtmac_waitinfo so that this value is returned as
>> well. Is this data only informative for you or do you plan to derive
>> some application functionality from it?
> To know the exact start of a cycle would be good to caculate the time
> the xmit thread must be started
> earlier to send data within the same cycle.
> It would be also valueable for profiling.
> 
>>
>> > Is the output of the offset from a call to
>> > ioctl_rt(tdma, RTMAC_RTIOC_TIMEOFFSET, &time_offset) ?
>> >
>>
>> That's the offset between master and slave clock for this cycle. It says
>> nothing about he cycle start.
> I know.
> 
>> Jan
> 
> Jochen
> 
> 

I just committed another round of modifications to that API, see latest
SVN. You now have this waitinfo:

struct rtmac_waitinfo {
    unsigned int    type;
    size_t          size;
    unsigned long   cycle_no;
    uint64_t        cycle_start;
    int64_t         clock_offset;
};

I think this makes RTMAC_RTIOC_WAITONCYCLE_EX a bit more useful (and
that there are no users relying on the ABI is obvious given the bugs you
found). See also updated examples/xenomai/native/tdma-api.c for the usage.

The modification is only tested on a master so far. This leaves you a
chance to find some bugs. ;)

HTH,
Jan

Attachment: signature.asc
Description: OpenPGP digital signature

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
RTnet-users mailing list
RTnet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rtnet-users

Reply via email to