Difference between revisions of "FWCONFIG"

From SoftMC-Wiki
Jump to: navigation, search
(Supported options:)
Line 1: Line 1:
 +
 
= FWCONFIG =
 
= FWCONFIG =
  
File used for setting important sotMC system parameters before starting the fw. It contains firmware initialization options.
+
File used for setting important sotMC system parameters before starting the fw. It contains firmware initialization options. {{Note/Caution| To be used only by experienced user! }}
{{Note/Caution| To be used only by experienced user! }}
 
  
<br/>
+
&nbsp;
  
 +
&nbsp;
  
 +
== Commands ==
  
==Commands==
+
=== Syntax ===
===Syntax===
 
:option value[{byte|kbyte|mbyte}]<br />
 
===Supported options:===
 
  
* ramdisksize
+
:option value[{byte|kbyte|mbyte}]
* libstacksize
+
 
* taskstacksize
+
=== Supported options: ===
* ifaddr
+
 
* sysdatarecfilename
+
*ramdisksize  
* sysdatareclen
+
*libstacksize  
<pre>
+
*taskstacksize  
system data recorder length (number of records)
+
*ifaddr  
 +
*sysdatarecfilename  
 +
*sysdatareclen  
 +
<pre>system data recorder length (number of records)
 
</pre>
 
</pre>
* sysdatarecposttriglen
+
 
* haplsstartoutput
+
*sysdatarecposttriglen  
* haplsrange
+
*haplsstartoutput  
* translatormempartsize
+
*haplsrange  
<pre>
+
*translatormempartsize  
initial size for translator memory partition
+
<pre>initial size for translator memory partition
 
</pre>
 
</pre>
* passbuffersize
+
 
* ipaddressmask
+
*passbuffersize  
<pre>
+
*ipaddressmask  
                Examples:  
+
<pre>               Examples:  
 
        ipaddressmask 192.168.20.20:255.255.0.0  
 
        ipaddressmask 192.168.20.20:255.255.0.0  
 
                 ipaddressmask dhcp  
 
                 ipaddressmask dhcp  
</pre><br>
 
* defaultgw
 
<pre>
 
sets default gateway, available since version 0.4.17.2
 
'''Examples''':
 
'''defaultgw''' 10.4.20.1
 
<br>
 
 
</pre>
 
</pre>
* netif
+
 
* sleep
+
&nbsp;
<pre>
+
 
delay in millesconds
+
*defaultgw
 +
<pre>sets default gateway, available since version 0.4.17.2
 +
Examples:
 +
defaultgw 10.4.20.1
 +
 
 
</pre>
 
</pre>
* stringblockpreload
+
 
<pre>
+
*netif
initial size of string descriptors. Default is 300,000. Reduce this value if application has less than 300,000 string variables.
+
*sleep
 +
<pre>delay in millesconds
 +
</pre>
 +
 
 +
*stringblockpreload  
 +
<pre>initial size of string descriptors. Default is 300,000. Reduce this value if application has less than 300,000 string variables.
 
               Set a number of pre-allocated fixed blocks for string management  
 
               Set a number of pre-allocated fixed blocks for string management  
 
               Example: stringblockpreload 200000  
 
               Example: stringblockpreload 200000  
Line 58: Line 62:
 
               BlockMallocCounter: maximum ("saturated") number of fixed blocks   
 
               BlockMallocCounter: maximum ("saturated") number of fixed blocks   
 
               BlockInuseCounter: number of blocks allocated at this moment  
 
               BlockInuseCounter: number of blocks allocated at this moment  
</pre><br>
 
* stringpreload
 
<pre>
 
initial size of BASIC strings. Default is 0. Strings are created empty.
 
 
</pre>
 
</pre>
* libstacksize
+
 
<pre>
+
&nbsp;
library stack size
+
 
 +
*stringpreload
 +
<pre>initial size of BASIC strings. Default is 0. Strings are created empty.
 +
</pre>
 +
 
 +
*libstacksize  
 +
