IO Device:F75111 CIO Utility Console under linux

From LEXWiKi

(Difference between revisions)
Jump to: navigation, search
Line 148: Line 148:
[[Image:CIO208.jpg]]<br/>
[[Image:CIO208.jpg]]<br/>
=== Step1. Unzip "CIO_Utility_Console_L_Bin_v1.7.0.zip" and change user permission ===
=== Step1. Unzip "CIO_Utility_Console_L_Bin_v1.7.0.zip" and change user permission ===
-
The program must control I/O device. You must change user permission to "root". You could use this command "sudo su"<br/>
+
The program must control I/O device. You must change user permission to "'''root'''". You could use this command "'''sudo su'''"<br/>
=== Step2. Execute program ===
=== Step2. Execute program ===
-
Enter "./CIO_Utility_console -h" to show help menu.<br/>
+
Enter "'''./CIO_Utility_console -h'''" to show help menu.<br/>
Example:<br/>
Example:<br/>
Line 160: Line 160:
=== Step3. Use'-o' to simple control F75111 DO pin ===
=== Step3. Use'-o' to simple control F75111 DO pin ===
-
Enter "./CIO_Utility_console -o <CIO_SN> -s <Pin_SN>" to send DO signal.<br/>
+
Enter "'''./CIO_Utility_console -o <CIO_SN> -s <Pin_SN>'''" to send DO signal.<br/>
Example:<br/>
Example:<br/>
-
"./CIO_Utility_console -o 1 -s 1" means use CIO1 module DO-0 pin (0x01) send signal.<br/>
+
"'''./CIO_Utility_console -o 1 -s 1'''" means use CIO1 module DO-0 pin (0x01) send signal.<br/>
-
"./CIO_Utility_console -o 1 -s 3" means use CIO1 module DO-0 and DO-1 pin (0x01 + 0x02) send signal.<br/>
+
"'''./CIO_Utility_console -o 1 -s 3'''" means use CIO1 module DO-0 and DO-1 pin (0x01 + 0x02) send signal.<br/>
-
"./CIO_Utility_console -o 1 -s f" means use CIO1 module DO-0, DO-1, DO-2 and DO-3 pin (0x01 + 0x02 + 0x04 + 0x08) send signal.<br/>
+
"'''./CIO_Utility_console -o 1 -s f'''" means use CIO1 module DO-0, DO-1, DO-2 and DO-3 pin (0x01 + 0x02 + 0x04 + 0x08) send signal.<br/>
== F75111 Layout Picture ==
== F75111 Layout Picture ==

Revision as of 15:17, 27 June 2024


Contents

The Sample code source you can download from

<Google Drive>

Source file: CIO_Utility_Console_v1.7.0_Src

Binary file: CIO_Utility_Console_v1.7.0_Bin

<FTP>

Source file: CIO_Utility_Console_v1.6.2_Src

Binary file: CIO_Utility_Console_v1.6.2_Bin

MB Support List

IvybridgeBayTrailApollo LakeSkylake/KabylakeCard

2I847H

1I385A/H

2I390CW

2I610DW/HW

CIO116-G

3I8347A/CW

1I386HW

2I390CW

2I610HW

E691A

3I847NX/NM

2I380A/NX

3I390AW

3I610DW

3I847D(OEM)

2I382A

3I390D(OEM)

PM610DW

3I847HW

2I385A/BW/CW/EW/HW/PW

3I390NX

ST610W

CI847A/C

3I380A/CW/D/NX

3I393NX

3I170DW/HW/NX

3I770A/CW

3I385AW/CW

PM390CW

CI170A/C

CI770A/C

ST385W

PM170DW

edit table

How to use this Demo Application

Image:CIO Utility console.jpg
Image:CIO208.jpg

Step1. Unzip "CIO_Utility_Console_L_Bin_v1.7.0.zip" and change user permission

The program must control I/O device. You must change user permission to "root". You could use this command "sudo su"

Step2. Execute program

Enter "./CIO_Utility_console -h" to show help menu.

Example:
CIO_Utility_console -w 1 -s h
CIO_Utility_console -r 1
CIO_Utility_console -W -s 0x0f
CIO_Utility_console -R

Step3. Use'-o' to simple control F75111 DO pin

Enter "./CIO_Utility_console -o <CIO_SN> -s <Pin_SN>" to send DO signal.

Example:
"./CIO_Utility_console -o 1 -s 1" means use CIO1 module DO-0 pin (0x01) send signal.
"./CIO_Utility_console -o 1 -s 3" means use CIO1 module DO-0 and DO-1 pin (0x01 + 0x02) send signal.
"./CIO_Utility_console -o 1 -s f" means use CIO1 module DO-0, DO-1, DO-2 and DO-3 pin (0x01 + 0x02 + 0x04 + 0x08) send signal.

F75111 Layout Picture

Image:F75111_layout_Picture.jpg

Introduction

Initial Internal F75111 port address (0x9c)

   define GPIO1X, GPIO2X, GPIO3X to input or output 
   and Enable WDT function pin 

Base on libF75111.a API function as below list

bool	F75111_Init();
bool	F75111_4I4O_Init();
bool	F75111_8I8O_Init(); 

bool	F75111_GetDigitalInput_Pin(int);	//pin number 0-15
BYTE	F75111_GetDigitalInput();
BYTE	F75111_GetDigitalInput_4I4O();          //4I4O(CIO1)
BYTE	F75111_GetDigitalInput_8I8O();          //8I(CIO1)+8O(CIO2)

bool	F75111_SetDigitalOutput_Pin(BYTE pin_number,bool pin_status);
void	F75111_SetDigitalOutput(BYTE byteValue);
void    F75111_SetDigitalOutput_4I4O(BYTE byteValue);//20190828 add by Nico ,20200430 kk update
void	F75111_SetDigitalOutput_8I8O(BYTE byteValue);
void	F75111_SetDigitalOutput_1i1o(BYTE byteValue);//20200504 jimmy update for wet3901

BYTE	F75111_GetWDTMode();
void	F75111_SetWDTMode(BYTE dwvalue); 

void	F75111_SetWDTEnable    (BYTE byteTimer);
void	F75111_SetWDTDisable   ();
Personal tools