<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to feature-requests</title><link href="https://sourceforge.net/p/canfestival/feature-requests/" rel="alternate"/><link href="https://sourceforge.net/p/canfestival/feature-requests/feed.atom" rel="self"/><id>https://sourceforge.net/p/canfestival/feature-requests/</id><updated>2013-09-19T11:30:51.116000Z</updated><subtitle>Recent changes to feature-requests</subtitle><entry><title>Allow to define timer table externally</title><link href="https://sourceforge.net/p/canfestival/feature-requests/4/" rel="alternate"/><published>2013-09-19T11:30:51.116000Z</published><updated>2013-09-19T11:30:51.116000Z</updated><author><name>Sandro Boehler</name><uri>https://sourceforge.net/u/sabora/</uri></author><id>https://sourceforge.netdd061a1cd5dfd15f850c88030e60331469671c2a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I propose to allow to define the timer table externally via a #define (timers.c):&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="cp"&gt;#ifndef HAS_EXTERNAL_TIMER_TABLE&lt;/span&gt;
&lt;span class="cm"&gt;/*  ---------  The timer table --------- */&lt;/span&gt;
&lt;span class="n"&gt;s_timer_entry&lt;/span&gt; &lt;span class="n"&gt;timers&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;MAX_NB_TIMER&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{{&lt;/span&gt;&lt;span class="n"&gt;TIMER_FREE&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;},};&lt;/span&gt;
&lt;span class="cp"&gt;#endif&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;This allows having multiple timer threads using the same code basis &lt;strong&gt;without modifying the original library code&lt;/strong&gt;, following this pattern:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="c1"&gt;// &amp;lt;applicfg.h&amp;gt;:&lt;/span&gt;
&lt;span class="cp"&gt;#define HAS_EXTERNAL_TIMER_TABLE&lt;/span&gt;
&lt;span class="cp"&gt;#define timers getTimersList()&lt;/span&gt;
&lt;span class="n"&gt;s_timer_entry&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="nf"&gt;getTimersList&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;

&lt;span class="c1"&gt;// &amp;lt;timers_driver.c or any other appropriate&amp;gt;:&lt;/span&gt;
&lt;span class="k"&gt;static&lt;/span&gt; &lt;span class="n"&gt;g_timer_entry&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;timersLists&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;256&lt;/span&gt;&lt;span class="p"&gt;];&lt;/span&gt;
&lt;span class="n"&gt;s_timer_entry&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="nf"&gt;getTimersList&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;timersLists&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;getIndexForTaskId&lt;/span&gt;&lt;span class="p"&gt;()];&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;In this example &lt;code&gt;timers[n]&lt;/code&gt; would expand to &lt;code&gt;getTimersList()[n]&lt;/code&gt; with a list per running timer task, a variant would be to have the timers lists per object dictionary:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="c1"&gt;// &amp;lt;applicfg.h&amp;gt;:&lt;/span&gt;
&lt;span class="cp"&gt;#define HAS_EXTERNAL_TIMER_TABLE&lt;/span&gt;
&lt;span class="cp"&gt;#define timers getTimersList(d)&lt;/span&gt;
&lt;span class="n"&gt;s_timer_entry&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="nf"&gt;getTimersList&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;CO_Data&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="c1"&gt;// &amp;lt;timers_driver.c or any other appropriate&amp;gt;:&lt;/span&gt;
&lt;span class="k"&gt;static&lt;/span&gt; &lt;span class="n"&gt;g_timer_entry&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;timersLists&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;256&lt;/span&gt;&lt;span class="p"&gt;];&lt;/span&gt;
&lt;span class="n"&gt;s_timer_entry&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="nf"&gt;getTimersList&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;CO_Data&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;timersLists&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;getIndexForOD&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;)];&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;</summary></entry><entry><title>Unlock reserved indexes  0x1019 - 0x11FF</title><link href="https://sourceforge.net/p/canfestival/feature-requests/3/" rel="alternate"/><published>2013-03-11T14:15:38Z</published><updated>2013-03-11T14:15:38Z</updated><author><name>ilyaik</name><uri>https://sourceforge.net/u/ilyaik/</uri></author><id>https://sourceforge.net29d38002c8c1e85a8184df737a4c7a6a08bd7ea1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi!&lt;br /&gt;
I have to use indexes from 0x1019 to 0x11FF (some of them) in my application. And it would be perfect to unlock them in Object Editor to edit.&lt;/p&gt;
&lt;p&gt;Unfortunetly, i can't edit our local protocol and have to search alternative ways. And at the same time, a don't want to stop using CANFestival stack. So, unlocking of those indexes would be perfect!&lt;br /&gt;
Thank you!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SDO server error messages</title><link href="https://sourceforge.net/p/canfestival/feature-requests/2/" rel="alternate"/><published>2013-01-19T10:11:26Z</published><updated>2013-01-19T10:11:26Z</updated><author><name>mursus</name><uri>https://sourceforge.net/u/mursus/</uri></author><id>https://sourceforge.net849ade662d86ee0ae20bb3ac73e4427661dcc87e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The SDO server of CanFestival is not sending 0x0504 0001 error message if command specifier is invalid.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Add more checks to SDO client operations</title><link href="https://sourceforge.net/p/canfestival/feature-requests/1/" rel="alternate"/><published>2010-09-09T14:03:04Z</published><updated>2010-09-09T14:03:04Z</updated><author><name>Edouard TISSERANT</name><uri>https://sourceforge.net/u/etisserant/</uri></author><id>https://sourceforge.netfe0113c790260e62ffd2391e9664525848ad9def</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have bumped into problems with CanFestival SDO client operations&lt;br /&gt;
when reading/writing parameters fast from/to other CANopen modules.&lt;br /&gt;
The problem occurs when e.g. last read operation ended to timeout and&lt;br /&gt;
then immediately starting to read another parameter from the same&lt;br /&gt;
device. If the remote device still responded to last read request, the&lt;br /&gt;
response of last operation might be used to newly started SDO&lt;br /&gt;
operation although the response was for different parameter. This&lt;br /&gt;
causes confusion with the read values.&lt;/p&gt;
&lt;p&gt;However, there's rather easy solution for this; check that the index&lt;br /&gt;
and subindex of the SDO response frame from the SDO server match to&lt;br /&gt;
newly started SDO client operation. If they do not match, simply&lt;br /&gt;
ignore the response. This requires following changes; implement index&lt;br /&gt;
/ sub-index checking to each SDO response handling frame for SDO&lt;br /&gt;
client branches in proceedSDO and ignoring the frames in case they do&lt;br /&gt;
not match. I was thinking I could implement this and send a patch for&lt;br /&gt;
you to add it to CanFestival version control.&lt;/p&gt;
&lt;p&gt;How do you like the idea? I think this should be implemented to avoid&lt;br /&gt;
situations described above.&lt;/p&gt;
&lt;p&gt;BR. Jari Kuusisto&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>