background image

©

 National Instruments Corporation

B-1

TPC-2106/2106T User Manual

B

Watchdog Timer Programming

Windows CE includes a watchdog timer for the TPC-2106/2106T. You can 
access the timer through the WIN32 API. The TPC-2106/2106T includes 
a WDT driver, WDT1:, for enabling/disabling the watchdog timer. You 
must open this driver before using the resources, and then use the 
DeviceIOControl function to enable/disable the watchdog timer.

This appendix describes DeviceIOControl and it parameters. It also 
includes a programming example.

DeviceIOControl

DeviceIOControl sends a control code directly to a specified device driver, 
causing the corresponding device to perform the specified operation. The 
function and its parameters are:

BOOL DeviceIoControl( HANDLE hDevice, DWORD 

dwIoControlCode, LPVOID lpInBuffer, DWORD nInBufferSize, 

LPVOID lpOutBuffer, DWORD nOutBufferSize, LPDWORD 

lpBytesReturned, LPOVERLAPPED lpOverlapped );

Parameters

DeviceIOControl includes the following parameters:

hDevice

 

(in) Handle to the device that performs the operation. Call the 
CreateFile function to obtain a device handle.

dwIoControlCode

 

(in) Specifies the operation control code. This value identifies the 
specific operation to be performed and the type of device on which the 
operation is to be performed. No specific values are defined for the 

dwIoControlCode

 parameter. However, if you write a custom device 

driver, you can define 

IOCTL_XXXX

 control codes, per the 

CTL_CODE

 

macro. You then can advertise these control codes, and an application 
can use these control codes with DeviceIoControl to perform 
driver-specific functions.

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

Страница 1: ...TPC 2106 2106T User Manual TPC 2106 2106T User Manual August 2007 372254A 01 ...

Страница 2: ...00 Lebanon 961 0 1 33 28 28 Malaysia 1800 887710 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 Slovenia 386 3 425 42 00 South Africa 27 0 11 805 8197 Spain 34 91 640 0085 Sweden 46 0 8 587 895 00 Switzerland 41 56 2005151 Taiwan 886 02 2377 2222 Thailan...

Страница 3: ...cluding photocopying recording storing in an information 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 we ask our users to do the same NI software is protected by copyright and other intellectual property laws Where NI software may be used to reproduce s...

Страница 4: ...nt of Communications DOC Changes or modifications 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 comply with the limits for a Class A digital device pursuant to part 15 of the FCC Rules These limits are designed to provide reasonable protection against ha...

Страница 5: ...otes a component that may be hot Touching this 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 Italic text denotes variables emphasis a cross reference or an introduction to a key concept Italic text also denotes text that is a placeholder for a w...

Страница 6: ...chscreen Calibration 2 3 Panel Mounting 2 4 Chapter 3 System Configuration Display Settings 3 1 Touchscreen Calibration 3 2 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 Watchdog 4 2 Misc 4 2 Tools 4 3 ActiveSync 4 3 Registry Editor 4 3 Registry Saver 4 3 Remote Display Application 4 4 NotepadPlus 4 4 TPC Configurator 4...

Страница 7: ...creen exe on off 4 5 Iesample exe n f ip address folder 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 Timer Programming Appendix C Fuse Replacement Appendix D Pin Assignments Appendix E Technical Support and Professional Services Index ...

Страница 8: ...mands for clear interfaces Powerful Communication Capability The TPC 2106 2106T 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 CE operating system specifically for the TPC 2106 2106T is available for Windows CE application program builders JVM Support The TPC 2106 ...

Страница 9: ... The system boot sequence is If no CompactFlash card 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 soft nonmetallic brush Make sure that the unit is completely dry and free from contaminants before returning it to service 1 COM3 RS232 COM4 RS485 2 L...

Страница 10: ... a reliable surface during installation Dropping it or letting 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 before connecting the equipment to the power outlet Position the power cord so that it cannot be stepped on Do not place anything over the power cor...

Страница 11: ...re 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 the manufacturer s instructions Caution The protection this equipment provides may be impaired if it is used in a manner not described in this manual Setup Follow these steps to set up the TPC 2106 2106T 1 U...

Страница 12: ...onnector 3 Connect the power connector to the power receptor on the TPC 2106 2106T 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 2106 2106T touchscreen should be correctly calibrated and ready to use when you power on the system However if the calibration is not correct or you want to choo...

