background image

Appendix B

Watchdog Timer Programming

TPC-2006 User Manual

B-2

ni.com

lpInBuffer

 

(in) Long pointer to a buffer that contains the data required to perform 
the operation. This parameter can be NULL if the 

dwIoControlCode

 

parameter specifies an operation that does not require input data.

nInBufferSize

 

(in) Size, in bytes, of the buffer pointed to by 

lpInBuffer

.

lpOutBuffer

 

(out) Long pointer to a buffer that receives the operation’s output data. 
This parameter can be NULL if the 

dwIoControlCode

 parameter 

specifies an operation that does not produce output data.

nOutBufferSize

 

(in) Size, in bytes, of the buffer pointed to by 

lpOutBuffer

.

lpBytesReturned

 

(out) Long pointer to a variable that receives the size, in bytes, of the 
data stored into the buffer pointed to by 

lpOutBuffer

. The 

lpBytesReturned

 parameter cannot be NULL. Even when an 

operation produces no output data, and 

lpOutBuffer

 can be 

NULL, DeviceIoControl makes use of the variable pointed to by 

lpBytesReturned

. After such an operation, the variable value has no 

meaning.

lpOverlapped

 

(in) Ignored; set to NULL.

Return Values

Nonzero indicates success. Zero indicates failure. To get extended 
error information, call GetLastError.

How to Use the Control Codes

There are six control codes for the WDT driver operation codes.

IOCTL _WDT_ENABLE

Enables the application watchdog timer. By default, if the watchdog timer 
is enabled, the WDT driver automatically triggers itself after the specified 
period, and your application does not need to trigger the watchdog timer.

lpInBuffer

: unused

nInBufferSize

: unused

Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

Содержание TPC-2006

Страница 1: ...service in house repair center WE BUY USED EQUIPMENT Sell your excess underutilized and idle used equipment We also offer credit for buy backs and trade ins www artisantg com WeBuyEquipment REMOTE IN...

Страница 2: ...TPC 2006 User Manual TPC 2006 User Manual July 2007 372050B 01 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...

Страница 3: ...Mexico 01 800 010 0793 Netherlands 31 0 348 433 466 New Zealand 0800 553 322 Norway 47 0 66 90 76 60 Poland 48 22 3390150 Portugal 351 210 311 210 Russia 7 495 783 6851 Singapore 1800 226 5886 Sloveni...

Страница 4: ...mation retrieval system or translating in whole or in part without the prior written consent of National Instruments Corporation National Instruments respects the intellectual property of others and w...

Страница 5: ...ns not expressly approved by NI could void the user s authority to operate the equipment under the FCC Rules Class A Federal Communications Commission This equipment has been tested and found to compl...

Страница 6: ...component may result in bodily injury bold Bold text denotes items that you must select or click in the software such as menu items and dialog box options Bold text also denotes parameter names italic...

Страница 7: ...3 System Configuration Display Settings 3 1 Touchscreen Calibration 3 1 Beep Settings 3 2 Chapter 4 Windows CE NET TPC Utilities 4 1 Soft Keyboard 4 1 TPC Configuration 4 1 General 4 2 Network 4 2 Wa...

Страница 8: ...older name 4 5 Networking 4 5 Networking Via Ethernet 4 5 Networking Via the Serial Port 4 6 ActiveSync Setup 4 6 Networking via the USB Client Port 4 7 Appendix A Specifications Appendix B Watchdog T...

Страница 9: ...ity The TPC 2006 is a powerful I O interface for easy communication with other devices The I O interface includes RS232 and RS485 serial Ethernet and USB ports Windows CE Support An optional Windows C...

Страница 10: ...is installed the system automatically boots from the onboard NAND flash If a CompactFlash card is installed the system boots from the CompactFlash card Cleaning If you need to clean the unit use a sof...

Страница 11: ...etting it fall may cause damage The openings on the enclosure are for air convection Protect the equipment from overheating Do not cover the openings Make sure the power source voltage is correct befo...

Страница 12: ...ion There is a danger of explosion if the battery is incorrectly replaced Replace the battery only with the same or equivalent type recommended by the manufacturer Discard used batteries according to...

Страница 13: ...e power receptor on the TPC 2006 The power receptor pin assignment is shown in Figure 2 2 Figure 2 2 Power Receptor and Pin Assignment 4 Power on the system Touchscreen Calibration The TPC 2006 touchs...

Страница 14: ...x A Specifications for cutout dimensions 3 Hook the clamps included in the accessory pack to the holes around the four sides of the bezel 4 Insert the screws included in the accessory pack into the cl...

Страница 15: ...tness click the Advanced button to access the Advanced Backlight Options window Move the slider or click or to adjust the LCD brightness and contrast Click OK Touchscreen Calibration Follow these step...

Страница 16: ...the Volume and Sounds Properties window 2 Use the controls in the Volume tab to set the volume and enable or disable the beep for various events and inputs Follow these steps to change the beep sound...

Страница 17: ...local language support Note The TPC 2006 supports Remote Desktop Connection in Windows CE but the maximum resolution supported is only 320 240 TPC Utilities Windows CE NET on the TPC 2006 includes se...

Страница 18: ...og tab to set the response time which is the period that the watchdog waits for a response The response time is in effect only when you select a time span and enable the watchdog When you enable the w...

Страница 19: ...th takes effect only after rebooting the machine Use Ftp Server Root to enter the FTP server root path The root path takes effect only after rebooting the machine Tools Select Start Programs Utilities...

