IO Device:F75113 under Windows(32bit & 64bit)

From LEXWiKi

(Difference between revisions)
Jump to: navigation, search
(New page: Category:AllowPages *COMMUNICATION *M303 USB to serial *M387 *GPS module *[[Module:m878a mo...)
Line 1: Line 1:
[[Category:AllowPages]]
[[Category:AllowPages]]
-
*[[Module:COMMUNICATION|COMMUNICATION]]
+
== The Sample code source you can download from ==
-
*[[Module:M303 USB to serial|M303 USB to serial]]
+
-
*[[Module:M387|M387]]
+
-
*[[Module:GPS module|GPS module]]
+
-
*[[Module:m878a module|m878a module]]
+
-
*[[Module:CI770 COM Port module|CI770 COM Port module]]
+
-
*[[Module:OXPCIe954|OXPCIe954]]
+
-
*[[Module:M858 module|M858 module]]
+
-
*[[Module:M008A module|M008A module]]
+
-
*[[Module:DGC-D5030 module|DGC-D5030 module]]
+
-
*[[Module:M904A module|M904A module]]
+
 +
Source file: [ftp://ftp.lex.com.tw/Engineer/SoftSupport/AP_Module/F75113/Window_VS2010/F75113v2.0_src.rar F75113v2.0_src.rar]
-
*BT878 Driver and SDK
+
Binary file: [ftp://ftp.lex.com.tw/Engineer/SoftSupport/AP_Module/F75113/Window_VS2010/F75113v2.0_bin.rar F75113v2.0_bin.rar]
-
**[[BT878 Module Driver and Demo SDK under Windows|BT878 Module Driver and Demo SDK under Windows(32bit & 64bit)]]
+
 +
We do the demo test with a test tool which DIx connect to DOx with Relay.
-
*Touch Panel
+
== How to use this Demo Application ==
-
<!-- *[[Module:Touch Panel|Touch Panel]] -->
+
-
<!-- **[[Touch Panel:COM Port|COM Port]] -->
+
-
<!-- **[[Touch Panel:USB|USB]] -->
+
-
**[[Touch Panel:ELO 2701RSU Dual Serial/USB Controller|ELO 2701RSU Dual Serial/USB Controller (OEM)]]
+
-
**[[Touch Panel:PenMount 6000 & 9000/PenMount RS-232 & USB]]
+
 +
[[Image:F75113v2.0.jpg]]
-
*IO Device
+
1. Press the "Test" button to test CIO1 function
-
<!-- *[[Module:IO Device|IO Device]] -->
+
-
**[[IO Device:F75111 CIO Utility CIO116|F75111 CIO Utility under Linux(32bit & 64bit)]]
+
-
**[[IO Device:81801|81801 WDT under Windows(32bit & 64bit)]]
+
-
**[[IO Device:81801_Linux|81801 WDT under Linux]]
+
-
**[[IO Device:F75111 CIO Utility|F75111 CIO Utility under Windows(32bit & 64bit)]]
+
-
**[[IO Device:F75111 CIO Utility Console under linux|F75111 CIO Utility Console under Linux]]
+
-
**[[IO Device:F75111|F75111 under Windows(32bit & 64bit)]]
+
-
**[[IO Device:F75111 VB6|F75111 VB6 under Windows]]
+
-
**[[IO Device:F75111 C# under Windows |F75111 C# under Windows]]
+
-
**[[IO Device:F75111 under linux|F75111 under linux]]
+
-
**[[IO Device:F75111 under linux_console|F75111 under linux_console]]
+
-
**[[IO Device:F75111 under DOS|F75111 under DOS]]
+
-
**[[IO Device:F75111 GPIO_WDT|F75111 GPIO_WDT]]
+
-
**[[IO Device:SI852DIO|FI/CI/SI/MI DIO/WDT Function under linux]]
+
-
**[[IO Device:852DioNTDriver version|FI/CI/SI/MI DIO/WDT Function under Windows NTDriver version]]
+
-
**[[IO Device:IntelDIO|FI/CI/SI/MI DIO/WDT Function under Windows]]
+
-
**[[IO Device:IntelDIO_CS|FI/CI/SI/MI DIO/WDT C# under Windows]]
+
-
**[[IO Device:F75113 under Windows(32bit & 64bit)|F75113 under Windows(32bit & 64bit)]]
+
 +
2. Press the "C2test" button to test CIO2 function
 +
3. Press the "C3test" button to test CIO3 function
 +
4. Press the "C4test" button to test CIO4 function
-
*LCM Module
+
5. WDT is not run because MB not have F75113
-
<!-- *[[Module:LCM Module|LCM Module]] -->
+
-
**[[LCM Module:LCM under Windows|LCM under Windows]]
+
-
**[[LCM Module:LCM under Linux|LCM under Linux]]
+
-
*LCM Module
+
If the next picture appears
-
<!-- *[[Module:LCM_KeyPad Module|LCM_KeyPad Module]] -->
+
-
**[[LCM Module:LCM_KeyPad under Windows|LCM_KeyPad under Windows]]
+
-
**[[LCM Module:LCM_KeyPad under Linux|LCM_KeyPad under Linux]]
+
 +
[[Image:t3.jpg]]
-
*DPC Module
+
MB no LPC or the drive placement is wrong
-
<!-- *[[Module:DPC Module|LCM Module]] -->
+
-
**[[DPC Module:DPC under Windows|DPC under Windows(32bit & 64bit)]]
+
-
**[[DPC Module:DPC under Linux|DPC under Linux]]
+
-
**[[DPC Module:Brightness setting utility under DOS|Brightness setting utility under DOS]]
+
 +
Drive the location for the next picture
-
*EWF Module
+
[[Image:F75113v2.0folder.jpg]]
-
<!-- *[[Module:EWF Module|EWF Module]] -->
+
== F75113 GPIO Picture ==
-
**[[EWF Module|EWF]]
+
 +
[[Image:t5.jpg]]
-
*RS485 Module
+
== Introduction ==
-
<!-- *[[Module:RS485 Module|RS485 Module]] -->
+
-
**[[RS485 Module|RS485 under Windows]]
+
-
**[[RS485 Module under Linux|RS485 under Linux]]
+
-
**[[RS485 Module under console of Linux|RS485 under console of Linux]]
+
-
**[[RS485 Module under WinCE|RS485 under WinCE]]
+
-
**[[COM Check under Windows|COM Check under Windows]]
+
 +
=== F75113 driver connection ===
-
*BCM70012 Module
+
hinstLib = LoadLibrary(L"Fintek.dll");
-
<!-- *[[Module:BCM70012 Module|BCM70012 Module]] -->
+
if (hinstLib == NULL)
-
**[[BCM70012 Module|BCM70012 Module under Windows]]
+
{
-
**[[BCM70015 Module|BCM70015 Module under Windows]]
+
if(Application->MessageBoxW(L"Load fail Fintek.dll,Continued?",L"Error",16+4)==IDNO)
-
**[[BCM70012/BCM70015 Module under Linux|BCM70012/BCM70015 Module under under Linux]]
+
{
 +
Application->Terminate();
 +
}
 +
return;
 +
}
 +
=== GPIO Status Register Write ===
-
*Battery Monitor Utility for bq2084 <!-- Previous name: PW016 Module -->
+
SETINT2PROC ProcAdd;
-
<!-- *[[Module:PW016 Module|PW016 Module]] -->
+
char *endptr;
-
**[[Battery Monitor Utility under Windows|Battery Monitor Utility for bq2084 under Windows(32bit & 64bit)]]
+
char Numbers[] = "0x20";
-
**[[Battery Monitor Utility for bq2084 under Linux|Battery Monitor Utility for bq2084 under Linux]]
+
char Value[] = "0xF0";
 +
ProcAdd = (SETINT2PROC) GetProcAddress(hinstLib, "GPIO_LPC_W");
 +
if (NULL != ProcAdd)
 +
{
 +
if (! (*ProcAdd)( strtol(Numbers, &endptr, 16), strtol(Value, &endptr, 16)))
 +
{
 +
ShowMessage("Write Fail");
 +
}
 +
}
 +
=== GPIO Status Register Read ===
-
*Hardware Monitor
+
GETINT2PROC ProcAdd1;
-
<!-- *[[Module:Hardware Monitor|Hardware Monitor]] -->
+
int datatest;
-
**[[VT1211(VIA_CX700/VIA_CN700) Hardware Monitor under Windows|VT1211(VIA_CX700/VIA_CN700) Hardware Monitor under Windows]]
+
char NRtest[] = "0x22";
-
**[[VT1211(VIA_CX700/VIA_CN700) Hardware Monitor under Linux|VT1211(VIA_CX700/VIA_CN700) Hardware Monitor under Linux]]
+
ProcAdd1 = (GETINT2PROC) GetProcAddress(hinstLib, "GPIO_LPC_R");
-
**[[F81801U Hardware Monitor under Windows|F81801U Hardware Monitor under Windows(32bit & 64bit)]]
+
if (NULL != ProcAdd1)
-
**[[F81801U Hardware Monitor under Linux|F81801U Hardware Monitor under Linux]]
+
{
 +
if (! (*ProcAdd1)( strtol(NRtest, &endptr, 16), &datatest))
 +
{
 +
ShowMessage("Read Fail");
 +
}
 +
}
 +
=== GPIO Comparison ===
-
*M750A Module
+
-
**[[M750A module under Linux Limitation|M750A module under Linux Limitation]]
+
if( data == 0xF0 )
 +
{
 +
((CStatic *)GetDlgItem(IDC_LED_DO0))->SetBitmap(::LoadBitmap(AfxGetInstanceHandle(),MAKEINTRESOURCE(IDB_BITMAP_Green)));
 +
((CStatic *)GetDlgItem(IDC_LED_DO1))->SetBitmap(::LoadBitmap(AfxGetInstanceHandle(),MAKEINTRESOURCE(IDB_BITMAP_Green)));
 +
((CStatic *)GetDlgItem(IDC_LED_DO2))->SetBitmap(::LoadBitmap(AfxGetInstanceHandle(),MAKEINTRESOURCE(IDB_BITMAP_Green)));
 +
((CStatic *)GetDlgItem(IDC_LED_DO3))->SetBitmap(::LoadBitmap(AfxGetInstanceHandle(),MAKEINTRESOURCE(IDB_BITMAP_Green)));
 +
if( data2 == 0x01 )
 +
{
 +
((CStatic *)GetDlgItem(IDC_LED_DI0))->SetBitmap(::LoadBitmap(AfxGetInstanceHandle(),MAKEINTRESOURCE(IDB_BITMAP_Green)));
 +
((CStatic *)GetDlgItem(IDC_LED_DI1))->SetBitmap(::LoadBitmap(AfxGetInstanceHandle(),MAKEINTRESOURCE(IDB_BITMAP_Red)));
 +
((CStatic *)GetDlgItem(IDC_LED_DI2))->SetBitmap(::LoadBitmap(AfxGetInstanceHandle(),MAKEINTRESOURCE(IDB_BITMAP_Red)));
 +
((CStatic *)GetDlgItem(IDC_LED_DI4))->SetBitmap(::LoadBitmap(AfxGetInstanceHandle(),MAKEINTRESOURCE(IDB_BITMAP_Red)));
 +
}
 +
.....
 +
}
 +
=== F75113 driver delete ===
-
 
+
char N9[] = "0x10";
-
*LAN By Pass
+
char V9[] = "0x00";
-
**[[LAN By Pass Utility under Windows|LAN By Pass Utility under Windows(32bit & 64bit)]]
+
ProcAdd = (SETINT2PROC) GetProcAddress(hinstLib, "GPIO_LPC_W");
-
**[[LAN By Pass Utility under Linux|LAN By Pass Utility under Linux]]
+
if (NULL != ProcAdd)
-
 
+
{
-
 
+
if (! (*ProcAdd)( strtol(N9, &endptr, 16), strtol(V9, &endptr, 16)))
-
*CPC Utility
+
{
-
**[[CPC Utility under Windows|CPC Utility under Windows(32bit & 64bit)]]
+
ShowMessage("Write Fail");
-
**[[CPC Utility under Linux|CPC Utility under Linux]]
+
}
-
**[[CPC Utility C# under Windows|CPC Utility C# under Windows]]
+
}
-
 
+
if (hinstLib != NULL)
-
 
+
{
-
*Key_Pad Utility
+
FreeLibrary(hinstLib);
-
**[[Key_Pad Utility Windows|Key_Pad Utility Windows(32bit & 64bit)]]
+
}
-
 
+
-
 
+
-
*PW401 Utility
+
-
**[[PW401 Utility Windows|PW401 Utility Windows(32bit & 64bit)]]
+
-
 
+
-
 
+
-
*WinCheck
+
-
**[[WinCheck Kpower|WinCheck Kpower Windows]]
+
-
 
+
-
*[[Module:FAQ|ALL FAQ of Module]]
+

Revision as of 14:00, 15 September 2017

Contents

The Sample code source you can download from

Source file: F75113v2.0_src.rar

Binary file: F75113v2.0_bin.rar

We do the demo test with a test tool which DIx connect to DOx with Relay. 

How to use this Demo Application

Image:F75113v2.0.jpg

1. Press the "Test" button to test CIO1 function

2. Press the "C2test" button to test CIO2 function

3. Press the "C3test" button to test CIO3 function

4. Press the "C4test" button to test CIO4 function

5. WDT is not run because MB not have F75113


If the next picture appears

Image:t3.jpg

MB no LPC or the drive placement is wrong

Drive the location for the next picture

Image:F75113v2.0folder.jpg

F75113 GPIO Picture

Image:t5.jpg

Introduction

F75113 driver connection

 hinstLib = LoadLibrary(L"Fintek.dll");
 if (hinstLib == NULL)
 {
    if(Application->MessageBoxW(L"Load fail Fintek.dll,Continued?",L"Error",16+4)==IDNO)
    {
      Application->Terminate();
    }
      return; 
 }

GPIO Status Register Write

 SETINT2PROC ProcAdd;
 char *endptr;
 char Numbers[] = "0x20";
 char Value[] =   "0xF0";
 ProcAdd = (SETINT2PROC) GetProcAddress(hinstLib, "GPIO_LPC_W");
 if (NULL != ProcAdd)
 {
   if (! (*ProcAdd)( strtol(Numbers, &endptr, 16), strtol(Value, &endptr, 16)))
   {
     ShowMessage("Write Fail");
   }
 }

GPIO Status Register Read

 GETINT2PROC ProcAdd1;
 int datatest;
 char NRtest[] = "0x22";
 ProcAdd1 = (GETINT2PROC) GetProcAddress(hinstLib, "GPIO_LPC_R");
 if (NULL != ProcAdd1)
 {
   if (! (*ProcAdd1)( strtol(NRtest, &endptr, 16), &datatest))
   {
     ShowMessage("Read Fail");
   }
 }

GPIO Comparison

 if( data == 0xF0 )
 {
  ((CStatic *)GetDlgItem(IDC_LED_DO0))->SetBitmap(::LoadBitmap(AfxGetInstanceHandle(),MAKEINTRESOURCE(IDB_BITMAP_Green)));
  ((CStatic *)GetDlgItem(IDC_LED_DO1))->SetBitmap(::LoadBitmap(AfxGetInstanceHandle(),MAKEINTRESOURCE(IDB_BITMAP_Green)));
  ((CStatic *)GetDlgItem(IDC_LED_DO2))->SetBitmap(::LoadBitmap(AfxGetInstanceHandle(),MAKEINTRESOURCE(IDB_BITMAP_Green)));
  ((CStatic *)GetDlgItem(IDC_LED_DO3))->SetBitmap(::LoadBitmap(AfxGetInstanceHandle(),MAKEINTRESOURCE(IDB_BITMAP_Green)));	
   if( data2 == 0x01 )
   {
     ((CStatic *)GetDlgItem(IDC_LED_DI0))->SetBitmap(::LoadBitmap(AfxGetInstanceHandle(),MAKEINTRESOURCE(IDB_BITMAP_Green)));
     ((CStatic *)GetDlgItem(IDC_LED_DI1))->SetBitmap(::LoadBitmap(AfxGetInstanceHandle(),MAKEINTRESOURCE(IDB_BITMAP_Red)));
     ((CStatic *)GetDlgItem(IDC_LED_DI2))->SetBitmap(::LoadBitmap(AfxGetInstanceHandle(),MAKEINTRESOURCE(IDB_BITMAP_Red)));
     ((CStatic *)GetDlgItem(IDC_LED_DI4))->SetBitmap(::LoadBitmap(AfxGetInstanceHandle(),MAKEINTRESOURCE(IDB_BITMAP_Red)));
   }
   .....
 }

F75113 driver delete

  char N9[] = "0x10";
  char V9[] = "0x00";
  ProcAdd = (SETINT2PROC) GetProcAddress(hinstLib, "GPIO_LPC_W");
   if (NULL != ProcAdd)
    {
     if (! (*ProcAdd)( strtol(N9, &endptr, 16), strtol(V9, &endptr, 16)))
      {
       ShowMessage("Write Fail");
      }
    }
    if (hinstLib != NULL)
    {
     FreeLibrary(hinstLib);
    }
Personal tools