panel-pc 310, 40 series software manual - コンテック 310, 40 series arm cortex-a8 windows...

55
IPC Series PANEL-PC 310, 40 Series ARM Cortex-A8 Windows Embedded Compact 7 Software Manual CONTEC CO., LTD.

Upload: hoangcong

Post on 24-Jul-2018

226 views

Category:

Documents


0 download

TRANSCRIPT

IPC Series

PANEL-PC 310, 40 Series ARM Cortex-A8 Windows Embedded Compact 7

Software Manual

CONTEC CO., LTD.

Software Manual i

Introduction This is the software manual for the PT-310LS Series, PT-40NVF series.

If you require this series' hardware manual, download it from the CONTEC website.

ii Software Manual

Copyright Copyright 2015 CONTEC CO., LTD. ALL RIGHTS RESERVED.

No part of this document may be copied or reproduced in any form by any means without prior written consent of CONTEC CO., LTD.

CONTEC CO., LTD. makes no commitment to update or keep current the information contained in this document. The information in this document is subject to change without notice.

All relevant issues have been considered in the preparation of this document. Should you notice an omission or any questionable item in this document, please feel free to notify CONTEC CO., LTD.

Regardless of the foregoing statement, CONTEC assumes no responsibility for any errors that may appear in this document or for results obtained by the user as a result of using this product.

Trademarks MS, Microsoft and Windows are trademarks of Microsoft Corporation. Other brand and product names are trademarks of their respective holder.

Software Manual iii

Table of Contents Introduction ................................................................................................................................................... i Copyright ..................................................................................................................................................... ii Trademarks .................................................................................................................................................. ii Table of Contents ....................................................................................................................................... iii

Chapter 1 Advantages of Windows Embedded Compact 7 1

Chapter 2 Basic operations 3 Procedure for starting applications (TASKMAN edition).................................................................... 3 Procedure for changing the shell................................................................................................................ 4 Procedure for starting applications (IESHELL edition) ....................................................................... 5

Chapter 3 Standard-equipped drivers 7

Chapter 4 Function switches 9 Function switches ........................................................................................................................................ 9

Chapter 5 System Setting 11 Explanation of system settings ................................................................................................................. 11

[Shell] tab ...................................................................................................................................... 11 [Backlight] tab .............................................................................................................................. 12 [Input] tab ...................................................................................................................................... 13 [Panel] tab...................................................................................................................................... 14

Chapter 6 CONTEC Manager 15 Basic operation of CONTEC Manager.................................................................................................... 15

Starting CONTEC Manager ......................................................................................................... 15 Displaying CONTEC Manager.................................................................................................... 15 Closing CONTEC Manager ......................................................................................................... 15 Exiting CONTEC Manager.......................................................................................................... 15

Scheduling function .................................................................................................................................. 16 Adding schedules .......................................................................................................................... 16 Deleting schedules ........................................................................................................................ 16 Schedule property settings ........................................................................................................... 16 [Add Schedule] and [Set Schedule] dialog boxes ...................................................................... 17

Selecting the running services .................................................................................................................. 24 User management ...................................................................................................................................... 26

iv Software Manual

Adding users ................................................................................................................................. 26 Updating user information ........................................................................................................... 26 Deleting user information ............................................................................................................ 26

Boot functions ........................................................................................................................................... 27 Boot method .................................................................................................................................. 27 Boot information ........................................................................................................................... 27

System information ................................................................................................................................... 28 Changing the CONTEC Manager title .................................................................................................... 29

Chapter 7 NF device processing 31 Object store ................................................................................................................................................ 31

Backing up and restoring the object store .................................................................................. 31 Backing up and restoring the registry ......................................................................................... 32

Chapter 8 AutoRun function 33 How to use the AutoRun function ........................................................................................................... 33 How to write AutoRUN.inf ...................................................................................................................... 34

Chapter 9 Appendix 35 Application development procedure ........................................................................................................ 35

Development environment ........................................................................................................... 35 Development machine software installation procedure ............................................................ 35 Preparation of application Development in Visual Studio 2008 .............................................. 36 IP address setting of the target machine ..................................................................................... 37 Checking the connection between the development machine and the target machine ........... 38 Application development in Visual Studio 2008 ....................................................................... 41 Downloading applications ........................................................................................................... 44 Debugging applications................................................................................................................ 44 Embedding applications ............................................................................................................... 45

Other precautions and FAQ ...................................................................................................................... 46 Operation ....................................................................................................................................... 46

Chapter 1 Advantages of Windows Embedded Compact 7

Software Manual 1

Chapter 1 Advantages of Windows Embedded Compact 7

The CONTEC PT-310LS series, PT-40NVF series is equipped with the following proprietary drivers and functions.

• A rich variety of drivers This series is standard-equipped with WEC7 drivers for the devices installed on the motherboard. For details, see "Chapter 3, Standard-equipped drivers."