Страница 20: ...host machine TPC CE Notepad TPC CE Notepad is a text editor TPC Configurator TPC Configurator is an integrated utility for configuring the basic TPC 2006 settings For more information refer to TPC Co...

Страница 21: ...mples exe f to activate the full screen The parameters can be blank Networking Networking Via Ethernet Follow these steps to configure the TPC 2006 Ethernet port Note Be sure you are connected to a LA...

Страница 22: ...6 Communication Environment Note Before completing this section change to the small system font size Go to Start Programs Utilities System Font Setting Click Small System Font Size Click OK A confirma...

Страница 23: ...e host computer click Next When the TPC and the host PC are connected the Connected to My Connection window appears 7 The New Partnership window appears on the host computer Select No and click Next 8...

Страница 24: ...2006 User Manual A Specifications This appendix lists the TPC 2006 system specifications Physical Weight 0 8 kg Cutout dimensions 188 141 mm suggested Artisan Technology Group Quality Instrumentation...

Страница 25: ...s System Kernel CPU Samsung S3C2410A 26 266 MHz BIOS Samsung NAND flash memory VGA Samsung S3C2410A 26 Integrated 187 84 7 40 148 5 83 140 84 5 54 195 7 68 44 4 1 75 6 0 0 24 Artisan Technology Group...

Страница 26: ...r 2 5 10 15 30 40 s timeout period option CompactFlash CompactFlash type I II LCD Display type Color STN LCD Size diagonal 5 7 in Maximum resolution 320 240 QVGA Maximum colors 256 Pixel pitch W H mm...

Страница 27: ...g the touchscreen The cursor appears only when closing or minimizing the window Power Input voltage 24 VDC the fuse becomes an open circuit if input level exceeds 33 VDC Maximum current 2 A Fuse Ratin...

Страница 28: ...l number or product line and click the appropriate link in the Certification column Electromagnetic Compatibility This product is designed to meet the requirements of the following standards of EMC fo...

Страница 29: ...environmental information not included in this document Waste Electrical and Electronic Equipment WEEE EU Customers At the end of their life cycle all products must be sent to a WEEE recycling center...

Страница 30: ...evice DWORD dwIoControlCode LPVOID lpInBuffer DWORD nInBufferSize LPVOID lpOutBuffer DWORD nOutBufferSize LPDWORD lpBytesReturned LPOVERLAPPED lpOverlapped Parameters DeviceIOControl includes the foll...

Страница 31: ...a stored into the buffer pointed to by lpOutBuffer The lpBytesReturned parameter cannot be NULL Even when an operation produces no output data and lpOutBuffer can be NULL DeviceIoControl makes use of...

Страница 32: ...BOOT to the WDT driver your application must trigger the watchdog once during the watchdog timer period If your application has not triggered at the specified period the device reboots automatically l...

Страница 33: ...OutBufferSize unused IOCTL_WDT_REBOOT If you want your application to trigger the watchdog use IOCTL_WDT_REBOOT to notify the watchdog driver timer WDT Otherwise the WDT triggers itself automatically...

Страница 34: ...ine IOCTL_WDT_REBOOT 0x1006 HANDLE m_hWDT NULL TCHAR szClassName 60 assign the WDT driver name wsprintf szClassName TEXT WDT1 Open the WDT driver m_hWDT CreateFile szClassName GENERIC_READ GENERIC_WRI...

Страница 35: ...ted fuse For more information see the fuse specifications in Appendix A Specifications Follow these steps to replace the fuse 1 Remove the power cable 2 Remove the fuse cover 3 Replace the damaged fus...

Страница 36: ...nual D Pin Assignments RS232 Pin Assignment Pin Number Description Pin 1 DCD Pin 2 Rx Pin 3 Tx Pin 4 DTR Pin 5 GND Pin 6 DSR Pin 7 RTS Pin 8 CTS Pin 9 RI 1 5 9 6 Artisan Technology Group Quality Instr...

Страница 37: ...M3 or RS485 COM4 COM3 and COM4 share the same DB9 connector which you can set through the software Pin Number Description Pin 1 DATA Pin 2 No Connection Pin 3 No Connection Pin 4 DATA Pin 5 GND Pin 6...

Страница 38: ...on about other technical support options in your area visit ni com services or contact your local office at ni com contact Training and Certification Visit ni com training for self paced training eLea...

Страница 39: ...T B 4 IOCTL_WDT_STROBE B 3 using B 2 parameters B 1 diagnostic tools NI resources E 1 dimensions A 2 display settings 3 1 documentation conventions used in the manual v NI resources E 1 drivers NI res...

Страница 40: ...figure 2 3 power specifications A 4 programming examples NI resources E 1 R Reboot exe 4 5 Registry Editor 4 3 Registry Saver 4 3 RegSave exe 4 5 Remote Display Application 4 4 S safety information 2...

Страница 41: ...ions A 2 display settings 3 1 electromagnetic compatibility specifications A 5 environmental management specifications A 6 environmental specifications A 4 fuse replacement C 1 specifications A 4 I O...

Страница 42: ...soft keyboard 4 1 tools 4 3 TPC CE Notepad 4 4 TPC Configurator 4 1 4 4 General tab 4 2 Misc tab 4 2 Network tab 4 2 watchdog 4 2 TPC utilities 4 1 TPC Version Information 4 4 training and certificat...

Страница 43: ...service in house repair center WE BUY USED EQUIPMENT Sell your excess underutilized and idle used equipment We also offer credit for buy backs and trade ins www artisantg com WeBuyEquipment REMOTE IN...

Отзывы: