background image

21

Programming Watchdog Timer

Embedded and Industrial Computing

Appendix A

Appendix A:  

Programming Watchdog 

Timer

A  watchdog  timer  is  a  piece  of  hardware  that  can  be 

used to automatically detect system anomalies and reset 

the  processor  in  case  there  are  any  problems.  Generally 

speaking,  a  watchdog  timer  is  based  on  a  counter  that 

counts  down  from  an  initial  value  to  zero. The  software 

selects the counter’s initial value and periodically restarts 

it.  Should  the  counter  reach  zero  before  the  software 

restarts it, the software is presumed to be malfunctioning 

and  the  processor’s  reset  signal  is  asserted.  Thus,  the 

processor  will  be  restarted  as  if  a  human  operator  had 

cycled the power.
For sample watchdog code, see

 Watch dog and DIO

 folde

in the 

Driver and Manual CD 

Driver Installation

Before you could access  or control the operation of the 

watchdog  and  Digital  I/O  functions,  install  the  the  L_IO 

driver which is the library and driver needed for Lanner 

General Purpose Input/Output interface or functions.
To install the L_IO driver:

Restart  the  computer,  and  then  log  on  with 

1. 

Administrator privilege.
Insert  the  Drivers  and  User’s  Manual  CD  to  the  USB-

2. 

optical drive. 
Browse the contents of the support CD to locate the 

3. 

file LannerIO v101.rar under the \WD_DIO\ folder and 

unzip the file.
Click the Setup program in the unzipped folder.

4. 

Click the Setup program.

1. 

The welcome screen appears. Click Next to proceed.

2. 

The  installation  process  proceeds.  Click  Close  when  the 

3. 

process completes.

Содержание LEC-2260A

Страница 1: ...Embedded Industrial Computing Hardware Platforms for Embedded and Industrial Computing LEC 2260 V1 0 User s Manual Publication date 2013 06 11...

Страница 2: ...iginal manufacturer assumes no responsibility for its use nor for any infringements upon the rights of third parties that may result from such use Acknowledgement Intel Pentium and Celeron are registe...

Страница 3: ...nnectors and Jumpers 10 Connectors and Jumpers List 11 Jumper Settings 12 Chapter 4 Hardware Setup 17 Preparing the Hardware Installation 17 Installing the System Memory 17 Installing the Hard Disk 18...

Страница 4: ...cification Dimensions WxHxD 277 65x59x175mm 10 93 x 2 32 x 6 89 Processor Intel Celeron 807UE Chipset Intel HM65 System Memory Technology DDR3 1066 1333 1600MHz SODIMM x2 Max Capacity Up to 16GB Stora...

Страница 5: ...TA Power Cable P N 080W1N0002001 Drivers and User s Manual CD P N S09OADA23H010 Power Adapter P N 0P0W060240A01 Optional Accessories The system has a variety of optional accessories including the powe...

Страница 6: ...5 System Components Chapter 2 Embedded and Industrial Computing Chapter 2 System Components System Drawing Mechanical dimensions of the LEC 2260 Unit mm...

Страница 7: ...6 System Components Chapter 2 Embedded and Industrial Computing Block Diagram The block diagram depicts the relationships among the interfaces and modules on the motherboard...

Страница 8: ...n page 13 F4 Dual USB 2 0 Ports An USB type A connector USB1 on page 17 F5 Two 10 100 1000Mbps LAN ports Two RJ 45 network jacks with LED indicators as described below Both LAN ports are provided by I...

Страница 9: ...n open and closed circuit such as PIRs door window contact glass break detector And the output can connect to devices such as relays and LEDs CN2 on page 15 F3 Reset Switch A hardware reset switch Use...

Страница 10: ...mputing Chapter 3 Board Layout External Connectors The following picture highlights the location of system input output connectors Refer to the table 3 2 Connector List for more details DVID1 VGA1 PBT...

Страница 11: ...d Jumpers The following picture highlights the location of internal connectors and jumpers Refer to the table 3 2 Connector List for more details LEB 2260 DIMM1 J12 SIM1 J7 DIMM2 J10 J6 MPCIE2 SC2T1 F...