• System setting function With this series, you can change the settings of the standard-equipped drivers from Control Panel in order to match your system application. For details on the settings that you can change, see "Chapter 5, System Setting."

• CONTEC Manager functions This series is equipped with a scheduling function as well as functions for network service management and system information management. For details, see "Chapter 6, CONTEC Manager."

• Object store/registry backup function When there are changes to drivers provided by CONTEC, you can use this function to correct modules without correcting the WEC7 OS image (NK.BIN). You can also back up the registry settings.

• Watchdog timer function This series is equipped with a watchdog timer function, which makes it possible to use the watchdog timer function from your applications.

• Backlight function This series is equipped with a backlight function. You can set this function from Control Panel so that the LCD backlight turns off when conditions are met such as no input being received for the set amount of time.

• AutoRun function When a USB storage device containing a file having a process sequence (AutoRun.inf) is inserted into the WEC7 device, processing can be started according to this sequence. This function makes it possible to perform a set of operations, such as copying files, in sequence. For details on the AutoRun function, see "Chapter 8, AutoRun Function."

Chapter 1 Advantages of Windows Embedded Compact 7

2 Software Manual

Chapter 2 Basic operations

Software Manual 3

Chapter 2 Basic operations

Procedure for starting applications (TASKMAN edition) WEC7 is equipped with two types of shells: a simple shell (hereinafter referred to as "TASKMAN") and a Windows-like shell (hereinafter referred to as "IESHELL").

By default, the TASKMAN shell is selected, so you have to follow the procedure shown below to run applications.

1. After WEC7 starts, press the "Alt" key and the "Tab" key at the same time (hereinafter, this is indicated as "Alt" + "Tab") to start Task Manager.

2. When Task Manager starts, click [Run] to display the [Run] dialog box. If you know the name of

the program, type the full path to the program in the [Open] box, and then click [OK] to run the program.

3. If you do not know the name of the program that you want to run, click [Browse] in the [Run] dialog box, select the program in the dialog box that is displayed, and then click [OK]. The full path to the program you have selected will be entered in the [Open] box in the [Run] dialog box, so click [OK] to run this program.

Chapter 2 Basic operations

4 Software Manual

Procedure for changing the shell If you want to use IESHELL with this series, start the application from the [System Setting] icon in Control Panel (control.exe), and then change the shell that you are using.

For details on "System Setting," see "Chapter 6, System Setting."

Chapter 2 Basic operations

Software Manual 5

Procedure for starting applications (IESHELL edition) In order to start an application when IESHELL is running, you have to click [Run] on the Start menu, and then specify the application that you want to start.

1. On the Start menu, click [Run] to display the [Run] dialog box.

2. If you know the name of the application that you want to start, type the name of this application in the [Open] box. If you do not know the name of the application that you want to start, click [Browse] to display the [Browse] dialog box. Then, select the application to start.

3. After you select the application, click [OK]. This inserts the target application into the [Open] box in the [Run] dialog box.

Chapter 2 Basic operations

6 Software Manual

4. After you specify the application, click [OK]. The target application then starts.

Chapter 3 Standard-equipped drivers

Software Manual 7

Chapter 3 Standard-equipped drivers WEC7 is standard-equipped with the following drivers. This chapter explains the standard-equipped drivers.

Table 3.1. List of drivers Driver Explanation

Graphics LCD output (XGA, SVGA, VGA)

SD Card Driver for SD card Slot

Serial

Supports an on-board serial port (RS-232C, RS-422A/RS-485) •PT-310LS Series RS-232C : on-board serial 2 port RS-422A/RS-485 : on-board serial 1 port •PT-40NFV Series RS-232C : on-board serial 2 port RS-422A/RS-485 : not supported

*RS-422A/RS-485: Communication mode control is done by the software. Please refer to the [CONTEC SDK for CE 700] for more information.

Touch panel Driver for an LCD with a CONTEC touch panel controller

USB • Host driver supporting USB 2.0 • HID driver (supports a mouse or keyboard)

LAN On-board 100/10 BASE LAN driver Sound Stereo output driver for the sound source *1 Function switch Driver for the function switches on the bottom of the front panel of the panel computer *1 Isolated I/O DIO port access via DLL.*1

Application development support API package

Download the "CONTEC SDK for CE700" from the CONTEC website. You can use an API package that includes the following functions. • Watchdog timer function • Backlight control function • System information acquisition function

*1 : This function is not supported by the PT-40NVF series.

Chapter 3 Standard-equipped drivers

8 Software Manual

Chapter 4 Function switches

Software Manual 9

Chapter 4 Function switches This chapter explains the meaning of the function switches.

The PT-40NVF series does not support the function switches.

Function switches The WEC7 panel computer is equipped with function switches.

The following functions are mapped to these function switches.

Key Explanation

(■) Press the (■) key to display the software keyboard. To hide the software keyboard, press the (■) key again.

(■■) Press the (■■) key to send the keyboard's (■■) key code to the system. (■■■) Press the (■■■) key to send the keyboard's (■■■) key code to the system.