Страница 13: ...PC 2106 2106T into the panel opening Refer to Appendix 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 clamps To fasten the TPC 2106 2106T to the panel tighten the screws so they push against the mounting panel Note The mounting panel thickness should ...

Страница 14: ...klight while on external power checkbox and select the time from the drop down menu 3 To set the LCD brightness 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 Follow these steps to select the system font size 1 Select Start Programs Utilities System Font Setting to access the System Font Setti...

Страница 15: ... Click the Calibration tab and click Recalibrate to calibrate the touchscreen A cross appears on the screen in the following locations center upper left lower left lower right and upper right Use the stylus to tap the center of the cross until it moves to next location Beep Settings In Windows CE NET you can set the TPC 2106 2106T to beep when you touch the touchscreen Follow these steps to enable...

Страница 16: ... default Contact National Instruments for local language support Note The TPC 2106 2106T supports Remote Desktop Connection in Windows CE but the maximum resolution supported is only 320 240 TPC Utilities Windows CE NET on the TPC 2106 2106T includes several useful utilities Soft Keyboard The TPC 2106 2106T is designed for small operator interfaces Because it is inconvenient to attach a keyboard t...

Страница 17: ... restarts the machine when required Use the Watchdog 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 watchdog and click the Test button the no resetting signal is sent to the watchdog hardware periodically The watchdog assumes the machine is deadlocked...

Страница 18: ...Root to enter the web server root path The root path 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 to access the following tools Note For best results when accessing these tools click the arrow to the right of the Utilities menu to avoid accidental...

Страница 19: ... can see the TPC 2106 2106T display and control it from the host machine NotepadPlus NotepadPlus is a text editor TPC Configurator TPC Configurator is an integrated utility for configuring the basic TPC 2106 2106T settings For more information refer to TPC Configuration TPC Version Information TPC Version Information shows the OS version information Other Utilities The following utilities are comm...

Страница 20: ...se Iesample exe n to close the scroll bar Use Iesamples exe f to activate the full screen The parameters can be blank Networking Networking Via Ethernet Follow these steps to configure the TPC 2106 2106T Ethernet port Note Be sure you are connected to a LAN before booting the system Note The data transfer buffer size per package via Ethernet is about 20 000 1 Select Start Settings Network and Dial...

Страница 21: ...ments as described below Setting Up the TPC 2106 2106T 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 confirmation appears saying This will change the system font size and reboot Are you sure Click Yes Follow these steps to set up the TPC 2106 2106T communi...

Страница 22: ... and click OK 6 In the Get Connected window on the 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 Click Explore in the Microsoft ActiveSync window The Mobile Device window appears displaying the TPC 2106 2106T file resources and information For exa...

Страница 23: ...National Instruments Corporation A 1 TPC 2106 2106T User Manual A Specifications This appendix lists the TPC 2106 2106T system specifications Physical Weight 0 8 kg Cutout dimensions 188 141 mm suggested ...

Страница 24: ...06 2106T User Manual A 2 ni com Dimensions System Kernel CPU Intel XScale PXA 270 416 MHz VGA CPU built in DRAM Built in 64 MB SDRAM Storage memory 64 MB onboard NAND flash 187 84 7 40 148 5 83 140 84 5 54 195 7 68 44 4 1 75 6 0 0 24 ...

Страница 25: ...Touch type Resistive Base glass construction Tempered glass Resolution Continuous Light transmission 75 typical TPC 2106 TPC 2016T Display type Color STN LCD Color TFT LCD Size diagonal 5 7 in 5 6 in Maximum resolution 320 240 QVGA 320 240 QVGA Maximum colors 4096 256k Pixel pitch W H mm 0 12 0 36 Viewing angle 100 100 Luminance cd m2 400 500 Contrast ratio 55 400 Operating temperature 0 to 50 C a...

Страница 26: ...ower Input voltage 18 to 32 VDC the fuse becomes an open circuit if input level exceeds 33 VDC Maximum current 3 15 A typical 24 VDC at 0 8 A Fuse Rating T3 15A 250 V Size 5 20 mm Note When replacing the fuse use only a fuse of the same type and rating Note The fuse is set to break if the input voltage exceeds 33 VDC Environment Operating temperature 0 to 50 C Storage temperature 20 to 70 C Humidi...

