The text of a manual · part 13 of 18
Dolphin 7200 Handheld Computer and HomeBase User's Guide, pages 121 to 130
Pages 121 to 130 of 179
The original document is the PDF (3.2 MB). 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 HHP 7200-RF
Page 121
C H A P T E R
9
D O L P H I N
O S
A N D
D E V E L O P M E N T
S Y S T E M
Note: Dip Switch 2 located on the back of the HomeBase must be set in the Up (PROGRAM) position for the baud rate to be programmed. The HomeBase power must be cycled (turned off and on) for the new dip switch settings to be recognized.
STL.EXE
STL.EXE is a DOS command line utility for Dolphin that turns the 9th line status indicators on or off. Usage: STL [1] [0] Where:
1: 0:
Turns the status line on turns the status line off
Example: STL 1 If no command line is specified, STL.EXE will toggle the status line off, if it was on, and on if it was off.
YX.EXE
YX.EXE is a DOS command line Ymodem communication tool for the Dolphin terminal or a PC. YX.EXE supports the following options: N O T E
When using YX on the Dolphin 7200 terminal, only COM1 is available.
Usage: Where:
yx {/c#] [/b#] [/m] [filename] filename: /c#: /b#: /m:
refers to file name to send, if not specified YX will receive a file Specifies COM ports 1-4 (1=Ir Port, 2=Micro DB-9) Specifies new BAUD rate, 300-57600 Run YX in menu driven mode
121
Page 122
C H A P T E R
9
D O L P H I N
O S
A N D
D E V E L O P M E N T
S Y S T E M
Examples: yx /b57600 autoexec.bat yx yx /m yx /c2
The default baud rate for the YX.EXE utility is 57600. For your convenience, batch files are included on the Dolphin terminal to make sending data at a higher baud rate easier. To send at 38400, enter <YF> instead of YX/b38400. To send at 57600, enter <YFF> instead of YX/b57600. ZZZ.EXE
ZZZ.EXE is a DOS command line utility for Dolphin that places the terminal into sleep mode. Note – The terminal can not be placed in sleep mode while it is in the HomeBase. While in a HomeBase, the terminal must be on so it can monitor the battery status.
122
Page 123
C H A P T E R
9
D O L P H I N
O S
A N D
D E V E L O P M E N T
S Y S T E M
The following Utilities are included in the Dolphin ROM image and are automatically loaded when the terminal boots. They are NOT included on the Dolphin OS and Development System Disk. Utility
Description
EVS.EXE
Enhanced Video System (EVS) is a TSR that traps standard video BIOS (INT 10H) calls, and overlays hardware-specific support for the Dolphin’s LCD. In addition, EVS provides application and system level Status line support.
POWERMON.EXE
POWERMON.EXE is a TSR that monitors battery status and power usage. POWERMON.EXE is automatically loaded when the terminal boots.
Dolphin Application Development Compiling Applications for the Dolphin
Dolphin application development is straightforward. Since Dolphin is DOScompatible, most of the application can be tested on a desktop computer. Although Dolphin is DOS-compatible, it provides many unique features that are not built into most PCs. For example, it has an integrated bar code scanner. The Dolphin libraries provide an API that allows an application to use these features. There are four libraries provided for linking into applications:
• dolphins.lib for small memory models • dolphinm.lib for medium memory models • dolphinc.lib for compact memory models • dolphinl.lib for large memory models The header file, dolphin.h, in the c:\dolphin\devtools\ directory contains useful declarations for using these libraries.
123
Page 124
C H A P T E R
9
D O L P H I N
O S
A N D
D E V E L O P M E N T
S Y S T E M
Sample Applications
A number of sample programs with source code have been provided with your Dolphin terminal. The sample programs are installed in the c:\dolphin\devtools\samples directory on your desktop computer.
Application
Description
GRAPH
Draws various patterns on the Dolphin’s LCD display.
KBSTATUS
Displays keystrokes. If the keystroke is non-printable, the hex value of the keystroke is displayed.
LED
Allows the red and green LEDs to be toggled
ONBHIT
Displays status of the ON key.
SCAN
Allows bar code scanning.
SIO
Performs serial I/O. Displays characters received and sends key strokes.
SOUND
Runs through the frequency range of the Dolphin’s speaker.
NI
Sample programs for the Numeric Dolphin. This sample is located in the C:\DOLPHIN\DEVTOOLS\NUMERIC\BORLAND or C:\DOLPHIN\DEVTOOLS\NUMERIC\MSVC.
EVSDEMO
Demonstrates graphics, changing fonts, turning the status line on and off, adding new icons to the status line, and changing the system cursor.
INV5
Sample inventory application with source code.
Building the Samples
There is one Microsoft Visual C\C++ version 1.52 project file, .mak, for each sample application. There is also a Borland C++ version 5.0 project file, samples.ide. This project file will rebuild all sample applications. Consult the documentation for your compiler for information on the use of project files.
124
Page 125
C H A P T E R
9
D O L P H I N
O S
A N D
D E V E L O P M E N T
S Y S T E M
Compiling the Sample Programs Note: See the Development API Help file (DAPI.HLP) for complete information regarding the Dolphin Development Libraries, Samples and Compiling instructions. Microsoft
In order for an application to use Dolphin’s unique features, you must add a Dolphin library to the application’s project. There are four libraries located in c:\dolphin\lib\msvc named dolphinx.lib where x is s, m, c, or l, corresponding to the memory model. To add dolphinx.lib to an application’s project: •
Select the menus Project|Edit.
•
Change List Files of Type: to Library (*.lib). Browse into c:\dolphin\devtools\lib\msvc. Select dolphinx.lib corresponding to the memory model. Click the Add button.
•
The Include Files Path must be modified, so the compiler will search for include files in c:\dolphin\devtools\include.
Borland
For an application to use Dolphin’s unique features, you must add a Dolphin library must be added to the application’s project. There are five libraries are located in c:\dolphin\devtools\lib\ orland directory. They are named dolphinx.lib where x is t, s, m, c, or l, corresponding to the memory model. To add dolphinx.lib to an application’s project: •
Right click on the .exe file in the Project Window.
•
Select Add node from the pop-up menu.
•
When the Add to Project List dialog box is displayed, change Files to Type: to Libraries (*.lib).
•
Browse to c:\dolphin\devtools\lib\borland.
•
Select the dolphinx.lib library corresponding to the memory model. Click the Open button.
•
The Include Files Path must be modified, so the compiler will search for include files in c:\dolphin\devtools\include.
125
Page 126
C H A P T E R
9
D O L P H I N
O S
A N D
D E V E L O P M E N T
S Y S T E M
Transferring Files to or from Dolphin Transferring files between your Dolphin terminal and a desktop PC is easy with the YX.EXE utility or the Dolphin File Transfer program.
Using the YX.EXE Utility
N O T E
When using YX on the Dolphin 7200 with Ir Only terminal, only COM1 is available.
The YX.EXE utility, installed in the directory c:\dolphin\utils, performs RS-232 file transfers using Ymodem batch protocol. In addition, YX.EXE is preloaded on the Dolphin’s A drive. This program can be run by entering commands at the DOS prompt or by accessing a menu. YX.EXE supports the following options: Usage : yx [/b#] [/m] [filename] [com port] Where:
filename: /b#: /m: /c#:
refers to file name to send, if not specified YX will receive a file Specifies new BAUD rate, 300-57600 Run YX in menu driven mode Specifies COM ports 1-9 (1=Ir Port, 2=Micro DB-9)
Examples: yx /b57600 autoexec.bat yx yx /m yx/c2
The default baud rate for the YX.EXE utility is 57600. For your convenience, batch files are included on the Dolphin terminal to make sending data at a higher baud rate easier. To send at 38400, enter <YF> instead of YX /b38400. To send at 57600, enter <YFF> instead of YX /b57600.
Using the Dolphin File Transfer Program
Open the Dolphin program group in Windows Explorer and copy the Dolphin File Transfer shortcut to your PC’s desktop. Putting the shortcut on your desktop simplifies the file transfer process.
126
Page 127
C H A P T E R
9
D O L P H I N
O S
A N D
D E V E L O P M E N T
S Y S T E M
Sending a File to the Dolphin 1.
Open the Dolphin File Transfer Program Configuration dialog box. Check to make sure the baud rate is set at 57600. This is the default for YX.EXE. Close the Configuration dialog box and exit the Dolphin File Transfer program. To change the baud rate, see the section on “Sending Files at a Higher Rate” on the next page.
2.
Open Windows Explorer. Resize and move the window so that you can see both Explorer and the Dolphin File Transfer shortcut on your desktop.
3.
In Windows Explorer, select the file to be transferred and, while holding down the left mouse button, drag and drop the file on the Dolphin File Transfer shortcut on the desktop. This opens the Dolphin File Transfer program.
4.
At the Dolphin’s C: prompt, enter <YX>.
5.
Press <ENTER> on the Dolphin terminal to begin the file transfer. The COMM LED on the Dolphin HomeBase will blink red and green during the transfer. You can also view the progress of the file transfer on the Dolphin screen and Dolphin File Transfer program window.
N O T E
The configuration switches are checked at power up. Changes in the switch settings will not be recognized until power is cycled.
Sending a File From Dolphin to Your PC 1.
Double-click on the Dolphin File Transfer shortcut to open the program.
2.
Open the Configuration dialog box. Check to make ensure the baud rate is set at 57600.
3.
At the Dolphin’s C: prompt, enter <YX> [Filename].
4.
Click on the Receive File button.
5.
Press <ENTER> on the Dolphin terminal to begin the file transfer. The COMM LED on the Dolphin HomeBase will blink red and green during the transfer. You can also view the progress of the file transfer on the Dolphin screen and in the Dolphin File Transfer program window.
Sending Files At A Higher Rate
A batch file containing command lines for sending and receiving files at higher baud rates is also loaded on the Dolphin terminal. To send at a higher rate, the Dolphin HomeBase must be programmed at the higher baud rate. Configuration Switch 2 should be in the down position. Refer to the section on Baud Rate Selection in Configuring a Single Dolphin HomeBase or Creating a HomeBase Network later in this chapter. •
To send at 38400 baud rate, enter <YF> at the DOS prompt instead of <YX>.
127
Page 128
C H A P T E R
•
9
D O L P H I N
O S
A N D
D E V E L O P M E N T
S Y S T E M
To send at 57600 baud rate, enter <YFF> at the DOS prompt.
Using the Dolphin File Transfer Program and YX in Menu Mode
You can also use YX in menu mode to send and receive files from the Dolphin to your PC and vice versa with the Dolphin File Transfer program and YX.EXE on the PC. Sending Files to the Dolphin To use a menu for sending files to the Dolphin, follow these steps: 1.
Open the Configuration dialog box. Check to make sure the baud rate is set at 57600. This is the default for YX.EXE.
2.
Enter <YX /M> at the Dolphin terminal’s DOS prompt.
3.
Press <ENTER> and the menu below will appear on your Dolphin terminal’s screen:
N O T E
When using the menu, press <F3> to change to a higher baud rate. If you are using a HomeBase to transfer files, be sure to set Configuration Switch 2 on the HomeBase in the up position.
Port = 1 Baud Rate = 9600 F1 – Send File F2 - Receive File F3 - Set Baud Rate F4 - Choose Port Q - Quit
4.
In Windows Explorer, select the file to be transferred and, while holding down the left mouse button, drag and drop the file on the Dolphin File Transfer shortcut on the desktop. This opens the Dolphin File Transfer program.
5.
Press <F2> to begin the file transfer. If you are using a HomeBase to transfer files, the COMM LED will blink red and green during the transfer. You can also view the progress of the file transfer on the Dolphin screen and status bar in the Dolphin File Transfer program window.
Sending Files From the Dolphin To Your PC
128
Page 129
C H A P T E R
9
D O L P H I N
O S
A N D
D E V E L O P M E N T
S Y S T E M
1.
Double-click on the Dolphin File Transfer shortcut to open the program.
2.
Open the Configuration dialog box. Check to make sure the baud rate is set at 57600.
3.
Enter <YX /M> at the Dolphin terminal’s DOS prompt.
4.
Press <ENTER> and the menu below will appear on your Dolphin terminal’s screen:
5.
Click on the Receive File button.
6.
Press <F1> on your Dolphin terminal and then enter the name of the file. Press <ENTER>. If you are using a HomeBase to transfer files, the COMM LED on the Dolphin HomeBase will blink red and green during the transfer. You can also view the progress of the file transfer on the Dolphin screen and status bar in the Dolphin File Transfer program window.
Dolphin EVS Engine The EVS engine provides bit-mapped graphics support for the Dolphin LCD. EVS is the primary interface between an application and BIOS graphics functions. The EVS engine consists of three basic parts: 1.
A TSR (EVS.EXE) that traps standard video BIOS (INT 10H) calls, and overlays hardware specific support for the Dolphin LCD.
2.
A set of API routines that allow easy access to the EVS specific routines. These functions have been merged into the standard Dolphin Development API and are documented in the Dolphin API Help file (DAPI.HLP).
3.
Application and system level Status line support.
The EVS engine eliminates the need for an application to directly access the hardware layer. The EVS engine maintains an image of the display in memory (118 pixels wide by 73 pixels tall). All application screen access (read/write) is filtered so as to write to the display image rather to the hardware. The EVS engine then updates the hardware (e.g. writes to the display) as necessary. This process allows for support of a single display plane that combines graphics and text. For more on the Dolphin EVS Engine, see the Dolphin OS and Development System electronic help file.
129
Page 130
C H A P T E R
9
D O L P H I N
O S
A N D
D E V E L O P M E N T
S Y S T E M
Dolphin ROM Image and Boot Loader Upgrading the Dolphin ROM Image Important Notice: Before installing the Dolphin OS and Development System, you must remove all previous installations. To do this, delete the C:\DOLPHIN directory and all files contained within as well as the Dolphin Group or Folder. Only install the most recent release of the Dolphin ROM IMAGE and Boot Loader. Loading an old version of the ROM IMAGE or Boot Loader can make the Dolphin unstable or inoperable, and requiring you to return the unit to HHP for repair. The Dolphin terminal has a Boot Loader incorporated that allows the developer to upgrade or reload the ROM IMAGE. Follow these steps to manually reload the ROM IMAGE and Operating System from DOS: 1.
Verify that Configuration Switch 2 on the back of the Dolphin HomeBase is set to “Fixed BPS” and Switch 1 is set to “Single”. Power must be turned off and then on to accept the new dip switch settings.
2.
Make sure the serial cable is properly installed and power is properly connected to the HomeBase. Make sure no other communications programs are running on the PC.
3.
Start the Dolphin Boot Loader. Hold down the “7” and “9” keys with one hand. With your other hand, press and release the “ON/SCAN”, “SHIFT” and “BKSP” keys. Release the “7” and “9” keys. You should see the screen below. If not, repeat step three.
SYS Utilities X.XX 1) 2) 3)
Download Launch Bios Set Baud Rate
Baud: 57600
4.
Press “3” to select Baud rate. Press “1” to set baud rate to 57600.
130