(■ + ■■) Press the (■) key and (■■) key at the same time(*) to darken the LCD's backlight.

(■ + ■■■) Press the (■) key and (■■■) key at the same time(*) to brighten the LCD's backlight.

* This means to press both function keys at the same time. The corresponding function will not be performed if you hold down one key and then press the other one.

Chapter 4 Function switches

10 Software Manual

Chapter 5 System Setting

Software Manual 11

Chapter 5 System Setting In order for WEC7 to meet the needs of our customers, we have prepared [System Setting], which can be used as a tool for a variety of settings, in Control Panel.

When you change the [System Setting] details, you will have to execute a registry backup in order

to record the settings in the system. Also, excluding some settings, the changed settings will be enabled the next time that WEC7 starts.

Explanation of system settings [Shell] tab

The details of the items are shown below.

Setting tab Setting item Setting details

Shell Shell

Mini Shell (TASKMAN) A simple shell with no taskbar is used. (Default) Explorer Shell (IESHELL) A shell with a taskbar and Start menu, the same as a desktop version of Windows, is used.

Debug Port This is not supported.

Chapter 5 System Setting

12 Software Manual

[Backlight] tab

The details of the items are shown below.

Setting tab Setting item Setting details

Backlight

Darken backlight automatically. You can have the backlight turn off automatically by selecting this check box. (Default value: cleared)

Darken after idle time. (min:) Set the time that must elapse before the backlight is automatically turned off. (Default value: 5 minutes)

Brightness Adjust the brightness of the backlight.

Chapter 5 System Setting

Software Manual 13

[Input] tab

The details of the items are shown below.

Setting tab Setting item Setting details

Input

Keyboard

101 (English keyboard) Select this option when the keyboard you are using has 101 keys. 106 (Japanese keyboard) Select this option when the keyboard you are using has 106 keys. (Default) Num Lock This is not supported.

Mouse This is not supported.

Front Key*1

Use Front Key If you do not need to use the function keys on the front of the panel, clear this check box. (Default value: selected) Use SoftKeyboard When the front keys are enabled, you can enable/disable the use of the software keyboard. (Default value: selected)

PS/2 Port This is not supported.

*1: This function is not supported by the PT-40NVF series.

Chapter 5 System Setting

14 Software Manual

[Panel] tab

The details of the items are shown below.

Setting tab Setting item Setting details

Panel

Display

Size This is not supported. Rotation This is not supported.

Touch Panel

Use Touch Panel If you do not need to use the touch panel function, clear this check box. (Default value: selected) Touch Panel Beep ON When the touch panel is enabled, a beep will sound each time the touch panel is used. (Default value: cleared)

Chapter 6 CONTEC Manager

Software Manual 15

Chapter 6 CONTEC Manager CONTEC Manager provides you with a scheduling function as well as a variety of other functions such as one for managing network services, one for managing users, one for displaying system information, and various boot functions.

Basic operation of CONTEC Manager Starting CONTEC Manager CONTEC Manager starts automatically when the system boots. If it does not start automatically, run "wcemngr.exe" to start CONTEC Manager.

Displaying CONTEC Manager Normally, CONTEC Manager is hidden. To display CONTEC Manager, press the "Alt" key and "Esc" key at the same time or the "Ctrl" key, "Alt" key, and "Del" key at the same time. Alternatively, you can display CONTEC Manager by running "wcemngr.exe" again.

Closing CONTEC Manager You can close CONTEC Manager by pressing the "Esc" key or the "Enter" key.

Exiting CONTEC Manager You can exit CONTEC Manager by executing its command with the "contec" option: "wcemngr contec."

Pressing the "Esc" key or "Enter" key just hides CONTEC Manager. Pressing these keys does not exit CONTEC Manager.

Normally, when you exit CONTEC Manager, the schedule function and various services will stop

operating.

Chapter 6 CONTEC Manager

16 Software Manual

Scheduling function Display CONTEC Manager, and then select the [Schedule] tab.

Adding schedules Click [Add] to display the [Add Schedule] dialog box.

Enter the details in the dialog box, and then click [OK] or press the "Enter" key.

For details on the dialog box settings, see "[Add Schedule] and [Set Schedule] dialog boxes."

Deleting schedules Select the schedule that you want to delete from the schedule list, and then click [Delete].

Schedule property settings Select the schedule that you want to set from the schedule list, and then click [Property] to display the [Set Schedule] dialog box.

Change the details in the dialog box, and then click [OK] or press the "Enter" key.

For details on the dialog box settings, see "[Add Schedule] and [Set Schedule] dialog boxes."

Chapter 6 CONTEC Manager

Software Manual 17

[Add Schedule] and [Set Schedule] dialog boxes

■ Program and Argument setting

Click [Browse] and select the program. Alternatively, enter the name of the program to run in the [Program and Argument] box. If the program requires arguments, enter them after the program name.

■ Run Timing setting

