Difference between revisions of "ODBC Service"

From ESS-WIKI
Jump to: navigation, search
Line 52: Line 52:
  
 
[[File:ODBC install 3.PNG|500x400px|ODBC install 3.PNG]]
 
[[File:ODBC install 3.PNG|500x400px|ODBC install 3.PNG]]
 +
  
 
<span style="font-size:medium;">5. complete&nbsp;the installation, click "Finish" to exit the setup wizard</span>
 
<span style="font-size:medium;">5. complete&nbsp;the installation, click "Finish" to exit the setup wizard</span>
  
 
<span style="font-size:medium;">[[File:ODBC install 4.PNG|500x400px|ODBC install 4.PNG]]</span>
 
<span style="font-size:medium;">[[File:ODBC install 4.PNG|500x400px|ODBC install 4.PNG]]</span>
 
 
  
 
== Configuration​ ==
 
== Configuration​ ==

Revision as of 03:52, 25 May 2018

Introduction

ODBC architect.png


Open Database Connectivity (ODBC) is a standard API for access database. It design independent of database systems and operating systems.

ODBC service can become multi-module interface. User just store data in csv file and ODBC handler can upload data to Cloud.


ODBC Service

ODBC FlowChart.png


ODBC service can easily upload data to the cloud. It will be load the config file and the last data of system record when the service does initialization. The last recorded data Compare with data of database (CSV file) to decide whether to retain index value or not. Every time new data is detected from database, the service will upload new data to cloud and record the last data that is prevent repeat to upload when the service is restarted.


User need observe the following points:

  1. Append data to database: User write data to database (CSV file) please add data after the last index.
  2. Add database (CSV file) is invalid at runtime service.
  3. Recycle: If user wants to clear data in database please start from the first index.
  4. Have need of timestamp item and put in the fisrt column about data of database.
  5. Don't prohibit reading permission when user write data to database.


How to

Installation

1.Double click Agent_ODBC_Handler_X.X.X.exe to install.

2.Click "Next" to continue the setup wizard.

ODBC install 1.PNG


3.Select installation folder then click "Next"

ODBC install 2.PNG


4.Click "Next" to begin the installation

ODBC install 3.PNG


5. complete the installation, click "Finish" to exit the setup wizard

ODBC install 4.PNG

Configuration​

1.Use file explorer to open ODBC Service folder.(Default: C:\Program Files (x86)\Advantech\Agent_ODBC_Handler).

2.Edit the file ODBC_Handler.ini

3.Config the [Text] session.

FilePath: Set path of the database file (CSV file) location​.

FieldName & FieldDataType: Define the data type of field name. FieldName is according to database (CSV file) to set. User arrangement according to "FieldName" item to give data type in "FieldDataType" item.

Support data type: timestamp, double, string, float, boolean.


Example :

Database (CSV file)

ODBC set config.JPG


ODBC_Handler.ini

[Text]
FilePath=D:\txt
FieldName=TIME,temperature,humidity,location
FieldDataType=timestamp,float,double,string


4.Restart service of Agent_ODBC_handler.

5. Login RMM 3.3 site and turn on auto-report.

ODBC set config1.PNG

Json data formate

Release