<pre>library stack size
 
</pre>
 
</pre>
* taskstacksize
+
 
<pre>
+
*taskstacksize  
default task stack size
+
<pre>default task stack size
 
</pre>
 
</pre>
* sysdatarecfilename
+
 
<pre>
+
*sysdatarecfilename  
system data recorder file name
+
<pre>system data recorder file name
 
</pre>
 
</pre>
  
* hpetfreq
+
*hpetfreq  
* defaultbus
+
*defaultbus  
* singlebus
+
*singlebus  
* cantimings
+
*cantimings  
* socandevice
+
*socandevice  
* tcp_keepalive_time
+
*tcp_keepalive_time  
* tcp_keepalive_intvl
+
*tcp_keepalive_intvl  
* tcp_keepalive_probes
+
*tcp_keepalive_probes  
See '''[[Socket_keep-alive_timeouts|Socket_keep-alive_timeouts]]'''<br>
 
  
 +
See '''[[Socket_keep-alive_timeouts|Socket_keep-alive_timeouts]]'''
  
<br><br>
+
<br/> <br/> '''Examples''':<br/> '''ipaddressmask''' 192.168.20.20:255.255.0.0<br/> '''sleep''' 20<br/> '''libstacksize''' 20kbyte<br/> '''hpetfreq''' 2000 for cycle time 500 microsecond or '''hpetfreq''' 1000 for cycle time up to 1 millisecond
'''Examples''':<br>
 
'''ipaddressmask''' 192.168.20.20:255.255.0.0 <br />
 
'''sleep''' 20 <br />
 
'''libstacksize''' 20kbyte<br />
 
'''hpetfreq''' 2000 for cycle time 500 microsecond   or '''hpetfreq''' 1000 for cycle time up to 1 millisecond <br />
 
  
<br/>
+
&nbsp;

Revision as of 16:46, 4 December 2018

FWCONFIG

File used for setting important sotMC system parameters before starting the fw. It contains firmware initialization options.
CAUTION.svgCAUTION
To be used only by experienced user!

 

 

Commands

Syntax

option value[{byte|kbyte|mbyte}]

Supported options:

  • ramdisksize
  • libstacksize
  • taskstacksize
  • ifaddr
  • sysdatarecfilename
  • sysdatareclen
system data recorder length (number of records)
  • sysdatarecposttriglen
  • haplsstartoutput
  • haplsrange
  • translatormempartsize
initial size for translator memory partition
  • passbuffersize
  • ipaddressmask
                Examples: 
	        ipaddressmask 192.168.20.20:255.255.0.0 
                ipaddressmask dhcp 

 

  • defaultgw
sets default gateway, available since version 0.4.17.2
Examples:
defaultgw 10.4.20.1 

  • netif
  • sleep
delay in millesconds
  • stringblockpreload
initial size of string descriptors. Default is 300,000. Reduce this value if application has less than 300,000 string variables.
               Set a number of pre-allocated fixed blocks for string management 
               Example: stringblockpreload 200000 
               Rules:
               1. For best performance This number shell be tuned to the maximum number (BlockMallocCounter) of "common shared" strings/structures used by application
               Hints: 
               BlockMallocCounter: maximum ("saturated") number of fixed blocks  
               BlockInuseCounter: number of blocks allocated at this moment 

 

  • stringpreload
initial size of BASIC strings. Default is 0. Strings are created empty.
  • libstacksize
library stack size
  • taskstacksize
default task stack size
  • sysdatarecfilename
system data recorder file name
  • hpetfreq
  • defaultbus
  • singlebus
  • cantimings
  • socandevice
  • tcp_keepalive_time
  • tcp_keepalive_intvl
  • tcp_keepalive_probes

See Socket_keep-alive_timeouts



Examples:
ipaddressmask 192.168.20.20:255.255.0.0
sleep 20
libstacksize 20kbyte
hpetfreq 2000 for cycle time 500 microsecond or hpetfreq 1000 for cycle time up to 1 millisecond