CONTEC Manager has the following six types of run timing settings: [Designated], [System Start], [Every Hour], [WeekDay], [Every Week], and [Every Month]. Details on these settings are shown below.

[Designated]: The specified program will be run only once at the specified date and time. [System Start]: The specified program will be run when CONTEC Manager starts. Normally,

CONTEC Manager is run automatically when the system starts, so the specified program is also run when the system starts. If you set [Run Timing] to [System Start], you can select running that is dependent on other programs. A dependent program is run when the program that it is dependent on finishes running.

[Every Hour]: The specified program is run every day at the specified time. For example, you can run the program every day at 08:30, 16:30, and 00:30.

[WeekDay]: The specified program is run on the specified day of the week. For example, you can run the program every week at 08:30 on Monday, Wednesday, and Friday.

[Every Week]: The specified program is run every week at the specified time on the specified day of the week. For example, you can run the program every week at 08:30 on Monday.

[Every Month]: The specified program is run every month at the specified time on the specified day. For example, you can run the program every month at 08:30 on the 15th.

Chapter 6 CONTEC Manager

18 Software Manual

■ [Designated] setting

Select [Designated] under [Run Timing].

The current date and time is set in the [Date and Time] text boxes and list under [Start Time]. Change these values to the date and time at which you want to run the program.

Select the [Random Start from xx:xx to yy:yy] check box to run the program at a random time between xx:xx and yy:yy. You can use this setting to disperse the running of programs even when there are multiple WEC7 devices with the same settings.

Chapter 6 CONTEC Manager

Software Manual 19

■ [System Start] setting

Select [System Start] under [Run Timing].

The [System Start] setting has two modes.

[Delay] mode: You can use the [Start Program After] box to set the delay time that must elapse after the system starts before the program is run. If this is set to "00:00," the specified program is run immediately after the system starts. For example, set this to "00:01" to run the specified program 1 minute after the system starts.

[Dependent] mode: You can set the specified program so that it is run after another program finishes. A dependent program is run when all the programs that it is dependent on finish running. You can make a dependent program dependent on all the programs in the dependency list. You can create dependency relationships between the dependent program and the programs that it is dependent on by selecting the check boxes of the programs shown in the dependency list.

Chapter 6 CONTEC Manager

20 Software Manual

■ [Every Hour] setting

Select [Every Hour] under [Run Timing].

Use the [Minute] box to set the number of minutes after each hour at which to run the program.

Use the hours list to select all the hours during which you want to run the program.

For example, if you select the [08], [16], and [00] check boxes in the hours list and set [Minute] to "30," the specified program will be run every day at 08:30, 16:30, and 00:30.

[Random Start from *:xx to *:59] function Select the [Random Start from *:xx to *:59] check box to run the program at a random time between xx minutes and 59 minutes. The "xx" part in [Random Start from *:xx to *:59] is the value that you have entered in the [Minute] box. You can use this function to reduce network overhead and other similar issues when multiple WEC7 devices are operating at the same time.

Chapter 6 CONTEC Manager

Software Manual 21

■ [WeekDay] setting

Select [WeekDay] under [Run Timing].

You can use the check boxes and the text box to run the program at the specified time on each of the specified days of the week.

For example, you can run the program at 8:30 on Monday, Wednesday, and Friday of each week by selecting the [Monday], [Wednesday], and [Friday] check boxes and entering "8:30" in the text box.

Chapter 6 CONTEC Manager

22 Software Manual

■ [Every Week] setting

Select [Every Week] under [Run Timing].

Set the day of the week and the time at which to run the specified program every week.

For example, if you select [Monday] and enter "8:30," the specified program will be run at 8:30 on Monday of every week.

Chapter 6 CONTEC Manager

Software Manual 23

■ [Every Month] setting

Select [Every Month] under [Run Timing].

You can use the [Day] box to set a day of the month and the time box to set a time, and then the specified program will be run at the specified time on the specified day of each month.

For example, if you enter "15" in the [Day] box and "8:30" in the time box, the specified program will be run at 8:30 on the 15th of each month.

[Random Start from xx:xx to xx:59] function Select the [Random Start from xx:xx to xx:59] check box to run the program at a random time between xx minutes and 59 minutes. The "xx" part in [Random Start from xx:xx to xx:59] is the value that you have entered in the [Every Month Day] box. You can use this function to reduce network overhead and other similar issues when multiple WEC7 devices are operating at the same time.

Chapter 6 CONTEC Manager

24 Software Manual

Selecting the running services Display CONTEC Manager, and then select the [Service] tab.

CONTEC Manager loads the following four services.

• "FTP server function"

• "Remote control server function"

• "AutoRun function"

• "NTP time adjustment function"

FTP server function To run the "FTP server function" service, select the [Start FTP Server] check box. After you start the "FTP server function," you can use an FTP client to access the WEC7 file system by way of the FTP protocol.

Remote control server function This function is not supported.