Страница 12: ...N4 COM2 P12 DVID1 DVI D Connector P15 FRONT1 Front Panel Function Pin Header P14 J1 External Power Button P16 J7 COM3 P12 J8 COM4 P12 J6 Audio Connector P16 KBM1 Keyboard and Mouse P14 LAN1 LAN2 Ether...

Страница 13: ...85 port through the D SUB9 connector J10 1 2 6 7 8 9 1 2 3 4 5 Pin No Pin Name RS 232 RS 422 RS 485 1 Data Carrier Detect DCDA TXD DATA 2 Receive Data RXDA TXD DATA 3 Transmit Data TXDA RXD 4 Data Ter...

Страница 14: ...2V Note Besides jumper settings you should also select the communication protocol in the BIOS as shown in the following picture select Advanced F81865 SuperIO Configuration Serial Port 0 1 Driver RS23...

Страница 15: ...Platforms supporting AHCI may take advantage of performance features such as no master slave designation for SATA devices each device is treated as a master and hardware assisted native command queui...

Страница 16: ...dual LEDs Digital Input Output Connector CN2 The 8 pins of General Purpose Input Output GPIO support input and output operations through the DB 9 female connector LAN1 LAN2 Ports LAN1 LAN2 The LAN por...

Страница 17: ...i PCIe Connector Pin Signal Pin Signal 1 WAKE 2 VCC3 3 3 Reserved 4 GND 5 Reserved 6 1 5V 7 CLKREQ 8 Reserved 9 GND 10 Reserved 11 REFCLK 12 Reserved 13 REFCLK 14 Reserved 15 GND 16 Reserved 17 Reserv...

Страница 18: ...o remove power from the server The front panel Power On Standby button does not completely shut off system power Portions of the power supply and some internal circuitry remain active until AC power i...

Страница 19: ...ing holes of the chassis cover Connect the Serial ATA power and data cables to the 4 hard disk s connectors Plug the Serial ATA cables power and data to the 5 Serial ATA Connectors on the main board I...

Страница 20: ...Insert the wireless module into the connector 2 diagonally Fasten the wireless module to the board with the 3 screws Use the Mini PCIe module screws contained within the package Installing theWi Fi Mo...

Страница 21: ...or the anchor in the surface on the 1 wall Then press the anchor into the hole until it is flush with 2 the surface You may need a hammer to tap the wall anchor Use a screwdriver to screw the threaded...

Страница 22: ...a human operator had cycled the power For sample watchdog code see Watch dog and DIO folder in the Driver and Manual CD Driver Installation Before you could access or control the operation of the wat...

Страница 23: ...write your own program by modifying the source code F81865_Test cpp The index address is 2EH F81865_Test cpp F81865_test exe utility for F81865 lib APIs demonstration History 7 15 2011 Brand new F8186...

Страница 24: ...e CHECK_ARGC a if argc a throw PARAMETER_HELP Translate Hex string to a long value LONG Hex2Long char str LONG nLong if scanf str x nLong 1 throw Error parsing parameter n return nLong Make sure the a...

Страница 25: ...rintf CaseOpen state s bOpen not cleared cleared return bOpen Get DIO_IN state int mDIO_IN int argc char argv CHECK_ARGC 3 CheckNumeric argv 2 int nPort atoi argv 2 BOOL ret Read_DIO nPort printf DIO_...

Страница 26: ...CaseOpen_Clear mCaseOpen_Clear Watchdog mWatchDog Sleep mSleep Program start here int main int argc char argv try The total argument allowed int num sizeof c2f sizeof c2f 0 Too few argument if argc 2...

Страница 27: ...ll the the L_IO driver which is the library and driver needed for Lanner General Purpose Input Output interface or functions To install the L_IO driver Restart the computer and then log on with 1 Admi...

Страница 28: ...er should be listed 4 under the Non Plug and Play Drivers If not click the San for hardware changes button from the tool bar Executing the Sample Program To test the sample program execute the F81865_...

Страница 29: ...ll be returned at customer s expense The following conditions are excluded from this 5 warranty Improper or inadequate maintenance by the customer Unauthorized modification misuse or reversed engineer...

Страница 30: ...ing by Air Freight Sea Express ___ Others ________________ Item Model Name Serial Number Configuration Item Problem Code Failure Status Problem Code 01 D O A 02 Second Time R M A 03 CMOS Data Lost 04...

Отзывы: