Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 6 of 14

Data Collection Browser Client User's Guide: Chapter 2 - Developing and Testing Your Application, pages 37 to 44

Pages 37 to 44 of 107, from Data Collection Browser Client User's Guide

The original document is the PDF (897 KB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Intermec 6400

Page 37

Developing and Testing Your Application

2

Scan-ahead and type-ahead are always available. While the device is waiting for a new screen, all scanned and keyed data is buffered. When the device receives a new screen with input fields, it applies the buffered data to the new screen. If an auto-transmit field is filled in before the end of the screen is reached, the screen is transmitted, and the remainder of the scan-ahead or type-ahead data waits for the next screen. If the device receives a new screen that has no input fields, the device assumes that the screen is an error message. All scan-ahead data and type-ahead data are discarded. Type-ahead can include the arrow keys and any of the alphanumeric keys, but it cannot include action keys such as a function key or the enter key. Note: Screens with input fields have no way to ensure that the scan-ahead data or typeahead data is put in the correct field. The receiving application must validate the data.

About the Test/Software Only Gateway Environment Use the test environment to simulate running your HTML application before you run it in your data collection network. You can run your application on your PC using the client simulator. When you run the application on your PC, you are using three main parts: the Web server, the local dcBrowser gateway, and the client simulator. To set up this test environment, follow the guidelines in “Configuring the Test/Software Only Gateway Environment” later in this chapter. Note: In the software only dcBrowser gateway environment, the test environment is the local dcBrowser gateway that you use on the Windows NT/2000/ME server. The server requires an additional license file. For help placing the license file and configuring the dcBrowser gateway, see the online help for the gateway.

2-19

Page 38

Data Collection Browser Client User’s Guide

Understanding the Test Environment Development Computer

Local dcBrowser gateway

Web server

HTML files

CGI modules

Database

Language (C, JAVA, etc.) editors and development tools

HTML editor and development tools

Simulator

0300U028.eps

Logical data flow

Setting Up the Test/Software Only Gateway Environment Use the test/software only gateway environment to simulate running the HTML application on your PC.

Minimum Requirements

2-20

•

PC (not provided by Intermec) - Intel-based, Pentium - 32 MB RAM - 10 MB available hard disk space - Screen must use a VGA device - CD-ROM drive - Windows 95/98/NT/2000/ME

•

Web server

•

Web browser - Internet Explorer 4.0 or higher/Netscape Navigator 4.5 or higher (not provided by Intermec)

• dcBrowser simulator (on dcBrowser client CD)

Page 39

Developing and Testing Your Application

2

Note: A free Web server is provided in INTERMEC\DCBROWSER\DEVTOOLS. Intermec does not provide product support for the server. For help installing the Web server, see the README.TXT. To set up the test/software only gateway environment 1. Load a Web server and a Web browser on your PC. For help, see the documentation that came with your Web server and Web browser. 2. Load the dcBrowser simulator on your PC. For help, see “Installing the Client Environment and Simulator” later in this chapter. This manual assumes that you keep the default directory and directory structure. 3. Verify that your test environment works by running the sample application and Web pages. For help, see “Setting Up the Sample Application and Web Pages” later in this chapter. 4. Copy your application and Web pages to the appropriate directories on the Web server. For help, see “Testing Your Application” later in this chapter.

Installing the Client Environment and Simulator The dcBrowser simulator ships on each dcBrowser client CD-ROM. You can also download the simulator from the Intermec Web site at www.intermec.com. To load the simulator 1. Place the dcBrowser client CD into the CD-ROM drive on your Windows 95/98/NT/2000/ME computer. 2. If you have AutoPlay enabled for your CD player, the CD automatically opens and the dcBrowser Setup Launcher screen appears; otherwise, run SETUP.EXE on the top level of the CD. The Welcome screen appears. 3. Read the Welcome screen and click Next. The Software License Agreement screen appears. 4. Read the Intermec Software License Agreement and click Yes. The Choose Destination Location screen appears. 5. Choose the path where you want to install the simulator. The default directory is C:\INTERMEC. You can choose Browse to modify the default directory structure to meet your needs; however, Intermec recommends that you change only the drive letter, not the directory structure. 6. Click Next. The Setup Type screen appears. 7. Click Complete or Custom. Intermec recommends that you perform a complete setup. The Select Program Folder screen appears.

2-21

Page 40

Data Collection Browser Client User’s Guide

8. Choose the Program Folder. The default program folder is Intermec. You can select another folder into which you want to copy your program icons. 9. Click Next. The Start Copying Files screen appears. 10. Review the current settings and click Next. If you need to return to a previous screen to make changes, click Back. 11. Wait for the simulator to be installed on your PC. The Setup Complete screen appears. When you restart your computer, a new program folder appears containing two icons: Run Simulator and Local dcBrowser Gateway. During installation, the files are loaded into a directory tree as shown next: INTERMEC |-DCBROWSER | |-CLIENT | |-JANUS | |-TRAKKER | |-I5020 | |-I6400 | |-I700 | |-DEV TOOLS | |-GATEWAY DOCS | |-DOCS | |-EXAMPLES | |-ASP | |-CGI_BASED | |-SIMPLE | |-GATEWAY |-TOOLS |-FILECOPY |-JANUSIMAGEMANAGER

2-22

Page 41

Developing and Testing Your Application

2

Running Multiple Copies of the Simulator (Optional) If you want to run a loopback test with many end devices or have the simulator connect to a dcBrowser gateway that is not on the same PC as the simulator, you can set up multiple copies of the simulator. Note: Only the first copy of the simulator is associated with the function keys.

To set up the simulator to run multiple copies •

From a DOS prompt, type -hx.x.x.x -pport -isimid –l and press Enter. where: x.x.x.x is the IP address for the PC running the dcBrowser gateway, where x is a value from 0 to 255. port is the port number the gateway is communicating through. The default is 4060. Only change the port number if you change the DCS_PORT parameter in the DCB.INI file. For more information about the DCB.INI file, see the online help for the dcBrowser gateway for NT. simid is a unique ASCII string that identifies the simulator copy. -l starts the loopback test.

Setting Up the Sample Application and Web Pages (Optional) When you load the simulator, a sample application and Web pages are also loaded. Before you run your application and Web pages in the test environment, test your test environment using the sample application and Web pages. To set up the sample application and Web pages 1. Copy the .EXE files from the \INTERMEC\DCBROWSER\EXAMPLES\CGI_BASED\ CGI\BIN directory to the CGI-BIN directory for your Web server. Note: If you use a Microsoft Web server, you may need to create a virtual CGI-BIN that points to the directory where the files are installed. Make sure to choose the Execute check box when configuring that directory. 2. Copy the .HTM files from the \INTERMEC\DCBROWSER\EXAMPLES\CGI_BASED\ HTML directory to the HTML directory for your Web server. 3. Start your Web server. 4. Start the Local dcBrowser Gateway. A DOS window appears. 5. Start your Web browser.

2-23

Page 42

Data Collection Browser Client User’s Guide

Configuring the Test/Software Only Gateway Environment Test your application and Web pages the same way that you set up the sample application and Web pages. To run your application 1. Copy your .EXE files to the CGI-BIN directory for your Web server. Note: If you put your CGI scripts in a different directory than CGI-BIN, you may need to modify your HTM files to tell them where to look for the CGI scripts. 2. Copy your .HTM files to the HTML or home directory for your Web server. 3. Start your Web server. 4. Start the local dcBrowser gateway. For help starting the local dcBrowser gateway, see the online help for the DCS 30X or for the software only dcBrowser gateway. A DOS window appears. 5. Configure the local dcBrowser gateway. For help, see “Configuring the Local dcBrowser Gateway” in the next section. 6. A simulator window appears. Press Ctrl-F1 to change the screen size.

Configuring the Local dcBrowser Gateway When you configure the local dcBrowser gateway, you must define Device 0, which is the default configuration. Any devices that communicate with the same Web server and require the same home page do not need a unique configuration. When a device connects to the gateway and it doesn’t have its own configuration (as determined by the device’s IP address), the gateway assigns it a new device ID and uses the Device 0 configuration. This device ID and configuration appear in the dcBrowser Device Mapping Configuration table. An asterisk by the device number indicates that this device uses the Device 0 configuration. After you start the simulator in a test environment with no unique device configurations, a device with IP address 127.0.0.1 appears in the table. You must create a unique configuration for any devices that do not communicate with the host defined for Device 0 or that need a home page different from Device 0. Assign the device a unique device number, and then fill in the rest of the fields. The device number and configuration for this device appear in the dcBrowser Device Mapping Configuration table. No asterisk appears by the device number.

2-24

Page 43

Developing and Testing Your Application

2

To configure the local dcBrowser gateway for the default configuration Note: If you access the Internet by using a proxy server, you must add 127.0.0.1 to your Exceptions list. The Exceptions list contains the addresses that you do not want to use with a proxy server. 1. Start the Web browser. 2. In the Address line or the Go to line, type: http://127.0.0.1:4050

The dcBrowser Device Mapping Configuration screen appears. 3. In the table below the configuration screen, click 0. The Device 0 information appears in the configuration screen fields. 4. In the Host IP:Port field, enter the IP address and port of the Web server. If the Web server is on the same PC as the simulator, type: 127.0.0.1:80

5. In the Home Page field, enter the name of the Web page that the Web server sends to the device when the device is turned on. 6. Enable or disable the Links, Post Device ID, and Lowercase parameters. For help, see the online help for the DCS 30X or for the software only dcBrowser gateway. 7. Click Update. Verify your changes to Device 0 in the table. 8. Click Save. Your changes are saved. You can also edit a device configuration. To change a device configuration 1. Click the device ID. 2. Change the configuration fields and runtime parameters. 3. Click Update. If the device ID had an asterisk after it indicating that it used the Device 0 configuration, the asterisk disappears.

2-25

Page 44

Data Collection Browser Client User’s Guide

Testing Your Application 1. Verify that the correct home page appears for each device. 2. Using the simulator, run the application. Make sure that the data the Web server returns is the data you expect. 3. Using the simulator, test the application for unexpected user input or keystrokes. Verify that appropriate error messages appear.

Setting Up the Runtime Environment To set up the runtime environment for the DCS 30X, see the documentation that came with your DCS 30X. To set up the runtime environment for the software only dcBrowser gateway, see the online help.

2-26