AutoRun function To run the "AutoRun function" service, select the [Start AutoRun Function] check box. After you start the "AutoRun function," when you insert a USB storage device into the USB port, the "AutoRun function" will run in order to search for the "autorun.inf" file on the USB storage device. If the "autorun.inf" file exists, the "AutoRun function" will run the program written in "autorun.inf."

Chapter 6 CONTEC Manager

Software Manual 25

NTP time adjustment function To run the "NTP time adjustment function" service, select the [Start NTP Time Adjust] check box. Enter the IP address of the NTP server in the [NTP Server IP] box. Enter the timing with which to access the NTP server in units of minutes in the [Adjust Time Every] box. If this is set to "0," the NTP server will only be accessed one time: when CONTEC Manager starts. After you start the "NTP time adjustment function," the WEC7 device will set the system time to the current time acquired from the specified NTP server.

Chapter 6 CONTEC Manager

26 Software Manual

User management Display CONTEC Manager, and then select the [UserInfo] tab.

Use this tab to manage the users of the "FTP server function" and "Remote control server function" CONTEC services. Only the users shown under [User List] can access the CONTEC services. A user name and password are used to manage each user. The user name and password can be up to eight characters in length.

Adding users Enter the user name in the [Name] box and the password in the [Password] and [Re-Password] boxes, and then click [Add].

Updating user information Select the user that you want to change from the [User List], enter the new user name in the [Name] box and the new password in the [Password] and [Re-Password] boxes, and then click [Update].

Deleting user information Select the user whose information you want to delete from the [User List], and then click [Delete].

Chapter 6 CONTEC Manager

Software Manual 27

Boot functions Display CONTEC Manager, and then select the [Boot] tab.

Boot method Hot booting is not supported.

To cold boot the system, click [Cold Boot]. When you perform a cold boot, NK.BIN is reloaded from the specified boot device, and then the details of the registry and object store are initialized. [Backup Registry when cold boot] check box:

If CONTEC Manager causes a registry change, this check box is selected. Also, if you use Control Panel or Registry Editor to change the details of the registry and you want to retain the changes, select this check box, and then perform a cold boot. If a cold boot is performed with this check box cleared, CONTEC Manager will not back up the registry. Therefore, all the changes made by CONTEC Manager will be cleared after the cold boot. As such, if you want to retain the current registry details after the cold boot, be sure to select this check box.

Boot information [NF Disk] or [XIP], the setting of the current boot device, is displayed next to [Boot From]. The restoration status of the object store is displayed next to [Object Store] under [Restore Result].

The restoration status of the registry is displayed next to [Registry] under [Restore result]. ■ Restoration status [Restore success]: The restoration during the boot was successful.

Chapter 6 CONTEC Manager

28 Software Manual

System information Display CONTEC Manager, and then select the [Version] tab.

Version information: Displays the version information of items such as CONTEC Manager, the BIOS, and the kernel

Motherboard information: MCU version information. PCB information is not displayed.

NF device information: Displays the total usable space and the free space on the NFDisk

Memory information: Displays the total size of the memory and the size of the usable memory

Network information: Displays the MAC address of the wired LAN

Chapter 6 CONTEC Manager

Software Manual 29

Changing the CONTEC Manager title When you start CONTEC Manager, "CONTEC" is displayed (by default) as the title of the dialog box.

You can also use CONTEC Manager to change this title.

Table 7.1. Registry setting items \\HKEY_LOCAL_MACHINE\Ident key

Item Data type Explanation

OEMName REG_SZ Set this registry value to the text that you want to display. Example: "DAIFUKU"

If you change the registry as shown in the above example, the title bar will be displayed as shown in the following figure.

Figure 7.1. Screen in which the title has been changed

Chapter 6 CONTEC Manager

30 Software Manual

Chapter 7 NF device processing

Software Manual 31

Chapter 7 NF device processing With WEC7, the SD memory card installed on the board (hereinafter referred to as the "NFDisk") is mounted so that it can be accessed from WEC7.

The system uses a part of the NFDisk to save the registry (REG3.bin) and the object store (\NFDisk\Update).

These items are explained below.

The NFDisk is made of SD memory card recording media. Therefore, it has a service life related to

deleting and writing data. For details, see the hardware manual.

Object store Backing up and restoring the object store

■ Restoring the object store

To update data such as the standard modules in NK.BIN, store the updated modules in the \NFDisk\Update directory.

When this series starts, it overwrites the root directory with the contents of the \NFDisk\Update directory and the \Windows directory with the contents of the \NFDisk\Update\Windows directory.

For example, if you want to update the serial driver (am335x_serial.dll), copy the new serial driver (am335x_serial.dll) to the \NFDisk\Update\Windows directory. When this series starts, it will copy the new serial driver to the \Windows directory, overwriting the existing driver.

This completes the updating of the serial driver.

■ If you do not want to restore the object store

Delete the contents of the \NFDisk\Update directory or perform a "forced reset."

Chapter 7 NF device processing

32 Software Manual