Страница 27: ...standards of EMC for electrical equipment for measurement control and laboratory use EN 55024 CISPR 24 EMC requirements EN 55022 CISPR 22 Emissions Class A EN 55011 CISPR 11 Emissions Class A CE C Tick ICES and FCC Part 15 Emissions Class A Note For EMC compliance operate this device according to product documentation CE Compliance This product meets the essential requirements of applicable Europe...

Страница 28: ... the end of their life cycle all products must be sent to a WEEE recycling center For more information about WEEE recycling centers and National Instruments WEEE initiatives visit ni com environment weee htm Mercury Disposal and Recycling LCD lamp s in this monitor contain mercury Dispose or recycle according to local state or federal laws Consult the Electronic Industries Alliance at www eiae org...

Страница 29: ...on and its parameters are BOOL DeviceIoControl HANDLE hDevice DWORD dwIoControlCode LPVOID lpInBuffer DWORD nInBufferSize LPVOID lpOutBuffer DWORD nOutBufferSize LPDWORD lpBytesReturned LPOVERLAPPED lpOverlapped Parameters DeviceIOControl includes the following parameters hDevice in Handle to the device that performs the operation Call the CreateFile function to obtain a device handle dwIoControlC...

Страница 30: ...ariable 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...

Страница 31: ...enable the watchdog first and then sends IOCTL_WDT_REBOOT 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 lpInBuffer unused nInBufferSize unused lpOutBuffer unused nOutBufferSize unused IOCTL_WDT_GETTIMEOUT Gets the watchdog time setting lpInBuffer unuse...

Страница 32: ...ings are nInBufferSize unused lpOutBuffer unused nOutBufferSize 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 lpInBuffer unused nInBufferSize unused lpOutBuffer unused nOutBufferSize unused 4 30 s Other 40 s Setting Time 0 2 s 1 default 5 s default 2 10 s 3 15...

Страница 33: ...EOUT 0x1004 define IOCTL_WDT_SETTIMEOUT 0x1005 define 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_WRITE 0 NULL OPEN_EXISTING FILE_ATTRIBUTE_NORMAL NULL if m_hWDT INVALID_HANDLE_VALUE DebugMsg CString WDT driver fail return DWORD dwTemp DWORD nIndex 2 ...

Страница 34: ...aged Do not replace the fuse with a differently rated 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 fuse with a new one 4 Place the fuse cover back into position 5 Replace the power cable ...

Страница 35: ...Instruments Corporation D 1 TPC 2106 2106T User Manual 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 ...

Страница 36: ...ree COM ports RS232 COM1 and COM2 and 4 wire RS232 COM3 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 No Connection Pin 7 No Connection Pin 8 No Connection Pin 9 No Connection 1 5 9 6 ...

Страница 37: ...re every question receives an answer For information 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 eLearning virtual classrooms interactive CDs and Certification program information You also can register for instructor led hands on courses at locations ...

Страница 38: ...L_WDT_GETTIMEOUT B 3 IOCTL_WDT_REBOOT B 4 IOCTL_WDT_SETTIMEOUT 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 resources E 1 E electromagnetic compatibility specifications A 5 environmental management specifications A 6 environmental specifications A 4 ...

Страница 39: ... NotepadPlus 4 4 P panel mounting 2 4 physical specifications A 1 pin assignments D 1 RS232 D 1 RS485 D 2 power connector figure 2 3 power receptor 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 1 specifications A 5 screen rotation 3 1 Screen exe ...

Страница 40: ... TPC Version Information 4 4 TPC Configurator 4 1 TPC Version Information 4 4 TPC 2106 2106T beep settings 3 2 CE compliance specifications A 5 cleaning specifications 1 2 A 6 COM port setting D 2 dimensions 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...

Страница 41: ...urces E 1 troubleshooting NI resources E 1 W Waste Electrical and Electronic Equipment compliance specifications A 6 watchdog 4 2 watchdog timer programming B 1 DeviceIOControl B 1 programming example B 5 Web resources E 1 Windows CE NET 4 1 ActiveSync 4 3 Bright exe 4 4 Buzzer exe 4 4 Contrast exe 4 5 Iesample exe 4 5 networking 4 5 NotepadPlus 4 4 Reboot exe 4 5 Registry Editor 4 3 Registry Save...

Отзывы: