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...)
Current revision (15:48, 15 September 2017) (edit) (undo)
 
(3 intermediate revisions not shown.)
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_x86.rar F75113v2.0_bin_x86.rar]
-
**[[BT878 Module Driver and Demo SDK under Windows|BT878 Module Driver and Demo SDK under Windows(32bit & 64bit)]]
+
 +
Binary file: [ftp://ftp.lex.com.tw/Engineer/SoftSupport/AP_Module/F75113/Window_VS2010/F75113v2.0_bin_x64.rar F75113v2.0_bin_x64.rar]
-
*Touch Panel
+
We do the demo test with a test tool which DIx connect to DOx with Relay.
-
<!-- *[[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]]
+
 +
== How to use this Demo Application ==
-
*IO Device
+
[[Image:F75113picter.jpg]]
-
<!-- *[[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)]]
+
 +
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
-
*LCM Module
+
4. Press the "C4test" button to test CIO4 function
-
<!-- *[[Module:LCM Module|LCM Module]] -->
+
-
**[[LCM Module:LCM under Windows|LCM under Windows]]
+
-
**[[LCM Module:LCM under Linux|LCM under Linux]]
+
 +
5. WDT is not run because MB not have F75113 and WDT_RST-
-
*LCM Module
 
-
<!-- *[[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]]
 
 +
If the next picture appears
-
*DPC Module
+
[[Image:t3.jpg]]
-
<!-- *[[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]]
+
 +
MB no LPC or the drive placement is wrong
-
*EWF Module
+
Drive the location for the next picture
-
<!-- *[[Module:EWF Module|EWF Module]] -->
+
-
**[[EWF Module|EWF]]
+
 +
[[Image:F75113v2.0folder.jpg]]
 +
== F75113 GPIO Picture ==
-
*RS485 Module
+
[[Image:t5.jpg]]
-
<!-- *[[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]]
+
 +
== Introduction ==
-
*BCM70012 Module
+
=== F75113 driver connection ===
-
<!-- *[[Module:BCM70012 Module|BCM70012 Module]] -->
+
-
**[[BCM70012 Module|BCM70012 Module under Windows]]
+
-
**[[BCM70015 Module|BCM70015 Module under Windows]]
+
-
**[[BCM70012/BCM70015 Module under Linux|BCM70012/BCM70015 Module under under Linux]]
+
 +
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;
 +
}
-
*Battery Monitor Utility for bq2084 <!-- Previous name: PW016 Module -->
+
=== GPIO Status Register Write ===
-
<!-- *[[Module:PW016 Module|PW016 Module]] -->
+
-
**[[Battery Monitor Utility under Windows|Battery Monitor Utility for bq2084 under Windows(32bit & 64bit)]]
+
-
**[[Battery Monitor Utility for bq2084 under Linux|Battery Monitor Utility for bq2084 under Linux]]
+
 +
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");
 +
}
 +
}
-
*Hardware Monitor
+
=== GPIO Status Register Read ===
-
<!-- *[[Module:Hardware Monitor|Hardware Monitor]] -->
+
-
**[[VT1211(VIA_CX700/VIA_CN700) Hardware Monitor under Windows|VT1211(VIA_CX700/VIA_CN700) Hardware Monitor under Windows]]
+
-
**[[VT1211(VIA_CX700/VIA_CN700) Hardware Monitor under Linux|VT1211(VIA_CX700/VIA_CN700) Hardware Monitor under Linux]]
+
-
**[[F81801U Hardware Monitor under Windows|F81801U Hardware Monitor under Windows(32bit & 64bit)]]
+
-
**[[F81801U Hardware Monitor under Linux|F81801U Hardware Monitor under Linux]]
+
 +
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");
 +
}
 +
}
-
*M750A Module
+
=== GPIO Comparison ===
-
**[[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 ===
-
*LAN By Pass
+
char N9[] = "0x10";
-
**[[LAN By Pass Utility under Windows|LAN By Pass Utility under Windows(32bit & 64bit)]]
+
char V9[] = "0x00";
-
**[[LAN By Pass Utility under Linux|LAN By Pass Utility under Linux]]
+
ProcAdd = (SETINT2PROC) GetProcAddress(hinstLib, "GPIO_LPC_W");
-
 
+
if (NULL != ProcAdd)
-
 
+
{
-
*CPC Utility
+
if (! (*ProcAdd)( strtol(N9, &endptr, 16), strtol(V9, &endptr, 16)))
-
**[[CPC Utility under Windows|CPC Utility under Windows(32bit & 64bit)]]
+
{
-
**[[CPC Utility under Linux|CPC Utility under Linux]]
+
ShowMessage("Write Fail");
-
**[[CPC Utility C# under Windows|CPC Utility C# under Windows]]
+
}
-
 
+
}
-
 
+
if (hinstLib != NULL)
-
*Key_Pad Utility
+
{
-
**[[Key_Pad Utility Windows|Key_Pad Utility Windows(32bit & 64bit)]]
+
FreeLibrary(hinstLib);
-
 
+
}
-
 
+
-
*PW401 Utility
+
-
**[[PW401 Utility Windows|PW401 Utility Windows(32bit & 64bit)]]
+
-
 
+
-
 
+
-
*WinCheck
+
-
**[[WinCheck Kpower|WinCheck Kpower Windows]]
+
-
 
+
-
*[[Module:FAQ|ALL FAQ of Module]]
+

Current revision

Contents

The Sample code source you can download from

Source file: F75113v2.0_src.rar

Binary file: F75113v2.0_bin_x86.rar

Binary file: F75113v2.0_bin_x64.rar

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

How to use this Demo Application

Image:F75113picter.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 and WDT_RST-


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