Download Print this page

Decision Computer International Watch dog 1 Operation Manual

Timer card

Advertisement

Quick Links

Operations Manual
Watch dog timer card
WATCH DOG 1 & 2
WATCH DOG 1 & 2
OPERATION MANUAL
Decision Computer Int'l. Co., Ltd.
1
DECISION Computer International

Advertisement

loading

Summary of Contents for Decision Computer International Watch dog 1

  • Page 1 Operations Manual Watch dog timer card WATCH DOG 1 & 2 WATCH DOG 1 & 2 OPERATION MANUAL Decision Computer Int’l. Co., Ltd. DECISION Computer International...
  • Page 2: Chapter 1 I N T R O D U C T I On

    To order watch dog timer adapter, user must specify watch dog I or watch dog II. In the distribution diskette, we provide software for MS/DOS, OS/2, Windows/95, Windows/3.xx, Windows/NT4.0 workstation, SCO UNIX/XENIX, and Interactive UNIX operating systems. DECISION Computer International...
  • Page 3 Europe, USA and Austria type selectable for extension power control box. • I/O address selectable. • PC/386, PC/486, Pentium hardware compatibles. • Suitable for MS/DOS, OS/2, Windows 3.1, Windows 95, Windows NT, SCO UNIX/XENIX, Interactive UNIX operating systems. DECISION Computer International...
  • Page 4 When reset signal activate of the watch dog II, it will also reset the power of power control box. User can also reset the power of power control box by watch dog II directly, without reset whole the computer system. DECISION Computer International...
  • Page 5 • User manual. • Reset cable. • Utility software. WATCHDOG II • Watch dog II timer adapter. • Watch dog expansion power control box. • User manual. • RG59AU Connection cable. • Reset cable. • Utility software. DECISION Computer International...
  • Page 6 6. If your adapter is watch dog II, please connect RG59AU connector to expansion power control box, and then connect the power control box to the power plug. Also connect peripheral power to power control box if necessary. 7. Turn on your system. DECISION Computer International...
  • Page 7 (refresh) or disable watch dog adapter. To turn OFF power control box, just write “1” to (Base + 01H), to turn ON power control box, write “0” to (Base + 01H). DECISION Computer International...
  • Page 8 JP4 to reset push button on the front panel of your PC. Please refer section 4.2 for more details. 4. RG59AU Connector The RG59AU connector of watch dog II is used to connect to expansion power control box. Please refer section 4.2 for more details. DECISION Computer International...
  • Page 9 Operations Manual Watch dog timer card WATCH DOG I DECISION Computer International...
  • Page 10 Operations Manual Watch dog timer card WATCH DOG II DECISION Computer International...
  • Page 11 Operations Manual Watch dog timer card 4.2 Hardware Configurations JP3 and JP4 Connection for watch dog I JP3 and JP4 Connection for watch dog II DECISION Computer International...
  • Page 12 Operations Manual Watch dog timer card 4.3 The Examples of Jumper Setting Address: &180H Address: &200H Address: &240H Address: &270H DECISION Computer International...
  • Page 13 Operations Manual Watch dog timer card Address: &280H Address: &2C0H Address: &340H Address: &380H Address: &3C0H DECISION Computer International...
  • Page 14: Chapter 5 S O F T W A Re

    After watch dog software is installed and set to manual mode, user need enable watch dog timer, then refresh it, or disable the watch dog timer. The enhanced functions of watch dog II will be used to turn OFF/ON power control box. DECISION Computer International...
  • Page 15 ' Get The Watch Dog Address PRINT "Please Enter the address of Watch Dog Card (I/II) in decimal" PRINT "Address Range from 0 to 4094" INPUT "Watch Dog address is: ", WDAddress Inquire: ' Main Menu PRINT ("Menu Choices") PRINT ("1] Enable/Disable") DECISION Computer International...
  • Page 16 PRINT "You have to enable the Watch Dog first to refresh it" END IF INPUT "Press ENTER key to continue", temp GOTO Inquire CASE "3" ' QUIT Watch Dog value = INP(WDAddress + 1) CASE ELSE ' Wrong selection PRINT "Please select 1, 2 or 3 only" DECISION Computer International...
  • Page 17 Inquire; UserChoice,ans:char; WDAddress,Value:integer; Status:Boolean; BEGIN Status := FALSE; clrscr; writeln('Please Enter the address of Watch Dog Card (I/II) in hexadecimal'); writeln('Address Range from 0 decimal to 4094 decimal'); write('Wathc Dog address is: '); read(WDAddress); Repeat DECISION Computer International...
  • Page 18 Watch Dog has been enabled. . .'); ans := readkey; else begin Status := FALSE; value:=port[WDAddress+1]; writeln('The Watch Dog has been disabled. . .'); ans := readkey; end; '2': if (Status = TRUE) then begin value:=port[WDAddress+1]; value:=port[WDAddress]; writeln(''); write('Watch Dog Refresh'); DECISION Computer International...
  • Page 19 Watch Dog is currently not enable. . .'); write('You have to enable the Watch Dog first to refresh it'); ans:=readkey; end; '3': value:=port[WDAddress+1]; else writeln(''); writeln('Please select 1, 2 or 3 only'); readkey; end; until (UserChoice = '3'); end. DECISION Computer International...
  • Page 20 Enter the address of Watch Dog Card (I/II) in hexadecimal\n"); printf("Address Range from 0 Hex to 0FFE Hex\n"); printf("Wathc Dog address is: "); scanf("%x", &WDAddress); Inquire: clrscr(); /* Main menu */ printf("Menu Choices\n\n"); printf("1] Enable/Disable\n"); printf("2] Refresh\n"); printf("3] Exit\n\n"); DECISION Computer International...
  • Page 21 /* If Watch Dog is enabled */ inportb((unsigned int)WDAddress+1); inportb((unsigned int)WDAddress); printf("\nWatch Dog Refresh");delay(500); else /* If Watch Dog is disabled */ printf("\nThe Watch Dog is currently not enable. . .\n"); printf("You have to enable the Watch Dog first to refresh it"); DECISION Computer International...
  • Page 22 To run WATCHDOG.EXE, the syntax is: WATCHDOG [auto] [I/O address] [time] Where the input parameters are: auto = 1 auto refresh auto = 0 manual refresh I/O address card I/O address time time selection(1-11, 1=62.5ms, 2=125ms, … 11=64secs) DECISION Computer International...
  • Page 23 The device name of OS/2 is $WDGDEV$. You can use OS/2 API open/read/close to enable/refresh/disable it. When you use the auto refresh mode, the OS/2 will periodically refresh the watch dog timer card. if OS/2 DECISION Computer International...
  • Page 24 : The example file for DLL WDGWIN95.C : The example file for DLL WDGWIN95.DLL : The DLL for development WATCHDOG.DLL : The additional DLL for development WDGWIN95.H : The include file for DLL WDGWIN95.LIB : The LIB for development DECISION Computer International...
  • Page 25 FeedBack = WDDisable(&H240) ' Disable Watch Dog End Sub Private Sub cmdEnable_Click() Dim FeedBack As Integer FeedBack = WDEnable(&H240) 'Enable Watch Dog End Sub Private Sub cmdRefresh_Click() Dim FeedBack As Integer FeedBack = WDRefresh(&H240) ' Refresh Watch Dog End Sub DECISION Computer International...
  • Page 26 (gLibMyDLL == NULL) char msg[300]; strcpy(msg,"Cannot load the WATCHDOG.DLL DLL."); strcat(msg,"Make sure that the file WATCHDOG.DLL"); strcat(msg,"is in your \\WINDOWS\\SYSTEM directory"); MessageBox( msg ); // Get the address of the functions on the DLL WDEnable = (WDENABLE)GetProcAddress(gLibMyDLL, DECISION Computer International...
  • Page 27 MessageBox("WATCHDOG.DLL NOT LOADED."); return; WDEnable(0x240); // Enable Watchdog with 240 hex address void CWDTestDlg::OnButtonDisable() // TODO: Add your control notification handler code here if (gLibMyDLL == NULL) MessageBox("WATCHDOG.DLL NOT LOADED."); return; WDDisable(0x240); // Disable Watchdog with 240 hex address DECISION Computer International...
  • Page 28 1. Copy the driver into X:\NT40\SYSTEM32\DRIVERS, where X:\NT40 is the system directory of NT. 2. Add IoPortAddress AutoMode parameters WATCHDOG.INI file. Where AutoMode=0 means manual refresh and AutoMode=1 means auto refresh. 3. In CmdTools windows, execute [RegIni WatchDog.ini] 4. Reboot the system. DECISION Computer International...
  • Page 29 Refresh time : 4 sec The watch dog device driver will refresh watch dog card automatically after enable watch dog for system. If user enable watch dog for application, user must refresh watch dog card manually (by program). DECISION Computer International...
  • Page 30 ((whdg_h = open("/dev/whdg", O_WRONLY))==-1) printf("There is no Watch Dog device %s\n", WATCH_DOG_DEV); return FALSE; 2. To enable the watch dog for application program if ((whdg_h = open("/dev/whdg", O_RDWR))==-1) printf("There is no Watch Dog device %s\n", WATCH_DOG_DEV); return FALSE; DECISION Computer International...
  • Page 31 FALSE; 4. Refresh watch dog for application program itself char c; read(whdg_h,&c,1); 5. Turn ON/OFF power control box #define MCPOWERON ((‘M’<<8 |0xf8) #define MCPOWEROFF ((‘M’<<8 |0xf9) ioctl(whdg_h, MCPOWERON, NULL); /*power ON */ ioctl(whdg_h, MCPOWEROFF,NULL); /*power OFF */ DECISION Computer International...
  • Page 32 2. High contact rating (10 - 30A), high shock / vibration resistance. 3. High reliability and long life. 4. High temperature design, "F" class + 155 degree C is available. 6.2 Specification COIL RATING RATE RATED VOLTAGE RESISTANCE CURRENT (VDC) 2300 13400 DECISION Computer International...
  • Page 33 Watch dog timer card CONTINUATION OF THE CHART: RATE MUST MUST MAX. POWER VOLTAGE OPERATIVE DROPOUT VOLT COMSUMPTION (VDC) VOLATGE VOLTAGE % OF RATE VOLTAGE (A1 + 20C ) (20C) 75 Max 10 Min 120 Max 0.9 Approx. DECISION Computer International...
  • Page 34 Storage: -55°C to + 130°C Operating: Temperature -55°C to + 85°C Humidity 220 to 85% R.H Operation Life Mechanical: 10 Electricaal: 10 rated load) Weight 22 gr. Approx(Open Type) 28 gr. Approx(Sealed Type) Note: Specifications are subject to change without notice DECISION Computer International...
  • Page 35 , 20A / 240V 240VA 1 HP/ 30 LRA / 1hp/ 30LRA 10FLA/12 16FLA/ FLLA/ 0V 30 120V 10FLA/ 120V 120V 2 HP/ LRA/ 2hp/ 30LRA 12 FLA 10FLA/24 12FLA/ 240V 240V 10FLA/ 240V Coil Ratings: 5 – 120VDC DECISION Computer International...
  • Page 36 WDog2.ocx. Both OCX must be at the system directory of the Windows. When set the control via Internet, the client/server model is used for remote control purpose. The following page contain the DecRemoteWD2 properties and methods. DECISION Computer International...
  • Page 37 Operations Manual Watch dog timer card BeServer Set the Active-x as a server. Syntax object.BeServer DECISION Computer International...
  • Page 38 Operations Manual Watch dog timer card Connect Connect to a server with default Port values. Syntax object.Connect DECISION Computer International...
  • Page 39 Returns the state of the control, expressed as an enumerated type. Read-only and unavailable at design time. Syntax object.ConnectStatus The object placeholder represents an object expression that evaluates to an object in the Applies To list. Data Type long DECISION Computer International...
  • Page 40 Listening is the status Connection pending is the status Resolving host is the status Host resolved is the status Connecting is the status Connected is the status Peer is closing the connection is the status Error is the status DECISION Computer International...
  • Page 41 Operations Manual Watch dog timer card DisConnect Disconnect is used to close the port. Syntax object.DisConnect DECISION Computer International...
  • Page 42 Returns the state of the control, expressed as an enumerated type. Read-only and unavailable at design time. Syntax Object.GetConnectionStatus The object placeholder represents an object expression that evaluates to an object in the Applies To list. Data Type string DECISION Computer International...
  • Page 43 Resolving host is the status Host resolved Host resolved is the status Connecting Connecting is the status Connected Connected is the status Peer is closing the connection is Peer is closing the connection the status Error Error is the status DECISION Computer International...
  • Page 44 Watch dog timer card SetConnect Set the client to connect to the server but instead of using the default value of the IP address and the socket port the programmer have the option to enter new value. Syntax object.SetConnect DECISION Computer International...
  • Page 45 The PortRemote property syntax has these parts: Part Description An object expression that evaluates to Object an object in the Applies To list. The port address of the WatchDog Card. LportAddress The default value of this is 240 hex. Data Type Long DECISION Computer International...
  • Page 46 The PortRemote property syntax has these parts: Part Description An object expression that evaluates to an object Object in the Applies To list. The port address of the WatchDog Card. The LportAddress default value of this is 240 hex. Data Type Long DECISION Computer International...
  • Page 47 Set the HostRemote property. This entry is also known as IP address of the server. object.SetPropertyHostRemote(lPAddress) The PortRemote property syntax has these parts: Part Description An object expression that evaluates to an Object object in the Applies To list. IPAddress The IP address of the server Card. DECISION Computer International...
  • Page 48 An string expression representing the Value RemoteWD2 settings, as described below. Remarks The default value of value is: "Server" The following table lists the valid stop bit values. Object “Server” (Default) Set as server “Client” Set as client DECISION Computer International...
  • Page 49 The Settings property syntax has these parts: Part Description An object expression that evaluates to an object Object in the Applies To list. lPortLocal A long representing the port of the client. Remarks The default value of lPortLocal is: 1024 DECISION Computer International...
  • Page 50 The Settings property syntax has these parts: Part Description An object expression that evaluates to Object an object in the Applies To list. A long representing the port of the lPortRemote server. Remarks The default value of lPortRemote is: 1024 DECISION Computer International...
  • Page 51 Operations Manual Watch dog timer card SetServer Set the server to listen to the client but instead of using the default value of the the socket port the programmer have the option to enter new value. Syntax object.SetServer DECISION Computer International...
  • Page 52 The PortRemote property syntax has these parts: Part Description An object expression that evaluates to an object Object in the Applies To list. The port address of the WatchDog Card. The LportAddress default value of this is 240 hex. DECISION Computer International...
  • Page 53 The PortRemote property syntax has these parts: Part Description An object expression that evaluates to an object Object in the Applies To list. The port address of the WatchDog Card. The LportAddress default value of this is 240 hex. DECISION Computer International...
  • Page 54 An string expression representing the Value RemoteCOM settings, as described below. Remarks The default value of value is: "Server" The following table lists the valid stop bit values. Object “Server” (Default) Set as server “Client” Set as client DECISION Computer International...
  • Page 55 Operations Manual Watch dog timer card Data Type String DECISION Computer International...
  • Page 56 The PortLocal property syntax has these parts: Part Description An object expression that evaluates to an object object in the Applies To list. The port to connect to. The default value of port this property is 1024. DECISION Computer International...
  • Page 57 For example, a client that wishes to be "called back" by a server can use port 0 to procure a new (random) port number, which can then be given to the remote computer for this purpose. DECISION Computer International...
  • Page 58 The PortRemote property syntax has these parts: Part Description An object expression that evaluates to an object object in the Applies To list. The port to connect to. The default value of port this property is 1024. Data Type Long DECISION Computer International...
  • Page 59 The PortRemote property is set automatically to the appropriate default port for each protocol. Default port numbers are shown in the table below: Port Description Commonly used for World Wide Web 1024 connections of Decision Card. FTP. DECISION Computer International...
  • Page 60 Corporate licensing agreements allow duplication and distribution of specific number of copies within the licensed institution. Duplication of multiple copies is not allowed except through execution of a licensing agreement. Welcome call for details. DECISION Computer International...
  • Page 61 Warranty card. Under this Limited Warranty, DECISION's obligations will be limited to repair or replacement only, of goods found to be defective as specified above during the warranty period. DECISION DECISION Computer International...
  • Page 62 DECISION reserves the right to determine what constitutes warranty repair or replacement. Return Authorization: It is necessary that any returned goods are clearly marked with an RA number that has been issued by DECISION. Goods returned without this authorization will not be attended to. DECISION Computer International...

This manual is also suitable for:

Watch dog 2