Backing up and restoring the registry When you make changes, such as to the Control Panel details, these changes are saved to the registry. These details will be lost if they are not backed up, so if you want to save the settings, be sure to back up the registry.

■ Backing up the registry To back up the registry, start CONTEC Manager, select the [Backup Registry when cold boot] check box on the [Boot] tab, and then click [Cold Boot] to restart the OS.

It takes time to back up the registry. Excluding some models, the access lamp lights in yellow

during the backup, so do not turn the product off or reset it during the backup. After the registry backup is finished, the system will restart with the new settings.

Chapter 8 AutoRun function

Software Manual 33

Chapter 8 AutoRun function In situations such as when you want to set the same data on multiple WEC7 devices, a function that can perform processes automatically is necessary.

In situations like this, store a file containing the processing procedure (AutoRUN.inf) on a USB storage device, and then insert the USB storage device into the USB port. Processing will be performed according to the procedure contained in AutoRUN.inf.

The AutoRun function is an extremely effective method that you can use in situations like this.

If the AutoRun function is already operating, it will not run if you insert a USB storage device

containing the next AutoRUN.inf file into a separate USB port. In this situation, you can run the AutoRun function by removing the USB storage device whose file is currently running, and then inserting the next USB storage device.

How to use the AutoRun function To use the AutoRun function, you have to select the [Start AutoRun Function] check box on the [Service] tab in CONTEC Manager ("Chapter 7 CONTEC Manager").

If you select or clear the [Start AutoRun Function] check box in CONTEC Manager, the change

will be applied the next time that CONTEC Manager starts.

Chapter 8 AutoRun function

34 Software Manual

How to write AutoRUN.inf You can use a format such as that shown below to express the AutoRUN.inf file, which is used by the AutoRun function.

Command Explanation

#wait Value

Processing will wait for the length of time specified by this value. The unit for the value is milliseconds. For example, if you specify a value of 1000, processing will wait for 1 second.

depend If you specify "depend," processing will wait for the command run immediately before this one to finish.

; You can use ";" to indicate that the line is a comment.

Example:

; AutoRUN.inf example

; for Example INF File Format

; Run test1.exe on the USB storage device (use quotation marks to surround file names that contain spaces). "\hard disk\test1.exe" "/a /b /c"

; Use the #wait depend command to wait for the prior program to finish. #wait depend

; Run test2.exe in the windows folder (you do not have to use quotation marks to surround file names that do not contain spaces). \windows\test2.exe

; Use the #wait value command to wait the length of time specified before running the next process. #wait 1000

; Run test3.exe (if the full path is not set, the application on the PC card where AutoRUN.inf exists will be run). test3.exe

; If you need to include quotation marks in the arguments, you can do so by escaping them with quotation marks.

; For example, if you want to write \windows\cmd.exe /c "\hard disk\abc.bat" in AutoRUN.inf,

; do so as shown below.

\windows\cmd.exe "/c ""\hard disk\abc.bat"""

Chapter 9 Appendix

Software Manual 35

Chapter 9 Appendix

Application development procedure Development environment You can use the following development environment to develop applications for WEC7.

• Visual Studio 2008 SP1

When debugging applications, connect the development machine and the target machine over a network (TCP/IP) and perform remote debugging.

Development machine software installation procedure Follow the procedure shown below to install the software (development tools) on the development machine.

1. Install Visual Studio 2008.

2. Install Visual Studio 2008 Service Pack 1 (or a later Service Pack).

3. Install Visual Studio 2008 Service Pack 1 Update for Windows Embedded Compact 7

• ”VS90SP1-KB2483802-x86.exe”

https://support.microsoft.com/en-us/kb/2483802

• “VisualStudioDeviceWindowsEmbeddedCompact7.msi”

https://support.microsoft.com/en-us/kb/2468183

4. Install the CONTEC SDK for CE700, which is provided by CONTEC.

To uninstall the software, do so in the reverse of the procedure shown above. If there are any files or directories that were not deleted during the uninstallations, delete them manually.

Chapter 9 Appendix

36 Software Manual

Preparation of application Development in Visual Studio 2008 Start Visual studio on your development machine. From the menu of Visual Studio 2008,

[Tools]-> [Options] -> [Projects and Solutions] -> [VC++ Directories] to select

“AM335xV700R1 (ARMv7)” from the Platform. Next to select “Include files” and “Library files” to set as shown below.

Chapter 9 Appendix

Software Manual 37

IP address setting of the target machine If a DHCP server exists within the network environment, there is no need for this setting. If no DHCP server exists, set a fixed IP address on the development machine and on the target machine.

The procedure to follow in setting the IP address on the target machine is shown below.

If you change the IP address of the target machine, do not save the change to the NFDisk, and turn

the power off, the next time WEC7 starts, the setting will have returned to its value prior to the change.

1. Follow the instructions in "Chapter 2 Basic operations" to start Control.exe.

2. In Control Panel, double-click [Network and Dial-up Connections]. Select [CPSW3G2], shown below.

