Difference between revisions of "ODBC Service"
Line 60: | Line 60: | ||
== Configuration == | == Configuration == | ||
− | <span style="font-size:medium;">1.Use file explorer to open ODBC Service folder | + | <span style="font-size:medium;">1.Use file explorer to open ODBC Service folder</span><span style="font-size:small;">(Default: C:\Program Files (x86)\Advantech\Agent_ODBC_Handler)</span> |
<span style="font-size:medium;">2.</span><span style="font-size:medium;">Open the file '''ODBC_Handler.ini'''</span> | <span style="font-size:medium;">2.</span><span style="font-size:medium;">Open the file '''ODBC_Handler.ini'''</span> | ||
Line 66: | Line 66: | ||
<span style="font-size:medium;">3.Config the [Text] session</span> | <span style="font-size:medium;">3.Config the [Text] session</span> | ||
− | <span style="font-size:medium;">FilePath: Set path of the database file (CSV file) location | + | <span style="font-size:medium;">FilePath: Set path of the database file (CSV file) location</span> |
− | + | <span style="font-size:medium;">FieldName & FieldDataType: Define each field name's data type</span> | |
− | < | + | <pre>[Text] |
+ | FilePath=D:\txt | ||
+ | FieldName=TIME,temperature,humidity,location | ||
+ | FieldDataType=timestamp,float,double,string | ||
+ | </pre> |
Revision as of 10:04, 21 May 2018
Introduction
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 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:
- Append data to database: User write data to database (CSV file) please add data after the last index.
- Add database (CSV file) is invalid at runtime service.
- Recycle: If user wants to clear data in database please start from the first index.
- Have need of timestamp item and put in the fisrt column about data of database.
- 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.
3.Select installation folder then click "Next"
4.Click "Next" to begin the installation
5. complete the installation, click "Finish" to exit the setup wizard
Configuration
1.Use file explorer to open ODBC Service folder(Default: C:\Program Files (x86)\Advantech\Agent_ODBC_Handler)
2.Open the file ODBC_Handler.ini
3.Config the [Text] session
FilePath: Set path of the database file (CSV file) location
FieldName & FieldDataType: Define each field name's data type
[Text] FilePath=D:\txt FieldName=TIME,temperature,humidity,location FieldDataType=timestamp,float,double,string