Just one more thing i noticed and could also cause problems:
If Cycle_Number overflow number would be changed by the master, then this
should be somehow reported to a slave, because during the Calibration Phase,
the slave has to set/define the Reply_Cycle_Number in the
Request_Calibration_Frame. The slave should not define the Reply_Cycle_Number
which is higher than the Cycle_Number overflow number.
Regards
Klemen
On Friday, January 3, 2014 4:26 PM, Jan Kiszka <jan.kis...@web.de> wrote:
On 2014-01-03 16:10, Klemen Dovrtel wrote:
> Can you change the number used by the master to overflow the Cycle Number.
> The number 4.151.347.200 is very close to 2^32 (which is the maximum Cycle
> Number) and suits to all phasing/period defined by 4 bits (16 in decimal).
Then we also need to restrict period to <= 16, rejecting other values.
Some automatic calculation of the overflow number + a rejection of
configurations where this becomes >= 2^32 would be nicer.
Jan
> On Friday, January 3, 2014 12:22 PM, Jan Kiszka <jan.kis...@web.de> wrote:
>
> On 2013-12-12 21:13, Klemen Dovrtel wrote:
>
>> Hello everybody,
>>
>> I am studding rtnet documentation and i am not sure of Rtnet slave <phasing>
>> and <period> setup.
>>
>> How does the slave knows it is his turn to send data? I assume all the
>> informations should be in the Synchronisation Frame -> Cycle Number field
>> which is incremented by one in every new cycle, and it is reset to zero on
>> overflow. What i am not sure is when does it overflow? I would suspect that
>> the overflow number is set in a way that the (overflow_number+1) can be
>> divided by all period numbers in the tdma.conf file without a reminder.
>> Otherwise the slave slots can not be evenly distributed. I could not find
>> any information about this.
>>
>
> Good point! This is not taken into account by the implementation. So if
> the configuration contains non-power-of-two periods, it will face
> skipped slots on wrap-around of the 32-bit cycle counter.
>
> Jan
>
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
RTnet-users mailing list
RTnet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rtnet-users