3. In the [IP Address] tab of the ['CPSW3G miniport driver' Settings] dialog box, select [Specify an IP

address], enter the [IP Address] and [Subnet Mask], and then click [OK].

4. Exit [Network and Dial-up Connections].

Chapter 9 Appendix

38 Software Manual

5. Exit Control Panel.

6. This completes the setting of the IP address. However, if you want to start the OS the next time with the same setting, follow the steps shown below to set it in the registry.

7. Select the [Backup Registry when cold boot] check box on the [Boot] tab in CONTEC Manager, and then click [Cold Boot] to restart the OS.

8. When WEC7 restarts on the target machine, the set IP address will be used.

Checking the connection between the development machine

and the target machine

1. Follow the instructions in "Chapter 2 Basic operations" to start Connect.exe on the target machine.

2. The [Connect to Development Station for TCP/IP] dialog box will be displayed. Check the IP address of the target device. Click [Connect] to start waiting for the connection to the development machine. Click [Cancel] to exit the application.

3. Start Visual Studio 2008 on the development machine.

4. On the [Tools] menu in Visual Studio 2008, click [Options].

Chapter 9 Appendix

Software Manual 39

5. In the list on the left side of the [Options] dialog box, click [Device Tools] then [Devices]. Select [AM335xV700R1 ARMV7 Device] in the [Devices] list, and then click [Properties].

6. The [AM335xV700R1 ARMV7 Device Properties] dialog box will be displayed. Click [Configure].

Chapter 9 Appendix

40 Software Manual

7. The [Configure TCP/IP Transport] dialog box will be displayed. Select [Use specific IP address], and then select the IP address of the target machine from the list. Click [OK].

8. You will return to the screen shown in step 6. Click [OK]. You will return to the screen shown in step 5. Click [OK].

9. On the [Tools] menu in Visual Studio 2008, click [Connect to Device].

10. The [Connect to Device] dialog box will be displayed. Set [Platform] to [AM335xV700R1]. Check that "AM335xV700R1 ARMV7 Device" is displayed under [Devices], and then click [Connect].

Chapter 9 Appendix

Software Manual 41

11. The [Connecting...] dialog box will be displayed. If the connection is successful, the following screen will be displayed. This means that it is possible to debug the application from the target machine.

12. If you cannot connect the development machine and the target machine, perform step 2 again on the

target machine, and then perform steps 9 to 11 again on the development machine.

Application development in Visual Studio 2008 Use the Visual Studio 2008 application wizard to develop WEC7 applications. This section explains the types of projects that are commonly used for application development and the procedure to follow in creating a Visual Studio smart device application project.

1. Start Visual Studio 2008 on the development machine.

2. On the [File] menu in Visual Studio 2008, point to [New], and then click [Project] to display the [New Project] dialog box.

3. Under [Project types], click [Visual C++], and then click [Smart Device]. Next, click [MFC Smart Device Application] under [Templates], and then enter the [Name] and [Location]. Finally, click [OK].

Chapter 9 Appendix

42 Software Manual

4. The [MFC Smart Device Application Wizard] dialog box will be displayed. Check the contents of the dialog box, and then click [Next].

5. Select the platform SDKs to be added to the current project. Click [<] or [>] so that "AM335xV700R1" is displayed under [Selected SDKs]. Then, click [Next].

Chapter 9 Appendix

Software Manual 43

6. Set [Application type] to [Dialog based], and then click [Finish].

7. This completes the preparations for the environment in which the WEC7 application will be created. The project is displayed. Next, create the application in the same manner as a desktop application.

Chapter 9 Appendix

44 Software Manual

Downloading applications With the default Visual Studio 2008 settings, when you build an application, it will automatically be downloaded to the target machine. Applications are placed in the "\Program Files\" folder on the target machine by default. If you want to change this location, click [Properties] on the [Project] menu in Visual Studio 2008. The following [Property Pages] dialog box will be displayed. In the list on the left side, click [Configuration Properties] then [Deployment]. Click [Remote Directory] under the [General] item on the right side, and then change the location where applications will be placed.

If the download fails, check the connection between the development machine and the target machine.

Debugging applications You can perform code debugging from Visual Studio 2008 in the same manner as when developing other Windows applications.

Remote debugging is used to debug WEC7 applications, but details such as the debugging method are the same as for other Windows applications.

1. Build the application, and then download it to the target machine.

2. Set breakpoints, and then press the "F5" key (Start Debugging) or "F11" key (Step Into) to run the application.

3. All subsequent steps are the same as when debugging a Windows application.

Chapter 9 Appendix

Software Manual 45

Embedding applications Follow the procedure shown below to embed into the target machine an application that has been debugged.

Copy the application into the "NFDisk" directory*1 on this series. You can use one of the following methods to copy the application.

• Use the FTP server function of this series to copy the application over the network.

• Use a USB storage device to copy the application.

*1: The NFDisk directory is mounted to the on-board SD memory card of this series, so the files stored in this directory are not deleted even when the target machine is turned off.

