05.01.2013 Views

eWON General Reference Guide - eWON wiki

eWON General Reference Guide - eWON wiki

eWON General Reference Guide - eWON wiki

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>General</strong> <strong>Reference</strong> <strong>Guide</strong> Retrieving data from <strong>eWON</strong><br />

• The following files only appear if the user owns the "Config rights":<br />

• Program.bas<br />

• ewonfwr.edf<br />

• config.bin<br />

• config.txt<br />

• During an FTP session, all the files are read-only, except for users who own the "Config rights".<br />

7.2 Files Format<br />

Files format are text semicolon (;) separated files that may be inserted inside a program such as Excel. The first row gives the columns names,<br />

and the next ones the values of the different columns.<br />

For example, the content of the rt_alm.txt file:<br />

"TagId";"AlarmTime";"TagName";"AlStatus";"AlType";"StatusTime";"UserAck";"Description"<br />

1;"7/09/04 13:19:12";"Level tank A";"ALM";"LOW";"7/09/04 13:19:12";"";"Fuel level on Tank A"<br />

7.2.1 Config.txt : New Line character (NLSeparator)<br />

Firmware 5 specific feature<br />

For technical purposes, the character used (LF char 0x0A) to separate parameters in some fields is replaced by a .<br />

Fields where character could be found in config.txt are: IOServerData#, Information of <strong>eWON</strong>, Description of Tag.<br />

Fields where character could be found in comcfg.txt are: VPNSecretKey, VPNSecretCert, VPNCACert<br />

With firmware 5, you will find the following parameter:<br />

IOSrvData0:MinInterval:10MaxInterval:268435455ReverseCount:0<br />

has the ASCII code 182 (0xB6)<br />

The end of the line is always CR+LF (0x0D 0x0A).<br />

With firmware 4, you will find the following parametesr:<br />

IOSrvData0:MinInterval:10 ended by a LF character 0x0A<br />

MaxInterval:268435455 ended by a LF character 0x0A<br />

ReverseCount:0 ended by a CR+LF characters 0x0D 0x0A<br />

In firmware 5, you can force the use of ’LF’ or ’’ with the NLSeparator parameter (in config.txt file).<br />

NLSeparator<br />

0 (default) : use the ’’ (0xB6) as separator in IOServerData# field.<br />

1 : use the ’LF’ (0x0A) as separator in IOServerData# field (for<br />

compatibility with firmware 4).<br />

note: If the config is cleared or if the <strong>eWON</strong> is formatted, the NLSeparator returns to 0.<br />

note: When you put a config.txt file by FTP to an <strong>eWON</strong> with firmware 5, it handles correctly the 2 kinds of separator.<br />

RG-001-0-EN ver 1.14 <strong>eWON</strong>® - 02/05/2012 - ©<strong>eWON</strong> sa Page 182

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!