The text of a manual · part 15 of 42
JANUS 2050 Vehicle-Mount Computer (4MB) User's Manual, pages 141 to 150
Pages 141 to 150 of 419
The original document is the PDF (2.0 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 Intermec J2050
Page 141
JANUS 2050 Vehicle-Mount Computer User’s Manual (4MB)nubbet code30 icon
If you want a protocol handler to always be present, you can include the command line in your AUTOEXEC.BAT file. However, this requires more memory to operate the JANUS 2050.
Loading/Unloading Protocol Handlers With IRL Desktop or Communications Manager You can load a protocol handler for a designated port when you execute the IRL Desktop or the Communications Manager utility. When you exit the program, the protocol handler is unloaded. To load a protocol handler when executing IRL Desktop or Communications Manager, you enter the following command at the DOS prompt: {application} -[{port}{ph}] where: application is the application you are executing. For IRL Desktop, enter irl. For the Communications Manager, enter cmgr. port indicates the port for which you are loading the protocol handler. To load the protocol handler for COM1, enter 1. ph is the notation for the protocol handler you want to load. For the Intermec protocol handler, enter i. For the PC Standard protocol handler, enter p. For example, to load the Intermec protocol handler on COM1 and execute the IRL Desktop, you enter the following command at the JANUS 2050 DOS prompt: irl -1i
Specifying a Value for the FIFO Control Register The First In First Out (FIFO) control register contains a hex value that controls the Universal Asynchronous Receiver/Transmitter (UART) buffer. For example, the FIFO control register can enable UART 16x550 mode and require the buffer to receive four bytes of data before generating a receive interrupt. If you turn off your JANUS device while running a communications application, the device cannot save the contents of the UART FIFO control register. When you turn the device back on, the device sets the FIFO control register to its default value, 0 hex, unless you have already specified a value that the device can use to restore the FIFO control register. You should specify another value if the default is not appropriate for the JANUS 2050 UART FIFO control register.
6-10
Page 142
nubbet code30 iconCommunicating With the JANUS 2050
6
To determine if you should specify a value, what value to specify, and how to do it 1. Decide if you need to specify a value that the device will use to reset the FIFO control register after a Suspend/Resume. You must specify a hex value if you plan to perform either of these activities: •
You run a communications application on COM1 without loading an Intermec protocol handler into memory.
•
You run a communications application on COM2 that changes the COM2 UART FIFO control register to use UART 16x550 mode. (Many communications applications change the COM2 UART FIFO control register to use UART 16x550 mode. To learn if your application uses UART 16x550 mode, see its manual.)
2. Calculate which two digit hexadecimal value will correctly restore your UART FIFO control register. Use this illustration as a guide: Two-digit hex value
Flag byte
7 6 5 4 3
2 1 0
Descriptions of each bit 0 to disable FIFO (16x450 mode) 1 to enable FIFO (16x550 mode) 0 does not reset 1 to reset receive FIFO 0 does not reset 1 to reset transmit FIFO 0 does a single transfer DMA 1 does a multiple transfer DMA that empties all of the FIFO contents in one DMA session Reserved (Always 0) Reserved (Always 0) Receiver trigger level. Indicates the number of bytes at which the receive interrupt is generated. Number of bytes that generate 7
6 a receive interrupt
0
0
1
1
0
4
0
1
8
1
1
14
2050U.097
6-11
Page 143
JANUS 2050 Vehicle-Mount Computer User’s Manual (4MB)nubbet code30 icon
Follow these steps: •
Choose 1 or 0 for each bit in the flag byte. Read the descriptions for each bit carefully to decide whether to enable or disable each bit.
•
Convert the bytes to hexadecimal numbers. The resulting two hex numbers are the value you will specify (in Step 3) to restore the UART FIFO control register.
For example, a two-digit value of 81 enables UART 16x550 mode, requires the buffer to receive four bytes of data before generating a receive interrupt, and leaves all other parameters disabled. 8 1 0 0 0 0
1 0 0 1 2050U.044
3. Specify the value for the UART FIFO control register using one of these methods:
6-12
•
Start the configuration application (IC.EXE), choose the COM port from the COM menu, and type the value into the FIFO CONTROL REGISTER parameter. For help using IC.EXE, see Chapter 4, “Configuring the JANUS 2050.”
•
Scan the Communications Port, UART Restore command in Chapter 10, “Configuration Commands.”
•
Use software interrupts. For help, see the JANUS PSK reference manual set.
Page 144
nubbet code30 iconCommunicating With the JANUS 2050
6
Different Ways to Communicate With the JANUS 2050 There are a number of ways for the JANUS 2050 to communicate with other devices: IRL Desktop You can use the IRL Desktop to transfer IRL programs and data files between the JANUS 2050 and the host computer using menus. IRL Desktop is discussed in more detail in Chapter 7, “Working With IRL.” Interlnk/Intersvr You can use the DOS utilities Interlnk/Intersvr to access the drives in the host computer as if they existed in the JANUS 2050 and vice versa. Use the /b switch on the JANUS 2050 command line with Interlnk/Intersvr to make optimum use of the monochromatic display. Interlnk/Intersvr are discussed in more detail later in this chapter. Communications Manager You can use the Communications Manager utility to transmit and receive data files, and request port and protocol status. Communications Manager is discussed in more detail later in this chapter.
Communicating Using the Interlnk/Intersvr Utilities You can easily transfer files between the JANUS 2050 and a host computer by using the JANUS 2050 Interlnk program. Through Interlnk, the host computer can run programs located on the JANUS 2050, and the JANUS 2050 can access information from the host computer without having to copy files. For example, you can create a QBasic program on the computer. Once you develop the program, you can run it on the JANUS 2050 by having the JANUS 2050 call up the computer and access its drives. The device that you enter commands from is called the client. The device connected to the client is the server. You use the client to control both it and the server. The server’s drives and printers look as if they are on the client. The server screen displays the status of the connection. The JANUS 2050 will most likely be used as a server when creating programs, and as a client when uploading data files and running programs. Because Interlnk does not work with redirected drives when the JANUS 2050 is the server, the host computer (client) will not be able to access the JANUS 2050 PC card drive when it has a flash memory card installed.
6-13
Page 145
JANUS 2050 Vehicle-Mount Computer User’s Manual (4MB)nubbet code30 icon
Example Suppose the host computer is the client and has two hard drives (C and D) and one disk drive (A). The JANUS 2050 is the server and has four drives: three simulated drives (C, D, and E) and a PC card drive (G). Host Computer (client)
When the JANUS 2050 and host computer are connected through Interlnk, drives on the JANUS 2050 (server) appear as additional drives on the host computer (client). In addition to drives A, C, and D, the host computer now has drives F, G, H, and J.
Dr A ive Dr B ive Dr C ive Dr D ive
J2050 (server)
Dr C ive Dr D ive
Dr G ive Dr E ive
B C D
Dr G ive Dr H ive Dr J ive
Server Drives
A
Dr F ive Drive redirected from the reader
Client Drives
Int er link
Interlnk redirects the drives
F redirected from
C
G redirected from
D
H redirected from
E
I placeholder for internal PC card drive
F
J redirected from
G
2050U.018
The client’s drive G is redirected from the server’s (JANUS 2050) drive C. If you type the command dir g:\ on the client, a list of files located in the root directory of the JANUS 2050 drive C is displayed. The following sections describe what hardware and software you need to use Interlnk/Intersvr, how to get Interlnk/Intersvr running, and several procedures for using Interlnk/Intersvr.
6-14
Page 146
nubbet code30 iconCommunicating With the JANUS 2050
6
Interlnk/Intersvr System Requirements The following hardware, software, and memory are necessary to use Interlnk on your host computer: •
A serial port
•
DOS 3.0 or later
•
16K of free memory on the client device and 130K of free memory on the server device
Installing Interlnk/Intersvr There are two files necessary to run Interlnk: INTERLNK.EXE and INTERSVR.EXE. INTERLNK.EXE is a device driver that you install on the device designated as the client. INTERSVR.EXE is a program that you run on the device designated as the server. It is recommended that you run Interlnk on the host computer (make it the client) and run Intersvr on the JANUS 2050 (make it the server) to optimize memory use. You do not need to load protocol handlers to use Interlnk/Intersvr. To install Interlnk/Intersvr on the host computer 1. Connect the JANUS 2050 to the host computer. 2. Make the directory where the Interlnk files on the host computer will reside your current working directory. 3. Copy the INTERLNK.EXE file and INTERSVR.EXE file from companion disk 2, shipped with the JANUS 2050, to the host computer. If you do not have companion disk 2 containing the Interlnk and Intersvr files, you can enter the following command at the JANUS 2050 DOS prompt: intersvr /rcopy
The Interlnk/Intersvr files will be copied to the host computer. Follow any instructions on the JANUS 2050 display. If the host computer locks up after the files have been copied over, reboot the host computer. Note: You must run Interlnk on the JANUS 2050 if you want to access a flash card in the PC card drive.
6-15
Page 147
JANUS 2050 Vehicle-Mount Computer User’s Manual (4MB)nubbet code30 icon
Running Interlnk on the Host Computer If you are going to make the host computer the client and make the JANUS 2050 the server, follow these instructions: 1. On the host computer, add a device command for INTERLNK.EXE to the CONFIG.SYS file. The command should specify the location of the file and how many drives are on the server. For example: device=c:\interlnk.exe /drives:7
This specifies that INTERLNK.EXE is located in the root directory on drive C and that INTERLNK.EXE redirects all drives. If /drives: is not specified, Interlnk redirects three drives. Refer to Appendix D, “Software Utility Reference,” for more information on the options you can specify for the Interlnk device driver command. 2. If COM1 on the host computer is connected to the JANUS 2050, go to the next step. If you are not using COM1 on the host computer and are using the DOS command SHARE.EXE on that computer, remove the Share command from the AUTOEXEC.BAT or CONFIG.SYS file. 3. Start the Interlnk server by entering the following command at the JANUS 2050 DOS prompt: intersvr /com1 /b
A screen appears displaying information on the redirected drives and printer ports. If you do not include /com1 in the command line, Intersvr defaults to COM3 and you will receive two error messages. You need to specify /b switch or black and white mode is not visible on the JANUS 2050. Press e after each message is displayed and Intersvr will then go to COM1. 4. To restart the host computer to load Interlnk from CONFIG.SYS, press c-a-f-.. Interlnk is now connected to the server and you are ready for operation. For example, if the client’s (host computer) drive G is redirected from the server’s drive C, enter the following command: g:
Now any commands entered at the drive G prompt will affect the JANUS 2050 drive C.
6-16
Page 148
nubbet code30 iconCommunicating With the JANUS 2050
6
Running Interlnk on the JANUS 2050 If you are going to make the JANUS 2050 the client and make the host computer the server, follow these instructions: 1. Start the Interlnk server by entering at the host computer’s command prompt: intersvr
If you are using a port other than COM1, specify that port in the command line (for example, intersvr /com2). A screen appears displaying information on the redirected drives and printer ports. 2. Reboot the JANUS 2050 to start Interlnk by pressing c a f . . Note: It is not necessary to modify the JANUS 2050 CONFIG.SYS file. The JANUS 2050 factory default CONFIG.SYS file installs Interlnk automatically (using the /auto option) when the JANUS 2050 is connected to a host computer that is running Intersvr.
CAUTION
Caution Do not press any keys while the JANUS 2050 is performing a warm boot or you may lose data. Conseil N’appuyez pas sur des touches pendant que le lecteur se réamorce, sinon vous pouvez perdre des données. Interlnk is now connected to the server and you are ready for operation. For example, if the client’s (JANUS 2050) drive G is redirected from the server’s drive A, enter the following command: g:
Now any commands entered at the drive G prompt will affect the host computer’s drive A. Interlnk\Intersvr can also be executed on two JANUS 2050s using the steps listed above.
6-17
Page 149
JANUS 2050 Vehicle-Mount Computer User’s Manual (4MB)nubbet code30 icon
Interlnk/Intersvr Status When Intersvr is started, it displays a status screen. This Computer This column lists all drives and printer ports on the server. The screen also displays the size of the hard disk drives on the server.
Microsoft Interlnk version 1.00
This Computer (Server) ___________________________ A: B: C: D: E: LPT3:
Transfer:
Other Computer (Client) _____________________________ equals equals equals equals equals equals
D: E: F: G: H: LPT1
Port = Com 1
Speed:
Other Computer This column lists the server’s redirected drive designations.
Alt + F4 = Exit
2050U.103
When the client is reading from or writing to the server, the word Transfer flashes at the bottom of the screen and an asterisk (*) is displayed next to the server drive that is being accessed. The status bar also shows which server port is connected to the client and the baud rate.
Redirecting Drives You can redirect a client drive to a different server drive using the Interlnk command. For example, if the client drives F and G are set to server drives C and D respectively, you can redirect the client drive F to server drive D and client drive G to server drive E by entering the following command: interlnk f=d g=e
To cancel the redirection of client drive F, do not specify a server drive as shown: interlnk f=
Note: The client cannot access a server’s drive that was redirected before Interlnk was started, such as a network drive.
Exiting Interlnk/Intersvr Use the server’s keyboard to break the Interlnk connection between computers. Press a - o to break the connection.
6-18
Page 150
nubbet code30 iconCommunicating With the JANUS 2050
6
Restarting Interlnk/Intersvr You can restart the connection at any time by entering the following command on the server: intersvr /com1
This command tells the server which communications port you are using. On the client, make one of the redirected drives the active drive. For example, if the client’s drive G is redirected from the server’s drive C, enter: g:
If Interlnk/Intersvr will not restart, repeat the steps listed in the section “Running Interlnk on the Host Computer” or “Running Interlnk on the JANUS 2050” earlier in this chapter.
Communicating Using Communications Manager The Communications Manager utility lets you transmit and receive ASCII files, and request port and protocol status. The files to execute Communications Manager are shipped on Companion disk 3 and can be loaded on the JANUS 2050 drive C or a PC card. The following files need to be loaded on the JANUS 2050 to execute Communications Manager: •
CMANAGER.EXE
•
CMGR.BAT
•
CO001.DAT
Once it is loaded on the JANUS 2050 or a PC card, you can run Communications Manager by using menus or by entering commands at the DOS prompt as described in the following pages.
Using the Communications Manager Menus To open the Communications Manager utility from the DOS prompt, type: cmgr and then press e . Or, scan the following bar code:
*CMGR* *CMGR*
6-19