<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to feature-requests</title><link>https://sourceforge.net/p/canfestival/feature-requests/</link><description>Recent changes to feature-requests</description><atom:link href="https://sourceforge.net/p/canfestival/feature-requests/feed.rss" rel="self"/><language>en</language><lastBuildDate>Thu, 19 Sep 2013 11:30:51 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/canfestival/feature-requests/feed.rss" rel="self" type="application/rss+xml"/><item><title>Allow to define timer table externally</title><link>https://sourceforge.net/p/canfestival/feature-requests/4/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sandro Boehler</dc:creator><pubDate>Thu, 19 Sep 2013 11:30:51 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netdd061a1cd5dfd15f850c88030e60331469671c2a</guid></item><item><title>Unlock reserved indexes  0x1019 - 0x11FF</title><link>https://sourceforge.net/p/canfestival/feature-requests/3/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ilyaik</dc:creator><pubDate>Mon, 11 Mar 2013 14:15:38 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net29d38002c8c1e85a8184df737a4c7a6a08bd7ea1</guid></item><item><title>SDO server error messages</title><link>https://sourceforge.net/p/canfestival/feature-requests/2/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">mursus</dc:creator><pubDate>Sat, 19 Jan 2013 10:11:26 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net849ade662d86ee0ae20bb3ac73e4427661dcc87e</guid></item><item><title>Add more checks to SDO client operations</title><link>https://sourceforge.net/p/canfestival/feature-requests/1/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Edouard TISSERANT</dc:creator><pubDate>Thu, 09 Sep 2010 14:03:04 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netfe0113c790260e62ffd2391e9664525848ad9def</guid></item></channel></rss>