Chapter 9 Appendix

46 Software Manual

Other precautions and FAQ Operation Q. Can I use a watchdog timer?

A. WEC7 supports a watchdog timer function. You can use this function by calling the watchdog timer API from your applications. For details on how to use the API, see the CONTEC SDK for CE700.

Q. I want to change the keyboard (from a 101-key keyboard to a 106-key one), but do I have to install a new driver?

A. You can select a 101-key keyboard or a 106-key one from "System Setting" in Control Panel. You can use the selected keyboard by saving the registry.

Q. Can I use a touch panel?

A. The IPC series panel computers running WEC7 are also equipped with a touch panel LCD, so you can use these touch panels immediately.

Q. Can I activate touch panel sounds?

A. On IPC series panel computers running WEC7, you can activate touch panel sounds by selecting the [Touch Panel Beep ON] check box on the [Panel] tab in [System Setting] of Control Panel.

Q. How do I change the LCD brightness?

A. You can change the LCD brightness by clicking the buttons under [Bright] on the [Backlight] tab in [System Setting] of Control Panel or by pressing ■ + ■■ or ■ + ■■■ (the function switches on the front panel). You can also change the brightness by using the application development support API package that is provided as standard. For details on how to use the API, see the CONTEC SDK for CE700.

Chapter 9 Appendix

Software Manual 47

Q. I set the WEC7 device name, but the setting returned to the default name. Is it possible to change the device name?

A. The device name is managed by CONTEC Manager. See the registry details shown below to set the device name. By default, this registry entry does not exist, so even if you change the device name, the change will have no effect.

You can run "RegEdit.exe" in the Windows directory to change the registry.

\\HKEY_LOCAL_MACHINE\Software\CONTEC\Manager key

Item Data type Explanation

AutoName REG_DWORD "0" Enables the setting of an arbitrary device name. "1" The default device name will be used.

Q. Is it possible to run applications automatically?

A. We recommend that you use the schedule function of CONTEC Manager. For details on CONTEC Manager, see "Chapter 7, CONTEC Manager." Although you can run applications automatically by writing to the Windows Embedded Compact 7 registry entries shown below, note that changing the registry may have an effect on the operation of the OS. You can run "RegEdit.exe" in the Windows directory to change the registry.

\\HKEY_LOCAL_MACHINE\init key

Item Data type Explanation

Launchxx REG_SZ Write, in string format, the name of the application to run (the program name). The "xx" part is the ID number and can be used to specify the order in which to run this application. (Specify "xx" as a decimal value.) [Caution] You cannot specify the full path for the application name specified here.

Dependxx REG_BINARY Use an ID number (in binary format) to write the dependency relationship with the running order of the application specified with Launchxx (when a separate program must be running before running this program). The "xx" part is the same as the "xx" of the Launch command that is targeted. (Specify "xx" as a decimal value.)

Example: Launch90: "shell.exe" Launch95: "myProg.exe" Depend95: 5A, 00

In this situation, shell.exe is run before myProg.exe. In addition, Depend is also specified, so myProg.exe is run after shell.exe. "5A" in "5A, 00" is "90" in decimal and indicates Launch90. Due to the OS specifications, this is specified in binary format using two bytes. If the command was Launch98, the Depend command would be specified as "62, 00."

However, the names of the programs that can be run with this setting cannot be specified by way of full paths, so these programs must be located in the "Windows" directory.

Chapter 9 Appendix

48 Software Manual

The following is an actual example of the registry with the default setting (Mini Shell).

Launch16 WceObjUp.exe

Launch20 device.exe depend20 Hex 10, 00 (Decimal: 16)

Launch30 gwes.exe depend30 Hex 14, 00 (Decimal: 20)

Launch50 taskman.exe depend50 Hex 14, 00 (Decimal: 20)/1E, 00 (Decimal: 30)

Launch60 service.exe depend60 Hex 14, 00 (Decimal: 20)

Launch80 wcemngr.exe depend80 Hex 14, 00 (Decimal: 20)/1E, 00 (Decimal: 30)

Do not rewrite or delete the registry entries, such as those shown above, written with the default

values. In order to specify a new program to run, you will have to add a new registry number to the existing ones. (In the above example, this would be a number such as Launch90 or later.)

Do not delete or rewrite the existing registry data, as doing so may cause the OS to operate incorrectly.

Software Manual for Panel-PC 310, 40 Series

with CPU ARM CortexA-8 and Windows Embedded Compact 7

CONTEC CO., LTD. November 2016 Edition 3-9-31, Himesato, Nishiyodogawa-ku, Osaka 555-0025, Japan Japanese http: //www.contec.co.jp/ English http: //www.contec.com/ Chinese http: //www.contec.com.cn/ No part of this document may be copied or reproduced in any form by any means without prior written consent of CONTEC CO., LTD. [11172016] [041420015] Management No. NA03777 11172016_rev2 Parts No. LYSB652